:root{
    --navy:#0C2A4A; --blue:#1E4E7E; --green:#2E7D6B; --green-d:#256553;
    --gray:#6B7280; --bg:#F4F6F8; --ink:#16202E; --line:#E4E9EF; --white:#fff;
    --shadow:0 1px 2px rgba(12,42,74,.04), 0 8px 24px rgba(12,42,74,.06);
    --maxw:1580px;
}
*{
    box-sizing:border-box; 
    margin:0; 
    padding:0;
}
html{
    scroll-behavior:smooth;
}
body {
    font-family:'Montserrat', system-ui, sans-serif;
    color:var(--ink);
    background:var(--white);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
}
.wrap {
    max-width:var(--maxw); 
    margin:0 auto; 
    padding:0 48px;
}
a{
    text-decoration:none; 
    color:inherit;}
h1,h2,h3{
    line-height:1.18; 
    color:var(--navy); 
    font-weight:700;
}
.eyebrow{
    font-size:12px; 
    letter-spacing:.16em; 
    text-transform:uppercase; 
    color:var(--green); 
    font-weight:700;
}
.btn{
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    gap:8px;
    font-weight:600; 
    font-size:14px; 
    padding:13px 22px; 
    border-radius:8px; 
    border:1px solid transparent; 
    cursor:pointer; 
    transition:.2s;
}
.btn-green{
    background:var(--green); 
    color:#fff;
}
.btn-green:hover{
    background:var(--green-d); 
    transform:translateY(-1px);
}
.btn-ghost{
    background:transparent; 
    color:var(--navy); 
    border-color:var(--line);
}
.btn-ghost:hover{
    border-color:var(--navy);
}
.btn-wa{
    background:#fff; 
    color:var(--green); 
    border-color:var(--green);
}
  .btn-wa:hover{
    background:#f1f8f5;
}

.rv{
    opacity:0; 
    transform:translateY(16px); 
    animation:rise .8s cubic-bezier(.2,.7,.2,1) forwards;}
  @keyframes rise{to{opacity:1; transform:none;}
}
header{
    position:sticky; 
    top:0; 
    z-index:50;
    background:rgba(255,255,255,.95); 
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
.nav{
    display:flex; 
    align-items:center; 
    gap:26px; 
    height:70px;
}
  
  /* ESTILOS DEL LOGO */
.logo { 
    display: flex; 
    align-items: center; 
}
  .logo-header {
    height: 35px; 
    width: auto;
    /* Este filtro convierte cualquier color sólido en el tono Azul Marino (#0C2A4A) */
    filter: brightness(0) saturate(100%) invert(11%) sepia(57%) saturate(3028%) hue-rotate(195deg) brightness(94%) contrast(99%);
    transition: opacity 0.2s;
  }
  .logo-header:hover { opacity: 0.8; }

  .menu{
    display:flex; 
    gap:26px; 
    margin-left:8px; 
    font-size:14px; 
    font-weight:500; 
    color:var(--ink);
}
  .menu a{
    position:relative; 
    padding:4px 0;
}
  .menu a:hover{
    color:var(--navy);
}
  .menu a::after{
    content:""; 
    position:absolute; 
    left:0; 
    bottom:-2px; 
    width:0; 
    height:2px; 
    background:var(--green); 
    transition:.25s;
}
  .menu a:hover::after{
    width:100%;
}
  .nav .spacer{
    flex:1;
}
  .anmat-pill{
    display:inline-flex; 
    align-items:center; 
    gap:7px; 
    font-size:11.5px; 
    font-weight:600;
    color:var(--blue); 
    background:#EBF1F8; 
    border:1px solid #D7E2EF; 
    padding:6px 11px; 
    border-radius:999px;
  }
  .anmat-pill svg{
    width:13px; 
    height:13px;
}

  @media(max-width:960px){
    .anmat-pill{display:none;} 
  }
  @media(max-width:880px){
    .menu{display:none;} 
    .nav{gap:12px;}
  }
  @media(max-width:480px){
    .logo-header{height:24px;}
    .nav .btn{padding:10px 14px; font-size:13px;}
    .wrap{padding: 0 20px;}
  }

 /* HERO */
.hero{
  padding:74px 0 56px;
  background:linear-gradient(180deg,#fff 0%,var(--bg) 100%)
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 1.35fr;
  align-items:center
}
.hero h1{
  font-size:46px;
  font-weight:800;
  letter-spacing:-.02em;
  margin:16px 25px 18px 0px
  }
.hero p.lead{
  font-size:18px;
  color:var(--gray);
  max-width:520px;
  margin-bottom:28px
}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.hero-trust{display:flex;gap:24px;margin-top:30px;flex-wrap:wrap}
.hero-trust div{font-size:13px;color:var(--gray)}
.hero-trust b{display:block;color:var(--navy);font-size:20px;font-weight:700}

/* Contenedor principal de la imagen */
.hero-visual{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  min-height:380px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
}
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta los bordes sobrantes sin deformar el video */
  display: block;
}
/* CAPA 1: La imagen al fondo */
.hero-visual img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1;}

/* CAPA 2: Filtro oscuro (Overlay semitransparente para que resalte el ícono) */
.hero-visual::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(12,42,74,0.4);z-index:2;}

/* CAPA 3: El ícono por encima de todo */
.hero-visual svg{position:relative;z-index:3;width:120px;height:120px;opacity:.9;}

@media(max-width:840px){.hero-grid{grid-template-columns:1fr;gap:34px}.hero-visual{min-height:280px}}

  /* === STATS (GRID RESPONSIVO) === */
  .stats{
    border-top:1px solid var(--line); 
    border-bottom:1px solid var(--line); 
    background:#fff;
}
  .stats-grid{
    display:grid; 
    grid-template-columns:repeat(4,1fr); 
    gap:0;
}
  .stat{
    padding:30px 22px; 
    text-align:center; 
    border-right:1px solid var(--line);
}
  .stat:last-child{
    border-right:none;
}
  .stat .n{
    font-size:26px; 
    font-weight:800; 
    color:var(--navy);
}
  .stat .l{
    font-size:13px; 
    color:var(--gray); 
    margin-top:4px;
}

  @media(max-width:760px){
    .stats-grid{grid-template-columns:repeat(2,1fr);}
    .stat{padding:24px 16px;}
    .stat:nth-child(even){border-right:none;}
    .stat:nth-child(odd){border-right:1px solid var(--line);}
    .stat:nth-child(1), .stat:nth-child(2){border-bottom:1px solid var(--line);}
  }

  /* === SECCIONES BASE === */
  section.s{
    padding:78px 0;
}
  .s-head{
    max-width:680px; 
    margin-bottom:40px;
}
  .s-head h2{
    font-size:clamp(26px,3vw,34px); 
    margin:12px 0 12px;
}
  .s-head p{
    color:var(--gray); 
    font-size:16px;
}
  @media(max-width:760px){section.s{padding:56px 0;}}

  /* === SERVICIOS === */
  .cards3{
    display:grid; 
    grid-template-columns:repeat(3,1fr); 
    gap:22px;
}
  .svc{
    background:#fff; 
    border:1px solid var(--line); 
    border-radius:14px; 
    padding:28px; 
    transition:.25s;
}
  .svc:hover{
    transform:translateY(-3px); 
    box-shadow:var(--shadow); 
    border-color:#D7E2EF;
}
  .svc .ic{
    width:48px; 
    height:48px; 
    border-radius:11px; 
    background:#EBF1F8; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    margin-bottom:16px;
}
  .svc .ic svg{width:24px; height:24px; stroke:var(--navy);}
  .svc h3{font-size:18px; margin-bottom:8px;}
  .svc p{font-size:14.5px; color:var(--gray);}
  
  @media(max-width:840px){.cards3{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:600px){.cards3{grid-template-columns:1fr;}}

  /* === CATEGORÍAS DE PRODUCTOS === */
/* CATEGORIAS */
.cat-wrap{
    background:var(--bg);
}
.cards2{
    display:grid; 
    grid-template-columns:repeat(2,1fr); 
    gap:22px;
}
.cat{
    background:#fff; 
    border:1px solid var(--line); 
    border-radius:14px; 
    overflow:hidden; 
    transition:.25s; 
    display:flex; 
    flex-direction: row-reverse;
}
.cat:hover{
    box-shadow:var(--shadow);
}
/* Nuevo estilo para la etiqueta de imagen */
.cat-img{
  width:60%; 
  height:auto; 
  object-fit:cover; 
  object-position:center;
  display:block;
  background-color:#eef2f6; 
  border-bottom:1px solid var(--line);
}

.cat .body{
    justify-content: center;
    padding:55px; 
    display:flex; 
    flex-direction:column; 
    flex:1; 
    width:40%;
    
}
.texto-catalogo {
    margin: 20px 0;
}
.negrita {
    color: var(--gray);
    font-weight:600;
}
.cat h3{font-size:45px; margin: 20px 0;}
.cat .tags{margin:10px 0 16px; color:var(--gray); font-size:13.5px; flex:1;}
.cat a{ font-weight:600; font-size:14px; display:inline-flex; gap:6px; align-items:center; align-self:flex-start;}
.cat a:hover{gap:10px;}

@media(max-width:640px){
    .cards2
    {grid-template-columns:1fr;}
    .cat-img{
  width:100%; 
  height:auto; 
  object-fit:cover; 
  object-position:center;
  display:block;
  background-color:#eef2f6; 
  border-bottom:1px solid var(--line);
}
.btn{
    width:100%;
}
.cat{
    background:#fff; 
    border:1px solid var(--line); 
    border-radius:14px; 
    overflow:hidden; 
    transition:.25s; 
    display:flex; 
    flex-direction: column;
}
.cat-img{
  width:100%; 
  height:auto; 
  object-fit:cover; 
  object-position:center;
  display:block;
  background-color:#eef2f6; 
  border-bottom:1px solid var(--line);
}
.cat .body{
        justify-content: center;
        padding: 37px;
        display: flex;
        flex-direction: column;
        flex: 1;
        width: 100%;
    
}
.texto-catalogo {
        font-size: 13px;
        margin: 20px 0;
        text-align: center;
}
.negrita {
    color: var(--gray);
    font-weight:600;
}
.cat h3{font-size:40px; margin: 20px 0; text-align: center;}
.cat .tags{margin:10px 0 16px; color:var(--gray); font-size:13.5px; flex:1;}
.cat a{ font-weight:600; font-size:14px; display:inline-flex; gap:6px; align-items:center; align-self:flex-start;}
.cat a:hover{gap:10px;}
    
}

  /* === POR QUÉ LADECE === */
  .cards4{
    display:grid; 
    grid-template-columns:repeat(4,1fr); 
    gap:20px;
}
  .why{
    padding:6px 4px;
}
  .why .ic{
    width:40px; 
    height:40px; 
    border-radius:10px; 
    background:#EAF4F0; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    margin-bottom:14px;
}
  .why .ic svg{width:21px; height:21px; stroke:var(--green);}
  .why h3{font-size:16px; margin-bottom:6px;}
  .why p{font-size:14px; color:var(--gray);}
  
  @media(max-width:820px){.cards4{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:440px){}

  /* === BANDEJA DE CONTACTO (CTA) === */
  .band{
    background:linear-gradient(135deg,var(--navy),#103458); 
    color:#fff;
    border-radius:18px; 
    padding:50px; 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:30px; 
    flex-wrap:wrap;
  }
  .band h2{
    color:#fff; 
    font-size:27px; 
    max-width:520px;
}
  .band p{
    color:rgba(255,255,255,.75); 
    margin-top:8px; 
    font-size:15px;
}
  .band .actions{
    display:flex; 
    gap:12px; 
    flex-wrap:wrap;
}
  .band .btn-wa{
    background:transparent; 
    color:#fff; 
    border-color:rgba(255,255,255,.4);
}
  .band .btn-wa:hover{
    background:rgba(255,255,255,.08);
}

  @media(max-width:840px){
    .band{flex-direction:column; text-align:center; padding:40px 24px;}
    .band .actions{justify-content:center; width:100%;}
    .band .actions .btn{width:100%;}
  }

  /* === FOOTER === */
  footer{
    background:var(--navy); 
    color:#cdd7e3; 
    padding:56px 0 28px; 
    margin-top:78px;
}
  .foot-grid{
    display:grid; 
    grid-template-columns:1.4fr 1fr 1fr; 
    gap:36px; padding-bottom:34px; 
    border-bottom:1px solid rgba(255,255,255,.12);
}
  
  /* ESTILOS DEL LOGO FOOTER */
  .logo-footer {
    height: 38px;
    width: auto;
    margin-bottom: 14px;
    display: block;
    /* Este filtro convierte cualquier color sólido a Blanco Puro (#ffffff) */
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
  }
  .logo-footer:hover { 
    opacity: 0.8; 
}

  footer p, footer a{
    font-size:14px; 
    color:#aebccd; 
    line-height:1.9;
}
  footer a:hover{
    color:#fff;
}
  footer h4{
    color:#fff; 
    font-size:13px; 
    letter-spacing:.08em; 
    text-transform:uppercase; 
    margin-bottom:12px; 
    font-weight:600;
}
  .foot-bottom{
    display:flex; 
    justify-content:space-between; 
    gap:14px; flex-wrap:wrap; 
    padding-top:20px; 
    font-size:12.5px; 
    color:#8ea0b5;
}
  
  @media(max-width:760px){
    footer{margin-top:40px;}
    .foot-grid{grid-template-columns:1fr; gap:32px; text-align:center;}
    .logo-footer{margin: 0 auto 14px auto;}
    .foot-bottom{flex-direction:column; text-align:center; justify-content:center;}
  }

  /* === BOTÓN WHATSAPP FLOTANTE === */
  .wa-float{
    position:fixed; 
    right:22px; 
    bottom:22px; 
    z-index:60; 
    width:56px; 
    height:56px;
    border-radius:50%; 
    background:var(--green); 
    box-shadow:0 8px 22px rgba(46,125,107,.4);
    display:flex; 
    align-items:center; 
    justify-content:center; 
    transition:transform 0.2s;
  }
  .wa-float:hover{
    background:var(--green-d); 
    transform:scale(1.05);
}
  .wa-float svg{
    width:28px; 
    height:28px; 
    fill:#fff;
}
/* SECCIÓN LOGOS ALIADOS - DISEÑO LIMPIO */
.aliados-section {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid var(--line);
}

.aliados-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Espacio uniforme entre todos */
    flex-wrap: wrap;
    margin-top: 40px;
}

.logo-aliado {
    height: 135px; /* Tamaño consistente para todos los logos */
    width: auto;
    filter: grayscale(100%) opacity(0.4); /* Gris suave por defecto */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.logo-aliado:hover {
    filter: grayscale(0%) opacity(1); /* Color original al pasar el mouse */
    transform: translateY(-5px); /* Pequeña elevación */
}
/* SECCIÓN DE 6 SERVICIOS/BENEFICIOS */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
}

.servicio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.servicio-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Tamaño de título unificado */
.servicio-item h3 {
    font-size: 25px; 
    color: var(--navy);
    margin-bottom: 12px;
    min-height: 44px; /* Asegura que todos ocupen el mismo espacio vertical */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto Lorem Ipsum */
.servicio-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

@media(max-width: 992px) {
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 600px) {
    .servicios-grid { grid-template-columns: 1fr; }
}

.servicio-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    
    /* El filtro para convertir un PNG al color Azul Marino (#0C2A4A) */
    filter: brightness(0) saturate(100%) invert(11%) sepia(57%) saturate(3028%) hue-rotate(195deg) brightness(94%) contrast(99%);
    
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse (vuelve al color original o se ilumina) */
.servicio-img:hover {
    filter: none; /* Quita el filtro para ver el color original del PNG */
    transform: translateY(-5px);
}

/* ESTRUCTURA HERO */


/* ESTRUCTURA HERO FULL */
.hero-full {
    display: flex;
    height: 600px;
    align-items: center;
    background-color: #fff;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 0 80px;
    z-index: 2;
}

/* Carrusel a la derecha */
.hero-carousel {
    flex: 1;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    color: white;
    font-size: 20px;
    border-radius: 5px;
}
.prev { left: 10px; }
.next { right: 10px; }
.carousel-btn:hover { background: rgba(255,255,255,0.6); }

/* Ajuste móvil */
@media(max-width: 840px) {
    .hero-full { flex-direction: column; height: auto; }
    .hero-content { padding: 60px 20px; text-align: center; }
    .hero-carousel { height: 300px; }
}

/* Búscate tu clase .stat .n actual y asegúrate de que tenga esto: */
.stats-grid .stat .n {
  display: inline-block; /* Obligatorio para que los transform de escala funcionen */
  will-change: transform;
}

/* Esta es la clase que inyecta el JS justo al llegar a 45 */
.stats-grid .stat .n.conteo-terminado {
  animation: latidoExito 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes latidoExito {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: #007bff; /* <--- Cambia este azul por el color de tu marca */ }
  100% { transform: scale(1); }
}

/* ==========================================================================
   PÁGINA CATÁLOGO (TIPO MERCADO LIBRE)
   ========================================================================== */

.page-header {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.catalog-container {
  padding-bottom: 90px;
}

/* Grilla responsive automática: crea columnas de mínimo 290px */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 32px;
}

/* LA CAJA (TARJETA) */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(12, 42, 74, 0.11);
  border-color: var(--blue);
}

/* Contenedor de la foto con truco de encuadre */
.card-img-container {
  position: relative;
  background-color: var(--bg); /* Hace que los frascos blancos resalten */
  aspect-ratio: 1 / 1;         /* Fuerza a que todas las fotos sean cuadradas perfectas */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

.card-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-container img {
  transform: scale(1.07); /* Pequeño zoom al pasar el mouse */
}

/* Etiquetas flotantes sobre la foto */
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}

.badge-navy  { background-color: var(--navy); color: var(--white); }
.badge-green { background-color: var(--green); color: var(--white); }

/* Cuerpo de información */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Obliga a que el pie de página baje aunque la descripción sea corta */
}

.product-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.product-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

/* Pie de la tarjeta (Precio/Presentación + Botón) */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.btn-card {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background-color: var(--green);
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-card:hover {
  background-color: var(--green-d);
  color: var(--white);
}

@media (max-width: 600px) {
  .products-grid { gap: 20px; }
  .card-body { padding: 18px; }
  .card-img-container { padding: 20px; }
}