/* =========================================================================
   EquipBio — hoja de estilos única del sitio
   Sustituye a: animate.css, animation.css, owl.css, flex-slider.css,
   fontawesome.css (parcial), templatemo-572-designer.css, explorer/*, styles.css
   Sin dependencias (sin Bootstrap, sin jQuery).
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --g-700:#4d7a26; --g-600:#5f9430; --g-500:#7aae3f; --g-400:#97c662;
  --g-100:#eef3e3; --g-50:#f5f8ee;
  --ink:#18260f; --ink-2:#465536; --ink-3:#6b7a59;
  --paper:#f5f7ef; --surface:#ffffff; --line:#e2e8d2; --line-2:#eef2e6;
  --amber:#e8a33d; --amber-700:#c9821c;
  --shadow-sm:0 1px 2px rgba(24,38,15,.06), 0 2px 8px rgba(24,38,15,.05);
  --shadow-md:0 8px 24px rgba(24,38,15,.10);
  --shadow-lg:0 18px 48px rgba(24,38,15,.16);
  --r-sm:10px; --r-md:16px; --r-lg:22px; --r-pill:999px;
  --maxw:1180px;
  --ff-display:"Bricolage Grotesque", system-ui, sans-serif;
  --ff-body:"Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  /* acentos por familia de producto */
  --c-equipbio:#5f9430; --c-progym:#d98324; --c-kids:#e35d6a;
  --c-agility:#2f9c95; --c-urban:#5b6b7a; --c-ebs:#8a6bbf;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--ff-body); color:var(--ink);
  background:var(--paper); line-height:1.65; font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--g-600); text-decoration:none; }
a:hover{ color:var(--g-700); }
h1,h2,h3,h4{ font-family:var(--ff-display); color:var(--ink); line-height:1.12; margin:0 0 .5em; letter-spacing:-.01em; }
h1{ font-size:clamp(2rem,5vw,3.4rem); font-weight:700; }
h2{ font-size:clamp(1.6rem,3.4vw,2.4rem); font-weight:700; }
h3{ font-size:1.25rem; font-weight:600; }
p{ margin:0 0 1rem; }
:focus-visible{ outline:3px solid var(--g-400); outline-offset:2px; border-radius:6px; }

/* ---------- Layout helpers ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:20px; }
.section{ padding:clamp(48px,7vw,96px) 0; }
.eyebrow{
  font:600 .78rem/1 var(--ff-body); letter-spacing:.16em; text-transform:uppercase;
  color:var(--g-600); display:inline-flex; align-items:center; gap:.55rem; margin-bottom:.9rem;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--g-500); border-radius:2px; }
.lead{ font-size:1.12rem; color:var(--ink-2); max-width:62ch; }
.center{ text-align:center; }
.center .lead{ margin-inline:auto; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  font:600 .98rem/1 var(--ff-body); padding:.85rem 1.4rem; border-radius:var(--r-pill);
  border:1.5px solid transparent; cursor:pointer; transition:.2s ease; text-align:center;
}
.btn--primary{ background:var(--g-600); color:#fff; }
.btn--primary:hover{ background:var(--g-700); color:#fff; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn--amber{ background:var(--amber); color:#3a2603; }
.btn--amber:hover{ background:var(--amber-700); color:#fff; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn--ghost{ background:transparent; color:var(--g-700); border-color:var(--line); }
.btn--ghost:hover{ border-color:var(--g-500); background:var(--g-50); }
.btn svg{ width:1.05em; height:1.05em; }

/* =========================================================================
   Navbar + menú hamburguesa (vanilla)
   ========================================================================= */
.site-header{ position:sticky; top:0; z-index:1000; }
.navbar{
  background:rgba(255,255,255,.82); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line); transition:box-shadow .25s, background .25s;
}
.navbar.is-scrolled{ box-shadow:var(--shadow-sm); background:rgba(255,255,255,.95); }
.navbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:68px; }
.navbar__brand img{ height:42px; width:auto; }
.navbar__panel{ display:flex; align-items:center; gap:.6rem; }
.panel-close{ display:none; }
.navbar__links{ display:flex; align-items:center; gap:.4rem; list-style:none; margin:0; padding:0; }
.navbar__links a{
  display:inline-block; padding:.55rem .9rem; border-radius:var(--r-sm); color:var(--ink-2);
  font-weight:600; font-size:.95rem; transition:.18s;
}
.navbar__links a:hover{ background:var(--g-50); color:var(--g-700); }
.navbar__links a.is-active{ color:var(--g-700); background:var(--g-100); }
.navbar__cta{ margin-left:.4rem; }

/* Selector de idioma ES/PT */
.lang-switch{ display:inline-flex; gap:2px; margin-left:.6rem; background:var(--g-100); border:1px solid var(--line); border-radius:var(--r-pill); padding:3px; }
.lang-switch button{
  border:0; background:transparent; cursor:pointer; font:700 .8rem/1 var(--ff-body);
  color:var(--ink-2); padding:.4rem .7rem; border-radius:var(--r-pill); transition:.18s; letter-spacing:.02em;
}
.lang-switch button:hover{ color:var(--g-700); }
.lang-switch button.is-active{ background:var(--g-600); color:#fff; box-shadow:var(--shadow-sm); }
@media (max-width:900px){
  .lang-switch{ margin:.9rem 0 0; align-self:flex-start; }
}

.nav-toggle{
  display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:12px;
  background:#fff; cursor:pointer; position:relative;
}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{
  content:""; position:absolute; left:50%; top:50%; width:20px; height:2px; background:var(--ink);
  transform:translate(-50%,-50%); border-radius:2px; transition:.25s;
}
.nav-toggle span::before{ transform:translate(-50%,-7px); }
.nav-toggle span::after{ transform:translate(-50%,5px); }
.nav-backdrop{
  position:fixed; inset:0; background:rgba(24,38,15,.45); opacity:0; visibility:hidden;
  transition:.25s; z-index:1090;
}
.nav-backdrop.is-open{ opacity:1; visibility:visible; }

@media (max-width:900px){
  .nav-toggle{ display:block; }
  .navbar__panel{
    position:fixed; top:0; right:0; height:100dvh; width:min(86vw,340px);
    background:#fff; box-shadow:var(--shadow-lg); transform:translateX(105%);
    transition:transform .3s cubic-bezier(.4,0,.2,1); z-index:1100; padding:1.25rem;
    display:flex; flex-direction:column;
  }
  .navbar__panel.is-open{ transform:translateX(0); }
  .navbar__links{ flex-direction:column; align-items:stretch; gap:.25rem; margin-top:2.5rem; }
  .navbar__links a{ padding:.85rem 1rem; font-size:1.05rem; }
  .navbar__cta{ margin:.75rem 0 0; }
  .navbar__cta .btn{ width:100%; }
  .panel-close{
    display:block;
    position:absolute; top:1rem; right:1rem; width:40px; height:40px; border-radius:10px;
    border:1px solid var(--line); background:#fff; cursor:pointer; font-size:1.3rem; color:var(--ink);
  }
  body.nav-lock{ overflow:hidden; }
}

/* =========================================================================
   Hero (carrusel de instalaciones reales)
   ========================================================================= */
.hero{ padding:clamp(20px,3vw,34px) 0 0; }
.hero__intro{ max-width:760px; margin:0 auto clamp(20px,3vw,30px); text-align:center; }
.hero__title em{ font-style:normal; color:var(--g-600); }

.carousel{
  position:relative; border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-lg); background:#0c1408;
}
.carousel__viewport{ position:relative; aspect-ratio:16/8; }
@media(max-width:700px){ .carousel__viewport{ aspect-ratio:4/3; } }
.carousel__track{ position:absolute; inset:0; }
.carousel__slide{
  position:absolute; inset:0; margin:0; opacity:0; transition:opacity .7s ease;
  visibility:hidden;
}
.carousel__slide.is-active{ opacity:1; visibility:visible; }
.carousel__slide img{ width:100%; height:100%; object-fit:cover; }
.carousel__cap{
  position:absolute; left:0; right:0; bottom:0; padding:2.2rem 1.6rem 1.3rem;
  background:linear-gradient(transparent, rgba(8,16,5,.82)); color:#fff;
}
.carousel__cap strong{ display:block; font-family:var(--ff-display); font-size:1.4rem; }
.carousel__cap span{ color:#dfe9cf; font-size:.95rem; }
.carousel__nav{
  position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px;
  border-radius:50%; border:0; background:rgba(255,255,255,.9); cursor:pointer;
  display:grid; place-items:center; box-shadow:var(--shadow-sm); transition:.2s; z-index:3;
}
.carousel__nav:hover{ background:#fff; transform:translateY(-50%) scale(1.07); }
.carousel__nav--prev{ left:14px; } .carousel__nav--next{ right:14px; }
.carousel__nav::before{
  content:""; width:11px; height:11px; border-right:2.5px solid var(--ink);
  border-bottom:2.5px solid var(--ink); display:block;
}
.carousel__nav--prev::before{ transform:rotate(135deg); margin-left:4px; }
.carousel__nav--next::before{ transform:rotate(-45deg); margin-right:4px; }
.carousel__dots{ position:absolute; left:0; right:0; bottom:.7rem; display:flex; gap:.4rem; justify-content:center; z-index:3; }
.carousel__dots button{
  width:9px; height:9px; border-radius:50%; border:0; background:rgba(255,255,255,.5); cursor:pointer; padding:0; transition:.2s;
}
.carousel__dots button[aria-selected="true"]{ background:#fff; width:24px; border-radius:5px; }

/* =========================================================================
   Familias de producto (tira de logos + grid)
   ========================================================================= */
.families{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
@media(max-width:900px){ .families{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:520px){ .families{ grid-template-columns:repeat(2,1fr); } }
.family-card{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:.6rem;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:1.1rem .8rem; text-align:center; transition:.22s; overflow:hidden;
}
.family-card::after{ content:""; position:absolute; left:0; right:0; top:0; height:4px; background:var(--accent,var(--g-500)); }
.family-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--accent,var(--g-400)); }
.family-card img{ height:64px; width:auto; object-fit:contain; }
.family-card span{ font-weight:600; font-size:.9rem; color:var(--ink-2); }

/* =========================================================================
   Bloques de contenido (¿Quiénes somos?, etc.)
   ========================================================================= */
.prose{ max-width:74ch; color:var(--ink-2); }
.prose p{ margin-bottom:1.1rem; }
.prose strong{ color:var(--ink); }
.feature-list{ list-style:none; padding:0; margin:1.2rem 0 0; display:grid; gap:.7rem; }
.feature-list li{ position:relative; padding-left:1.9rem; color:var(--ink-2); }
.feature-list li::before{
  content:""; position:absolute; left:0; top:.45em; width:1.1rem; height:.6rem;
  border-left:2.5px solid var(--g-500); border-bottom:2.5px solid var(--g-500);
  transform:rotate(-45deg);
}
.split{ display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(24px,5vw,64px); align-items:center; }
@media(max-width:860px){ .split{ grid-template-columns:1fr; } }
.split__media img{ width:100%; border-radius:var(--r-lg); box-shadow:var(--shadow-md); }

/* ---------- Mapa ---------- */
.map-embed{ border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-md); line-height:0; }
.map-embed iframe{ width:100%; height:480px; border:0; }

/* =========================================================================
   Catálogo: buscador + galería + tarjetas
   ========================================================================= */
.toolbar{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:1.4rem; box-shadow:var(--shadow-sm);
}
.toolbar__grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem 1.2rem; align-items:end; }
@media(max-width:760px){ .toolbar__grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field label{ font-weight:600; font-size:.88rem; color:var(--ink-2); }
.field select,.field input,.field textarea{
  width:100%; font:500 1rem var(--ff-body); color:var(--ink); background:#fff;
  border:1.5px solid var(--line); border-radius:var(--r-sm); padding:.7rem .9rem; transition:.18s;
}
.field select:focus,.field input:focus,.field textarea:focus{ border-color:var(--g-500); outline:none; box-shadow:0 0 0 3px var(--g-100); }
.toolbar__actions{ display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; justify-content:space-between; margin-top:1.1rem; }
.result-count{ color:var(--ink-3); font-size:.9rem; }

.gallery{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:20px; margin-top:2rem;
}
.product-card{
  position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  overflow:hidden; transition:.22s; display:flex; flex-direction:column;
}
.product-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--g-400); }
.product-card__media{ position:relative; aspect-ratio:1/1; background:var(--g-50); padding:14px; }
.product-card__media img{ width:100%; height:100%; object-fit:contain; }
.product-card__body{ padding:.9rem 1rem 1.1rem; border-top:1px solid var(--line-2); }
.product-card__name{ font-family:var(--ff-display); font-weight:600; font-size:1rem; color:var(--ink); margin:0 0 .25rem; }
.product-card__code{ font-size:.82rem; color:var(--ink-3); }
.tag{
  display:inline-block; font:600 .68rem/1 var(--ff-body); letter-spacing:.06em; text-transform:uppercase;
  padding:.32rem .55rem; border-radius:var(--r-pill); color:#fff; margin-bottom:.5rem;
}
/* insignias (TÜV / inclusivo) sobre la imagen */
.badges{ position:absolute; top:10px; left:10px; display:flex; flex-direction:column; gap:6px; z-index:2; }
.badge{
  display:inline-flex; align-items:center; gap:.35rem; background:rgba(255,255,255,.95);
  border:1px solid var(--line); border-radius:var(--r-pill); padding:.28rem .55rem;
  font:700 .66rem/1 var(--ff-body); color:var(--ink-2); box-shadow:var(--shadow-sm);
}
.badge img{ height:16px; width:auto; }
.badge--tuv{ color:#0a3b6b; background:transparent; border:0; padding:0; box-shadow:none; }
.badge--tuv img{ height:38px; width:auto; filter:drop-shadow(0 1px 2px rgba(24,38,15,.25)); }
.badge--inclusive{ color:#2f9c95; }
.gallery__empty{ grid-column:1/-1; text-align:center; padding:3rem 1rem; color:var(--ink-3); }

/* =========================================================================
   Página de producto (ficha)
   ========================================================================= */
.product{ display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(24px,4vw,48px); align-items:start; }
@media(max-width:820px){ .product{ grid-template-columns:1fr; } }
.product__media{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(16px,3vw,32px); box-shadow:var(--shadow-sm); }
.product__media img{ width:100%; object-fit:contain; border-radius:var(--r-sm); }
.product__head .tag{ margin-bottom:.7rem; }
.product__title{ margin:.2rem 0 .4rem; }
.product__meta{ color:var(--ink-2); font-size:1rem; margin-bottom:1.2rem; }
.product__meta b{ color:var(--ink); }
.spec{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:1.2rem 1.4rem; box-shadow:var(--shadow-sm); margin-top:1.4rem; }
.spec h3{ color:var(--g-700); border-bottom:2px solid var(--g-100); padding-bottom:.5rem; margin-bottom:.8rem; }
.spec ul{ list-style:none; padding:0; margin:0; display:grid; gap:.6rem; }
.spec li{ color:var(--ink-2); }
.spec li b{ color:var(--ink); }
.product__aside{ display:flex; flex-direction:column; gap:1rem; }
.info-cards{ display:flex; gap:12px; flex-wrap:wrap; }
.info-card{ flex:1 1 120px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:.8rem; text-align:center; box-shadow:var(--shadow-sm); }
.info-card img{ width:100%; max-width:130px; margin:0 auto; border-radius:var(--r-sm); }
.product__back{ font-weight:600; display:inline-flex; gap:.4rem; align-items:center; margin-bottom:1rem; }

/* =========================================================================
   Formulario de contacto
   ========================================================================= */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,4vw,48px); }
@media(max-width:820px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-form{ display:grid; gap:1rem; }
.contact-form .row2{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media(max-width:520px){ .contact-form .row2{ grid-template-columns:1fr; } }
.contact-form textarea{ min-height:140px; resize:vertical; }
.contact-info{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:1.6rem; box-shadow:var(--shadow-sm); }
.contact-info h3{ color:var(--g-700); }
.contact-info dl{ margin:0; display:grid; gap:1rem; }
.contact-info dt{ font-weight:700; color:var(--ink); }
.contact-info dd{ margin:0; color:var(--ink-2); }
.form-note{ font-size:.85rem; color:var(--ink-3); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer{ background:var(--ink); color:#e8efdc; margin-top:clamp(48px,7vw,96px); }
.site-footer a{ color:#cfe0b6; }
.site-footer a:hover{ color:#fff; }
.footer__grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:2rem; padding:clamp(40px,6vw,72px) 0 1.5rem; }
@media(max-width:760px){ .footer__grid{ grid-template-columns:1fr; gap:1.6rem; } }
.footer__grid h4{ color:#fff; font-size:1rem; margin-bottom:.8rem; }
.footer__brand img{ height:46px; margin-bottom:1rem; filter:brightness(0) invert(1); opacity:.92; }
.footer__grid ul{ list-style:none; padding:0; margin:0; display:grid; gap:.5rem; }
.footer__bottom{
  border-top:1px solid rgba(255,255,255,.14); padding:1.1rem 0; display:flex; flex-wrap:wrap; gap:1rem;
  align-items:center; justify-content:space-between; font-size:.86rem; color:#aebb97;
}
.to-top{ display:inline-flex; align-items:center; gap:.4rem; color:#cfe0b6; font-weight:600; }

/* =========================================================================
   Cookie banner + loader + utilidades de animación
   ========================================================================= */
.cookie-banner{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:1200; max-width:560px; margin-inline:auto;
  background:var(--ink); color:#eef3e3; padding:1.1rem 1.3rem; border-radius:var(--r-md);
  box-shadow:var(--shadow-lg); display:none; gap:1rem; align-items:center; flex-wrap:wrap;
}
.cookie-banner.is-visible{ display:flex; }
.cookie-banner p{ margin:0; font-size:.9rem; flex:1 1 240px; }

.loader{
  position:fixed; inset:0; background:var(--paper); z-index:2000; display:grid; place-items:center;
  transition:opacity .5s; 
}
.loader.is-hidden{ opacity:0; pointer-events:none; }
.loader__dots{ display:flex; gap:8px; }
.loader__dots i{ width:10px; height:30px; background:var(--g-500); border-radius:6px; animation:ld 0.9s ease-in-out infinite; }
.loader__dots i:nth-child(2){ animation-delay:.15s; } .loader__dots i:nth-child(3){ animation-delay:.3s; }
@keyframes ld{ 0%,100%{ transform:scaleY(.5); opacity:.4; } 50%{ transform:scaleY(1); opacity:1; } }

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
}

/* =========================================================================
   Extras: puntos fuertes (value props) + banda CTA
   ========================================================================= */
.valueprops{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media(max-width:760px){ .valueprops{ grid-template-columns:1fr; } }
.vp{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:1.5rem; box-shadow:var(--shadow-sm); transition:.22s; }
.vp:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.vp__ico{ width:48px; height:48px; border-radius:13px; display:grid; place-items:center; background:var(--g-100); color:var(--g-700); margin-bottom:.9rem; }
.vp__ico svg{ width:24px; height:24px; }
.vp h3{ margin-bottom:.3rem; }
.vp p{ margin:0; color:var(--ink-2); font-size:.96rem; }

.cta-band{
  background:linear-gradient(135deg,var(--g-700),var(--g-500)); color:#fff;
  border-radius:var(--r-lg); padding:clamp(30px,5vw,60px); text-align:center; box-shadow:var(--shadow-md);
}
.cta-band h2{ color:#fff; margin-bottom:.5rem; }
.cta-band p{ color:#eef6e0; max-width:56ch; margin:0 auto 1.4rem; }
.cta-band .btn--amber{ box-shadow:0 6px 18px rgba(0,0,0,.18); }
