
.site-banner{width:100%; background:transparent; overflow:hidden}
.site-banner-img{width:100%; height:auto; display:block}
.navbar{position:sticky; top:0; z-index:50}
.navbar-inner{padding:10px 0}
.brand-text{font-weight:900; text-decoration:none; letter-spacing:.2px}

:root{
  --bg: #f7f7fb;
  --card: rgba(255,255,255,.78);
  --text: #243047;
  --muted: rgba(36,48,71,.72);
  --shadow: 0 12px 30px rgba(22,31,53,.12);
  --radius: 18px;
  --radius-lg: 26px;
  --accent: #2aa7ff;
  --accent2: #ff5aa5;
  --accent3: #ffbf3c;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;color:var(--text);background: radial-gradient(1200px 700px at 15% 10%, rgba(255,90,165,.10), transparent 55%),
radial-gradient(900px 600px at 85% 30%, rgba(42,167,255,.12), transparent 55%),
radial-gradient(900px 600px at 20% 85%, rgba(255,191,60,.14), transparent 55%),
var(--bg);}
a{color:inherit}
img{max-width:100%;height:auto;display:block}

.container{max-width:1100px;margin:0 auto;padding:0 18px}
.navbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(36,48,71,.08);
}
.navbar-inner{display:flex;align-items:center;gap:16px; padding:12px 0}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.brand img{width:170px; height:auto}
.nav{margin-left:auto;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.nav a{padding:10px 12px;border-radius:999px;text-decoration:none;color:var(--muted);font-weight:600}
.nav a.active,.nav a:hover{background: rgba(42,167,255,.12); color: var(--text)}
.icon-btn{width:40px;height:40px;border-radius:999px;border:1px solid rgba(36,48,71,.10);display:grid;place-items:center;background:rgba(255,255,255,.55)}
.icon-btn:hover{background:rgba(255,255,255,.9)}
.header-strip{
  background: linear-gradient(90deg, rgba(255,90,165,.85), rgba(255,191,60,.85), rgba(88,214,141,.85), rgba(42,167,255,.85), rgba(154,93,255,.85));
}
.header-strip .container{padding:0}
.hero{
  position:relative;
  min-height: 260px;
  margin:18px auto 0;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(0deg, rgba(255,255,255,.78), rgba(255,255,255,.72)),
    url("../img/hero_inicio.png");
  background-size: cover;
  background-position:center;
}
.hero-inner{display:grid;grid-template-columns: 1.25fr 1fr; gap:16px; padding:28px}
.hero h1{
  font-size: clamp(26px, 3.6vw, 44px);
  margin:0 0 10px;
  font-weight:900;
}
.hero .bullets{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.hero .bullets li{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-weight:600}
.check{width:20px;height:20px;border-radius:6px;background: rgba(42,167,255,.18);display:grid;place-items:center;flex:0 0 20px}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.btn{
  border:0; cursor:pointer; text-decoration:none;
  padding:12px 18px;
  border-radius: 14px;
  font-weight:800;
  box-shadow: 0 10px 20px rgba(36,48,71,.10);
  display:inline-flex;align-items:center;gap:10px
}
.btn-primary{background: linear-gradient(135deg, var(--accent2), #ff7bb8); color:white}
.btn-secondary{background: linear-gradient(135deg, var(--accent), #64c6ff); color:white}
.btn-ghost{background: rgba(255,255,255,.7); border: 1px solid rgba(36,48,71,.12); box-shadow:none}
.section{padding:32px 0}
.section-title{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;margin-bottom:18px}
.section-title h2{margin:0;font-size: clamp(22px, 3vw, 34px)}
.section-title p{margin:0;color:var(--muted);font-weight:600}

.card{
  background: var(--card);
  border:1px solid rgba(36,48,71,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.about{display:grid;grid-template-columns: 320px 1fr; gap:18px; align-items:center; padding:22px}
.about .avatar{width:260px;margin:0 auto}
.about p{color:var(--muted);font-weight:600;line-height:1.6;margin:0}
.about strong{color:var(--text)}
.about .btn{margin-top:14px}

.products-grid{display:grid;grid-template-columns: repeat(5, 1fr); gap:12px}
.product{
  padding:14px;
  border-radius: 18px;
  border: 1px solid rgba(36,48,71,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px rgba(36,48,71,.08);
  display:flex;flex-direction:column;gap:10px
}
.product .pill{align-self:flex-start;padding:6px 10px;border-radius:999px;font-weight:800;font-size:12px;background: rgba(255,191,60,.22)}
.product h3{margin:0;font-size:16px}
.product p{margin:0;color:var(--muted);font-weight:600;font-size:13px;line-height:1.4}
.product .btn{padding:10px 12px;border-radius: 12px;font-weight:800}
.product .btn-ghost{align-self:flex-start}

.news-grid{display:grid;grid-template-columns: repeat(3, 1fr); gap:12px}
.news{
  padding:14px;border-radius: 18px;border: 1px solid rgba(36,48,71,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px rgba(36,48,71,.08);
}
.news .meta{font-size:12px;color:var(--muted);font-weight:700}
.news h3{margin:8px 0 8px;font-size:16px}
.news p{margin:0;color:var(--muted);font-weight:600;line-height:1.5}
.news .btn{margin-top:12px;padding:10px 12px;border-radius:12px}

.contact-wrap{display:grid;grid-template-columns: 1.15fr 1fr; gap:12px}
.form{padding:18px}
.field{display:grid;gap:8px;margin-bottom:10px}
label{font-weight:800;color:var(--muted);font-size:12px;letter-spacing:.4px;text-transform:uppercase}
input,textarea{
  border:1px solid rgba(36,48,71,.12);
  border-radius: 14px;
  padding:12px 12px;
  font: inherit;
  background: rgba(255,255,255,.9);
}
textarea{min-height:120px;resize:vertical}
.contact-card{padding:18px;position:relative}
.mapa-avatar{position:absolute;right:14px;top:-24px;width:160px;filter: drop-shadow(0 10px 20px rgba(36,48,71,.12));}
.list{display:grid;gap:10px;margin-top:10px}
.list .row{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-weight:700}
.badge{width:30px;height:30px;border-radius:12px;background: rgba(154,93,255,.12);display:grid;place-items:center;flex:0 0 30px}
iframe{width:100%;height:260px;border:0;border-radius: 16px; margin-top:14px; box-shadow: 0 10px 20px rgba(36,48,71,.10)}

.footer{padding:24px 0;color:var(--muted);font-weight:650}
.footer .container{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.social{display:flex;gap:10px}
.social a{text-decoration:none;padding:10px 12px;border-radius:999px;background: rgba(255,255,255,.65);border:1px solid rgba(36,48,71,.08)}
.social a:hover{background: rgba(255,255,255,.92)}

.whatsapp{
  position:fixed;right:18px;bottom:18px;z-index:60;
  width:54px;height:54px;border-radius:999px;
  display:grid;place-items:center;
  background: #25D366;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  text-decoration:none;
}
.whatsapp svg{width:26px;height:26px;fill:white}

@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr}
  .products-grid{grid-template-columns: repeat(2, 1fr)}
  .news-grid{grid-template-columns:1fr}
  .about{grid-template-columns:1fr}
  .contact-wrap{grid-template-columns:1fr}
  .mapa-avatar{position:static;width:140px;margin:0 0 10px auto}
  .brand img{width:150px}
}

/* --- FIX: Header banner sizing & alignment --- */
.brand img,
.custom-logo-link img{
  display:block;
  width:100%;
  height:auto;
  max-height:180px;
  object-fit:contain;
}

.navbar{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}

.navbar .container,
.navbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Ensure the banner sits as a real top header (not card-like) */
.header-strip{
  width:100%;
  background: transparent;
  padding: 14px 0 0 0;
}

.brand{
  display:block;
  width:100%;
  max-width:1100px;
  margin: 0 auto;
  padding: 0 16px 10px 16px;
}

@media (max-width: 768px){
  .brand img,
  .custom-logo-link img{
    max-height:130px;
  }
  .brand{
    padding-bottom: 6px;
  }
}

/* v1.1.3 hero fix */
.hero-inner{align-items:center}


/* --- FIX v1.1.4: Hero (Inicio) exact background --- */
.hero{
  background-image: url("../img/hero_inicio.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Height similar to mockup */
.hero .hero-inner{
  min-height: 220px;
}
@media (max-width: 768px){
  .hero .hero-inner{ min-height: 180px; }
}


/* --- FIX v1.2.0: Hero image with baked-in text (no overlays) --- */
.hero{
  background-image: url("../img/hero_inicio_texto.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hero .hero-inner,
.hero .hero-content,
.hero h1,
.hero p,
.hero ul,
.hero .buttons{
  display: none !important;
}

/* Keep hero height consistent with mockup */
.hero{
  min-height: 260px;
}
@media (max-width: 768px){
  .hero{ min-height: 200px; }
}


.about-avatar{max-width:220px;height:auto;display:block;margin:0 auto 14px auto;}



/* --- v1.2.2: Fondo arcoíris pastel + cabecera proporcionada --- */
body{
  background: url("../img/bg_pastel.jpg") center / cover no-repeat fixed !important;
}

/* Cabecera/banner: limitar altura para que no se coma la página */
.site-banner{max-height:160px; overflow:hidden;}
.site-banner-img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}

/* Evitar duplicado de marca bajo el banner */
.brand{display:none !important;}

@media (max-width: 768px){
  .site-banner{max-height:120px;}
  .site-banner-img{height:120px;}
}


/* --- FIX v1.2.3: Header not cropped + new pastel background --- */

/* Pastel background (site-wide) */
body{
  background-image: url("../img/bg_pastel.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed;
}

/* Header/logo banner: show full logo without cropping */
.brand img,
.custom-logo-link img{
  width: 100% !important;
  height: auto !important;
  max-height: 200px !important;
  object-fit: contain !important;
}

/* Give the logo area enough vertical room */
.brand{
  padding: 12px 16px 12px 16px !important;
}

/* Ensure nav sits below and doesn't overlap logo */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (max-width: 768px){
  .brand img,
  .custom-logo-link img{
    max-height: 150px !important;
  }
  body{
    background-attachment: scroll;
  }
}


/* --- FIX v1.2.4: Force header image --- */
.site-header{
  background-image: url("../img/header.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  min-height: 220px;
}

.site-header img{
  display: none !important;
}


/* --- FIX v1.2.5: Header banner must show fully (no crop) --- */

/* Make sure no container clips the banner */
.header-strip,
header.navbar,
.navbar,
.navbar-inner,
.brand{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Banner image: show full image (no max-height). Height follows width. */
.brand img,
.custom-logo-link img{
  display:block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* Keep content width aligned with rest of site */
.brand{
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 12px 16px !important;
}

/* Prevent the menu bar from overlapping the banner */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Small screens: still full, but add a little less padding */
@media (max-width: 768px){
  .brand{ padding: 10px 12px !important; }
}


/* --- FIX v1.2.6: Header removed --- */
.brand,
.header-strip,
.site-header img{
  display:none !important;
}

.navbar{
  margin-top: 0 !important;
}


/* --- FIX v1.2.7: No recortes en Inicio (hero) + botones visibles --- */

/* Evita que el hero recorte contenido (botones/avatares/sombras) */
.hero{
  overflow: visible !important;
  background-size: contain !important;   /* para que no se "corte" el banner */
  background-repeat: no-repeat !important;
  background-position: center !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2;  /* ajusta al banner actual */
}

/* Asegura espacio interno para que no quede pegado al borde */
.hero .hero-inner{
  padding: 24px 24px 28px 24px !important;
}

/* Si algún contenedor superior estaba recortando */
.section, .container, main{
  overflow: visible !important;
}

/* Botonera: permite salto de línea y evita que se salga */
.hero .cta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hero .cta .btn{
  line-height: 1.1;
  white-space: nowrap;
}

/* En móvil, más compacto */
@media (max-width: 768px){
  .hero{ aspect-ratio: 16 / 10; } /* un pelín más panorámico en móvil */
  .hero .hero-inner{ padding: 18px 16px 22px 16px !important; }
  .hero .cta .btn{ white-space: normal; }
}


/* --- v1.2.8: Full-width header banner + hero clickable buttons --- */
.site-banner{
  width: 100%;
  margin: 0;
  padding: 0;
}
.site-banner img{
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
}

/* Hero hotspots (transparent clickable areas over the image buttons) */
.hero{ position: relative; overflow: visible !important; }
.hero-hotspots{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-hotspot{
  position: absolute;
  pointer-events: auto;
  display: block;
  border-radius: 999px;
}

/* Tuned to current hero image layout */
.hero-hotspot-products{ left: 53%; top: 64%; width: 18%; height: 12%; }
.hero-hotspot-contact{ left: 73%; top: 64%; width: 22%; height: 12%; }

@media (max-width: 768px){
  .hero-hotspot-products{ left: 18%; top: 78%; width: 30%; height: 14%; }
  .hero-hotspot-contact{ left: 52%; top: 78%; width: 34%; height: 14%; }
}

/* Never clip shadows/buttons inside cards */
.card{ overflow: visible !important; }


/* --- v1.2.9: Smaller header image + clickable hero buttons --- */
.site-banner{
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}
.site-banner img{
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  max-height: 180px;
  object-fit: contain;
}
@media (max-width: 768px){
  .site-banner img{ max-height: 130px; }
}

/* Remove brand/logo output if any remains */
.brand, a.brand{ display:none !important; }

/* Hero hotspots */
.hero{ position: relative; overflow: visible !important; }
.hero-hotspots{ position:absolute; inset:0; pointer-events:none; }
.hero-hotspot{ position:absolute; pointer-events:auto; display:block; border-radius:999px; }

.hero-hotspot-products{ left: 53%; top: 64%; width: 18%; height: 12%; }
.hero-hotspot-contact{ left: 73%; top: 64%; width: 22%; height: 12%; }

@media (max-width: 768px){
  .hero-hotspot-products{ left: 18%; top: 78%; width: 30%; height: 14%; }
  .hero-hotspot-contact{ left: 52%; top: 78%; width: 34%; height: 14%; }
}

/* Prevent clipping of buttons/shadows */
.card, .hero, header, .navbar{ overflow: visible !important; }
