/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/fonts/figtree-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/fonts/figtree-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/fonts/figtree-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/fonts/figtree-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0;font-family:"Figtree",system-ui,sans-serif;color:#0E2A44;background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
    @keyframes klinnPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}
    @media (prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

/* ============================================================
   Optimizaciones móvil
   El markup usa estilos inline (especificidad máxima), por eso
   estos ajustes usan !important y selectores de atributo para
   sobrescribirlos sin tocar el HTML.
   ============================================================ */

/* Texto nítido y sin resaltado azul al tocar en móvil */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
*{-webkit-tap-highlight-color:rgba(0,0,0,0)}

/* Los anchors (#catalogo, #cotizar…) no quedan tapados por el header sticky de 74px */
html{scroll-padding-top:88px}

/* Logotipo principal del encabezado */
.header-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  flex:none;
  text-decoration:none;
}

.header-logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Botón flotante de WhatsApp: respeta el notch / barra de inicio (iPhone) */
a[aria-label="Escríbenos por WhatsApp"]{
  right:calc(20px + env(safe-area-inset-right))!important;
  bottom:calc(20px + env(safe-area-inset-bottom))!important;
}

.header-quote-btn:hover,
.header-quote-btn:focus-visible{
  transform:translateY(-2px) scale(1.02)!important;
  box-shadow:0 20px 42px -18px rgba(19,58,94,.78)!important;
  outline:none;
}

.header-quote-btn:active{
  transform:translateY(0) scale(.99)!important;
}

/* Evita scroll horizontal: deja que las columnas flex encojan en pantallas chicas */
@media (max-width:600px){
  [style*="min-width:300px"],
  [style*="min-width:290px"],
  [style*="min-width:288px"],
  [style*="min-width:280px"],
  [style*="min-width:260px"]{min-width:0!important}
}

/* Teléfonos: titular del hero más proporcionado y ritmo vertical más compacto */
@media (max-width:560px){
  .header-logo{width:56px;height:56px}
  #top h1{font-size:clamp(2rem,8.4vw,2.7rem)!important}
  #top{padding-top:40px!important;padding-bottom:56px!important}
  /* las métricas del hero se ven limpias al envolverse (sin la línea divisoria colgando) */
  #top [style*="border-left"]{border-left:0!important;padding-left:0!important}
  .hero-photo-badge{
    left:8px!important;
    bottom:-22px!important;
    max-width:calc(100% - 16px)!important;
    padding:.55rem .7rem!important;
    gap:.5rem!important;
    border-radius:13px!important;
  }
  .hero-photo-badge > span{
    width:28px!important;
    height:28px!important;
    border-radius:8px!important;
  }
  .hero-photo-badge svg{
    width:14px!important;
    height:14px!important;
  }
  .hero-photo-badge b{font-size:.8rem!important}
  .hero-photo-badge div span{font-size:.7rem!important}
}

@media (max-width:1080px){
  .site-nav{gap:1.05rem!important}
  .site-nav a{font-size:.93rem!important}
  .header-quote-btn{
    min-width:164px!important;
    padding:.76rem 1.35rem!important;
    font-size:.95rem!important;
  }
}

@media (max-width:880px){
  .site-nav{display:none!important}
  .header-quote-btn{display:none!important}
  [data-menu-toggle]{display:flex!important}
}

/* Catálogo de productos */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:clamp(16px,2.2vw,24px);
}

.product-card{
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid #DCE9ED;
  border-radius:20px;
  box-shadow:0 16px 40px -34px rgba(19,58,94,.55);
  cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.product-card:hover,
.product-card:focus-visible{
  transform:translateY(-5px);
  border-color:#BFDDE4;
  box-shadow:0 24px 52px -30px rgba(19,58,94,.42);
  outline:none;
}

.product-card__image{
  aspect-ratio:3/4;
  overflow:hidden;
  background:#F7FAFB;
  border-bottom:1px solid #E4EEF1;
}

.product-card__image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.product-card:hover .product-card__image img{transform:scale(1.025)}

.product-card__body{padding:1.15rem 1.2rem 1.3rem}

.product-card__body h3{
  min-height:2.5em;
  margin:0 0 .35rem;
  color:#133A5E;
  font-family:"Bricolage Grotesk","Figtree",system-ui,sans-serif;
  font-size:1.12rem;
  line-height:1.25;
}

.product-card__body p{
  margin:0;
  color:#5A7184;
  font-size:.92rem;
  line-height:1.5;
}

.product-card__quote{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:.9rem;
  padding:.68rem 1rem;
  border-radius:999px;
  background:#25D366;
  color:#053d1c;
  font-size:.9rem;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  transition:transform .18s,box-shadow .18s;
}

.product-card__quote:hover,
.product-card__quote:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 12px 24px -14px rgba(37,211,102,.9);
  outline:none;
}

.product-card__details{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:.65rem;
  margin-left:.4rem;
  padding:.65rem .95rem;
  border:1px solid #C9DEE5;
  border-radius:999px;
  background:#fff;
  color:#133A5E;
  font:inherit;
  font-size:.9rem;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:transform .18s,border-color .18s,color .18s;
}

.product-card__details:hover,
.product-card__details:focus-visible{
  transform:translateY(-2px);
  border-color:#2B93AD;
  color:#1F7C94;
  outline:none;
}

.quote-option{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.75rem .9rem;
  border:1.5px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(255,255,255,.05);
  color:#fff;
  font:inherit;
  font-size:.94rem;
  font-weight:500;
  text-align:left;
  cursor:pointer;
  transition:.16s;
}

.quote-option span{
  width:18px;
  height:18px;
  border:1.5px solid rgba(255,255,255,.4);
  border-radius:50%;
  flex:none;
}

.quote-option.is-active{
  border-color:#5DBB46;
  background:rgba(93,187,70,.16);
}

.quote-option.is-active span{
  border-color:#5DBB46;
  background:#5DBB46;
  box-shadow:inset 0 0 0 4px #133A5E;
}

/* Modal de detalle de producto */
.product-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:clamp(16px,4vw,40px);
  background:rgba(8,25,42,.72);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  overflow-y:auto;
}

.product-modal[hidden]{display:none!important}

.product-modal__dialog{
  position:relative;
  display:grid;
  grid-template-columns:minmax(250px,.82fr) minmax(320px,1.18fr);
  width:min(920px,100%);
  max-height:min(760px,calc(100vh - 32px));
  overflow:auto;
  background:#fff;
  border:1px solid rgba(255,255,255,.4);
  border-radius:26px;
  box-shadow:0 34px 90px -24px rgba(0,0,0,.55);
}

.product-modal__close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  padding:0;
  color:#133A5E;
  background:rgba(255,255,255,.94);
  border:1px solid #DCE9ED;
  border-radius:50%;
  box-shadow:0 8px 24px -12px rgba(19,58,94,.5);
  cursor:pointer;
}

.product-modal__close:hover{background:#EAF4F6}

.product-modal__image{
  min-height:100%;
  background:#F5F9FA;
  overflow:hidden;
}

.product-modal__image img{
  display:block;
  width:100%;
  height:100%;
  min-height:560px;
  object-fit:contain;
}

.product-modal__content{
  align-self:center;
  padding:clamp(30px,5vw,58px);
}

.product-modal__eyebrow{
  color:#1F7C94;
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.product-modal__content h2{
  margin:.55rem 0 .8rem;
  color:#133A5E;
  font-family:"Bricolage Grotesk","Figtree",system-ui,sans-serif;
  font-size:clamp(1.8rem,4vw,2.65rem);
  line-height:1.08;
  letter-spacing:-.02em;
}

.product-modal__description{
  margin:0;
  color:#5A7184;
  font-size:1rem;
  line-height:1.65;
}

.product-modal__section{margin-top:1.45rem}

.product-modal__section h3,
.product-modal__presentations h3{
  margin:0 0 .7rem;
  color:#133A5E;
  font-family:"Bricolage Grotesk","Figtree",system-ui,sans-serif;
  font-size:1.02rem;
}

.product-modal__section ul{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  margin:0;
  padding:0;
  list-style:none;
}

.product-modal__section li{
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  color:#405D72;
  font-size:.93rem;
  line-height:1.45;
}

.product-modal__section li svg{flex:none;margin-top:2px}
.product-modal__presentations{margin-top:1.4rem}
.product-modal__presentations>div{display:flex;flex-wrap:wrap;gap:.55rem}

.product-modal__presentations span{
  padding:.5rem .8rem;
  color:#133A5E;
  background:#EAF4F6;
  border:1px solid #CFE2E8;
  border-radius:999px;
  font-size:.88rem;
  font-weight:700;
}

.product-modal__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  margin-top:1.6rem;
  padding:.85rem 1.2rem;
  color:#053d1c;
  background:#25D366;
  border-radius:999px;
  box-shadow:0 12px 28px -14px rgba(37,211,102,.85);
  font-size:.94rem;
  font-weight:700;
  text-decoration:none;
}

@media (max-width:520px){
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-card{border-radius:15px}
  .product-card__body{padding:.9rem}
  .product-card__body h3{min-height:0;font-size:1rem}
  .product-card__body p{font-size:.82rem}
}

@media (max-width:350px){
  .products-grid{grid-template-columns:1fr}
}

@media (max-width:720px){
  .product-modal{place-items:start center;padding:12px}
  .product-modal__dialog{
    grid-template-columns:1fr;
    max-height:none;
    border-radius:20px;
  }
  .product-modal__image{height:min(52vh,410px);min-height:0}
  .product-modal__image img{min-height:0}
  .product-modal__content{padding:26px 22px 30px}
  .product-modal__cta{width:100%}
}
