





/* ==========================================
   1. RESET & BASE
========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #f4f7fb; 
    color: #1a1a1a; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* ==========================================
   2. NAVEGACIÃ“N (NAV) - VERSION ESTILIZADA
========================================== */
.nav { 
    background: #fff; 
    height: 90px;             /* Bajamos de 120 a 90 */
    display: flex; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.nav-container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    height: 100%;
}

.logo { 
    height: 70px;             /* Antes era 50, ahora 70: se nota la diferencia */
    width: auto; 
    transition: 0.3s; 
    display: block;
    padding: 5px 0;           /* Le damos un poquito de aire */
}
/* El contenedor de todas las cajas */
/* El contenedor de todas las cajas */
.menu {
    display: flex;
    align-items: center;
    gap: 5px; 
}

/* LA CAJA: Definimos el bloque de interacciÃ³n */
.nav-item {
    padding: 12px 20px;       /* Esto crea el tamaÃ±o de la caja */
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-radius: 8px;       /* Bordes suavizados */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;       /* Para que el menÃº sepa dÃ³nde colgar */
}

/* EFECTO ACTIVE: Cuando el mouse entra en la CAJA */
.nav-item:hover {
    background-color: #f0f4f8; /* El color de fondo que "se prende" */
    color: #0056b3;
}

/* DISPARADOR: Cuando el mouse estÃ¡ sobre la caja de dropdown, mostramos contenido */
.dropdown:hover .dropdown-content {
    display: block !important;
}

/* Reset para que el texto de Servicios no se rompa */
.dropbtn {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    display: block;
}

/* La caja especial del botÃ³n final */
.nav-contact {
    background-color: #2F4F9C;
    color: #fff !important;
    margin-left: 10px;
}

.nav-contact:hover {
    background-color: #1e3a7a;
    transform: translateY(-2px);
}

/* Estilo del MegamenÃº (El que ya tenÃ­amos) */



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   3. HAMBURGUER PREMIUM (ANIMADA)
========================================== */
.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #0056b3;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: left;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

/* ==========================================
   4. HERO SECTION (ALTO IMPACTO)
========================================== */
.hero { 
    padding: 40px 20px; 
    background: radial-gradient(circle at 75% 50%, #1565c0 0%, #0a4d8c 100%); 
    color: #fff; 
}

.hero-container { 
    max-width: 1200px; 
    margin: auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}

.hero-buttons { display: flex; gap: 15px; }

.btn { padding: 14px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.3s; }
.btn.primary { background: #fff; color: #0a4d8c; }
.btn.secondary { border: 2px solid #fff; color: #fff; }

.hero-logo-main { 
    width: auto;
    max-width: 550px; 
    height: auto;
    filter: drop-shadow(0px 20px 40px rgba(0,0,0,0.3)); 
    animation: float 5s infinite; 
    display: block;
    transform-origin: center;
}


/* ==========================================
   5. MARQUEE & CARDS
========================================== */
.marquee { overflow: hidden; background: #0a4d8c; padding: 30px 0; }
.marquee-content { display: flex; gap: 50px; animation: scroll 30s linear infinite; }
.marquee img { height: 110px; border-radius: 8px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 80px 20px; text-align: center; max-width: 1200px; margin: auto; }
.cards { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
}
.card { background: #fff; padding: 35px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { 
    transform: translateY(-4px); 
}

.counter-flex { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 2.5rem; color: #0a4d8c; margin-bottom: 10px; }
.counter-logo { height: 50px; }

/* Pilares */
.valores-section{
    position: relative;
    overflow: hidden;
    background: #fff;
    text-align: center;

    height: 400px;
}	
.valores-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: auto; }
.valor-card { background: #f9fbff; padding: 40px 25px; border-radius: 20px; border: 1px solid #e6ecf5; }
.valor-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.mision .valor-icon { background: linear-gradient(135deg, #ff7a00, #ffb347); }
.vision .valor-icon { background: linear-gradient(135deg, #1e90ff, #00c6ff); }
.valores .valor-icon { background: linear-gradient(135deg, #a100ff, #ff00c8); }

/* ==========================================
   6. FOOTER & REDES SOCIALES PREMIUM
========================================== */
.main-footer { background: #fff; width: 100%; padding: 80px 0 30px; border-top: 1px solid #eef2f6; margin-top: 50px; }
.footer-wrap { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: flex-start; }

.footer-logo-img { height: 70px; margin-bottom: 25px; }

.footer-social-links { display: flex; gap: 15px; margin-bottom: 30px; }

.social-icon {
    width: 48px; height: 48px;
    background: #ffffff; color: #333;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px; font-size: 22px; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.social-icon:hover { transform: translateY(-5px); color: #fff; }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.social-icon.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-icon.linkedin:hover { background: #0077b5; border-color: #0077b5; }

.footer-info-box h4 { color: #0a4d8c; margin-bottom: 20px; font-weight: 700; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.contact-item i { color: #0056b3; width: 25px; text-align: center; font-size: 1.1rem; }

.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #f1f1f1; color: #999; font-size: 0.85rem; }

/* ==========================================
   7. EXTRAS (WSP & REVEAL) - VERSIÃ“N FINAL
========================================== */

}

.wsp-float:hover { 
    transform: scale(1.1) rotate(10deg);
    background: #20ba5a;
}

.wsp-float i {
    line-height: 0; /* Centra el icono perfectamente */
}

/* El reveal queda igual */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }


/* ==========================================
   8. RESPONSIVE (CELULAR)
========================================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .menu {
        position: fixed;
        top: 80px;
        right: -100%;
        background: #ffffff;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 20px rgba(0,0,0,0.05);
    }

    .menu.active { right: 0; }

    .menu a { 
        width: 100%; 
        text-align: center; 
        font-size: 1.2rem; 
        padding: 15px;
        border-bottom: 1px solid #f8f9fa;
    }

    .nav-contact { width: 80%; margin-top: 20px; }

    .hero-container, .footer-wrap { flex-direction: column; text-align: center; align-items: center; gap: 40px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    
    .contact-item { justify-content: center; }
}


.bg-circles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;

    background: radial-gradient(circle,
    currentColor 0%,
    currentColor 15%,
    rgba(255,255,255,0.6) 30%,
    transparent 75%
);

    filter: blur(60px);
    opacity: 1;

    animation: flotar 12s ease-in-out infinite;
}


/* COLORES */
.green { color: #00ff96; top: 20%; left: 10%; }
.yellow { color: #ffdc00; top: 60%; left: 70%; }
.orange { color: #ff7800; top: 30%; left: 80%; }
.blue { color: #0078ff; top: 70%; left: 20%; }

.green  { width: 900px; height: 900px; }
.yellow { width: 700px; height: 700px; }
.orange { width: 800px; height: 800px; }
.blue   { width: 750px; height: 750px; }


.green  { animation-duration: 14s; }
.yellow { animation-duration: 18s; }
.orange { animation-duration: 16s; }
.blue   { animation-duration: 20s; }


/* === TITULOS SECCION === */
.section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}


.hero-img {
    position: relative;
}

.hero-img::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;

    background: radial-gradient(circle,
        rgba(0,198,255,0.6) 0%,
        rgba(0,86,179,0.4) 40%,
        transparent 70%
    );

    filter: blur(60px);
    z-index: -1;

}

.slider-servicios {
    padding: 80px 20px;
}

.slider {
    max-width: 1100px;
    margin: auto;
}

.slide {
    display: none;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.slide.active {
    display: flex;
}

.slide-text {
    padding: 40px;
    width: 50%;
}

.slide img {
    width: 50%;
    object-fit: cover;
}

.slider-servicios h2 {
    text-align: center;
    font-size: 3rem; /* mÃ¡s grande */
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* FLECHAS */
.controls span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev { left: 15px; }
.next { right: 15px; }

.controls span:hover {
    background: rgba(0,0,0,0.7);
}

/* ==========================================
   DOTS VISIBLES + PREMIUM
========================================== */

.dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    margin-top:35px;
}

/* DOT */
.dot{
    width:14px;
    height:14px;

    border-radius:50%;

    background:#c7d2fe; /* visible */

    cursor:pointer;

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease,
        opacity .3s ease;

    opacity:.65;
}

/* HOVER */
.dot:hover{
    transform:scale(1.15);

    opacity:1;

    background:#60a5fa;

    box-shadow:
        0 0 12px rgba(59,130,246,.45);
}

/* ACTIVO */
.dot.active{

    background: linear-gradient(
        135deg,
        #00c6ff,
        #0078ff
    );

    transform:scale(1.4);

    opacity:1;

    box-shadow:
        0 0 18px rgba(0,120,255,.55),
        0 0 35px rgba(0,120,255,.28);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background: radial-gradient(circle at 20% 30%, rgba(0,255,150,0.15), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(0,120,255,0.15), transparent 60%),
                radial-gradient(circle at 60% 20%, rgba(255,120,0,0.15), transparent 60%);
}


/* ==========================================
   DISEÃ‘O HERO PROFESIONAL Y EQUILIBRADO
========================================== */

.hero-new {
    /* Cambiamos el color sÃ³lido por RGBA con 0.98 de opacidad (98% sÃ³lido) */
    background-image: url("img/hero-ilustrado.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat; 
position: relative;
overflow: hidden;
    
    

.hero-new::before{
    content:"";
    position:absolute;
    inset:0;

    background: rgba(20,85,187,.55);

    z-index:0;
}


.hero-container-new {
    display: flex;
    max-width: 1400px; /* Un poco mÃ¡s ancho para dar aire */
    width: 90%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 40px; /* Espacio entre las tres columnas */
}

/* --- Contenedores de ImÃ¡genes (Los lados) --- */
.hero-image-container {
    flex: 1; /* Las dos imÃ¡genes ocupan el mismo espacio */
    display: flex;
    align-items: center;
}

.hero-left {
    justify-content: flex-start; /* Mano pegada a la izquierda */
}

.hero-right {
    justify-content: flex-end; /* Familia pegada a la derecha */
}

/* --- El Secreto del Equilibrio y No-DeformaciÃ³n --- */
.hero-image {
    width: auto;          /* No la obligamos a estirarse */
    height: auto;         /* No la obligamos a aplastarse */
    max-width: 100%;      /* Pero que no se salga de su columna */
    object-fit: contain;  /* Mantiene la proporciÃ³n perfecta */
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.2));
}

/* --- TamaÃ±os EspecÃ­ficos (Ajusta estos para 'grandeza' sin caos) --- */
.logo-mano {
    max-width: 480px;     /* <--- TamaÃ±o grande para la mano, sin ser gigante aplastada */
    animation: float 5s ease-in-out infinite;
}

.ilustracion-familia {
    max-width: 450px;     /* <--- TamaÃ±o equilibrado para la familia */
}

/* --- El Contenido Central (El Rey) --- */
.hero-content-new {
    flex: 2;             /* El texto ocupa el doble de espacio que una imagen */
    text-align: center;   /* Centramos todo el texto y botones */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4rem;      /* TÃ­tulo grande y claro */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;     /* Limitamos el ancho del pÃ¡rrafo para legibilidad */
    margin-bottom: 45px;
}

/* --- Botones --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-new {
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #fff;
    color: #1455bb;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #0b4eac;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* --- AnimaciÃ³n de FlotaciÃ³n (CopiÃ¡ esto si no lo tenÃ©s) --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   5. AJUSTE PARA QUE SERVICIOS NO TARDE (IMPORTANTE)
========================================== */
.marquee { 
    overflow: hidden; 
    background: #0a4d8c; 
    padding: 30px 0; 
    margin-top: 0; /* Sin margen negativo para respetar el diseÃ±o original */
}

.section { 
    padding: 40px 20px; /* Bajamos solo este padding para que Servicios suba un poco */
    text-align: center; 
    max-width: 1200px; 
    margin: auto; 
}

.section h2 {
    margin-top: 0;
    margin-bottom: 30px; /* Menos espacio entre tÃ­tulo y tarjetas */
}


/* Ajuste para que la familia no estÃ© gigante */
.hero-img-left-src {
    width: 100%;          /* Que ocupe el ancho de su columna... */
    max-width: 420px;     /* ...pero que no pase de 420px (ajustÃ¡ este nÃºmero si la querÃ©s mÃ¡s chica) */
    height: auto;
    display: block;
    margin-left: auto;    /* La empuja bien hacia la derecha */
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.15));
}

/* Reequilibramos las columnas para que el texto respire */
.hero-img {
    flex: 2.5;
    display: flex;
    justify-content: flex-end !important;
    align-items: center;
    padding-left: 400px;
}
              /* Columna de la mano (izq) */
}

.hero-text {
    flex: 2;              /* Columna del texto (centro) - le damos mÃ¡s espacio */
}

.hero-img-left {
    flex: 1.5;            /* Columna de la familia (der) */
    display: flex;
    justify-content: flex-end;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   WSP - FIX FINAL (ESTILO IMPERATIVO)
========================================== */
.wsp-float { 
    position: fixed !important;
    bottom: 40px !important;    /* Lo subimos un poco para que no se pegue al borde */
    right: 10px !important;     /* Lo metemos hacia adentro para que no se corte */
    width: 65px !important; 
    height: 65px !important; 
    background: #25d366 !important; 
    color: #fff !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-size: 35px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important; 
    z-index: 2147483647 !important; /* El nivel mÃ¡s alto de capas */
    text-decoration: none !important; 
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wsp-float:hover { 
    transform: scale(1.15) rotate(15deg) !important; 
    background: #20ba5a !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
}

/* Centrado del icono */
.wsp-float i {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.logo { 
    height: 95px !important;    /* <--- AjustÃ¡ este nÃºmero a tu gusto (ej: 80, 90, 100) */
    width: auto !important; 
    transition: 0.3s !important;
    display: block !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* Estilo para el contenedor del tÃ­tulo-imagen */
.hero-title-img {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* ==========================================
   IMPACTO MÃXIMO: ILUSTRACIÃ“N DE LETRAS
========================================== */

/* Usamos una cadena de selectores larga para ganar especificidad sin !important */
body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
    display: block;
    width: 70%;
    /* TAMAÃ‘O IMPACTO: De 800px subimos a 1200px */
    max-width: none; 
    height: auto;
    margin: 0 auto;
    /* TransiciÃ³n fluida para el responsive */
    transition: all 0.4s ease-in-out;
    filter: drop-shadow(0px 15px 30px rgba(0,0,0,0.2));
}

/* Ajustamos el contenedor para que no asfixie a la imagen */
.hero-content-new {
    flex: 4 !important; /* Le damos mucho mÃ¡s espacio al centro que a los lados */
    width: 100%;
}

/* ==========================================
   RESPONSIVE (Ajuste gradual)
========================================== */

/* Pantallas de Laptop comunes */
@media (max-width: 1400px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 950px;
    }
}

/* Tablets y pantallas pequeÃ±as */
@media (max-width: 1024px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 750px;
    }
}

/* Celulares (Para que se vea imponente pero quepa en la pantalla) */
@media (max-width: 768px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 450px;
    }
}

/* Celulares pequeÃ±os */
@media (max-width: 480px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 320px;
    }
}


@media (max-width: 768px) {

    .hero-container-new {
        flex-direction: column;
        gap: 20px;
    }

    .hero-left,
    .hero-right {
        justify-content: center;
    }

    .logo-mano {
        max-width: 220px;
    }

    .ilustracion-familia {
        max-width: 240px;
    }

    .hero-content-new {
        order: -1; /* ðŸ”¥ el texto arriba (clave) */
    }
}

@media (max-width: 768px) {

    .img-frase-hero {
        width: 100% !important;
        max-width: 320px !important;
        transform: none !important;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-new {
        width: 90%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-new {
        min-height: auto;
        padding: 40px 15px;
    }
}

.hero-description {
    text-align: center;
}

@media (max-width: 768px) {

    .marquee {
        padding: 15px 0; /* menos alto */
    }

    .marquee-content {
        gap: 25px; /* menos espacio entre imÃ¡genes */
    }

    .marquee img {
        height: 45px; /* ðŸ”¥ clave */
    }

}

@media (max-width: 768px) {
    .marquee-content { 
        animation: scroll 15s linear infinite;
    }
}

@media (max-width: 768px) {

    .footer-wrap {
        flex-direction: column;
        align-items: center; /* ðŸ”¥ centra TODO el bloque */
        text-align: center;
    }

    .footer-identity {
        display: flex;
        flex-direction: column;
        align-items: center; /* ðŸ”¥ centra logo + redes */
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .footer-social-links {
        display: flex;
        justify-content: center; /* ðŸ”¥ centra los Ã­conos */
        gap: 12px;
        width: 100%;
    }


    .footer-logo-img {
        display: block;
        margin: 0 auto; /* ðŸ”¥ centra el logo sÃ­ o sÃ­ */
    }

}

.nav {
    position: relative;
    z-index: 100000 !important;
}

.hamburger {
    position: relative;
    z-index: 100001 !important;
}


#bg-wrap {
    pointer-events: none !important;
    z-index: -1 !important;
}









.nav .menu-card:hover {
    transform: translateY(-5px);
}
.nav .dropdown-content .card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* ðŸ”¥ clave */
    padding: 8px !important;        /* ðŸ”¥ iguala visualmente */
    display: block !important;
}

/* 3. Aseguramos que las tarjetas se pongan una al lado de la otra */
.nav .megamenu-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 45px !important;
    padding: 20px !important;
}

/* 4. La tarjeta completa */
.nav .menu-card {
    width: 100px !important; /* Limita el ancho de todo el bloque */
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* 5. El texto debajo de la foto */
.nav .menu-card span {
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #333 !important;
    font-weight: 600 !important;
}



.nav .menu-card {
    transition: 0.3s;
}


.nav .dropdown-content .card-img-wrapper {
    width: 110px !important;
    height: 90px !important;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px !important;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 90% !important;
    height: 90% !important;
    object-fit: contain !important;
    transform: scale(1.1); /* ðŸ”¥ compensa imÃ¡genes chicas */
}


/* ===== FIX DEFINITIVO MEGAMENU ===== */

.nav .dropdown-content .card-img-wrapper {
    width: 150px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f7fb;
    border-radius: 12px;
    overflow: hidden;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    transform: scale(1.3);
}

.nav .menu-card {
    width: 150px;
    text-align: center;
}

.nav .megamenu-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}




/* ðŸ”¥ FORZADO FINAL */
.dropdown {
    position: static !important;
}

.dropdown-content {
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;

    width: 100vw !important;
    max-width: none !important;

    background: #fff !important;
    padding: 40px 0 !important;

    border-radius: 0 !important;
    box-shadow: none !important;

    z-index: 999999 !important;

    /* ðŸ”¥ CAMBIO IMPORTANTE */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.nav .megamenu-grid {
    max-width: 1100px !important;
    margin: 0 auto !important;
}

html, body {
    overflow-x: visible !important;
}

.dropdown-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 100%;
    height: 60px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,0.95) 50%,
        rgba(255,255,255,0.85) 75%,
        rgba(255,255,255,0) 100%
    );

    pointer-events: none;
}



/* ==========================================
   FIX FINAL MEGAMENU + BLUR GAUSSIANO
========================================== */

/* ðŸ”¹ Dropdown SIEMPRE presente (no usar display:none) */
.dropdown-content {
    display: block !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dropdown-content {
    top: 70px !important; /* ðŸ”¥ mismo valor que el nav */
}

/* ðŸ”¹ ActivaciÃ³n estable */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ðŸ”¹ PUENTE invisible para evitar corte de hover */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
}

/* ðŸ”¹ Overlay blur (NO interfiere con mouse) */
body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    pointer-events: none; /* ðŸ”¥ CLAVE */
    z-index: 1000;
}

/* ðŸ”¹ Asegurar capas correctas */
.nav {
    position: relative;
    z-index: 2000;
}

.dropdown-content {
    z-index: 3000 !important;
}

body.force-close .dropdown-content {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* CONTENEDOR */
.loader {
    position: fixed;
    inset: 0;
    background: #0a4d8c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
}

/* MANO */
.loader-hand {
    width: 180px;
    opacity: 0.15; /* ðŸ”¥ casi transparente */
    animation: float 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* SHIMMER (efecto brillo) */
.loader-hand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.4),
        transparent 70%
    );
    animation: shimmer 2s infinite;
}

/* PARTICULAS */
.particles::before,
.particles::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: pulse 3s infinite;
}

.particles::after {
    animation-delay: 1.5s;
}

/* ANIMACIONES */

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}







/* ðŸ”¥ AGRANDAR IMÃGENES DEL MEGAMENU */

.nav .dropdown-content .card-img-wrapper {
    width: 180px !important;
    height: 140px !important;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.4) !important; /* ðŸ”¥ hace que se vean mÃ¡s grandes */
}

/* ðŸ”¥ AGRANDAR LA TARJETA COMPLETA */
.nav .menu-card {
    width: 180px !important;
}

/* ðŸ”¥ TEXTO UN POCO MÃS GRANDE (opcional pero queda mejor) */
.nav .menu-card span {
    font-size: 15px !important;
}






.card {
    padding: 70px 20px !important;
    overflow: visible !important; /* ðŸ”¥ permite que la imagen se salga */
}

.card img {
    width: 380px !important;     /* ðŸ’£ ENORME */
    height: 260px !important;

    object-fit: cover !important;

    display: block !important;
    margin: -80px auto 30px !important; /* ðŸ”¥ efecto flotante */

    border-radius: 30px !important;

    box-shadow: 0 30px 80px rgba(0,0,0,0.35) !important;

    max-width: none !important;
    position: relative;
    z-index: 2;
}



.cards{
    display: grid !important;

    grid-template-columns: repeat(5, minmax(220px, 260px)) !important;

    justify-content: center !important;

    gap: 35px !important;
}


.card img{
    width: 90% !important;
    height: 180px !important;

    object-fit: cover !important;

    margin: -40px auto 20px !important;

    border-radius: 20px !important;
}


.dropbtn,
.menu-card span {
    transition: all 0.25s ease !important;
}

.menu-card:hover span,
.dropdown:hover .dropbtn {
    transform: translateY(-2px) !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

.card-img-wrapper img {
    transition: all 0.25s ease !important;
}

.menu-card:hover .card-img-wrapper img {
    transform: scale(1.05) !important;
    filter: brightness(1.05) drop-shadow(0 8px 18px rgba(0,0,0,0.25)) !important;
}

.menu-card span {
    margin-top: 8px !important;
    display: block !important;
}

.card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}









/* ==========================================
   VIDEO PILARES - FIX LIMPIO
========================================== */

.valores-section{
    position: relative;
    overflow: hidden;
}

/* VIDEO DE FONDO */
.valores-video-bg{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 1;

    filter: sepia(0.4)
            saturate(0.9)
            brightness(0.9)
            contrast(1.2)
            hue-rotate(5deg);

    z-index: 0;

    pointer-events: none;
}
/* CONTENIDO ENCIMA */
.valores-container{
    position: relative;
    z-index: 2;
}






.valor-card{
    position: relative;

    background: rgba(255,255,255,0.22);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.35);

    border-radius: 28px;

    padding: 50px 35px;

    overflow: hidden;

    transition: all .45s cubic-bezier(.2,.8,.2,1);

    box-shadow:
        0 10px 40px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.35);
}


.valor-card::before{
    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.35),
        transparent 40%
    );

    opacity:.7;

    pointer-events:none;
}


.valor-card:hover{

    transform:
        translateY(-12px)
        scale(1.02);

    box-shadow:
        0 25px 60px rgba(0,0,0,.18);

}


.valor-icon{

    width:90px;
    height:90px;

    font-size:34px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);

    margin-bottom:28px;
}


.valores-section{

    background:
    linear-gradient(
        135deg,
        #f7d7ca 0%,
        #f2dfd4 50%,
        #eedfd8 100%
    );

    position:relative;
}



.valores-section::before,
.valores-section::after{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    filter:blur(90px);

    opacity:.25;

    z-index:0;
}

.valores-section::before{
    background:#ff8a00;
    top:-150px;
    left:-120px;
}

.valores-section::after{
    background:#ff00c8;
    bottom:-200px;
    right:-150px;
}


.valores-container{
    position:relative;
    z-index:2;
}







.stack-section{
    position: relative;
    overflow: visible;

    background: #1B74FF;

    padding: 120px 0;

    min-height: 100vh;
}

/* TITULO */

.stack-title{
    text-align: center;
    color: white;
    margin-bottom: 80px;

    opacity: 0;
    transform: translateY(40px);

    animation: fadeUp 1s ease forwards;
}

.stack-title h2{
    font-size: 55px;
    margin-bottom: 15px;
}

.stack-title p{
    font-size: 20px;
    opacity: .9;
}

/* CONTENEDOR */

.stack-cards{
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 520px;

    width: 100%;
    max-width: 1700px;

    margin: auto;

    perspective: 1800px;
    
}

/* TARJETAS */

.stack-card{
    position: absolute;

    width: 320px;
    height: 430px;

    border-radius: 30px;
    overflow: hidden;

    cursor: pointer;

    opacity: 0;

   

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    animation: stackFade .8s ease forwards;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);

    will-change: transform;

    backface-visibility: hidden;
}


/* POSICION SUPERPUESTA */

.stack-card:nth-child(1){
    transform: translateX(0px);
    z-index: 1;
}

.stack-card:nth-child(2){
    transform: translateX(12px);
    z-index: 2;
}

.stack-card:nth-child(3){
    transform: translateX(24px);
    z-index: 3;
}

.stack-card:nth-child(4){
    transform: translateX(36px);
    z-index: 4;
}

.stack-card:nth-child(5){
    transform: translateX(48px);
    z-index: 5;
}

/* IMAGEN */

.stack-card img{
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: translateZ(0);

    border-radius: 30px;
}

/* OVERLAY */

.card-info{
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;

    padding: 25px;

    background:
    linear-gradient(
        transparent,
        rgba(0,0,0,.8)
    );

    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

/* HOVER SOLO CUANDO LA SECCION ESTA ACTIVA */

.stack-card{
    pointer-events: none;
}

.stack-section.stack-active .stack-card{
    pointer-events: auto;
}

.stack-section.stack-active .stack-card:hover{
    transform:
        translateY(-15px)
        scale(1.03);

    z-index: 999;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28);
}

/* ANIMACIONES */

@keyframes stackFade{
    from{
        opacity: 0;
    }

    to{
        opacity: 1;
    }
}

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}





/* ===== EFECTO FINAL PRO ===== */

.card{
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

.card::before{
    content:"";

    position:absolute;
    inset:-2px;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.35),
        transparent 30%,
        transparent 70%,
        rgba(255,255,255,.15)
    );

    opacity:0;

    transition: opacity .35s ease;

    pointer-events:none;
}

.card:hover{
    transform:
        translateY(-10px)
        scale(1.02);

    box-shadow:
        0 25px 60px rgba(0,0,0,.18);
}

.card:hover::before{
    opacity:1;
}

.card img{
    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        filter .45s ease;
}

.card:hover img{
    transform: scale(1.08);

    filter:
        brightness(1.08)
        contrast(1.05)
        saturate(1.08);
}

.card h3,
.card p{
    transition:
        transform .35s ease,
        opacity .35s ease;
}

.card:hover h3{
    transform: translateY(-3px);
}

.card:hover p{
    transform: translateY(-2px);
    opacity:.92;
}




/* 🔥 STACK CARD SALE HACIA ADELANTE */

.stack-cards{
    perspective: 2200px;
    transform-style: preserve-3d;
}

.stack-card{

    transform-style: preserve-3d;

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s ease,
        filter .45s ease;

    will-change: transform;
}

/* 🔥 EFECTO PRINCIPAL */
.stack-section.stack-active .stack-card:hover{

    transform:
        translateY(-18px)
        translateZ(90px)
        scale(1.04);

    z-index: 9999;

    box-shadow:
        0 25px 60px rgba(0,0,0,.22);
}

/* IMAGEN MÁS PROFUNDA */
.stack-card img{

    transition:
        transform .5s ease,
        filter .45s ease;

    transform-style: preserve-3d;
}

.stack-section.stack-active .stack-card:hover img{

    transform:
        scale(1.08)
        translateZ(120px);

    filter:
        brightness(1.08)
        contrast(1.05)
        saturate(1.08);
}

/* INFO FLOTA */
.card-info{
    transform-style: preserve-3d;
    transition: transform .45s ease;
}

.stack-section.stack-active .stack-card:hover .card-info{
    transform: translateZ(90px);
}



/* ==========================================
   POPUP PRO SOLO CSS
========================================== */

.stack-card{
    position: relative !important;
    overflow: visible !important;
    isolation: isolate;
}

/* POPUP */
.stack-card::after{

    content: attr(data-text);

    position: absolute;

    left: 50%;
    top: calc(100% + 18px);

    transform:
        translateX(-50%)
        translateY(-12px)
        scale(.92);

    width: 280px;

    padding: 18px 20px;

    border-radius: 22px;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #1a1a1a;

    font-size: 14px;
    line-height: 1.5;
    text-align: center;

    box-shadow:
        0 25px 60px rgba(0,0,0,.18);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .45s cubic-bezier(.2,.8,.2,1);

    z-index: 999999;
}

/* APARECE */
.stack-card:hover::after{

    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0)
        scale(1);
}



.quienes-text-area{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
}

.quienes-text-wrapper{
    width:100%;
    max-width:680px;

    height:140px;          /* 🔒 FIJO REAL */
    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;
}

#quienesText{
    font-size:20px;
    line-height:1.8;
    color:#4b5563;
    text-align:center;

    margin:0;

    transition: opacity .55s ease, transform .55s ease;
}

#quienesText.fade-out{
    opacity:0;
    transform:translateY(15px);
}





/* =========================
   QUIÉNES SOMOS (BLOQUE)
========================= */

.quienes-section {
    padding: 90px 20px;
    background: linear-gradient(135deg, #ffffff, #f7f9ff);
    display: flex;
    justify-content: center;
}

.quienes-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* TAG superior */
.quienes-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffe6ec;
    color: #ff4d6d;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    margin-bottom: 12px;
}

/* TITULO */
.quienes-container h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #1c1c1c;
}

/* CONTENEDOR DEL SLIDER */
.quienes-text-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    position: relative;
}

/* TEXTO */
#quienesText {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    max-width: 600px;
    transition: opacity .3s ease;
}

/* BOTONES FLECHA */
.quienes-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff4d6d, #ff7a00);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    flex-shrink: 0;
}

.quienes-arrow:hover {
    transform: scale(1.1);
}

/* EFECTO SUAVE AL CAMBIAR TEXTO */
.quienes-text-slider p {
    animation: fadeText .3s ease;
}

@keyframes fadeText {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}



.quienes-text-slider {
    min-height: 140px; /* clave: fija el alto del bloque */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

#quienesText {
    min-height: 80px;   /* evita que el texto empuje el layout */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.6;
}



.hero .hero-container{
    justify-content: center !important;
}

.hero .hero-img img{
    width: 250px !important;
}




/* ASOCIATE HOY */
#asociate {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

#asociate .cards {
    margin: 30px auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
}

#asociate .card {
    width: 100% !important;
    max-width: 420px !important;
}






.hero-new{
    position:relative;
    overflow:hidden;
    background:#0a4d8c;
}

.hero-pattern{
    position:absolute;

    top:-20%;
    left:-20%;
    width:140%;
    height:140%;

    background-image:
        radial-gradient(circle at 20% 30%, rgba(10,77,140,.95), transparent 35%),
        radial-gradient(circle at 75% 40%, rgba(10,77,140,.85), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(10,77,140,.90), transparent 40%),
        url("../img/_apretonbeneficios.webp");

    background-repeat:repeat;
    background-size:
        auto,
        auto,
        auto,
        60px;

    opacity:.10;

    transform:rotate(-18deg) scale(1.4);

    z-index:0;
}


/* =========================
   HERO FARMACIA INSTITUCIONAL
========================= */

.farmacia-hero{
    position: relative;
    padding: 100px 20px;
    background: #f8fbff;
    overflow: hidden;
}

/* fondo decorativo MUY suave */
.farmacia-hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:
        radial-gradient(circle at 10% 20%, rgba(10,77,140,0.08), transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(21,101,192,0.06), transparent 45%);

    z-index: 0;
}

/* contenido */
.farmacia-content{
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    text-align: center;

    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

/* badge */
.farmacia-badge{
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e6f0ff;
    color: #0a4d8c;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 18px;
}

/* CONTENIDO */

.farmacia-content{
    flex:1;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    text-align:center;

    padding:60px;
}

/* BADGE */

.farmacia-badge{
    display:inline-block;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(255,140,0,.10);

    border:1px solid rgba(255,140,0,.20);

    color:#ff8c00;

    font-size:.85rem;

    font-weight:700;

    margin-bottom:20px;
}

/* TÍTULO */

.farmacia-content h1{
    font-size:3rem;

    color:#1a1a1a;

    font-weight:800;

    line-height:1.15;

    margin-bottom:15px;

    text-align:center;

    max-width:700px;

    margin-left:auto;
    margin-right:auto;
}

/* TEXTO */

.farmacia-content p{
    font-size:1.1rem;

    color:#555;

    line-height:1.8;

    max-width:600px;

    text-align:center;

    margin:0 auto 30px;
}

/* BOTONES */

.farmacia-buttons{
    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;
}

.farmacia-btn{
    padding:14px 28px;

    border-radius:10px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;
}

.farmacia-btn.primary{
    background:#ff8c00;
    color:#fff;
}

.farmacia-btn.secondary{
    border:1px solid #ddd;
    color:#333;
    background:#fff;
}

.farmacia-btn:hover{
    transform:translateY(-2px);
}

/* RESPONSIVE */

@media (max-width:768px){

    .farmacia-content{
        padding:40px 25px;
    }

    .farmacia-content h1{
        font-size:2.2rem;
    }

    .farmacia-content p{
        font-size:1rem;
    }

    .farmacia-buttons{
        flex-direction:column;
        width:100%;
    }

    .farmacia-btn{
        width:100%;
        text-align:center;
    }
}

/* botones */
.farmacia-buttons{
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.farmacia-btn{
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.farmacia-btn.primary{
    background: #0a4d8c;
    color: #fff;
}

.farmacia-btn.primary:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(10,77,140,0.25);
}

.farmacia-btn.secondary{
    border: 2px solid #0a4d8c;
    color: #0a4d8c;
}

.farmacia-btn.secondary:hover{
    background: #0a4d8c;
    color: #fff;
}

/* =========================
   CARDS INSTITUCIONALES
========================= */

.farmacia-beneficios{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;

    padding: 70px 20px;
    max-width: 1100px;
    margin: auto;
}

/* card horizontal */
.farm-card{
    flex: 1;
    min-width: 260px;

    display: flex;
    align-items: flex-start;
    gap: 15px;

    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 14px;
    padding: 20px 22px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.05);

    transition: 0.3s ease;

    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.7s ease forwards;
}

/* delays suaves */
.farm-card:nth-child(1){ animation-delay: 0.2s; }
.farm-card:nth-child(2){ animation-delay: 0.35s; }
.farm-card:nth-child(3){ animation-delay: 0.5s; }

/* hover sobrio */
.farm-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* icono */
.farm-card i{
    font-size: 28px;
    color: #0a4d8c;
    margin-top: 3px;
}

/* contenido card */
.farm-card h3{
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.farm-card p{
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px){
    .farmacia-content h1{
        font-size: 2.2rem;
    }

    .farmacia-content p{
        font-size: 1rem;
    }

    .farm-card{
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}




.hero-title-img {
  position: relative;
  display: inline-block;
}

.hero-title-img img {
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;

  transition: transform 0.2s ease, filter 0.2s ease;
}

/* 🔥 núcleo con rayos más cálidos */
.hero-title-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: radial-gradient(
    circle at 50% 50%,

    rgba(255,255,255,0.80),   /* núcleo blanco fuerte */

    rgba(255,180,60,0.35),    /* 🔥 naranja más presente en “rayos” */

    rgba(255,120,0,0.22),     /* naranja medio más visible */

    rgba(255,140,0,0.15),     /* base naranja 15% */

    transparent 62%
  );

  filter: blur(3px);
  mix-blend-mode: screen;

  opacity: 0.7;

  animation: pulseGlow 2.6s ease-in-out infinite;
}

/* 💓 pulso más vivo */
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.60;
  }

  25% {
    transform: scale(1.015);
    opacity: 0.80;
  }

  50% {
    transform: scale(0.995);
    opacity: 0.65;
  }

  75% {
    transform: scale(1.02);
    opacity: 0.85;
  }

  100% {
    transform: scale(1);
    opacity: 0.60;
  }
}




.hero-new{
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}


.naranja{

    color:#ff8c00;

    font-weight:700;

    text-shadow:
        0 0 10px rgba(255,140,0,.25);
}


.punto{
    color:#ff8c00;
    font-size:2em;
    line-height:0;
    font-size:2.7em;
}



.video-wrapper{
    width:100vw;
    margin-left:calc(50% - 50vw);
    position:relative;
    overflow:hidden;
    line-height:0;
}

/* VIDEO con fade MUCHO más agresivo */
.video-wrapper video{
    width:30%;
    display:block;
    margin:0 auto;

    /* 🔥 DIFUMINADO FUERTE */
    -webkit-mask-image: radial-gradient(
        ellipse 70% 55% at center,
        black 35%,
        rgba(0,0,0,0.6) 55%,
        transparent 85%
    );

    mask-image: radial-gradient(
        ellipse 70% 55% at center,
        black 35%,
        rgba(0,0,0,0.6) 55%,
        transparent 85%
    );
}





html, body {
    margin: 0;
    padding: 0;
}

/* CONTENEDOR CONTROLABLE */
.video-wrapper {
    display: inline-block;   /* permite achicarlo */
    position: relative;      /* base para moverlo */
    width: 400px;            /* 👈 tamaño editable */
    height: auto;
}

/* VIDEO */
.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;          /* elimina espacios raros debajo del video */
    object-fit: cover;
}



html, body { margin: 0; padding: 0; background: #0b0b0b; } /* HERO dividido */ .farmacia-hero { display: flex; min-height: 80vh; width: 100%; } /* VIDEO ocupa mitad (impacto real) */ .video-wrapper { flex: 1; position: relative; overflow: hidden; } .video-wrapper video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75) contrast(1.1); } /* CONTENIDO al lado */ .farmacia-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 60px; color: white; } /* TITULO fuerte */ .farmacia-content h1 { font-size: 48px; line-height: 1.05; margin: 15px 0; } /* TEXTO */ .farmacia-content p { font-size: 18px; opacity: 0.85; max-width: 450px; } /* BADGE */ .farmacia-badge { display: inline-block; padding: 6px 12px; border: 1px solid #ff8c00; color: #ff8c00; border-radius: 999px; font-size: 12px; width: fit-content; } /* BOTONES */ .farmacia-buttons { display: flex; gap: 12px; margin-top: 25px; } .farmacia-btn { padding: 12px 18px; text-decoration: none; font-weight: bold; } .farmacia-btn.primary { background: #ff8c00; color: white; } .farmacia-btn.secondary { border: 1px solid white; color: white; }




.video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35); /* oscurece para texto legible */
    pointer-events: none;
}



.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) contrast(1.05);
}

.video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
    pointer-events: none;
}




html, body {
  background-color: transparent;
}




/* =========================
   SECTION 1 - SERVICIOS
========================= */

.farmacia-servicio{
    position:relative;
    padding:100px 20px;
    background:#0b0b0b;
    overflow:hidden;
}

.farmacia-servicio .container{
    max-width:1200px;
    margin:auto;
    text-align:center;
}

.farmacia-servicio .subtitulo{
    display:inline-block;
    color:#ff8c00;
    font-size:.95rem;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:15px;
}

.farmacia-servicio h2{
    color:#fff;
    font-size:clamp(2rem,4vw,3.5rem);
    line-height:1.1;
    margin-bottom:25px;
}

.farmacia-servicio > .container > p{
    max-width:750px;
    margin:0 auto 70px;
    color:rgba(255,255,255,.75);
    font-size:1.1rem;
    line-height:1.8;
}

.beneficios-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.beneficios-grid > div{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,140,0,.15);
    border-radius:22px;
    padding:35px 25px;
    transition:.35s;
    backdrop-filter:blur(10px);
}

.beneficios-grid > div:hover{
    transform:translateY(-8px);
    border-color:rgba(255,140,0,.45);

    box-shadow:
        0 0 30px rgba(255,140,0,.08),
        0 0 60px rgba(255,140,0,.04);
}

.beneficios-grid h3{
    color:#fff;
    margin-bottom:12px;
    font-size:1.2rem;
}

.beneficios-grid p{
    color:rgba(255,255,255,.65);
    line-height:1.6;
    font-size:.95rem;
}

/* Glow naranja suave */

.farmacia-servicio::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(
        circle,
        rgba(255,140,0,.12),
        transparent 70%
    );

    top:-250px;
    left:-150px;
    pointer-events:none;
}

.farmacia-servicio::after{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(
        circle,
        rgba(255,140,0,.08),
        transparent 70%
    );

    bottom:-250px;
    right:-150px;
    pointer-events:none;
}

/* Responsive */

@media(max-width:900px){

    .beneficios-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:600px){

    .beneficios-grid{
        grid-template-columns:1fr;
    }

    .farmacia-servicio{
        padding:80px 20px;
    }

}




.farmacia-productos{
    position:relative;
    padding:100px 8%;
    text-align:center;
}

.farmacia-productos .container{
    max-width:1200px;
    margin:0 auto;
}

.farmacia-productos .subtitulo{
    display:inline-block;
    color:#ff8c00;
    font-size:.95rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-bottom:15px;
}

.farmacia-productos h2{
    color:#fff;
    font-size:clamp(2rem,4vw,3.2rem);
    line-height:1.15;
    margin-bottom:20px;
}

.farmacia-productos p{
    max-width:700px;
    margin:0 auto 60px;
    color:rgba(255,255,255,.8);
    font-size:1.1rem;
    line-height:1.8;
}

.productos-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.producto{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,140,0,.15);
    border-radius:24px;
    padding:40px 25px;
    transition:.35s ease;
    backdrop-filter:blur(10px);
}

.producto:hover{
    transform:translateY(-8px);
    border-color:rgba(255,140,0,.5);
    box-shadow:
        0 15px 40px rgba(0,0,0,.35),
        0 0 30px rgba(255,140,0,.12);
}

.producto img{
    width:350px;
    height:350px;
    object-fit:contain;
    margin-bottom:20px;
    filter:
        drop-shadow(0 0 12px rgba(255,140,0,.25));
}

.producto h3{
    color:#fff;
    font-size:1.25rem;
    font-weight:600;
    margin:0;
}

@media (max-width:900px){

    .productos-grid{
        grid-template-columns:1fr;
        max-width:450px;
        margin:0 auto;
    }

}


/* =========================
   FARMACIA SERVICIO ELITE
========================= */

.farmacia-servicio{
    position: relative;
    padding: 160px 20px;
    overflow: hidden;

    background:
        radial-gradient(circle at 15% 20%, #111 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, #0b0b0b 0%, transparent 45%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

/* 🔥 ATMÓSFERA CINEMATOGRÁFICA */
.farmacia-servicio::before{
    content:"";
    position:absolute;
    inset:-20%;

    background:
        radial-gradient(circle at 30% 30%, rgba(255,140,0,.18), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0,140,255,.12), transparent 45%);

    filter: blur(120px);
    opacity: .6;

    animation: slowFloat 12s ease-in-out infinite;
}

.farmacia-servicio::after{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(120deg,
            rgba(255,255,255,.05),
            transparent 40%,
            transparent 60%,
            rgba(255,140,0,.05)
        );

    mix-blend-mode: overlay;
    pointer-events:none;
}

/* CONTENIDO */
.farmacia-servicio .container{
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: auto;
    text-align: center;
}

/* SUBTÍTULO “EDITORIAL” */
.farmacia-servicio .subtitulo{
    display:inline-block;
    padding: 10px 20px;
    border-radius: 999px;

    background: rgba(255,140,0,.05);
    border: 1px solid rgba(255,140,0,.22);

    color:#ffb86b;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;

    margin-bottom:20px;

    backdrop-filter: blur(14px);
}

/* TITULO HERO */
.farmacia-servicio h2{
    color:#fff;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;

    margin-bottom: 24px;

    text-shadow:
        0 10px 50px rgba(0,0,0,.6);
}

/* TEXTO PREMIUM */
.farmacia-servicio > .container > p{
    max-width: 780px;
    margin: 0 auto 90px;

    color: rgba(255,255,255,.58);
    font-size: 1.2rem;
    line-height: 1.9;

    letter-spacing: .2px;
}

/* GRID ULTRA LIMPIO */
.beneficios-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* CARD ELITE */
.beneficios-grid > div{
    position: relative;

    padding: 50px 30px;
    border-radius: 28px;

    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    transition: all .5s cubic-bezier(.2,.8,.2,1);

    overflow: hidden;

    transform: translateZ(0);
}

/* capa de luz diagonal */
.beneficios-grid > div::before{
    content:"";
    position:absolute;
    inset:-1px;

    background:
        linear-gradient(135deg,
            rgba(255,255,255,.14),
            transparent 35%,
            transparent 65%,
            rgba(255,140,0,.10)
        );

    opacity: 0;
    transition: .5s ease;
}

/* halo inferior animado */
.beneficios-grid > div::after{
    content:"";
    position:absolute;
    bottom:-60px;
    left:50%;
    transform:translateX(-50%);

    width:160px;
    height:160px;

    background: radial-gradient(circle, rgba(255,140,0,.25), transparent 70%);
    filter: blur(30px);

    opacity: 0;
    transition: .5s ease;
}

.beneficios-grid > div:hover{
    transform:
        translateY(-18px)
        scale(1.03);

    border-color: rgba(255,140,0,.35);

    box-shadow:
        0 40px 100px rgba(0,0,0,.6),
        0 0 50px rgba(255,140,0,.10);
}

.beneficios-grid > div:hover::before,
.beneficios-grid > div:hover::after{
    opacity: 1;
}

/* ICONO MÁS “LIVING” */
.icono{
    font-size: 2.6rem;
    margin-bottom: 20px;
    display: inline-block;

    filter:
        drop-shadow(0 18px 30px rgba(255,140,0,.18));

    animation: floatIcon 6s ease-in-out infinite;
}

/* TITULO */
.beneficios-grid h3{
    color:#fff;
    font-size:1.3rem;
    font-weight:800;
    margin-bottom:10px;
    letter-spacing: .2px;
}

/* TEXTO */
.beneficios-grid p{
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    line-height: 1.7;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes slowFloat{
    0%,100%{ transform: translateY(0px); }
    50%{ transform: translateY(-30px); }
}

@keyframes floatIcon{
    0%,100%{ transform: translateY(0px); }
    50%{ transform: translateY(-8px); }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px){
    .beneficios-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px){
    .beneficios-grid{
        grid-template-columns: 1fr;
    }

    .farmacia-servicio{
        padding: 120px 18px;
    }
}






/* =========================
   FARMACIA PRODUCTOS
========================= */

.farmacia-productos{
    padding:120px 20px;
    position:relative;
    overflow:hidden;
    background:transparent;
}

.farmacia-productos .container{
    max-width:1400px;
    margin:auto;
}

/* TITULO */

.farmacia-productos h2{
    text-align:center;
    font-size:clamp(2.5rem,5vw,4rem);
    font-weight:800;
    color:#0a4d8c;
    letter-spacing:-2px;
    margin-bottom:15px;
}

.farmacia-productos .subtitulo{
    text-align:center;
    max-width:750px;
    margin:0 auto 70px;
    color:#64748b;
    line-height:1.8;
    font-size:1.1rem;
}

/* GRID */

.productos-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:35px;
}

/* CARD */

.producto-card{

    position:relative;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.25);

    border-radius:26px;

    overflow:hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}

/* brillo */

.producto-card::before{

    content:"";

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.35),
        transparent 35%
    );

    opacity:0;

    transition:.35s;

    pointer-events:none;
}

.producto-card:hover{

    transform:
        translateY(-10px)
        scale(1.02);

    border-color:rgba(255,140,0,.35);

    box-shadow:
        0 25px 60px rgba(0,0,0,.15);
}

.producto-card:hover::before{
    opacity:1;
}

/* IMAGEN */

.producto-card img{

    width:100%;
    height:260px;

    object-fit:cover;

    transition:
        transform .45s ease,
        filter .45s ease;
}

.producto-card:hover img{

    transform:scale(1.08);

    filter:
        brightness(1.05)
        contrast(1.05)
        saturate(1.08);
}

/* CONTENIDO */

.producto-info{
    padding:28px;
}

.producto-info h3{

    font-size:1.3rem;
    color:#0a4d8c;

    margin-bottom:12px;
    font-weight:700;
}

.producto-info p{

    color:#475569;

    line-height:1.7;

    margin-bottom:20px;
}

/* BOTON */

.producto-btn{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:14px 24px;

    border-radius:12px;

    text-decoration:none;

    font-weight:700;

    background:#ff8c00;
    color:#fff;

    transition:.3s;
}

.producto-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 30px rgba(255,140,0,.35);
}

/* RESPONSIVE */

@media(max-width:768px){

    .farmacia-productos{
        padding:80px 20px;
    }

    .farmacia-productos h2{
        font-size:2.2rem;
    }

    .producto-card img{
        height:220px;
    }
}

/* =========================
   PRODUCTO ULTRA PREMIUM
========================= */

.producto-card{

    position:relative;

    background:
    linear-gradient(
        145deg,
        rgba(255,255,255,.28),
        rgba(255,255,255,.08)
    );

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.35);

    border-radius:32px;

    overflow:hidden;

    transition:
        transform .5s cubic-bezier(.2,.8,.2,1),
        box-shadow .5s ease,
        border-color .5s ease;

    box-shadow:
        0 20px 50px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.45);

    isolation:isolate;
}

/* REFLEJO */

.producto-card::before{

    content:"";

    position:absolute;

    top:-100%;
    left:-50%;

    width:70%;
    height:300%;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.4),
        transparent
    );

    transform:rotate(20deg);

    transition:.8s;

    z-index:2;
}

.producto-card:hover::before{
    left:130%;
}

/* GLOW NARANJA */

.producto-card::after{

    content:"";

    position:absolute;

    width:250px;
    height:250px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        rgba(255,140,0,.18),
        transparent 70%
    );

    right:-100px;
    top:-100px;

    opacity:0;

    transition:.5s;
}

.producto-card:hover::after{
    opacity:1;
}

.producto-card:hover{

    transform:
        translateY(-15px)
        scale(1.03);

    border-color:rgba(255,140,0,.45);

    box-shadow:
        0 35px 80px rgba(0,0,0,.15),
        0 0 40px rgba(255,140,0,.12);
}

/* IMAGEN */

.producto-card img{

    width:100%;
    height:280px;

    object-fit:contain;

    padding:25px;

    transition:
        transform .6s ease,
        filter .6s ease;
}

.producto-card:hover img{

    transform:
        scale(1.12)
        translateY(-8px);

    filter:
        drop-shadow(0 25px 40px rgba(0,0,0,.25));
}

/* TITULO */

.producto-info h3{

    font-size:1.45rem;

    color:#0a4d8c;

    font-weight:800;

    margin-bottom:10px;
}

/* TEXTO */

.producto-info p{

    color:#64748b;

    line-height:1.8;
}

/* BOTON */

.producto-btn{

    background:
    linear-gradient(
        135deg,
        #ff9d22,
        #ff7a00
    );

    color:#fff;

    border-radius:14px;

    padding:14px 26px;

    font-weight:700;

    transition:.35s;
}

.producto-btn:hover{

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px rgba(255,140,0,.35);
}


/* =========================
   FARMACIA PRODUCTOS 2026
========================= */

.producto-card{

    position:relative;

    border-radius:34px;

    overflow:hidden;

    background:
    linear-gradient(
        145deg,
        rgba(255,255,255,.35),
        rgba(255,255,255,.08)
    );

    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);

    border:1px solid rgba(255,255,255,.35);

    transition:
        transform .55s cubic-bezier(.16,1,.3,1),
        box-shadow .55s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.55);

    isolation:isolate;
}

/* AURA */

.producto-card::after{

    content:"";

    position:absolute;

    inset:-30%;

    background:
    radial-gradient(
        circle,
        rgba(255,140,0,.18),
        transparent 60%
    );

    opacity:0;

    transition:.6s;

    pointer-events:none;
}

.producto-card:hover::after{
    opacity:1;
}

/* REFLEJO PREMIUM */

.producto-card::before{

    content:"";

    position:absolute;

    top:-150%;
    left:-80%;

    width:70%;
    height:400%;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    transform:rotate(18deg);

    transition:1s;

    z-index:5;
}

.producto-card:hover::before{
    left:180%;
}

/* HOVER */

.producto-card:hover{

    transform:
        translateY(-18px)
        scale(1.035);

    box-shadow:
        0 40px 90px rgba(0,0,0,.16),
        0 0 50px rgba(255,140,0,.15);
}

/* IMAGEN */

.producto-card img{

    width:100%;
    height:300px;

    object-fit:contain;

    padding:35px;

    transition:
        transform .8s cubic-bezier(.16,1,.3,1),
        filter .8s ease;
}

.producto-card:hover img{

    transform:
        scale(1.14)
        translateY(-10px);

    filter:
        drop-shadow(0 30px 40px rgba(0,0,0,.25));
}

/* CONTENIDO */

.producto-info{
    padding:30px;
}

.producto-info h3{

    font-size:1.5rem;

    font-weight:800;

    margin-bottom:12px;

    color:#0a4d8c;

    letter-spacing:-.5px;
}

.producto-info p{

    color:#64748b;

    line-height:1.8;
}

/* BOTON */

.producto-btn{

    position:relative;

    overflow:hidden;

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:15px 28px;

    border-radius:16px;

    text-decoration:none;

    font-weight:700;

    background:
    linear-gradient(
        135deg,
        #ff9d22,
        #ff7a00
    );

    color:#fff;

    transition:.35s;
}

.producto-btn:hover{

    transform:
        translateY(-3px);

    box-shadow:
        0 20px 40px rgba(255,140,0,.35);
}

/* TITULO GIGANTE */

.farmacia-productos h2{

    font-size:clamp(3.5rem,6vw,5.5rem);

    font-weight:900;

    letter-spacing:-4px;

    text-align:center;

    background:
    linear-gradient(
        135deg,
        #0a4d8c,
        #2f7cff
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* SUBTITULO */

.farmacia-productos .subtitulo{

    font-size:1.15rem;

    color:#64748b;

    max-width:850px;

    margin:20px auto 90px;

    text-align:center;
}

/* GRID PREMIUM */

.productos-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(340px,1fr));

    gap:50px;

    max-width:1500px;

    margin:auto;
}




/* MÓVIL */
@media (max-width: 768px) {

    .farmacia-hero{
        display: flex;
        flex-direction: column;
        padding: 0;
        min-height: auto;
    }

    .video-wrapper{
        width: 100%;
        order: 1;
    }

    .video-wrapper video{
        width: 100%;
        height: auto;
        display: block;
    }

    .farmacia-content{
        order: 2;
        width: 100%;
        padding: 30px 20px;
        text-align: center;
    }

    .farmacia-buttons{
        justify-content: center;
    }
}



@media (max-width: 768px){

    .farmacia-hero{
        display:flex;
        flex-direction:column;
        padding:0;
    }

    .video-wrapper{
        width:100%;
        margin:0;
    }

    .video-wrapper video{
        display:block;
        width:100vw;      /* ocupa todo el ancho visible */
        max-width:none;
        height:auto;
    }

    .farmacia-content{
        width:100%;
        padding:30px 20px;
        text-align:center;
    }
}















.beneficios{
  padding: 60px 20px;
  background: #ffffff;
}

.beneficios-header{
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.beneficios-header h2{
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

/* separador MUY sutil, institucional */
.beneficios-header h2::after{
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #000;
  margin-top: 10px;
}

/* LISTA */
.beneficios-lista{
  max-width: 900px;
  margin: 0 auto;
  padding-left: 20px;
}

/* ITEMS */
.beneficios-lista li{
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* mejora accesibilidad visual al leer en bloque */
.beneficios-lista li::marker{
  color: #000;
}

/* RESPONSIVE LIMPIO */
@media (max-width: 600px){
  .beneficios{
    padding: 40px 15px;
  }

  .beneficios-header h2{
    font-size: 22px;
  }

  .beneficios-lista li{
    font-size: 15px;
    line-height: 1.5;
  }
}




.socios{
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #000;
}

/* títulos */
.titulo{
  font-size: 22px;
  font-weight: 600;
  margin: 25px 0 15px;
}

/* grid de tarjetas */
.cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

/* tarjeta base */
.card{
  border: 1px solid #000;
  padding: 15px;
  background: #fff;
}

/* contenido tarjeta */
.card h3{
  font-size: 16px;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

/* tarjeta simple (listas o texto) */
.card.simple ul{
  margin: 0;
  padding-left: 18px;
}

.card.simple li{
  margin-bottom: 6px;
  font-size: 15px;
}

/* mobile */
@media (max-width: 600px){
  .cards{
    grid-template-columns: 1fr;
  }
}





.beneficios{
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* TARJETA CONTENEDORA */
.beneficios-banner{
  position: relative;
  overflow: hidden;

  border: 1px solid #000;
  border-radius: 14px;

  background: #fff;

  /* sombra MUY sutil institucional */
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* IMAGEN */
.beneficios-banner img{
  width: 100%;
  height: auto;
  display: block;

  /* mejora estética dentro de la tarjeta */
  object-fit: cover;
}

/* efecto hover suave (opcional pero elegante) */
.beneficios-banner:hover{
  transform: translateY(-2px);
  transition: 0.2s ease;
}






/* ===========================
   SECCIÓN SOCIOS
=========================== */

.socios{
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 25px;
}

.socios .titulo{
    font-size: 2rem;
    font-weight: 700;
    color: #0b3c63;
    margin: 60px 0 25px;
    text-align: center;
    position: relative;
}

.socios .titulo::after{
    content: "";
    width: 90px;
    height: 5px;
    border-radius: 30px;
    background: linear-gradient(90deg,#0b8bd9,#39b5ff);
    display: block;
    margin: 12px auto 0;
}

/* GRID */

.socios .cards{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;
}

/* TARJETAS */

.socios .card{
    background: #fff;
    border-radius: 22px;
    padding: 35px;
    box-shadow:
        0 15px 40px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.6);
    border: 1px solid rgba(0,0,0,.05);
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.socios .card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg,#0b8bd9,#39b5ff);
}

.socios .card:hover{
    transform: translateY(-8px);
    box-shadow:
        0 25px 60px rgba(0,0,0,.12);
}

.socios .card h3{
    font-size: 1.45rem;
    color: #0b3c63;
    margin-bottom: 15px;
}

.socios .card p{
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* TARJETAS SIMPLES */

.socios .simple{
    max-width: 900px;
    margin: auto;
}

/* LISTA */

.socios ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.socios ul li{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #ececec;
    color: #444;
    font-size: 1rem;
}

.socios ul li:last-child{
    border-bottom: none;
}

.socios ul li::before{
    content: "✔";
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0b8bd9,#39b5ff);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .85rem;
    flex-shrink: 0;
}

/* DESCUENTOS */

.socios .simple p{
    margin: 15px 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.socios strong{
    color: #0b3c63;
}

/* RESPONSIVE */

@media (max-width:768px){

    .socios{
        margin: 50px auto;
        padding: 0 18px;
    }

    .socios .titulo{
        font-size: 1.6rem;
    }

    .socios .card{
        padding: 25px;
    }

}



.cards{
    width: min(100%, 700px);
    margin: 0 auto;
}





/*=========================
        SOCIOS
=========================*/

.socios-section{
    max-width:1100px;
    margin:80px auto;
    padding:0 20px;
}

.socios-title{
    text-align:center;
    font-size:2.2rem;
    color:#0a4d8c;
    margin:60px 0 30px;
    font-weight:700;
    position:relative;
}

.socios-title::after{
    content:"";
    width:90px;
    height:4px;
    border-radius:50px;
    background:#ff8c00;
    display:block;
    margin:12px auto 0;
}

.socios-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.socio-box{
    background:#fff;
    border-radius:22px;
    padding:35px;
    border:1px solid #e7edf6;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.socio-box:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.socio-box h3{
    color:#0a4d8c;
    margin-bottom:15px;
    font-size:1.4rem;
}

.socio-box p{
    color:#555;
    line-height:1.7;
}

.socios-info{
    max-width:850px;
    margin:0 auto;
    background:#fff;
    border-radius:22px;
    padding:35px 40px;
    border:1px solid #e7edf6;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.socios-info ul{
    list-style:none;
    padding:0;
    margin:0;
}

.socios-info li{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 0;
    border-bottom:1px solid #ececec;
}

.socios-info li:last-child{
    border-bottom:none;
}

.socios-info li::before{
    content:"✓";
    width:28px;
    height:28px;
    border-radius:50%;
    background:#0a4d8c;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:.85rem;
    flex-shrink:0;
}

.socios-info p{
    margin:12px 0;
    line-height:1.8;
    color:#444;
}

.socios-info strong{
    color:#0a4d8c;
}

@media(max-width:768px){

    .socios-title{
        font-size:1.8rem;
    }

    .socio-box,
    .socios-info{
        padding:25px;
    }

}