/* =========================================
   1. VARIABLES GLOBALES Y RESET
   ========================================= */
:root {
    --color-primary: #AED6F1; 
    --color-secondary: #A2D9CE; 
    --color-tertiary: #F5CBA7; 
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-bg-light: #F4F4F4;
    --color-bg-white: #FFFFFF;
    --transition-duration: 0.5s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden; 
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* --- Botones Generales --- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; 
    white-space: normal; 
    text-align: center;
}

.btn-primary:hover {
    background-color: #8bbceb; 
    transform: translateY(-3px);
}

/* =========================================
   2. NAVEGACIÓN (HEADER)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 9999;
}

.navbar .logo {
    text-decoration: none;
}

/* --- LOGO HEADER (ANIMACIÓN) --- */
.logo-header-wrapper {
    position: relative; 
    width: 85px;
    height: 85px;
    border-radius: 50%; 
    overflow: hidden; 
    background-color: var(--color-bg-white);
    padding: 0; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-header-wrapper img {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.img-normal {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    z-index: 2;
    padding: 6px; 
    object-fit: contain; 
}

.img-bebe {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
    z-index: 1;
    padding: 0;
    object-fit: cover;
}

@media (hover: hover) {
    .logo-header-wrapper:hover {
        transform: scale(1.1);
        cursor: pointer;
        box-shadow: 0 0 0 3px var(--color-primary), 0 8px 20px rgba(0, 0, 0, 0.2); 
    }
    .logo-header-wrapper:hover .img-normal {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    .logo-header-wrapper:hover .img-bebe {
        transform: scale(1.15) rotate(0deg);
        opacity: 1;
    }
}

.logo-header-wrapper:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Botón Hamburguesa (Escritorio: Oculto) */
.hamburger-btn {
    display: none; 
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.hamburger-btn:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* Menú Escritorio */
.navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
}

.navbar ul li {
    margin-left: 1.5rem; 
}

.navbar ul li a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 400;
    position: relative;
    transition: color var(--transition-duration) ease; 
}

.navbar ul li a:hover,
.navbar ul li.active a {
    color: var(--color-primary);
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-out;
}

.navbar ul li a:hover::after,
.navbar ul li.active a::after {
    width: 100%;
}

/* =========================================
   3. SECCIÓN HERO (BANNER)
   ========================================= */
section {
    padding: 8rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.8s ease;
    width: 100%; 
}

.hero-section {
    position: relative;
    padding: 0 5%; 
    height: 85vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text-light); 
    text-align: center;
    overflow: hidden; 
}
#inicio {
    padding-bottom: 1rem !important; /* Antes era 8rem, lo bajamos a 1rem */
    min-height: auto; /* Opcional: deja que se ajuste mejor en pantallas grandes */
}
.hero-background-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; 
}

.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover; 
    object-position: center center;
    display: block;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(174, 214, 241, 0.5) 0%, rgba(162, 217, 206, 0.5) 100%);
    pointer-events: none; 
}

.hero-content {
    animation: fadeInScale 1.5s ease-out forwards;
    width: 100%;
    max-width: 900px; 
    padding: 0 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   4. SECCIONES DE SLIDER (Historia & Tips)
   ========================================= */
.historia-section {
    background-color: var(--color-bg-light);
}
#historia {
    padding-top: 4rem !important;    /* SUBIMOS "Momentos" hacia el banner */
    padding-bottom: 1rem !important; /* Mantenemos pegado "Tips" abajo */
}

#tips {
    padding-top: 1rem !important;    
}

.slider-title {
    transition: transform 0.3s ease;
    cursor: pointer; 
    display: inline-block; 
    color: var(--color-primary); 
}

.slider-title:hover {
    color: var(--color-tertiary); 
    transform: scale(1.05); 
}

.slider-historia {
    margin: 0 auto;
    width: 95%; 
    max-width: 1400px; 
    padding: 2rem 0; 
}

/* Slick Track Flex */
.slick-track {
    display: flex !important;
    gap: 0; 
}

.slick-slide {
    height: auto; 
    display: flex; 
    flex-direction: column;
}

/* --- REGLAS PARA "MOMENTOS" (#historia) - UNIFORMIDAD --- */
#historia .historia-item {
    background-color: #ffffff;
    padding: 10px;              /* Espacio interno para el efecto de "marco" */
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    
    /* Quitamos la altura fija del contenedor para que se adapte a la imagen */
    height: auto !important;   
    width: 100%;
    
    display: flex !important;
    flex-direction: column;
    margin: 0 15px; 
    overflow: hidden;
}

#historia .historia-item img {
    /* CLAVE: Definimos ancho y alto idénticos para todas */
    width: 100%;
    height: 380px;            /* Altura controlada para laptops */
    
    /* CLAVE: 'cover' rellena el espacio sin deformar la imagen */
    object-fit: cover; 
    
    /* Centramos el recorte para que no se pierda lo importante */
    object-position: center; 
    
    border-radius: 12px;      /* Bordes suaves dentro del marco */
    transition: transform 0.5s ease;
}

/* Efecto opcional para que se vea más dinámico al pasar el mouse */
#historia .historia-item:hover img {
    transform: scale(1.03);
}

/* --- REGLAS PARA "TIPS" (#tips) - CORREGIDO PARA QUE NO SE CORTE --- */
.historia-item {
    background-color: var(--color-bg-white);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    margin: 0 15px; 
    /* Base height auto para evitar cortes generales */
    height: auto; 
    display: flex !important; 
    flex-direction: column;
    justify-content: space-between;
}

#tips .historia-item {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Sombra suave */
    margin: 15px;      /* Espacio entre tarjetas */
    padding: 15px;     /* Marco blanco interno */
    height: 100%;      /* Fuerza altura completa del contenedor flex */
    min-height: 500px; /* Altura mínima para uniformidad visual */
    
    display: flex !important; /* Necesario para Slick Slider + Flex */
    flex-direction: column;
    justify-content: flex-start; /* Alinea contenido arriba */
    align-items: center;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03); /* Borde sutil para definición */
}
#tips .historia-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(174, 214, 241, 0.4); /* Sombra azulada al pasar mouse */
}

#tips .historia-item img {
    width: 100%;
    height: 420px;        /* Altura fija para mantener alineación horizontal */
    object-fit: contain;  /* MUESTRA TODO: No recorta nada de la imagen */
    object-position: center;
    background-color: #ffffff; /* Fondo blanco si la imagen es estrecha */
    border-radius: 12px;
    margin-bottom: 1rem;
}

#tips .historia-item h3, 
#tips .historia-item p {
    text-align: center;
    margin: 0;
    width: 100%;
}
.historia-item h3 {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.historia-item p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

@media (hover: hover) {
    .historia-item:hover {
        transform: translateY(-5px); 
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); 
    }
}

/* --- VIDEO SECTION (TEXTO CENTRADO) --- */
.video-entrevista-section {
    text-align: center !important; 
}

.video-entrevista-section p {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    text-align: center !important; 
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 3rem auto;
    max-width: 900px; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

/* Slick Botones */
.slick-prev:before, .slick-next:before {
    color: var(--color-primary) !important; 
    font-size: 35px !important;
}
.slick-dots { bottom: -35px; }
.slick-dots li button:before { color: var(--color-secondary) !important; opacity: 0.5; }
.slick-dots li.slick-active button:before { color: var(--color-primary) !important; opacity: 1; }

/* =========================================
   5. PÁGINAS SECUNDARIAS
   ========================================= */
.page-content {
    padding-top: 160px; 
    padding-bottom: 5rem;
    min-height: 90vh;
    background-color: var(--color-bg-white);
    width: 100%;
}

.page-content h1, 
.politicas-section h1 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    line-height: 1.3;

    /* EFECTO INTERACTIVO */
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
    
    /* Truco para centrar y que el zoom sea solo en el texto */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* AL PASAR EL MOUSE (HOVER) */
.page-content h1:hover, 
.politicas-section h1:hover {
    color: var(--color-tertiary); /* Cambia a color durazno */
    transform: scale(1.05);       /* Efecto Zoom */
}
/* --- FUNDADORA (DISEÑO VERTICAL CENTRADO) --- */
.historia-fundadora-section {
    background-color: var(--color-bg-light);
    text-align: center;
    padding: 4rem 1.5rem; 
}

.fundadora-perfil {
    display: flex;
    flex-direction: column; /* Columna vertical */
    align-items: center;    /* Centrado */
    justify-content: center;
    max-width: 900px;       
    margin: 0 auto;
    gap: 2rem; 
    background-color: var(--color-bg-white); 
    padding: 3rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
}

.fundadora-img {
    width: 250px; 
    height: 250px;
    object-fit: cover;
    border-radius: 50%; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--color-bg-white); 
    outline: 2px solid var(--color-primary); 
    flex-shrink: 0; 
    transition: transform 0.5s ease;
    margin-bottom: 1rem;
}

.fundadora-img:hover {
    transform: scale(1.05) rotate(2deg); 
}

/* TEXTO FUNDADORA - CENTRADO */
.fundadora-info {
    width: 100%; 
    text-align: center !important; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.fundadora-info h3 {
    font-size: 2.2rem; 
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    width: 100%;
    text-align: center; 
}

.fundadora-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    text-align: center !important; 
    max-width: 90%; 
}

.cita {
    font-style: italic;
    color: var(--color-primary);
    background-color: rgba(174, 214, 241, 0.15); 
    border-left: none;
    border-top: 3px solid var(--color-secondary);
    border-bottom: 3px solid var(--color-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
}

/* --- EQUIPO --- */
.team-section { background-color: var(--color-bg-white); }
.slider-equipo {
    margin: 0 auto;
    width: 90%; 
    max-width: 1200px; 
    padding: 2rem 0; 
}
.slider-equipo .team-member {
    display: flex !important;
    flex-direction: column; 
    min-height: 420px; 
    margin: 0 15px; 
    padding: 25px; 
    background-color: var(--color-bg-light);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.team-member h4 {
    color: var(--color-primary); 
    font-size: 1.1rem;
    margin-bottom: 0.2rem; 
    text-align: center;
}
.team-member p {
    font-size: 0.95rem; 
    color: var(--color-text-dark);
    margin-bottom: 0; 
    text-align: center;
}
.team-member img {
    width: 180px; height: 180px; 
    object-fit: cover; object-position: center 15%; 
    border-radius: 50%; 
    margin-bottom: 1rem;
    border: 5px solid var(--color-primary);
    transition: border-color 0.3s ease;
    display: block; margin: 0 auto;
}
@media (hover: hover) {
    .team-member:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); }
    .team-member:hover img { border-color: var(--color-secondary); }
}

/* --- SERVICIOS --- */
.section-description {
    max-width: 800px;
    text-align: center;
    margin-bottom: 3rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    width: 100%;
    max-width: 900px; 
    margin-top: 2rem;
    margin: 2rem auto 0 auto;
}

.servicio-item {
    background-color: var(--color-bg-white); 
    padding: 1.5rem;
    border-radius: 20px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); 
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    border: 1px solid var(--color-bg-light); 
    max-width: 300px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%; 
}

.servicio-item h3 {
    color: var(--color-primary);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.servicio-media-container {
    margin: 1rem 0 2rem 0; /* Puedes reducir el margin-top a 0 si quieres que pegue arriba */
    overflow: hidden;
    border-radius: 15px;
    border: 5px solid var(--color-secondary); 
    box-shadow: 0 0 0 5px var(--color-tertiary), 0 5px 15px rgba(0, 0, 0, 0.2); 
    transition: all 0.5s ease;
    
    /* ESTO ES LO IMPORTANTE: */
    flex-grow: 1;  /* Hace que la imagen ocupe todo el espacio sobrante */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* AGREGA ESTO SI QUIERES QUE TODAS SEAN IGUALES: */
    min-height: 250px; /* Fuerza una altura mínima para uniformidad */
}

/* ESCRITORIO: Altura auto para que crezca según necesite */
.servicio-media-container img {
    width: 100%; height: auto; display: block;
    transition: transform 0.5s ease;
}

.servicio-item .btn-primary {
    width: 100%; max-width: 300px; 
    margin: 1rem auto 0 auto;
    text-align: center; display: block; 
}

@media (hover: hover) {
    .servicio-item:hover {
        transform: translateY(-10px) rotate(1deg); 
        box-shadow: 0 15px 40px rgba(174, 214, 241, 0.5); 
        background-color: var(--color-bg-light); 
    }
    .servicio-item:hover .servicio-media-container {
        border-color: var(--color-primary); 
        transform: scale(1.02);
        box-shadow: 0 0 0 5px var(--color-primary), 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}

/* --- POLÍTICAS --- */
.politicas-section {
    max-width: 900px; margin: 0 auto;
    align-items: flex-start !important; text-align: left;
}
.cita-politicas {
    font-style: italic; color: var(--color-primary);
    border-left: 3px solid var(--color-secondary);
    padding-left: 1.5rem; margin: 1.5rem 0 2rem 0;
    font-size: 1.1rem;
}
.politicas-titulo-seccion {
    margin-top: 2.5rem; margin-bottom: 1rem;
    color: var(--color-primary); font-size: 1.8rem;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 0.5rem;
}
.lista-politicas { margin-left: 2rem; margin-bottom: 2rem; list-style-type: disc; }
.politicas-section h4 {
    color: var(--color-text-dark); font-weight: 600;
    margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.3rem;
}

/* =========================================
   6. CONTACTO Y FOOTER
   ========================================= */
.contacto-section {
    background-color: var(--color-tertiary);
    color: var(--color-text-dark);
}

/* --- TÍTULO CONTACTO: BLANCO Y LEGIBLE (NUEVO) --- */
.contacto-section h2 {
    color: #FFFFFF !important; /* Blanco puro para contraste */
    text-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra suave para legibilidad */
}

.contacto-container {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 3rem; width: 100%; max-width: 900px;
    background-color: var(--color-bg-white);
    border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    padding: 40px 30px; margin: 0 auto;
}

.contact-logo { display: flex; flex-direction: column; align-items: center; text-align: center; }

.logo-circle-wrapper {
    width: 200px; height: 200px;
    border-radius: 50%; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease-in-out; margin-bottom: 20px;
    background-color: var(--color-bg-white); 
    padding: 15px; display: flex; 
    justify-content: center; align-items: center;
}

@media (hover: hover) {
    .logo-circle-wrapper:hover {
        transform: scale(1.1) rotate(5deg); cursor: pointer;
        box-shadow: 0 0 0 3px var(--color-primary), 0 8px 20px rgba(0, 0, 0, 0.2); 
    }
}
.logo-circle-wrapper:active { transform: scale(0.95); transition: transform 0.1s; }

.footer-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; background-color: var(--color-bg-white); }

.social-media { text-align: center; }
.social-media h3 { color: var(--color-text-dark); font-size: 1.5rem; }

.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.social-links a { font-size: 2rem; color: var(--color-text-dark); transition: color 0.3s ease, transform 0.3s ease; }
.social-links a:hover { color: var(--color-primary); transform: scale(1.1); }

/* Email */
.email-contact-wrapper {
    margin-top: 2rem; text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1); 
    padding-top: 1.5rem; width: 100%;
}
.email-label { font-size: 0.95rem; color: var(--color-text-dark); margin-bottom: 0.5rem; opacity: 0.8; }
.email-link {
    display: inline-flex; align-items: center; gap: 10px; 
    font-size: 1.1rem; color: var(--color-primary); text-decoration: none;
    font-weight: 600; transition: all 0.3s ease;
    padding: 10px 20px; border-radius: 50px;
    background-color: rgba(174, 214, 241, 0.1); 
}
.email-link:hover {
    background-color: var(--color-primary); color: var(--color-text-light); 
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(174, 214, 241, 0.4);
}

footer {
    text-align: center; padding: 2rem;
    background-color: var(--color-text-dark); 
    color: var(--color-bg-white); font-size: 1rem;
}
.footer-link-politicas { color: var(--color-secondary); text-decoration: none; transition: color 0.3s ease; font-weight: 400; }
.footer-link-politicas:hover { color: var(--color-primary); text-decoration: underline; }

/* Botones Flotantes */
.floating-buttons-container {
    position: fixed; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 15px; 
    z-index: 9990; 
}
.btn-float {
    width: 45px; height: 45px;
    border-radius: 50%; color: #FFF;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease; font-size: 30px; 
}
.btn-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4); }
.btn-whatsapp { background-color: #25D366; font-size: 34px; }
.btn-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* =======================================================
   9. RESPONSIVE (MÓVIL Y TABLET) - SOLUCIÓN COMPLETA
   ======================================================= */
@media (max-width: 768px) {
    
    /* OPTIMIZACIÓN DE ESPACIO */
    section { padding: 3rem 1rem !important; }
    .hero-section { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* MENU HAMBURGUESA */
    .navbar {
        flex-direction: row; flex-wrap: wrap;
        justify-content: space-between; align-items: center;
        padding: 0.5rem 1.5rem; 
        position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
        background-color: rgba(255, 255, 255, 0.98); 
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .logo-header-wrapper { width: 60px; height: 60px; padding: 4px; }
    .hamburger-btn { display: block; margin-left: auto; }
    
    .nav-links {
        display: none; width: 100%; margin-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05); background-color: #fff;
    }
    .nav-links.active { display: block; animation: slideDown 0.4s ease forwards; }
    
    .navbar ul { flex-direction: column; width: 100%; padding: 0; margin: 0; gap: 0; }
    .navbar ul li { margin: 0; width: 100%; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.03); }
    .navbar ul li:last-child { border-bottom: none; }
    .navbar ul li a { display: block; padding: 15px; font-size: 1.1rem; }
    
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    /* BANNER HERO MOVIL */
    .hero-section {
        height: auto; min-height: auto !important;
        padding-top: 150px !important; padding-bottom: 2rem;
        background: none; 
    }
    .hero-section h1 { font-size: 2rem; margin-bottom: 1rem; line-height: 1.3; }
    .hero-section p { font-size: 1rem; padding: 0 0.5rem; }
    .hero-section .btn-primary { padding: 0.8rem 1.5rem; width: 100%; max-width: 300px; }

    /* PAGE CONTENT PADDING */
    .page-content, .politicas-section { padding-top: 220px !important; }
    .page-content h1, .politicas-section h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; padding: 0 0.5rem; }

    /* --- FUNDADORA MOVIL --- */
    .fundadora-perfil {
        flex-direction: column; 
        padding: 2rem 1rem !important; 
        width: 100%; gap: 1.5rem; box-sizing: border-box;
    }
    .fundadora-img { width: 180px; height: 180px; margin: 0 auto; display: block; }
    
    /* Aseguramos centrado en móvil también */
    .fundadora-info { 
        width: 100%; 
        min-width: auto; 
        text-align: center !important; 
        align-items: center !important; 
        padding: 0; 
    }
    .fundadora-info h3 { text-align: center !important; }
    .fundadora-info p { 
        text-align: center !important; 
        font-size: 1rem; 
        margin: 0 auto 1rem auto; 
    }
    .cita { 
        text-align: center; 
        border-left: none; 
        border-top: 3px solid var(--color-secondary); 
        border-bottom: 3px solid var(--color-secondary); 
        border-radius: 15px; 
        margin-top: 1.5rem; 
    }

    /* SERVICIOS MOVIL (TARJETAS OPTIMIZADAS) */
    .servicios-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }

    .servicio-item {
        max-width: 320px; 
        margin: 0 auto; 
        width: 100%;
        /* CORRECCIÓN: Quitamos altura fija, dejamos que crezca */
        height: auto; 
    }
    
    /* CORRECCIÓN IMAGEN COMPLETA: 
       Quitamos la altura fija de 250px que recortaba la imagen. 
       Ahora se verá completa. */
    .servicio-media-container {
        height: auto !important; 
        aspect-ratio: auto; 
    }
    
    .servicio-media-container img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Muestra toda la imagen sin recortar */
    }

    /* POLÍTICAS MOVIL */
    .politicas-section { padding: 4rem 1.5rem; padding-top: 220px !important; }
    .lista-politicas { margin-left: 1.2rem; }

    /* --- SLIDER HISTORIA & TIPS MOVIL --- */
    .historia-item { margin: 0 5px; height: auto; }

    /* HISTORIA MÓVIL: Mantiene tarjetas altas y rellenas */
    #historia .historia-item {
        height: auto !important; /* Altura libre en móvil */
        padding: 10px !important;
    }
    #historia .historia-item img {
        height: 380px !important; 
        object-fit: cover !important; /* Cover para llenar bien la tarjeta móvil */
        object-position: bottom center !important; /* Protege el logo abajo */
        background-color: #fff;
    }

    /* TIPS MÓVIL: Infografías completas */
   #tips .historia-item {
    margin: 0 10px;           /* Reducimos margen para que la tarjeta sea más ancha */
    padding: 0 !important;    /* Quitamos el borde blanco interno para que la imagen luzca más */
    background-color: #fff; 
    border-radius: 25px;
    height: auto !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Sombra más profunda para que "flote" */
    overflow: hidden;
}

#tips .historia-item img {
    /* CLAVE: Aumentamos drásticamente el alto para que parezca una pantalla de celular */
    height: auto !important; 
    max-height: 75vh !important; /* Ahora ocupa el 75% de la altura de la pantalla del celular */
    
    width: 100% !important;
    object-fit: contain;         /* Mantiene toda la infografía visible sin cortes */
    
    background-color: #fff;      /* Fondo blanco por si la imagen es más angosta */
    display: block;
    margin: 0;
}

/* Ajuste para que el título de la sección no robe tanto espacio arriba */
#tips .slider-title {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.7rem;
}

    /* BOTONES FLOTANTES & CONTACTO */
    .contacto-container { gap: 2rem; padding: 30px 20px; }
    .email-contact-wrapper { width: 100%; padding: 0; overflow: hidden; }
    .email-label { font-size: 0.9rem; padding: 0 10px; word-wrap: break-word; }
    .email-link { width: 100%; flex-direction: column; gap: 8px; padding: 10px; font-size: 0.95rem; white-space: normal; word-break: break-word; text-align: center; }
    
    .floating-buttons-container { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); gap: 12px; }
    .btn-float { width: 35px; height: 35px; font-size: 25px; }
    .btn-whatsapp { font-size: 25px; }
}

/* AJUSTE PANTALLAS PEQUEÑAS */
@media (max-width: 380px) {
    .hero-section h1 { font-size: 1.6rem; }
    .hero-section .btn-primary { font-size: 0.9rem; padding: 0.7rem 1rem; }
    .navbar .logo { font-size: 1.5rem; }
}
/* =========================================
   ESTILOS ESPECÍFICOS PARA SECCIÓN TIPS (#tips)
   Estructura: Tarjetas de altura igual con infografías completas.
   ========================================= */

/* 1. ESTRUCTURA GLOBAL (PC y Base) */
#tips .historia-item {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    margin: 15px;      
    padding: 15px;     
    height: 100%;      /* Fuerza altura completa del contenedor flex */
    min-height: 380px; /* Altura mínima para que todas las cajas sean iguales en PC */
    
    display: flex !important; /* Activa Flexbox para alinear contenido */
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    
    border: 1px solid rgba(0,0,0,0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#tips .historia-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(174, 214, 241, 0.4);
}

#tips .historia-item img {
    width: 100%;
    height: 380px;        /* Altura fija en PC para alineación perfecta */
    object-fit: contain;  /* MUESTRA TODO: No recorta la infografía */
    object-position: center;
    background-color: #ffffff; 
    border-radius: 12px;
    margin-bottom: 1rem;
}

#tips .historia-item h3, 
#tips .historia-item p {
    text-align: center;
    margin: 0;
    width: 100%;
}

/* 2. RESPONSIVE TABLET (Entre 601px y 992px) */
@media (max-width: 992px) {
    #tips .historia-item {
        min-height: 450px;
    }
    #tips .historia-item img {
        height: 350px;
    }
}

/* 3. RESPONSIVE MÓVIL (Menos de 600px) */
@media (max-width: 600px) {
    /* Estilo "Historia de Instagram" */
    #tips .historia-item {
        margin: 0 5px;   
        padding: 10px;   
        min-height: auto; /* En móvil la altura es libre */
    }

    #tips .historia-item img {
        height: auto !important; 
        max-height: 70vh; /* Ocupa gran parte de la pantalla verticalmente */
        object-fit: contain;
    }
    
    /* Ajuste de título para ganar espacio */
    #tips .slider-title {
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }
}