@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* =========================================
   0. ANIMACIONES
   ========================================= */
/* Animación de rebote para el menú móvil */
@keyframes icon-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) translateY(-2px); } /* Sube un poquito y crece */
    100% { transform: scale(1) translateY(0); } /* Regresa a su lugar */
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes slide {
    0% { transform:translateX(-25%); }
    100% { transform:translateX(25%); }
}
@keyframes scroll-left {
    to { transform: translateX(-50%); }
}
@keyframes finisher-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes ripple {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.1); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show {
    0% { opacity: 0.15; }
    50% { opacity: 0.3; }
    100% { opacity: 0.15; }
}

/* =========================================
   1. ESTILOS GENERALES
   ========================================= */
body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(120deg, #ffffff 0%, #fffbfd 100%); 
    color: #444; 
    margin: 0; 
    padding: 0;
    width: 100%;
    max-width: 100vw; 
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. HEADER Y MENÚ
   ========================================= */
.main-header {
    width: 100%;
    display: flex;
    justify-content: center; /* Centrado para mejor balance */
    align-items: center; 
    position: fixed; 
    top: 25px; 
    left: 0;
    z-index: 1000;
    pointer-events: none; 
    padding: 0 20px; 
    box-sizing: border-box;
}

.expanding-menu, .btn-extra-header {
    pointer-events: auto; /* Permite clics solo en los elementos */
    margin: 0 10px; /* Espaciado uniforme entre el menú y el botón extra */
}
/* Esto separará los dos botones y los alineará correctamente */
.header-buttons-container {
    display: flex;
    gap: 15px; /* Espacio de separación entre botones */
    align-items: center;
    margin-left: 20px; /* Separación del menú lateral si es necesario */
}

/* Contenedor del logo gigante */
.logo-hero-container {
    position: fixed; 
    top: 40px;
    left: 50px;
    z-index: 2000;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-hero-container .express-logo {
    width: 180px !important; /* Tamaño XL */
    height: auto !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    animation: entranceLogo 1.2s ease-out, floatLogo 4s ease-in-out infinite;
}

.logo-hero-container img {
    width: 180px; /* Tamaño XL solicitado */
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    animation: entranceLogo 1.2s ease-out, floatLogo 4s ease-in-out infinite;
}

/* Clase que aplicaremos con JS al bajar */
.logo-hidden {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    pointer-events: none;
}

/* Animación de entrada (Aparece y cae un poco) */
@keyframes entranceLogo {
    0% { opacity: 0; transform: translateY(-30px) scale(0.5); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animación de flotación constante */
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-container {
    display: block;
    pointer-events: auto; 
    flex-shrink: 0; 
}

.main-logo-img {
    height: 90px;
    width: auto; 
    object-fit: contain;
    border-radius: 80px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.expanding-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    gap: 10px;
    /* Esto evita que el menú 'salte' al crecer */
    min-height: 60px; 
}

.menu-link {
   display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; /* Tamaño reducido */
    height: 45px;
    font-size: 1.3rem; 
    border-radius: 50px; 
    color: #db3877; 
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.menu-link .link-text {
    font-size: 1.1rem; 
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    margin-left: 0px;
    opacity: 0;
    max-width: 0;
    white-space: nowrap;
    transition: all 0.4s ease;
}

.menu-link:hover {
    background-color: #d30d59;
    color: #ffffff;
    /* Definimos un ancho fijo al expandirse para evitar el parpadeo */
    min-width: 140px; 
    padding: 10px 20px;
}
.link-text {
    font-weight: 700;
    font-size: 1rem;
    /* El texto empieza invisible y sin ancho */
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease, max-width 0.3s ease, margin 0.3s ease;
}

.menu-link:hover .link-text {
    opacity: 1;
    max-width: 100px;
    margin-left: 10px;
}
/* Busca el media query @media (max-width: 768px) y añade esto: */
@media (max-width: 768px) {
    .logo-hero-container {
        left: 20px; /* Menos margen en móvil */
        top: 15px;
    }
    .logo-hero-container img {
        width: 100px; /* Reduce el tamaño del logo en móviles */
    }
}


/* =========================================
   3. HERO SECCIÓN (OPTIMIZADA PARA TODO TIPO DE PANTALLAS)
   ========================================= */
.hero-section {
    width: 100%; 
    height: 100vh; 
    display: flex; 
    background-color: #F1BDC8;
    overflow: hidden; /* Evita scrolls accidentales por zoom */
}

.hero-video-column { 
    flex: 1.1; /* Le da un poco más de prioridad al video para que respire */
    position: relative; 
    overflow: hidden; 
}

.hero-video-element { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    min-width: 100%; 
    min-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: cover;
}

.hero-text-column {
    flex: 0.9; /* Reduce ligeramente el ancho de la columna de texto */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4% 6% !important; 
    box-sizing: border-box;
    z-index: 10;
}

.hero-text-column h1 {
    /* Mínimo 1.8rem, ideal 5vw, máximo 5rem */
    font-size: clamp(2.8rem, 6vw, 3.8rem) !important;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 90%;

    color: #ffffff !important; 
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Sombra muy sutil para contraste */
}

.hero-text-column p {
    font-size: 1.35rem !important; /* Tamaño de lectura profesional */
    line-height: 1.7;
    color: #ffffff;
    max-width: 950px;
    margin-top: 1rem;
    font-weight: 400;
    opacity: 0.95;
}

.hero-buttons { 
   display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* Permite que los botones se pongan uno abajo del otro si no caben */
    justify-content: flex-start;
    margin-top: 2.5rem;
}

.btn-hero { 
    display: inline-block; 
    padding: 12px 28px; 
    border-radius: 30px; 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    font-size: 0.95rem;
    background-image: var(--gradiente-hero); 
    box-shadow: 0 8px 15px var(--color-sombra-hero); 
    transition: all 0.3s ease; 
}

.btn-hero:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 25px var(--color-sombra-hero); 
}

/* Contenedor del título para que no sea gigante */
.clero-main-title-xl {
    font-size: 1.1rem !important; /* Tamaño de lectura cómodo para el párrafo */
    line-height: 1.6;
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    max-width: 850px;
    margin-bottom: 2rem; /* Espacio antes de los botones */
}

/* Estilo para "Nuestro propósito" (Grande y Animado) */
.resaltado-proposito {
    display: inline-block; /* Permite que el texto siga en la misma línea */
    font-size: 2.2rem !important; /* Más grande que el párrafo, pero armonioso */
    font-weight: 900;
    color: #f498a7;
    margin-right: 12px;
    vertical-align: baseline; /* Alinea la base de la letra con el párrafo */
    animation: flotarProposito 3s ease-in-out infinite;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* Animación de respiración suave */
@keyframes flotarProposito {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-5px) scale(1.02); 
        color: #ff6395; /* Cambia ligeramente a naranja */
    }
}

/* Ajuste de los botones para que no queden muy pegados al texto largo */
.hero-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   4. SERVICIOS (VERSION FINAL EXTENDIDA)
   ========================================= */
.servicios-section-full {
    position: relative; 
    width: 100%; 
    max-width: 100vw; 
    overflow: hidden; 
    padding: 12rem 0 4rem 0;
    margin-top: 0;
}

.servicios-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem 2rem;
    position: relative;
    z-index: 2;
}

/* Tarjeta Extra Larga para contener todo el texto */
.servicio-card-expand {
    position: relative;
    width: 100%;
    height: 680px; /* Aumentado significativamente */
    background-color: #fbfbfb;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-bg {
    position: absolute;
    top: -40px; right: -40px;
    width: 100px; height: 100px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.servicio-card-expand:hover .expand-bg { transform: scale(25); }
/* --- EJES DE ACCIÓN EN INDEX.HTML --- */

.eje-card p {
    font-size: 2.6rem; /* Texto más chico y elegante */
    line-height: 2.6;
    color: #555;
    font-weight: 500;
    margin-top: 10px;
}

/* También reducimos un poco el título del eje para que guarde proporción */
.eje-card h3 {
    font-size: 1.2rem; 
    font-weight: 800;
    color: #E98596;
}
/* --- AJUSTES MÓVIL --- */
@media (max-width: 768px) {
    .eje-card p {
        font-size: 0.85rem; /* Aún más pequeño en celular para mejor lectura */
        line-height: 1.5;
    }

    .eje-card h3 {
        font-size: 1.1rem;
    }
}

.expand-content {
   position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Cambia de center a flex-start */
    padding-top: 130px; /* Espacio para que el número del eje no se encime */
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.5s ease;
}

/* Etiqueta Eje - Tamaño Mayor */
.eje-numero-hover {
    position: absolute;
    top: 20px; /* Posición alta fija */
    font-weight: 800;
    font-size: 1.8rem; /* Letras más grandes */
    color: rgb(105, 100, 100);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    z-index: 10;
}

.servicio-card-expand:hover .eje-numero-hover {
    opacity: 1;
    transform: translateY(0);
}

/* Ocultar AMBOS textos y el icono al acercar el mouse */
.servicio-card-expand:hover .expand-icon,
.servicio-card-expand:hover .expand-title,
.servicio-card-expand:hover .expand-eje-label { /* <--- Agrega esta línea */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.8);
}
.expand-eje-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #d4465d; 
    margin-bottom: 5px;
    transition: all 0.4s ease; /* <--- IMPORTANTE para que se desvanezca suave */
    display: block;
}

h3.expand-title + h3.expand-title {
    margin-top: 5px;      /* Espacio pequeño entre "Eje 1" y "Albergue" */
    margin-bottom: 30px;  /* <--- ESPACIO GRANDE entre el título y la descripción */
}

.img-eje-custom {
    width: 70px;
    height: auto;
    margin-bottom: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-title {
    font-size: 1.5rem; /* Un poco más grande para que destaque */
    font-weight: 700;
    color: #E63C7D; 
    margin: 0;
    transition: all 0.4s ease;
    display: block; /* Asegura que cada título tome su propia línea */
}

.expand-desc {
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    text-align: left; 
    text-justify: inter-word; 
    
    /* CAMBIO AQUÍ: Bajamos de 1.1rem a 0.95rem */
    font-size: 1.1rem; 
    font-weight: 700; 
    line-height: 1.2; /* Ajustamos el interlineado para que no se vea tan pegado */
    color: #444;
    padding: 0 20px; 
}

.expand-eje-label, .expand-title {
    font-size: 1.3rem; /* Bajamos de 1.5rem a 1.3rem para que sea proporcional */
    transition: all 0.4s ease;
}
.servicio-card-expand:hover .expand-content {
    /* Al hacer hover, alineamos arriba para dejar espacio al texto */
    justify-content: flex-start;
    padding-top: 80px; 
}
.servicio-card-expand:hover .img-eje-custom {
    /* El icono se reduce y sube suavemente antes de desaparecer */
    transform: translateY(-20px) scale(0.5);
    opacity: 0;
    visibility: hidden;
}


.servicio-card-expand:hover .expand-desc {
    opacity: 1;
    max-height: 600px; /* Aseguramos que nada lo corte */
    transform: translateY(-160px); /* Aumenta este número negativo para subir el texto */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.expand-desc p { 
    margin-bottom: 12px; 
}

/* Ajustes para Eje 4 */
.light-card:hover .eje-numero-hover,
.light-card:hover .expand-desc {
    color: #636363 !important;
}
/* --- COLORES PERSONALIZADOS PARA LAS ETIQUETAS DE EJE --- */

/* Eje 1 - Color Rosa */
.servicios-container .servicio-card-expand:nth-child(1) .expand-eje-label {
    color: #E98596 !important;
}

/* Eje 2 - Color Naranja */
.servicios-container .servicio-card-expand:nth-child(2) .expand-eje-label {
    color: #fd8f35 !important;
}

/* Eje 3 - Color Naranja */
.servicios-container .servicio-card-expand:nth-child(3) .expand-eje-label {
    color: #F1BDC8 !important;
}

/* Eje 4 - Color Rosa */
.servicios-container .servicio-card-expand:nth-child(4) .expand-eje-label {
    color: #ea3b58 !important;
}

/* Responsivo */
@media (max-width: 1200px) {
    .servicios-container { grid-template-columns: repeat(2, 1fr); }
    .servicio-card-expand { height: 900px; }
}
@media (max-width: 600px) {
    .servicios-container { grid-template-columns: 1fr; }
}

/* =========================================
   SECCIÓN IMPACTO - ANIMACIÓN INSTITUCIONAL
   ========================================= */

.impacto-section {
    width: 100%;
    padding: 2rem 0 6rem 0 !important; /* Subimos la sección eliminando padding superior excesivo */
    background: linear-gradient(135deg, #FFE3E6 0%, #F1BDC8 100%);
    text-align: center;
}

.titulo-impacto-colores {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 0 !important;
    /* text-transform: uppercase;  <--- ELIMINA O COMENTA ESTA LÍNEA */
    text-transform: none;      /* <--- AGREGA ESTA PARA RESPETAR EL HTML */
    background: linear-gradient(to right, #F1BDC8, #E98596, #F9B680, #F1BDC8);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorFlow 4s linear infinite;
    width: 100%;
}

/* Animación 1: Flujo de colores institucional */
@keyframes colorFlow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* Animación 2: Revelado con escala y suavizado */
@keyframes revealTitle {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Estilos para las tarjetas de estadísticas */
.stats-grid {
    display: flex !important; /* Usamos flex para asegurar que se acuesten */
    flex-direction: row !important; /* Fuerza la dirección horizontal */
    justify-content: center !important;
    align-items: stretch !important;
    gap: 2rem !important;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
}
.stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.5); /* Tarjetas semi-transparentes */
    padding: 2rem;
    border-radius: 25px;
    min-width: 250px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.8);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem) !important; /* Números grandes y legibles */
    font-weight: 800;
    color: #E98596; /* Rosa fuerte institucional */
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 1px;
}

/* Responsivo */
@media (max-width: 768px) {
    .titulo-impacto-colores { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column !important; /* Apilarlos verticalmente en móvil */
        gap: 1.5rem !important;
    }
    .stat-item {
        min-width: unset; /* Quita el ancho mínimo para que use el 100% */
    }
}

/* =========================================
   8. RECONOCIMIENTOS
   ========================================= */
.reconocimientos-section { width: 100%; margin: 4rem auto; padding: 6rem 2rem; box-sizing: border-box; text-align: center; position: relative; overflow: hidden; background: #dbd0d3; }
.reconocimientos-content { position: relative; z-index: 2; }
.reconocimientos-section h2 { 
    font-size: 6.5rem; /* Un poco más grande para mayor impacto */
    font-weight: 800; 
    color: #F9B680; 
    margin-bottom: 4rem; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}.ripple-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.circle { position: absolute; border-radius: 50%; animation: ripple 8s infinite ease-in-out alternate; }
.small { width: 400px; height: 400px; bottom: -200px; left: -200px; z-index: 5; }
.medium { width: 800px; height: 800px; bottom: -400px; left: -400px; z-index: 4; }
.large { width: 1200px; height: 1200px; bottom:-659px ; left:-659px ; z-index :3 ; }
.xlarge { width: 1600px; height: 1600px; bottom: -800px; left: -800px; z-index: 2; }
.xxlarge { width: 2200px; height: 2200px; bottom: -1100px; left: -1100px; z-index: 1; }
.shade5 { background: rgba(197, 29, 74, 0.15); animation-delay: 0s; }
.shade4 { background: rgba(255, 148, 178, 0.2); animation-delay: 0.5s; }
.shade3 { background: rgba(255, 227, 230, 0.4); animation-delay: 1s; }
.shade2 { background: #ffeef2; animation-delay: 1.5s; }
.shade1 { background: #fff0f4; animation-delay: 2s; }

.reconocimientos-grid { 
    display: grid; 
    /* Cambiamos a tarjetas más anchas */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 3rem; 
    max-width: 1300px; /* Aumentado para dar más espacio lateral */
    margin: 0 auto; 
    position: relative; 
    z-index: 10; 
}
.reconocimiento-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(5px); 
    border-radius: 30px; /* Bordes más redondeados y suaves */
    padding: 2rem; /* Más espacio interno para que el logo respire */
    box-shadow: 0 15px 35px rgba(197, 29, 74, 0.08); 
    transition: all 0.4s ease; 
    min-height: 200px; /* Asegura una altura uniforme más grande */
    justify-content: center;
}
.reconocimiento-item:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(197, 29, 74, 0.2); }
.reconocimiento-img-wrapper { 
    height: 160px; /* Aumentado de 80px a 120px para que el logo luzca más */
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 1.5rem; 
    overflow: hidden;
}
.reconocimiento-item img { 
    max-height: 100%; 
    max-width: 90%; /* Permite que el logo ocupe casi todo el ancho disponible */
    width: auto; 
    object-fit: contain; 
}
.reconocimiento-item h3 { 
    font-size: 2rem; /* Año más grande para equilibrar el nuevo tamaño */
    font-weight: 700; 
    color: #C51D4A; 
}
/* =========================================
   10. CÓMO AYUDAR (VERSION ESCALADA XL)
   ========================================= */
.como-ayudar-section { 
    width: 100%; 
    max-width: 1300px; 
    margin: 0 auto !important; 
    padding: 3rem 4rem 6rem 4rem !important;
    text-align: center; 
    box-sizing: border-box; /* Asegura que el padding no aumente el ancho total */
}

.como-ayudar-section h2 { 
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important; 
    font-weight: 800; 
    color: #E98596; 
    margin-top: 0 !important;
    margin-bottom: 3.5rem !important; 
}

.ayudar-grid { 
    display: flex !important; /* Cambiamos a Flex para alineación horizontal perfecta */
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 1rem !important;
    width: 100%;
    margin: 0 auto;
}

.ayudar-card { 
    flex: 1; 
    background-color: #fff0f3; 
    border-radius: 35px; 
    padding: 2.5rem 1.5rem !important; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); 
    
    /* --- CAMBIOS AQUÍ --- */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between; /* Empuja los elementos a los extremos */
    min-height: 450px; /* Ajusta este valor según el tamaño que quieras que tengan todas */
    transition: all 0.4s ease; 
}

.ayudar-card:hover {
    transform: translateY(-15px); /* Elevación más pronunciada */
    box-shadow: 0 20px 50px rgba(233, 133, 150, 0.2);
}

.ayudar-img-wrapper { 
    width: 105px !important; 
    height: 105px !important; 
    border-radius: 50%; 
    overflow: hidden; 
    margin-bottom: 2rem; 
    border: 5px solid #fff; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.ayudar-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.ayudar-card:hover .ayudar-img-wrapper img {
    transform: scale(1.1); /* Efecto zoom en la foto al pasar el mouse */
}

.ayudar-card h3 { 
    font-size: 1.4rem !important; 
    font-weight: 800; 
    color: #E98596; 
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ayudar-content p {
    /* Texto descriptivo más grande */
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
}

.btn-ayudar { 
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta */
    display: inline-block; 
    padding: 15px 35px; /* Botón más grande */
    border-radius: 50px; 
    border: none; 
    color: #636363; 
    font-weight: 700; 
    font-size: 1.1rem; 
    cursor: pointer; 
    background-image: var(--gradiente-btn); 
    box-shadow: 0 10px 20px var(--sombra-btn); 
    transition: all 0.3s ease; 
}
/* --- ESTADO INICIAL: Texto Oculto por defecto --- */
.ayudar-content {
    flex-grow: 1; /* Esto hace que el área de texto ocupe todo el espacio disponible */
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 0;           /* Altura cero para ocultar */
    opacity: 0;              /* Invisible */
    overflow: hidden;        /* Corta el texto sobrante */
    margin-bottom: 0;        /* Sin espacio extra abajo */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Animación suave */
    
    /* Estilo del texto */
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* --- ESTADO ABIERTO: Se activa al hacer clic (vía clase .tarjeta-abierta) --- */
.ayudar-card.tarjeta-abierta .ayudar-content {
    max-height: 300px;       /* Suficiente altura para mostrar el párrafo */
    opacity: 1;              /* Se vuelve visible */
    margin-bottom: 2rem;     /* Espacio entre el texto y el botón */
}

/* Ajuste opcional para el botón cuando la tarjeta está abierta */
.ayudar-card.tarjeta-abierta .btn-ayudar {
    transform: scale(0.95);
    background-image: linear-gradient(135deg, #F1BDC8 0%, #E98596 100%);
    color: white;
}
@media (max-width: 768px) {
    /* Forzamos que las tarjetas se apilen una tras otra */
    .ayudar-grid {
        flex-direction: column !important; 
        align-items: center !important;
        padding: 0 1rem !important;
        gap: 1.5rem !important; /* Espacio entre tarjetas */
    }

    .ayudar-card {
        width: 100% !important; /* Que ocupen todo el ancho disponible */
        max-width: 400px; /* Para que no se vean gigantes en tablets pequeñas */
        min-height: auto !important; /* Evita espacios vacíos innecesarios */
        padding: 2rem 1.5rem !important;
    }

    /* Ajuste para que el contenido expandible no rompa el diseño */
    .ayudar-card.tarjeta-abierta .ayudar-content {
        max-height: 500px; /* Suficiente espacio para el texto móvil */
    }
}
@media (max-width: 768px) {
    .ayudar-card:hover {
        transform: scale(1.02); /* Un ligero crecimiento en lugar de saltar hacia arriba */
    }
}

/* --- SECCIÓN INFORMES XL --- */
.informes-section-xl {
    width: 100%;
    /* Aumentamos el padding inferior para que luzcan las olas */
    padding: 6rem 4rem 12rem 4rem !important; 
    background: linear-gradient(135deg, #fffafa 0%, #fff0f3 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.informes-content-container {
    position: relative;
    z-index: 5;
    /* Reducimos de 1400px a 1250px para laptops de 1366px */
    max-width: 1250px; 
    margin: 0 auto;
}
/* 2. ESTILOS DE LAS OLAS */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Altura de las olas */
    min-height: 100px;
    max-height: 150px;
    z-index: 1; /* Se queda al fondo */
}
.waves {
    position: relative;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .waves-container {
        height: 60px;
    }
    .informes-section-xl {
        padding: 4rem 1rem 8rem 1rem !important;
    }
}
/* 3. ANIMACIÓN PARALLAX (Movimiento de olas) */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}
/* Título mucho más grande y animado */
.titulo-informes-xl {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem) !important; /* Ajustado a escala 75% */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #E63C7D, #F9B680, #E63C7D);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowGradient 5s linear infinite;
}

@keyframes flowGradient {
    to { background-position: 200% center; }
}

/* Texto descriptivo escalado */

.descripcion-informes-xl {
    font-size: 1.2rem; /* Aumentado para mayor impacto visual */
    color: #555; /* Un tono un poco más oscuro para que resalte sobre el fondo rosa claro */
    font-weight: 600; /* Grosor medio para darle más cuerpo a las letras */
    max-width: 900px; /* Un poco más ancho para acomodar el texto más grande */
    margin: 0 auto 3rem auto;
    margin-bottom: 3rem;
    line-height: 1.4;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

/* Grid de botones de años grandes */
.grid-informes-botones {
    display: grid;
    /* Ajustamos el minmax de 180px a 160px para que quepan más en una fila sin desbordar */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 1.5rem; /* Espacio entre botones un poco más compacto */
    padding: 1rem 0;
    width: 100%;
}

/* Estilo Premium para los Cuadros de Año */
.btn-informe-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px; /* Cuadros más altos */
    border-radius: 20px;
    text-decoration: none;
    font-weight: 800 !important;
    font-size: 1.2rem; /* Texto del año más grande */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    color: #E98596;
    border: 3px solid #FFE3E6;
    box-shadow: 0 10px 25px rgba(233, 133, 150, 0.1);
}

.btn-informe-xl:hover {
    transform: translateY(-12px) scale(1.05);
    background: #E98596;
    color: white;
    border-color: #E98596;
    box-shadow: 0 15px 35px rgba(233, 133, 150, 0.4);
    font-weight: 900 !important; /* Negrita aún más intensa en hover */
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .titulo-informes-xl { font-size: 3.2rem; }
    .descripcion-informes-xl { font-size: 1.3rem; }
    .grid-informes-botones { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .btn-informe-xl { height: 70px; font-size: 1.2rem; }
}
.svg-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Queda detrás del contenido */
    pointer-events: none; /* No interfiere con los clics de los botones */
}
.svg-background svg {
    width: 100%;
    height: 100%;
}

.informes-content-wrapper { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.informes-section h2 { font-family: 'Poppins', sans-serif; font-size: 3rem; font-weight: 700; color: #E63C7D; margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(255,255,255,0.5); }
.informes-section p { font-family: 'DM Sans', sans-serif; font-size: 1.15rem; line-height: 1.6; color: #444; max-width: 800px; margin: 0 auto 1rem auto; }
.informes-buttons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); justify-content: center; gap: 1rem; padding: 2rem 1rem 0 1rem; max-width: 900px; margin: 0 auto; }

#red { fill: none; opacity: 0.15; stroke: #E63C7D; stroke-width: 12; stroke-miterlimit: 10; animation: show 4s forwards infinite ease-in-out; }
#blue { fill: none; opacity: 0.15; stroke: #F9B680; stroke-width: 12; stroke-miterlimit: 10; animation: show 4s forwards infinite ease-in-out; animation-delay: 1s; }
#light-blue { fill: none; opacity: 0.5; stroke: #E98596; stroke-width: 6; stroke-miterlimit: 10; stroke-dasharray: 200; stroke-dashoffset: 800; animation: draw 4s forwards infinite ease-in-out; }

.btn-informe { display: inline-block; padding: 12px 0; border-radius: 12px; text-decoration: none; color: #ffffff; font-weight: 600; font-family: 'DM Sans', sans-serif; font-size: 1.1rem; cursor: default; text-align: center; background-image: linear-gradient(135deg, #e98596 0%, #e98596 100%); box-shadow: 0 6px 15px rgba(241, 88, 124, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-informe:nth-child(even) { background-image: linear-gradient(135deg, #FFE3E6 0%, #FFE3E6 100%); box-shadow: 0 6px 15px rgba(255, 64, 156, 0.3); }
.btn-informe:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }


/* =========================================
   13. MARCAS BENEFICIARIAS (LOGOS GRANDES Y TÍTULO FIJO)
   ========================================= */

.beneficiarias-section { 
    width: 100%; 
    margin: 0 auto; /* Eliminamos el margen superior */
    padding: 1rem 0 4rem 0; /* Padding superior mínimo de 2rem */
    box-sizing: border-box; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Título imponente y fijo arriba */
.beneficiarias-section h2 { 
    font-size: clamp(5.5rem, 5vw, 4rem) !important; /* Ajustado a la escala 75% que usamos */
    font-weight: 800; 
    color: #F9B680; 
    margin-top: 0;
    margin-bottom: 1.5rem; /* Reducido de 5rem para que los logos suban */
    text-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 10;
}

.logo-scroller { 
    width: 100%; 
    max-width: 100%; 
    overflow: hidden; 
    /* Efecto de desvanecimiento a los lados para los logos */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); 
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 1rem 0;
}

/* Tarjetas blancas extra grandes para máximo impacto de marca */
.logo-item { 
    width: 350px; /* Aumentado de 280px para mayor impacto */
    height: 240px; /* Altura optimizada para laptops */
    flex-shrink: 0; 
    background: #ffffff; 
    border-radius: 35px; /* Bordes más redondeados */
    border: 1px solid #f0f0f0; 
    box-shadow: 0 20px 45px rgba(0,0,0,0.05); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 2rem; /* Más aire interno para que el logo no toque los bordes */
    box-sizing: border-box; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

/* Ajuste de imagen para tamaño máximo sin distorsión */
.logo-item img { 
    width: 95%; 
    height: 95%; 
    object-fit: contain; 
    filter: none; 
    opacity: 1; 
    transition: transform 0.5s ease;
}

/* Animaciones al interactuar */
.logo-item:hover { 
    transform: translateY(-15px) scale(1.05); 
    box-shadow: 0 30px 60px rgba(233, 133, 150, 0.2); /* Sombra con toque rosa */
}

.logo-item:hover img {
    transform: scale(1.08); /* El logo crece sutilmente */
}

.scroller-inner { 
    display: flex; 
    flex-wrap: nowrap; 
    width: max-content; 
    gap: 4rem; 
    animation: scroll-testimonios 40s linear infinite; /* Animación activada */
}
@keyframes scroll-testimonios {
    to { transform: translateX(calc(-50% - 1.5rem)); }
}
.testimonial-scroller:hover .scroller-inner {
    animation-play-state: paused;
}
/* Animación de scroll infinito */
@keyframes scroll-left {
    to { transform: translateX(calc(-50% - 2rem)); }
}

.logo-scroller[data-animated="true"] .scroller-inner { 
    animation: scroll-left 55s linear infinite; 
}

/* Pausar al pasar el mouse para facilitar la lectura */
.logo-scroller:hover .scroller-inner {
    animation-play-state: paused;
}

/* =========================================
   14. GALERÍA ACORDEÓN (SOLO PC)
   ========================================= */
/* --- SECCIÓN CARRUSEL PREMIUM XL --- */
.comunidad-carrusel-premium {
    width: 100%;
    padding: 8rem 0;
    background-color: #ffffff;
    overflow: hidden;
}

.subtitulo-comunidad-xl {
    font-size: 1.8rem;
    color: #666;
    text-align: center;
    margin-bottom: 5rem;
}

.carrusel-premium-container {
    width: 100%;
    height: 450px; /* Altura sugerida para que no se vea vacío */
    position: relative;
    overflow: hidden;
    background-color: transparent; /* Quitamos fondos que distraigan */
}

/* 3. Ajuste para que el carrusel se mueva correctamente con imágenes completas */
.carrusel-premium-track {
    display: flex;
    width: max-content; /* IMPORTANTE: Esto elimina la separación excesiva entre fotos */
    height: 100%;
    animation: scrollLento 60s linear infinite;
}

.carrusel-premium-slide {
    width: auto; /* Permite que cada imagen use solo el ancho que necesita */
    height: 100%;
    flex-shrink: 0;
    padding: 15px; /* Un pequeño espacio de 10px para que no estén totalmente pegadas */
}

.carrusel-premium-slide img {
    width: auto; /* Mantiene la proporción original */
    height: 100%; /* Ocupa toda la altura del contenedor */
    object-fit: contain; /* Asegura que la imagen se vea íntegra */
    border-radius: 30px; /* Opcional: bordes redondeados para estilo moderno */
}

/* Animación de desplazamiento pausado */
/* 5. Ajuste de la animación */
@keyframes scrollLento {
    0% { transform: translateX(0); }
    /* Ajustamos para que el scroll sea infinito según el contenido real */
    100% { transform: translateX(-50%); } 
}

/* Interacción al pasar el mouse */
.carrusel-premium-container:hover .carrusel-premium-track {
    animation-play-state: paused; /* Se detiene para que puedan ver la foto */
}

.carrusel-premium-slide:hover img {
    transform: scale(1.05); /* Efecto zoom suave */
    filter: brightness(1.1);
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .carrusel-premium-container { height: 450px; }
    .subtitulo-comunidad-xl { font-size: 1.3rem; }
}

/* =========================================
   16. TESTIMONIOS AISLADOS
   ========================================= */
.testimonios-aislados-section { 
    width: 100%; 
    margin: 6rem auto; 
    padding: 5rem 0; 
    background-color: #FFF8FA; 
    border-top: 1px solid #ffeef2; 
    overflow: hidden; 
}
.testimonial-scroller { 
    max-width: 100%; /* Permitimos que ocupe todo el ancho para el movimiento */
    margin: 0 auto; 
}

.testimonial-card { 
    width: 320px;        /* Reducido de 500px a 380px para que sea más esbelto */
    min-height: 280px;   /* Reducido de 400px para que no sobre tanto espacio vertical */
    min-width: 350px;
    flex-shrink: 0; 
    background: #ffffff; 
    border-radius: 25px; 
    padding: 1.5rem;     /* Reducido un poco el padding interno (antes 3.5rem) */
    box-shadow: 0 15px 35px rgba(230, 60, 125, 0.1); 
    border: 2px solid #f1bdc8; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
    border-color: #E98596;
}

.testimonial-card img { 
    width: 70px; /* Foto más grande */
    height: 70px; 
    border-radius: 50%; 
    margin-bottom: 1rem; 
    object-fit: cover; 
    border: 4px solid #FFE3E6;
}
.testimonio-texto {
    font-size: 1.05rem;    /* Reducido de 1.45rem para ajustarse al nuevo tamaño del cuadro */
    line-height: 1.4; 
    color: #555; 
    font-style: italic; 
    margin-bottom: 1.5rem; 
    font-family: 'DM Sans', sans-serif;
}
.paciente-nombre {
    font-weight: 800;
    color: #E63C7D;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.eje-tag {
    display: inline-block;
    background-color: #FFE3E6;
    color: #E98596;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
/* =========================================
   17. ESTILOS AGRADECIMIENTO (ESCALADO XL)
   ========================================= */
.agradecimiento-fondo-seccion {
    width: 100%; 
    /* Aumentamos la altura de la foto de fondo */
    min-height: 700px; 
    background-color: #222; 
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('./Copia de IMG-20240820-WA0055.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; /* Agregué efecto parallax para que se vea más profesional */
    display: flex; 
    align-items: center; 
    padding: 4rem 2rem; 
    box-sizing: border-box;
}

.alinear-derecha-container { 
    width: 100%; 
    max-width: 1300px; /* Contenedor más ancho */
    margin: 0 auto; 
    display: flex; 
    justify-content: center; 
}

.tarjeta-rosa-texto { 
    background-color: rgba(233, 133, 150, 0.92); 
    color: #ffffff; 
    /* Cuadro de texto mucho más grande */
    max-width: 850px; 
    padding: 5rem 4rem; 
    border-radius: 40px; 
    text-align: center; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(255,255,255,0.2);
}

.tarjeta-rosa-texto p { 
    font-family: 'Poppins', sans-serif; 
    /* Letras más grandes para legibilidad */
    font-size: 1.8rem; 
    line-height: 1.5; 
    margin: 0; 
}

.tarjeta-rosa-texto strong { 
    font-weight: 800; 
    color: #fff; 
}

.icono-rosa-blanco { 
    /* Icono más grande para acompañar el texto */
    font-size: 5rem; 
    margin-bottom: 2rem; 
    display: inline-block; 
}

/* Ajuste para tablets y móviles */
@media (max-width: 768px) {
    .agradecimiento-fondo-seccion { min-height: 500px; }
    .tarjeta-rosa-texto { padding: 3rem 2rem; }
    .tarjeta-rosa-texto p { font-size: 1.4rem; }
}

/* =========================================
   18. TÍTULO ANIMADO "EJES DE ACCIÓN CRUZ ROSA"
   ========================================= */
.titulo-ejes-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-bottom: 5rem; 
    padding: 2rem 0; 
    position: relative; 
    z-index: 5; 
}

.ejes-article-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ejes-p-anim {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 5.5rem; 
    margin: 0;
    position: relative;
    overflow: hidden;
    line-height: 1.1;
    /* text-transform: uppercase;  <--- ELIMINA ESTA LÍNEA O COMENTALA */
    text-transform: none; /* <--- O CAMBIALA POR ESTA */
    letter-spacing: -2px;
    cursor: pointer;
    display: inline-block;
}

.ejes-p-anim:hover span {
    color: #E98596 !important; /* Cambia todas las palabras a rosa institucional */
    transition: color 0.4s ease; /* Hace que el cambio sea suave */
}

/* Colores específicos solicitados */
.txt-gris { color: #636363; }
.txt-naranja { color: #F9B680; }
.txt-rosa { color: #E98596; }

/* Línea blanca que cruza horizontalmente en el hover */
.ejes-p-anim:before { 
    content: ""; 
    width: 100%; 
    height: 8px; 
    background: #E98596; 
    position: absolute; 
    left: -100%; 
    top: 50%; 
    transition: transform 0.8s cubic-bezier(1, -0.04, 0, 1.16); 
    z-index: 10; 
}

/* Capas divididas para el efecto de texto blanco */
.ejes-split { 
    display: block; 
    position: absolute; 
    height: 50%; 
    width: 100%; 
    overflow: hidden; 
    left: 0; 
    z-index: 2; 
}

.ejes-split:before { 
    content: attr(data-text); 
    color: #E98596; 
    display: block; 
    width: 100%; 
    transition: all 0.4s ease-out; 
}

.ejes-split.top { top: 0; } 
.ejes-split.top:before { transform: translateY(100%); }

.ejes-split.bottom { 
    bottom: 0; 
    display: flex; 
    align-items: flex-end; 
} 
.ejes-split.bottom:before { transform: translateY(-100%); }

/* --- EFECTO HOVER --- */
.ejes-p-anim:hover:before { 
    transform: translateX(200%); 
}

.ejes-p-anim:hover .ejes-split:before { 
    transition-delay: 0.2s; 
    transform: translateY(0); 
}

/* Estilo para el subtítulo del número de eje en las tarjetas */
.eje-numero {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #F9B680 !important; /* Color naranja para que contraste */
}
.ejes-p-anim {
    font-size: clamp(2.5rem, 8vw, 5.5rem); /* Ajusta el mínimo a 2.5rem para móviles */
}
@media (max-width: 768px) {
    .servicio-card-expand {
        height: auto; /* Que la tarjeta crezca según el texto */
        min-height: 450px;
        padding-bottom: 20px;
    }
    
    /* El efecto hover de "expandir" no funciona igual en touch, 
       es mejor que el texto sea visible o se active con un tap simple */
    .servicio-card-expand:hover .expand-desc {
        font-size: 0.85rem; /* Aún más pequeño en celular */
        padding: 0 15px;
        transform: translateY(0); /* Evita que el texto suba demasiado y tape todo */
    }
}
/* --- TEXTO DE LOS EJES (HOSPEDAJE, NUTRICIÓN, ETC) --- */


/* =========================================
   19. EFECTO SPLIT IMAGE (SOLO MÓVIL)
   ========================================= */
.mobile-split-gallery { display: none; width: 100%; padding: 4rem 0; background-color: #fff; text-align: center; }

.split-image-container { position: relative; width: 300px; height: 300px; margin: 2rem auto; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 1rem; }
.quadrant { position: absolute; width: 50%; height: 50%; background-image: url('./Copia de IMG-20240820-WA0055.jpg'); background-size: 300px 300px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(255,255,255,0.2); }

.quadrant-1 { top: 0; left: 0; background-position: top left; border-top-left-radius: 1rem; }
.quadrant-2 { top: 0; right: 0; background-position: top right; border-top-right-radius: 1rem; }
.quadrant-3 { bottom: 0; left: 0; background-position: bottom left; border-bottom-left-radius: 1rem; }
.quadrant-4 { bottom: 0; right: 0; background-position: bottom right; border-bottom-right-radius: 1rem; }

.split-image-container:active .quadrant-1, .split-image-container:hover .quadrant-1 { transform: translate(-15px, -15px); }
.split-image-container:active .quadrant-2, .split-image-container:hover .quadrant-2 { transform: translate(15px, -15px); }
.split-image-container:active .quadrant-3, .split-image-container:hover .quadrant-3 { transform: translate(-15px, 15px); }
.split-image-container:active .quadrant-4, .split-image-container:hover .quadrant-4 { transform: translate(15px, 15px); }


/* =========================================
   20. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        height: auto;
    }
    .hero-text-column, .hero-video-column {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .reconocimientos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Ajustes Texto */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.8rem !important; }
    p { font-size: 1rem !important; }
    .ejes-anim-text { font-size: 3rem; letter-spacing: -1px; }

    /* Header */
    .main-header { top: 15px; bottom: auto; padding: 0 15px; flex-direction: column; gap: 15px; pointer-events: none; }
    .logo-container { display: block; pointer-events: auto; }
    .main-logo-img { height: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

    /* Menú Fijo (Solo Iconos) */
    .expanding-menu { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; height: 65px; justify-content: space-between; padding: 0 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); overflow: hidden; z-index: 9999; }
    .menu-link { width: 40px !important; height: 40px !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 50%; }
    .menu-link .link-text { display: none !important; }
    .menu-link ion-icon { font-size: 1.6rem; color: #db3877; }
    .menu-link:active, .menu-link:focus { background-color: #ffe3e6 !important; transform: scale(1.1); }

    /* Contenedores */
    .servicios-container, .ayudar-grid, .stats-grid, .reconocimientos-grid, .informes-buttons-grid { grid-template-columns: 1fr !important; width: 100% !important; padding: 0 1rem; gap: 2rem; }
    .logo-scroller, .testimonial-scroller { width: 100vw; max-width: 100%; overflow: hidden; }
    
    /* Hero */
    .hero-section { flex-direction: column; height: auto; min-height: 100vh; }
    .hero-video-column { width: 100%; height: 50vh; }
    .hero-text-column { width: 100%; padding: 2rem 1rem; text-align: center; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px;}
    .btn-hero { width: 100%; box-sizing: border-box; }

    /* Agradecimiento */
    .agradecimiento-fondo-seccion { min-height: 400px; padding: 2rem 1rem; background-attachment: scroll; }
    .tarjeta-rosa-texto { width: 100%; padding: 2rem; }

    /* Galerías */
    .galeria-acordeon { display: none !important; }
    .mobile-split-gallery { display: flex; flex-direction: column; align-items: center; justify-content: center; }

    section { padding-top: 3rem !important; padding-bottom: 3rem !important; width: 100%; overflow: hidden; }
}
.ubicaciones-grid-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 3rem;
    max-width: 1450px; /* Ancho XL para ocupar más pantalla */
    margin: 0 auto;
}
    
    
    .anim-title {
        font-size: 2rem; /* Título más pequeño */
    }

@media (max-width: 600px) {
    .ayudar-card h3 { min-height: auto; }
}

/* Animación Scroll Servicios Móvil */
.servicio-card-expand.mobile-active .expand-bg { transform: scale(14); }
.servicio-card-expand.mobile-active .expand-desc { opacity: 1; transform: translateY(0); max-height: 200px; }
.servicio-card-expand.mobile-active .expand-content { color : #f3f3f3; }
.servicio-card-expand.mobile-active .expand-icon { transform: scale(1.1); margin-bottom: 0.5rem; }
.servicio-card-expand.light-card.mobile-active .expand-content { color: #C2185B; }

/* --- SECCIÓN UBICACIONES XL (PANTALLA COMPLETA) --- */
.ubicaciones-animadas-section {
    width: 100%;
    padding: 2rem 0 0 0;
    background-color: #ffffff;
    text-align: center;
}

.ubicaciones-grid-links {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ubicacion-link-card {
    width: 100%;
    height: 700px; /* Un poco más alta para que luzca el cuadro blanco */
    position: relative;
    overflow: hidden;
    background-color: #ffffff; /* Fondo base blanco por si la imagen tarda en cargar */
}
.ubicacion-img-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Esta es la clave: recorta la imagen para que llene el cuadro sin deformarse */
        object-position: center; /* Centra la foto para que no se corten partes importantes */
    }


.ubicacion-overlay-full {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4) 100%);
    display: flex;
    justify-content: space-between; 
    align-items: flex-end; 
    padding: 0; /* Dejamos que los márgenes de .info-content y .example-2 controlen el espacio */
    box-sizing: border-box;
}

.info-content {
    text-align: left;
    color: #ffffff; 
    z-index: 10;
    /* Ajustamos el padding para dar más aire y el ancho para cubrir la palabra */
    padding: 2.5rem 3.5rem; /* Aumentamos el padding lateral a 3.5rem */
    border-radius: 25px; 
    backdrop-filter: blur(5px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); 
    margin-bottom: 3rem; 
    margin-left: 3rem; 
    border: 1px solid rgba(255, 255, 255, 0.253);
    max-width: 550px; /* Aumentado de 450px a 550px para que quepa Guadalajara */
}

.info-content h3 {
    /* Mantenemos el estilo, pero aseguramos que el tamaño sea responsivo */
    font-size: clamp(2rem, 4.5vw, 4rem) !important; 
    color: #E98596; 
    font-weight: 900;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- TEXTO DE UBICACIÓN CORREGIDO --- */
.main-title-location {
  font-size: 1.3rem !important;
    color: #ffffff !important; /* Gris oscuro para que se lea en el blanco */
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: none !important; /* Quitamos sombras externas */
}

.hover-card-trigger {
    color: #F9B680 !important; /* Color naranja institucional */
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.hover-card-trigger:hover {
    border-bottom-color: #F9B680;
}

/* --- TARJETA FLOTANTE --- */
.location-app-wrapper { margin-bottom: 40px; position: relative; }

.card-location {
    position: absolute;
    bottom: 110%; /* Ajustado para que flote justo arriba del texto */
    left: 0;
    width: 240px;
    height: 140px;
    background: white;
    border-radius: 20px;
    transform: scale(0); /* Estado inicial */
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000; /* Prioridad máxima */
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    overflow: hidden;
    visibility: hidden;
}


.reference {
    position: relative;
    display: inline-block;}

.reference:hover .card-location {
    transform: scale(1);
    visibility: visible;
    opacity: 1;
}

/* Ajuste al contenedor interno para que el contenido sea visible */
.inner-card-location { 
    border-radius: 18px; 
    height: 100%; 
    width: 100%; 
    overflow: hidden; 
    position: relative; 
    background-color: #ffffff; /* Asegura un color base si el bg-map falla */
}

/* El fondo no debe ser tan transparente para que no se pierda lo de adentro */
.bg-map-mty { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    background: #dadada; 
    opacity: 1;
    z-index: 1; /* Al fondo */
}

.marker-location {
    background-color: #E98596; 
    width: 15px; 
    height: 15px; 
    border-radius: 50%; 
    border: 3px solid white; 
    top: 30%; 
    left: 50%; 
    position: absolute; 
    z-index: 10;
    box-shadow: 0 0 10px rgba(160, 128, 133, 0.5); /* Sutil brillo rosa */
    animation: pulse-map 2s infinite;
}

@keyframes pulse-map {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(233, 133, 150, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(233, 133, 150, 0); }
    100% { transform: scale(0.9); }
}

.cloud {
    position: absolute;
    z-index: 5; /* Entre el mapa y el texto */
    background: white;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.7;
    animation: moveClouds 10s linear infinite;
}

/* Nube 1 */
.cloud:nth-child(1) { width: 40px; height: 15px; top: 20px; left: 10%; }
/* Nube 2 */
.cloud:nth-child(2) { width: 50px; height: 20px; top: 50px; left: 60%; animation-delay: 2s; }

@keyframes moveClouds {
    from { transform: translateX(-50px); }
    to { transform: translateX(250px); }
}
.description-location { 
    padding: 10px; 
    background: rgba(255, 255, 255, 0.9); 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    z-index: 15; /* Siempre al frente */
    text-align: center;
}

.city-name { 
    font-weight: 800; 
    color: #E98596; 
    display: block; 
    font-size: 0.9rem; 
    font-family: 'Poppins', sans-serif;
}


/* --- ICONOS PNG CORREGIDOS --- */
.example-2 {
    margin-right: 3rem;
    margin-bottom: 3rem;
}
.example-2 .icon-content a {
   width: 60px; /* Reducido de 70px a 60px para el set completo */
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.social-png {
    width: 26px; /* Ajusta el tamaño de tu PNG */
    height: 26px;
    object-fit: contain;
    position: relative;
    z-index: 5;
    filter: brightness(0) invert(1); /* Convierte el PNG a blanco si es oscuro */
}

.example-2 .icon-content a .filled {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 0;
    transition: all 0.4s ease; z-index: 1;
}

.example-2 .icon-content a:hover .filled { height: 100%; }

/* Colores de Redes */
.example-2 .icon-content a[data-social="facebook"] .filled { background-color: #1877F2; }
.example-2 .icon-content a[data-social="instagram"] .filled { background-color: #E4405F; }
.example-2 .icon-content a[data-social="tiktok"] .filled { background-color: #000; }
.example-2 .icon-content a[data-social="youtube"] .filled { background-color: #FF0000; }
.example-2 .icon-content a[data-social="linkedin"] .filled { background-color: #0077B5; }
.example-2 .icon-content a[data-social="x-twitter"] .filled { background-color: #000000; }

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -55px;
}
/* Agrega esto dentro de tu media query @media (max-width: 768px) */
@media (max-width: 768px) {
    /* Asegura que la tarjeta use todo el ancho de la pantalla */
    .ubicacion-link-card {
        height: 60vh !important; /* Usar vh (viewport height) ayuda a que se vea bien en cualquier largo de celular */
        width: 100% !important;
        margin-bottom: 0 !important; /* Elimina espacios entre sedes si prefieres un diseño continuo */
    }
    .ubicacion-img-container {
        width: 100% !important;
        height: 100% !important;
        position: relative;
    }

    .ubicacion-overlay-full {
        background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.7) 100%) !important;
        flex-direction: column !important; /* Apilamos contenido y redes */
        justify-content: flex-end !important;
        align-items: center !important;
        padding-bottom: 30px !important;
    }

    .info-content {
        margin-left: 0 !important;
        margin-bottom: 20px !important;
        padding: 1.5rem !important;
        width: 90% !important;
        text-align: center !important;
    }

    .info-content h3 {
        font-size: 2.5rem !important; /* Tamaño más balanceado para móvil */
    }
}
@media (max-width: 768px) {
    .card-location {
        left: 50% !important;
        transform: translateX(-50%) scale(0); /* Centrada horizontalmente */
        bottom: 120% !important;
    }
    
    .reference:active .card-location {
        transform: translateX(-50%) scale(1) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
@media (max-width: 768px) {
    .ubicacion-overlay-full {
        background: linear-gradient(to bottom, 
            rgba(0,0,0,0) 0%, 
            rgba(0,0,0,0.2) 50%, 
            rgba(0,0,0,0.8) 100%) !important;
    }
}
/* =========================================
   FOOTER - TRANSPARENCIA Y LEGAL
   ========================================= */
.footer-transparencia {
    background-color: #fcfcfc;
    border-top: 1px solid #f1bdc8;
    padding: 4rem 2rem;
    margin-top: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    opacity: 0.8;
}

.footer-info p {
    font-size: 1.1rem;
    color: #636363;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 0.5rem;
}

.enlace-confio a {
    color: #F9B680;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.enlace-confio a:hover {
    border-bottom-color: #F9B680;
}

.footer-legal {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    width: 100%;
}

.footer-legal p {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.link-privacidad {
    color: #E98596;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

.link-privacidad:hover {
    color: #d30d59;
    text-decoration: underline;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .footer-transparencia {
        padding-bottom: 100px; /* Espacio para que el menú móvil no lo tape */
    }
}

    /* =========================================
   1.2 NUEVA PAGINA ACEERCA DE CRUZ ROSA - ESTILOS GENERALES`
   ========================================= */


.btn-extra-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; /* Tamaño inicial circular */
    height: 45px;
    background-color: #E98596; 
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden; /* Oculta el texto que sobresale */
    margin-left: 15px;
    position: relative;
}

.btn-extra-header .btn-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transition: all 0.4s ease;
}

.btn-extra-header ion-icon {
    font-size: 1.8rem;
    flex-shrink: 0; /* Evita que el icono se aplaste */
}

/* --- EFECTO HOVER (Igual que el menú) --- */
.btn-extra-header:hover {
    width: auto; /* Se expande según el contenido */
    padding: 0 25px; 
    background-color: #d30d59;
    box-shadow: 0 5px 20px rgba(#cf7f8c);
}

.btn-extra-header:hover .btn-text {
    opacity: 1;
    max-width: 300px;
    margin-left: 12px;
}

/* --- SECCIÓN HISTORIA ACERCA DE --- */


.titulo-seccion-superior {
    font-size: 3.5rem !important; /* Aumentado significativamente */
    font-weight: 800;
    color: #E98596;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}
.cuadro-rosa-interactivo {
    background: linear-gradient(135deg, #E98596 0%, #d36b7d 100%);
    padding: 3rem; /* Más espacio interno para que se vea cuadrada */
    border-radius: 30px; /* Menos redondeado para dar aspecto más sólido */
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(233, 133, 150, 0.4);
    font-size: 1.35rem !important; /* Texto interno XL */
    line-height: 1.5;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cuadro-rosa-interactivo:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 70px rgba(233, 133, 150, 0.6);
}
.brillo-tarjeta {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.7s;
}
.cuadro-rosa-interactivo:hover .brillo-tarjeta {
    left: 150%;
}
.cuadro-rosa-interactivo p {
    margin-bottom: 2rem;
}

.historia-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mitad exacta para texto y mitad para fotos */
    gap: 4rem;
    align-items: center; 
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 20px;
}

.acerca-contenedor-principal h1, 
main h1 {
    font-size: 3rem !important; /* Aumentado de tamaño significativamente */
    font-weight: 800;
    margin-bottom: 4rem;
    text-align: center;
    color: #E98596;
}

.titulo-historia {
    font-family: 'Poppins', sans-serif;
    font-size: 5.5rem !important; /* Tamaño masivo para impacto visual inmediato */
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.intro-text {
    color: #636363; /* Color institucional solicitado */
    font-size: 1.9rem;
    line-height: 1.6;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 5rem auto;
    
    /* Aplicación de la animación */
    opacity: 0; /* Inicia invisible */
    animation: revelarTexto 1.2s ease-out forwards;
    animation-delay: 0.5s; /* Aparece después del título principal */
}
@keyframes revelarTexto {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Empieza 20px abajo */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Termina en su posición original */
    }
}

.historia-container {
    display: grid;
    /* Mantenemos la proporción pero aseguramos el espacio */
    grid-template-columns: 1fr 1fr; 
    /* Aumentamos el gap a 6rem para separar bien el cuadro de las fotos */
    gap: 6rem; 
    align-items: center;
    max-width: 1400px;
    margin: 4rem auto;
}

.marcos-fotos-container-xl {
    display: flex;
    flex-direction: column;
    /* Alineamos a la derecha para ganar más aire en el centro */
    align-items: flex-end; 
    gap: 30px;
    width: 100%;
}


.marco-polaroid-gigante {
    background-color: #ffffff;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-radius: 10px;
    transition: transform 0.4s ease;
    width: fit-content;
    /* Añadimos un margen izquierdo extra para forzar la separación */
    margin-left: 20px; 
}


.marco-polaroid-gigante img {
    /* Ajustamos el tamaño a uno intermedio (entre 500px y 600px) */
    width: 550px !important; 
    max-width: 100%; 
    height: auto;
    display: block;
    border-radius: 5px;
}

.marco-polaroid-gigante:nth-child(1) {
    /* Reducimos la traslación negativa para que no se acerque al cuadro rosa */
    transform: rotate(-2deg) translateX(0); 
}

.marco-polaroid-gigante:nth-child(2) {
    /* La segunda foto se mantiene con su rotación pero sin invadir el centro */
    transform: rotate(2deg) translateY(-20px);
}
/* --- RESPONSIVO --- */

@media (max-width: 1200px) {
    .historia-container {
        gap: 3rem; /* En pantallas medianas reducimos un poco para que quepa todo */
    }
}

@media (max-width: 768px) {
    .historia-container {
        grid-template-columns: 1fr;
        gap: 4rem; /* Espacio vertical entre el cuadro y las fotos en móvil */
    }
    .marcos-fotos-container-xl {
        align-items: center;
    }
    .marco-polaroid-gigante {
        margin-left: 0;
    }
}

/* Cuadro Rosa del lado izquierdo */

/* FORZAR CUADRO ROSA A SER CUADRADO */
.cuadro-rosa-info {
    background-color: #E98596;
    border-radius: 40px;
    color: white;
    aspect-ratio: 1 / 1; /* Forza el cuadrado */
    width: 100%;
    max-width: 500px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    box-shadow: 0 25px 50px rgba(233, 133, 150, 0.3);
    font-size: 1.5rem !important;
    line-height: 1.6;
    text-align: justify; /* Texto justificado como pediste */
    margin: 0 auto;
}

.marcos-fotos-container {
    display: flex;
    flex-direction: column; /* Apiladas verticalmente */
    align-items: center;
    gap: 50px; /* Espacio entre fotos */
    width: 100%;
}

.marco-foto {
    background-color: #ffffff;
    /* Marco Polaroid más robusto para soportar fotos grandes */
    padding: 25px 25px 60px 25px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-radius: 15px;
    transition: all 0.4s ease;
    width: fit-content;
    margin: 0 auto;
}

.marco-foto img {
    /* Tamaño aumentado a 1050px para impacto visual masivo */
    width: 2000px !important; 
    max-width: 100%; /* Evita que se desborde en pantallas pequeñas */
    height: auto;
    display: block;
    border-radius: 8px;
}

.polaroid-1 {
    transform: rotate(-5deg) translateX(-30px);
    z-index: 1;
}

.polaroid-2 {
    transform: rotate(5deg) translateX(30px) translateY(-20px);
    z-index: 2;
}

@media (max-width: 1600px) {
    .marco-foto img {
        width: 850px !important; /* Escala para laptops grandes */
    }
}

@media (max-width: 768px) {
    .marcos-fotos-container {
        flex-direction: column; /* Fotos una debajo de otra en celular */
        gap: 3rem;
    }
    .marco-foto {
        transform: rotate(0deg) !important; /* Quitamos rotación en móvil para maximizar espacio */
        width: 45%; /* Dos fotos por fila */
        padding: 10px 10px 30px 10px !important;
    }
    .marco-foto img {
       width: 90% !important; /* Casi todo el ancho del celular */
        max-width: 400px;
    }
}
/* --- ANIMACIÓN AL PASAR EL MOUSE (HOVER) --- */
.marco-foto:hover {
    transform: rotate(0deg) scale(1.03) translateY(-15px);
    z-index: 10;
    box-shadow: 0 35px 60px rgba(233, 133, 150, 0.4);
}

/* Ajuste para que se vea bien en tablets/móviles */
@media (max-width: 1200px) {
    .historia-container {
        grid-template-columns: 1fr; /* Una columna para que nada se vea apretado */
    }
    .marcos-fotos-container {
        align-items: center;
    }
    .marco-foto img {
        width: 90% !important;
        max-width: 650px;
    }
}

@media (max-width: 1300px) {
    .marco-foto img {
        width: 700px !important; /* Escala para laptops estándar */
    }
}

/* Animación de Imágenes del lado derecho */
.imagenes-stack {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-card {
    position: absolute;
    width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.5s ease;
    border: 5px solid white;
}

/* Posición inicial de las cartas */
.card-1 {
    transform: rotate(-5deg) translateX(-20px);
    z-index: 1;
}

.card-2 {
    transform: rotate(5deg) translateX(20px);
    z-index: 2;
}

/* Animación al pasar el mouse por el contenedor */
.imagenes-stack:hover .card-1 {
    transform: rotate(-11deg) translateX(-80px) scale(1.05);
}

.imagenes-stack:hover .card-2 {
    transform: rotate(12deg) translateX(80px) scale(1.05);
}

/* Responsive para celular */
@media (max-width: 768px) {
    .historia-container {
        grid-template-columns: 1fr;
    }
   .titulo-historia {
        font-size: clamp(2.2rem, 8vw, 3rem) !important; /* Ajuste fluido para móvil */
        letter-spacing: -1px !important; /* Eliminamos el espaciado negativo excesivo */
        margin-bottom: 1.5rem !important;
        line-height: 1.2 !important;
    }
    .titulo-seccion-superior {
        font-size: 2.2rem !important;
        margin-bottom: 2rem !important;
        padding: 0 10px;
    }

    /* Ajuste para el texto introductorio */
    .intro-text {
        font-size: 1.1rem !important; /* Tamaño de lectura cómodo */
        margin-bottom: 3rem !important;
        padding: 0 15px;
    }
}
    .imagenes-stack {
        height: 300px;
        margin-top: 2rem;
    }
    .img-card {
        width: 280px;
    }


/* --- SECCIÓN CONSTITUCIÓN LEGAL --- */
.constitucion-section {
    padding: 4rem 2rem;
    background-color: #ffffff; /* Fondo rosa casi blanco muy sutil */
}

.constitucion-container {
    max-width: 900px;
    margin: 0 auto;
}

.constitucion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.constitucion-header h2 {
    font-family: 'Poppins', sans-serif;
    /* Tamaño masivo para impacto visual */
    font-size: clamp(2.5rem, 6vw, 5.5rem) !important; /* Bajamos de 8.5rem a 5.5rem */
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -4px;
    margin-bottom: 2.5rem;

    background: linear-gradient(
        to right, 
        #FFE3E6 10%, 
        #E98596 30%, 
        #FFE3E6 50%, 
        #E98596 70%,
        #FFE3E6 90%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brilloElegante 6s linear infinite;
}
@media (max-width: 768px) {
    .constitucion-header h2 {
        font-size: 2.2rem !important; /* Más pequeño para móvil */
        letter-spacing: -1px !important; /* Espaciado normal */
        line-height: 1.2;
    }
    .constitucion-card {
        padding: 2rem !important; /* Más aire interno */
        border-left-width: 8px !important; /* Borde más delgado */
    }
    .constitucion-card p {
        font-size: 1.1rem !important; /* Texto legible */
    }
}

@keyframes brilloElegante {
    to { background-position: 200% center; }
}

.doc-icon {
    font-size: 2.5rem;
    color: #E98596;
}
.titulo-shimmer-legal {
    /* ... tus otros estilos ... */
    line-height: 1.1 !important; /* Aumentamos de 0.85 a 1.1 para dar aire */
    padding-bottom: 20px; /* Espacio extra abajo para que no se tape con la tarjeta */
    overflow: visible !important; /* Asegura que nada fuera del cuadro se oculte */
    display: block;
}


/* Tarjeta principal */
.constitucion-card {
    background: #ffffff;
    padding: 5rem;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    border-left: 12px solid #F9B680;
    margin-top: 2rem; /* Separa la tarjeta del título para que no se encimen */
    overflow: visible;
}
.constitucion-card p {
    font-size: 1.6rem !important; /* Texto mucho más grande */
    font-weight: 700; /* Todo el texto en negritas solicitado */
    color: #444;
    line-height: 1.8;
    
}
.constitucion-card strong {
    color: #E98596;
    font-size: 1.8rem !important; /* Letras rosas un poco más grandes que el resto */
    font-weight: 900;
    display: inline-block;
    transition: transform 0.3s ease;
}
.constitucion-card strong:hover {
    transform: scale(1.05); /* Pequeña interacción al pasar el mouse */
}

.divisor-sutil {
    height: 1px;
    background: linear-gradient(to right, #F9B680, transparent);
    margin: 2rem 0;
}

/* Cuadro inferior de registro */
.registro-footer {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffe6ea;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
}

.registro-footer ion-icon {
    font-size: 1.8rem;
    color: #F9B680;
    flex-shrink: 0;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .constitucion-card {
        padding: 1.5rem;
    }
   .constitucion-header h2 {
        font-size: 2.2rem !important;
        letter-spacing: -1px !important;
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
    }
}
@media (max-width: 768px) {
    .modelo-card-circular {
        border-radius: 30px !important;
    }
    .modelo-header-circle {
        flex-direction: column; /* Icono arriba, título abajo */
        text-align: center;
        gap: 15px;
    }
    .circle-icon.no-bg {
        width: 100px !important; /* Círculo más pequeño en móvil */
        height: 100px !important;
    }
    .modelo-body-circle {
        padding: 0 20px 20px 20px !important; /* Texto centrado debajo del círculo */
        text-align: center;
    }
    .modelo-header-circle h3 {
        margin-left: 0 !important;
        font-size: 1.2rem !important;
    }
}
@media (max-width: 768px) {
    .card-vision {
        padding: 2rem !important;
        box-shadow: 10px 10px 20px #e0e0e0, -10px -10px 20px #ffffff !important;
    }
}
/* --- SECCIÓN OBJETO SOCIAL ESTILO IMAGEN --- */
.objeto-social-completo {
    padding: 6rem 2rem;
    background-color: #FFF8FA;
    text-align: center;
}

.titulo-seccion-centro {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.intro-objeto-social {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.6;
}

.cards-objeto-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Espacio entre filas */
}

.fila-objeto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-mini {
    width: 320px;
    height: 160px;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: white;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card-mini:hover {
    transform: translateY(-5px);
}

.card-mini ion-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.card-mini-txt h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-mini-txt p {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
}

.flecha-guia {
    font-size: 2rem;
    font-weight: bold;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .fila-objeto {
        flex-direction: column;
        gap: 1rem;
    }
    .flecha-guia {
        transform: rotate(90deg); /* Flecha apuntando hacia abajo */
        margin: 10px 0;
    }
    .card-mini {
        width: 100% !important;
        height: auto !important; /* Que se ajuste al contenido */
    }
}
/* --- SECCIÓN DONATARIA AUTORIZADA --- */
.donataria-section {
    padding: 6rem 2rem;
    background-color: #FFF8FA;
    position: relative;
    overflow: hidden;
}

.donataria-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.donataria-content {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border-top: 8px solid #F9B680; /* Acento Naranja */
}

.donataria-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.donataria-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #636363;
    margin: 0;
}

.donataria-header ion-icon {
    font-size: 2.5rem;
    color: #E98596;
}

.registro-destacado {
    background-color: #FFE3E6;
    color: #E98596;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 2rem 0;
    text-align: center;
    border: 2px dashed #E98596;
}

.btn-dof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #E98596;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.btn-dof:hover {
    color: #F9B680;
    border-bottom-color: #F9B680;
}

/* Decoración Sello de Agua */
.sello-agua {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0,0,0,0.02);
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
}

/* Animación de Medalla */
.donataria-img {
    display: flex;
    justify-content: center;
}

.escudo-fiscal {
    width: 250px;
    height: 250px;
    background-color: #F9B680;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 15px #FFF8FA, 0 0 0 30px #FFE3E6;
    animation: pulse-border 3s infinite;
}

.escudo-fiscal ion-icon {
    font-size: 8rem;
    color: white;
}

@keyframes pulse-border {
    0% { transform: scale(1); box-shadow: 0 0 0 15px #FFF8FA, 0 0 0 30px #FFE3E6; }
    50% { transform: scale(1.05); box-shadow: 0 0 0 25px #FFF8FA, 0 0 0 45px #FFE3E6; }
    100% { transform: scale(1); box-shadow: 0 0 0 15px #FFF8FA, 0 0 0 30px #FFE3E6; }
}

/* Responsive */
@media (max-width: 900px) {
    .donataria-container { grid-template-columns: 1fr; }
    .donataria-img { order: -1; margin-bottom: 2rem; }
    .donataria-content { padding: 2rem; }
}
/* --- SECCIÓN PROPÓSITOS (UNIFICADO: NEUMÓRFICO + CRUZ) --- */
.propositos-section {
    padding: 8rem 2rem;
    background-color: #ffffff;
    overflow: hidden;
}

.propositos-container {
    position: relative;
    max-width: 1200px; /* Reducimos el ancho total del contenedor */
    min-height: 900px; 
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    /* Aumentamos mucho el gap horizontal para proteger el espacio de la cruz */
    gap: 180px 100px; 
    align-items: center;
    justify-items: center;
}

/* Aplicamos el estilo neumórfico XL (Igual a sección Visión) */
.propositos-container .card-vision {
    background: #f9f9f9;
    border-radius: 40px;
    padding: 2.5rem 2rem; /* Reducimos padding interno */
    width: 100%;
    max-width: 380px; /* Limitamos el ancho para que no tapen el centro */
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 15px 15px 40px #e0e0e0, -15px -15px 40px #ffffff;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.8);
    z-index: 2;
}

.propositos-container .card-vision:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 20px 20px 50px #d1d1d1, -20px -20px 50px #ffffff;
}

/* Texto XL y Super Negrita */
.propositos-container .card-vision-content p {
    font-size: 1.25rem !important; /* Bajamos un poco de 1.5 a 1.25 para equilibrio */
    font-weight: 800 !important;
    line-height: 1.4;
    color: #444;
}

.propositos-container .card-vision-content ion-icon {
    font-size: 4rem;
    color: #F9B680; /* Naranja institucional */
    margin-bottom: 1.5rem;
}

/* --- CRUZ CENTRAL CORREGIDA --- */
.eje-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%; 
    height: 95%;
    pointer-events: none;
    z-index: 1;
}

.linea-vertical, .linea-horizontal {
    position: absolute;
    background-color: #F9B680;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(249, 182, 128, 0.4);
}

.linea-vertical { width: 14px; height: 100%; left: 50%; transform: translateX(-50%); }
.linea-horizontal { height: 14px; width: 100%; top: 50%; transform: translateY(-50%); }

/* Flechas de la cruz con tamaño ajustado */
.linea-vertical::before { content: ''; position: absolute; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 30px solid #F9B680; top: -30px; left: 50%; transform: translateX(-50%); }
.linea-vertical::after { content: ''; position: absolute; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 30px solid #F9B680; bottom: -30px; left: 50%; transform: translateX(-50%); }
.linea-horizontal::before { content: ''; position: absolute; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-right: 30px solid #F9B680; left: -30px; top: 50%; transform: translateY(-50%); }
.linea-horizontal::after { content: ''; position: absolute; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 30px solid #F9B680; right: -30px; top: 50%; transform: translateY(-50%); }

.circulo-pulso {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background-color: #e89c5e;
    border-radius: 50%;
    border: 5px solid white;
    z-index: 5;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
}

/* --- VISTA MÓVIL OPTIMIZADA --- */
@media (max-width: 850px) {
    .propositos-container {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }
    .eje-central { display: none; } /* Ocultar cruz en móvil para leer mejor */
    .propositos-container .card-vision {
        padding: 3rem 1.5rem;
        border-radius: 35px;
    }
    .propositos-container .card-vision-content p {
        font-size: 1.25rem !important;
    }
}

/* --- ANIMACIÓN DE TÍTULOS EN ACERCA DE --- */

.titulo-animado-container {
    text-align: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.titulo-revelado {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Efecto de subida para cada palabra */
.anim-1, .anim-2 {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: subirRevelar 0.8s ease forwards;
}

.anim-2 {
    animation-delay: 0.3s; /* La palabra VISIÓN sale un poco después */
}

/* Línea naranja que se expande debajo del título */

/* KEYFRAMES */
@keyframes subirRevelar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandirLinea {
    to {
        width: 150px;
    }
}

/* Efecto sutil de pulso en el texto naranja al pasar el mouse */
.titulo-revelado:hover .txt-naranja {
    text-shadow: 0 0 15px rgba(249, 182, 128, 0.4);
    transition: 0.3s;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .titulo-revelado {
        font-size: 2.2rem;
    }
}
/* --- SECCIÓN VISIÓN BLANCA NEUMÓRFICA --- */
.vision-neumorphic-section {
    padding: 8rem 2rem;
    background: #ffffff; /* Fondo blanco para integrar con la página */
    text-align: center;
}

.vision-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

/* Tarjeta Neumórfica más blanca */
.card-vision {
    width: 100%;
    max-width: 800px; 
    min-height: 300px;
    border-radius: 50px;
    background: #f9f9f9; /* Blanco hueso para resaltar sutilmente */
    
    /* Sombra más suave y clara */
    box-shadow: 15px 15px 40px #e0e0e0,
               -15px -15px 40px #ffffff;
               
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

.card-vision:hover {
    transform: translateY(-10px);
    box-shadow: 20px 20px 50px #d1d1d1,
               -20px -20px 50px #ffffff;
}

.card-vision-content ion-icon {
    font-size: 3.5rem;
    color: #F9B680; /* Tu color naranja institucional */
    margin-bottom: 1.5rem;
}

.card-vision-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .card-vision {
        padding: 2rem;
        border-radius: 35px;
    }
    .card-vision-content p {
        font-size: 1rem;
    }
}

/* --- SECCIÓN VALORES --- */
.titulo-valores-container {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.titulo-shimmer {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #636363;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Animación de entrada suave */
    animation: fadeInDown 1s ease-out;
}
.subrayado-animado {
    width: 0;
    height: 5px;
    background: linear-gradient(to right, #F9B680, #E98596);
    margin-top: 10px;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.valores-section:hover .subrayado-animado {
    width: 150px;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- DISEÑO DE VALORES (ESTILO IMAGEN) --- */
.valores-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en escritorio */
    gap: 30px;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 20px;
}

.valor-card-minimal {
    background: #ffffff;
    border: 2px solid #F9B680;
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.valor-card-minimal:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(249, 182, 128, 0.2);
    background-color: #fffaf7;
}
/* Estilo para tus nuevas imágenes PNG */
.valor-card-minimal .icon-wrapper img {
    width: 100px; /* Tamaño XL para que luzcan */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    /* Esto ayuda a que el color institucional resalte si la imagen es oscura */
    filter: drop-shadow(0 5px 10px rgba(249, 182, 128, 0.2));
}

.valor-card-minimal .icon-wrapper {
    margin-bottom: 20px;
}

.valor-card-minimal ion-icon {
    font-size: 4.5rem;   /* Iconos grandes como en la imagen */
    color: #F9B680;      /* Color melón para el icono */
    stroke-width: 32; 
   
       /* Hace el trazo del icono un poco más fino/elegante */
}

.valor-card-minimal h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #F9B680;
    text-transform: uppercase;
    margin: 0;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
    .valores-grid-clean {
        grid-template-columns: 1fr 1fr; /* Dos columnas en móvil */
        gap: 15px;
    }
    .valor-card-minimal {
        padding: 20px 10px;
    }
    .valor-card-minimal ion-icon {
        font-size: 3rem;
    }
}
@media (max-width: 768px) {
    .valores-grid-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        }
    .valor-card-minimal .icon-wrapper img {
        width: 60px;
        height: 60px;
    }
    .valor-card-minimal h3 {
        font-size: 0.9rem;
    }

}

/* --- ESTILOS ODS CON ANIMACIÓN Y VISTA MÓVIL --- */
.ods-3-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}
.ods-header {
    margin-bottom: 50px;
}
.ods-main-title {
    font-size: 2.5rem;
    color: #444;
    font-weight: 800;
}
.txt-naranja { color: #F9B680; }

.subrayado-gradiente {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #E98596, #F9B680);
    margin: 10px auto;
    border-radius: 10px;
}
.ods-body-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.ods-visual {
    position: relative;
    width: 220px;
}

@keyframes floatingIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}
.ods-text-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.ods-intro-text {
    font-size: 1.3rem;
    color: #444;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.ods-highlight {
    font-size: 1.8rem;
    color: #158c07; /* Rosa institucional */
    font-weight: 800;
    margin-bottom: 30px;
}
.ods-quote-card {
    background-color: #fdfdfd;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03); /* Sombra muy sutil como en la imagen */
}
.ods-quote-card p {
    font-size: 1.5rem;
    color: #555;
    font-style: italic;
    font-weight: 700;
    margin: 0;
}
/* Responsivo */
@media (max-width: 768px) {
    .ods-body-container { flex-direction: column; }
    .ods-main-title { font-size: 1.8rem; }
    .ods-quote-card p { font-size: 1.2rem; }
}


.ods-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: #4C9F38; /* Verde ODS */
    opacity: 0.2;
    animation: pulseRing 2s infinite;
}

.ods-img-floating {
    width: 100%;
    border-radius: 15px;
    animation: floatingIcon 4s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.ods-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}
.ods-container {
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.ods-icon-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
}
.ods-icon-animated {
    width: 100%;
    height: auto;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ods-icon-wrapper:hover .ods-icon-animated {
    transform: scale(1.05) rotate(2deg);
}
.ods-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4C9F38; /* Color verde oficial del ODS 3 */
    filter: blur(40px);
    opacity: 0.15;
    animation: pulseGlow 3s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.3; }
}
.ods-content {
    flex: 1;
    min-width: 300px;
}
.ods-tag {
    background-color: #4C9F38;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.ods-title {
    color: #333;
    font-size: 2.5rem;
    margin: 15px 0;
    font-weight: 800;
}
.ods-description {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}
.ods-divider {
    width: 60px;
    height: 4px;
    background-color: #4C9F38;
    margin: 20px 0;
}
.ods-list {
    list-style: none;
    padding: 0;
}
.ods-list li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #444;
}
.ods-list li i {
    color: #4C9F38;
}
/* Responsivo */
@media (max-width: 768px) {
    .ods-container {
        flex-direction: column;
        text-align: center;
    }
    .ods-icon-wrapper {
        width: 180px;
        height: 180px;
    }
    .ods-divider {
        margin: 20px auto;
    }
    .ods-list li {
        justify-content: center;
    }
}

.ods-container-animado {
    max-width: 850px;
    margin: 50px auto;
    perspective: 1000px;
}

.ods-card-glow {
    background: #fff;
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
}
.ods-visual-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    /* Toda esta zona flota junta */
    animation: flotarODS 4s ease-in-out infinite;
}

/* Animación de letras naranjas (Brillo y Pulso) */
.txt-naranja-animado {
    color: #F9B680;
    font-weight: 800;
    display: inline-block;
    position: relative;
    animation: brilloNaranja 3s infinite;
}

@keyframes brilloNaranja {
    0%, 100% {
        text-shadow: 0 0 0px rgba(249, 182, 128, 0);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(249, 182, 128, 0.6);
        transform: scale(1.02);
    }
}

/* Estilo ODS 3 con efecto de flotación */
.ods-numero-glow {
    color: #F9B680;
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 5px;
    text-shadow: 0 5px 15px rgba(249, 182, 128, 0.2);
}
.ods-icon-box {
    font-size: 4rem; /* Tamaño del icono */
    color: #F9B680;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 5px 10px rgba(249, 182, 128, 0.3));
}

@keyframes flotarODS {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.ods-texto-base {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: #444;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}
.ods-resaltado {
    color: #E98596; /* Rosa institucional para el ODS 3 */
    font-weight: 900;
    display: block; /* Lo pone en una línea propia para que destaque */
    font-size: 2.2rem;
    margin-top: 10px;
}
.ods-lema-principal {
    font-size: 2.2rem !important; /* Más grande para que sea el foco */
    font-weight: 800 !important; /* Super negrita */
    color: #636363; /* Gris institucional */
    text-align: center;
    max-width: 900px;
    margin: 2rem auto 4rem auto;
    line-height: 1.4;
    font-style: italic;
    padding: 20px;
    background: rgba(249, 182, 128, 0.05); /* Un fondo naranja muy sutil */
    border-radius: 20px;
}

.ods-texto-principal {
    font-size: 1.6rem;
    color: #444;
    line-height: 1.6;
    font-weight: 600;
}

/* --- AJUSTES VISTA DE TELÉFONO --- */
@media (max-width: 768px) {
    .ods-section {
        padding: 60px 15px;
    }

    .ods-card-glow {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .ods-texto-principal {
        font-size: 1.25rem;
        text-align: center;
    }

    .txt-naranja-animado {
        display: block; /* En móvil se ve mejor en su propia línea */
        margin: 10px 0;
        font-size: 1.4rem;
    }

    .ods-numero-glow {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    .ods-icon-box {
        font-size: 3rem;
    }
    .ods-texto-base {
        font-size: 1.2rem !important;
    }
    .ods-resaltado {
        font-size: 1.6rem;
    }
    .ods-lema-principal {
        font-size: 1.3rem !important;
        margin-bottom: 2rem !important;
    }

    /* Reducimos la flotación en móvil para que no sea molesto */
    @keyframes flotarODS {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
        
    }
}

/* --- MODELO DE INTERVENCIÓN FIJO --- */

/* --- VISOR TIPO MAPA PARA PDF --- */
.map-style-pdf-wrapper {
    max-width: 1400px;
    margin: 3rem auto;
    background: #f0f0f0;
    border-radius: 30px;
    position: relative;
    overflow: hidden; /* Muy importante para que el zoom no se salga del cuadro */
    border: 2px solid #F9B680;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.pdf-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* Lo centra horizontalmente sobre la imagen */
    z-index: 10;
    display: flex;
    flex-direction: row; /* Alineación horizontal de los botones */
    align-items: center;
    gap: 15px; /* Espacio entre botones y texto */
    background: rgba(255, 255, 255, 0.85); /* Fondo más sutil */
    backdrop-filter: blur(5px); /* Efecto de cristal */
    padding: 8px 20px; /* Más delgado verticalmente */
    border-radius: 50px; /* Bordes redondeados tipo píldora */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(249, 182, 128, 0.3); /* Borde naranja muy fino */
}
.pdf-controls span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #636363;
    white-space: nowrap;
}

.pdf-controls button {
    width: 32px; /* Botones un poco más pequeños y estéticos */
    height: 32px;
    border: none;
    background: #F9B680;
    color: white;
    border-radius: 30%; /* Botones circulares */
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.pdf-controls button:hover {
    background: #E98596;
    transform: scale(1.1);
}
.canvas-viewport {
    width: 100%;
    height: 800px;
    cursor: grab; /* Cursor de "mano" como en Google Maps */
}

.canvas-viewport:active { cursor: grabbing; }

#pdf-render {
    display: block;
    margin: 0 auto;
}
/* --- DISEÑO CIRCULAR Y VERTICAL --- */
.acordeon-circular-container {
    max-width: 850px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espacio entre círculos */
}

.modelo-card-circular {
    background: #fff;
    border-radius: 60px; /* Bordes muy redondeados para simular el estiramiento del círculo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.modelo-header-circle {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.circle-icon {
    width: 80px; /* Tamaño del círculo de imagen */
    height: 80px;
    background-color: var(--bg-eje);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.circle-icon img {
    width: 45px; /* Tamaño de la imagen dentro del círculo */
    height: 45px;
    object-fit: contain;
    /* Si las imágenes son negras y quieres que se vean blancas, descomenta la línea de abajo */
    /* filter: brightness(0) invert(1); */
}

.modelo-header-circle h3 {
    flex-grow: 1;
    margin-left: 25px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #444;
    font-family: 'Poppins', sans-serif;
}

.flecha-icon {
    font-size: 2rem;
    color: var(--bg-eje);
    transition: transform 0.4s ease;
}

/* Cuerpo desplegable */
.modelo-body-circle {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 0 30px 0 135px; /* Alineado para que no tape el círculo */
}
.modelo-body-circle p {
    font-size: 1.2rem;
    font-weight: 700; /* Negritas para todo el contenido */
    color: #444;
    line-height: 1.6;
    text-align: justify; /* Mejora la lectura de párrafos largos */
}

/* Estado Abierto */
.modelo-card-circular.active {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-color: var(--bg-eje);
}

.modelo-card-circular.active .modelo-body-circle {
    max-height: 800px; /* Aumentado para soportar los textos largos */
    opacity: 1;
    padding-bottom: 30px;
    transition: all 0.6s ease-in-out;
}

.modelo-card-circular.active .flecha-icon {
    transform: rotate(180deg);
}/* --- MAXIMIZAR IMÁGENES DEL MODELO --- */

.circle-icon.no-bg {
    width: 140px;  /* Tamaño del contenedor circular aumentado */
    height: 140px;
    background-color: transparent !important;
    border: 3px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 5px; /* Mínimo espacio para que la imagen no toque el borde del todo */
    transition: all 0.4s ease;
}

.circle-icon.no-bg img {
    width: 95%;  /* La imagen ocupa casi el 100% del contenedor */
    height: 95%;
    object-fit: contain; /* Asegura que la imagen no se deforme */
    transition: transform 0.3s ease;
}

/* El texto debe alejarse un poco más para no chocar con el círculo de 140px */
.modelo-body-circle {
    padding: 0 30px 0 200px; /* Margen izquierdo aumentado a 200px */
}

/* Efecto Hover */
.modelo-card-circular:hover .circle-icon.no-bg {
    transform: scale(1.08);
    border-color: var(--bg-eje);
}

.modelo-card-circular:hover .circle-icon.no-bg img {
    transform: scale(1.05); /* La imagen crece sutilmente al pasar el mouse */
}
/* --- SECCIÓN MODELO DE ATENCIÓN --- */
.modelo-atencion-section {
    padding: 80px 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atencion-card-container {
    max-width: 900px;
    width: 100%;
    margin-top: 50px;
}

.atencion-card-animada {
    background: #ffffff;
    padding: 60px 50px;
    border-radius: 40px;
    border: 2px solid #f1bdc8;
    box-shadow: 0 20px 50px rgba(233, 133, 150, 0.15);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAtencion 1s forwards ease-out;
}

.atencion-text {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #444;
    font-weight: 500;
    margin: 0;
}

.txt-cruz { color: #F9B680; font-weight: 900; }
.txt-rosa-logo { color: #E98596; font-weight: 900; }

.txt-rosa-logo {
    color: #E98596; /* Rosa */
    font-weight: 900;
}

/* Keyframes para la animación */
@keyframes fadeInUpAtencion {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- AJUSTES PARA TELÉFONO (VISTA MÓVIL OPTIMIZADA) --- */
@media (max-width: 768px) {
    .modelo-atencion-section {
        padding: 30px 15px; /* Reducimos el espacio arriba y abajo de la sección */
    }

    .titulo-shimmer {
     font-size: 1.8rem !important;
        letter-spacing: 1px !important;
    }

    .atencion-card-container {
        margin-top: 20px; /* Menos separación del título */
        max-width: 95%; /* Asegura que no toque los bordes del cel */
    }

    .atencion-card-animada {
        padding: 25px 18px; /* Tarjeta más pequeña y ajustada */
        border-radius: 20px; /* Bordes redondeados más sutiles */
    }

    .atencion-text {
        font-size: 1rem; /* Letra un poco más pequeña para evitar mucho scroll */
        line-height: 1.5; /* Interlineado más cerrado pero legible */
        text-align: center; /* En textos cortos se ve mejor centrado en móvil */
    }

    .subrayado-animado {
        width: 60px !important; /* Línea decorativa más pequeña */
        height: 3px;
    }
}



/* --- DISEÑO DE PANAL VERTICAL ------------------------------------------------------ */
.financiamiento-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}
.financiamiento-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}
.finan-card {
    background: #fdfdfd;
    border: 2px solid #FFE3E6;
    border-radius: 20px;
    padding: 30px 20px;
    width: 200px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(233, 133, 150, 0.05);
}
.finan-card:hover {
    transform: translateY(-10px);
    background: #FFE3E6;
    border-color: #E98596;
    box-shadow: 0 15px 40px rgba(233, 133, 150, 0.15);
}
.finan-icon {
    font-size: 2.5rem;
    color: #E98596;
    margin-bottom: 15px;
    transition: color 0.4s ease;
}
.finan-card:hover .finan-icon {
    color: #ffffff;
}
.finan-porcentaje {
    font-size: 2.2rem;
    font-weight: 800;
    color: #444;
    margin-bottom: 5px;
}
.finan-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.finan-card:hover .finan-porcentaje,
.finan-card:hover .finan-nombre {
    color: #333;
}
/* Responsivo */
@media (max-width: 768px) {
    .finan-card {
        width: 45%; /* Dos por fila en móviles */
    }
}

/* --- SECCIÓN FINANCIAMIENTO HEXAGONAL --- */

.hexagon-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

/* Estructura Base del Hexágono */
.hexagon-card {
    width: 250px; /* Aumentado */
    height: 280px; /* Aumentado */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    /* Añadimos una sombra sutil que rodea la forma */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); 
}

/* Efecto Hover Sutil */
.hexagon-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.hexagon-card:hover .hexagon-inner {
    background-color: #FFE3E6; /* Fondo rosa clarito interno al hacer hover */
}
.hexagon-inner ion-icon {
    font-size: 2.5rem;
    color: #E98596;
    margin-bottom: 10px;
}

.hex-porcentaje {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 5px 0;
}

.hex-nombre {
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
}

.hexagon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; 
    margin-top: 60px;
}


.hex-row {
    display: flex;
    justify-content: center;
    gap: 50px; 
}

.hex-row.row-offset {
    margin-top: 10px; 
}

.hex-rosa { background-color: #E98596; }
.hex-naranja { background-color: #F9B680; }
.hex-rosa-claro { background-color: #F1BDC8; }
.hex-naranja-suave { background-color: #fccfb0; }
.hex-gris { background-color: #fab867; }

/* Aplicar color a los elementos internos según la clase del padre */
.hex-rosa .hex-porcentaje, .hex-rosa ion-icon { color: #E98596; }
.hex-naranja .hex-porcentaje, .hex-naranja ion-icon { color: #F9B680; }
.hex-rosa-claro .hex-porcentaje, .hex-rosa-claro ion-icon { color: #F1BDC8; }
.hex-naranja-suave .hex-porcentaje, .hex-naranja-suave ion-icon { color: #fccfb0; }
.hex-gris .hex-porcentaje, .hex-gris ion-icon { color: #636363; }


.hexagon-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}
.hexagons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hexagons li {
    position: absolute;
    list-style: none;
    background-color: #E98596;
    opacity: 0.2;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    bottom: -150px;
    animation: animate-hex 25s linear infinite;
}
/* Tamaños y posiciones aleatorias */
.hexagons li:nth-child(1) { left: 25%; width: 80px; height: 90px; animation-delay: 0s; }
.hexagons li:nth-child(2) { left: 10%; width: 30px; height: 35px; animation-delay: 2s; animation-duration: 12s; }
.hexagons li:nth-child(3) { left: 70%; width: 20px; height: 25px; animation-delay: 4s; }
.hexagons li:nth-child(4) { left: 40%; width: 60px; height: 70px; animation-delay: 0s; animation-duration: 18s; }
.hexagons li:nth-child(5) { left: 65%; width: 20px; height: 25px; animation-delay: 0s; }
.hexagons li:nth-child(6) { left: 75%; width: 110px; height: 125px; animation-delay: 3s; }
.hexagons li:nth-child(7) { left: 35%; width: 150px; height: 170px; animation-delay: 7s; }
.hexagons li:nth-child(8) { left: 50%; width: 25px; height: 30px; animation-delay: 15s; animation-duration: 45s; }
.hexagons li:nth-child(9) { left: 20%; width: 15px; height: 20px; animation-delay: 2s; animation-duration: 35s; }
.hexagons li:nth-child(10) { left: 85%; width: 150px; height: 170px; animation-delay: 0s; animation-duration: 11s; }
.hexagons li:nth-child(11) { left: 5%; width: 40px; height: 45px; animation-delay: 2s; animation-duration: 20s; }
.hexagons li:nth-child(12) { left: 15%; width: 90px; height: 100px; animation-delay: 5s; animation-duration: 15s; }
.hexagons li:nth-child(13) { left: 55%; width: 35px; height: 40px; animation-delay: 8s; }
.hexagons li:nth-child(14) { left: 80%; width: 55px; height: 60px; animation-delay: 12s; animation-duration: 18s; }
.hexagons li:nth-child(15) { left: 92%; width: 120px; height: 135px; animation-delay: 4s; }
.hexagons li:nth-child(16) { left: 30%; width: 45px; height: 50px; animation-delay: 10s; animation-duration: 22s; }
/* Animación de flotado y rotación */
@keyframes animate-hex {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    100% { transform: translateY(-1200px) rotate(720deg); opacity: 0; }
}

/* --- DISEÑO DE PANAL VERTICAL RESTAURADO --- */

.honeycomb-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 4rem auto;
    max-width: 600px;
    padding-bottom: 100px;
}

.hexagon-item {
    width: 200px;
    height: 220px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
    z-index: 1;
}

/* El truco del encaje: margen negativo para que se metan uno dentro de otro */
.hexagon-item:not(:first-child) {
    margin-top: -55px; 
}

/* Zig-Zag: Pares derecha (60px), Impares izquierda (-60px) */
.hexagon-item:nth-child(even) { transform: translateX(60px); }
.hexagon-item:nth-child(odd) { transform: translateX(-75px); }

/* --- ESTADOS HOVER CORREGIDOS --- */
/* Importante: Mantener el translateX original mientras se aplica el scale */

.hexagon-item:nth-child(even):hover { 
    transform: translateX(60px) scale(1.15) !important; 
    z-index: 50;
    filter: drop-shadow(0 15px 30px rgba(233, 133, 150, 0.3));
}

.hexagon-item:nth-child(odd):hover { 
    transform: translateX(-60px) scale(1.15) !important; 
    z-index: 50;
    filter: drop-shadow(0 15px 30px rgba(233, 133, 150, 0.3));
}

/* El resto de tus estilos (.hexagon-inner, .hexagon-content, etc.) están perfectos */

.hexagon-inner {
    /* El tamaño es ligeramente menor para dejar ver el fondo del padre (el borde) */
    width: 200px; 
    height: 230px;
    background-color: #ffffff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Mantenemos el color del icono igual al borde del hexágono */
.hex-rosa .hex-porcentaje, .hex-rosa ion-icon { color: #E98596; }
.hex-naranja .hex-porcentaje, .hex-naranja ion-icon { color: #F9B680; }
.hex-rosa-claro .hex-porcentaje, .hex-rosa-claro ion-icon { color: #F1BDC8; }
.hex-naranja-suave .hex-porcentaje, .hex-naranja-suave ion-icon { color: #fccfb0; }
.hex-gris .hex-porcentaje, .hex-gris ion-icon { color: #636363; }
/* Colores */
.hexagon-item.color-rosa .hexagon-inner,
.hexagon-item.color-naranja .hexagon-inner { background: #F9B680; }
.hexagon-item.color-verde .hexagon-inner,
.hexagon-item.color-rosa-oscuro .hexagon-inner { background: #E98596; }

.hexagon-content { color: white; text-align: center; padding: 15px; }
.hexagon-content ion-icon { font-size: 2.5rem; margin-bottom: 5px; }
.hexagon-content h3 { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; margin: 5px 0; }
.porcentaje { font-size: 1.8rem; font-weight: 900; display: block; }

.hexagon-content {
    color: white;
    text-align: center;
    padding: 15px;
}

.hexagon-content h3 {
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 5px;
    text-transform: uppercase;
    line-height: 1.1;
    opacity: 0.9;
}
.porcentaje {
    display: block;
    font-size: 1.8rem; /* El número más grande */
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
.hexagon-item:hover .porcentaje {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse */
.hexagon-item:hover {
    z-index: 50;
    /* Mantenemos el desplazamiento lateral pero aumentamos el tamaño */
    transform: scale(1.15) 
               translateX(calc(var(--tw-translate-x, 0px))) !important;
}

/* Ajuste para tablets y celulares */
@media (max-width: 600px) {
    .hexagon-item {
        width: 150px;
        height: 175px;
        margin-bottom: -40px;
    }
    .hexagon-item:nth-child(even) { transform: translateX(40px); }
    .hexagon-item:nth-child(odd) { transform: translateX(-40px); }
}
/* Ajuste Móvil */
@media (max-width: 768px) {
    .hexagon-item { width: 150px; height: 175px; }
    .hexagon-item:not(:first-child) { margin-top: -35px; }
    .hexagon-item:nth-child(even) { transform: translateX(40px); }
    .hexagon-item:nth-child(odd) { transform: translateX(-40px); }
    .hexagon-item:nth-child(even):hover { transform: translateX(40px) scale(1.1) !important; }
    .hexagon-item:nth-child(odd):hover { transform: translateX(-40px) scale(1.1) !important; }
    .porcentaje { font-size: 1.4rem; }
}

/* Ajuste para pantallas muy pequeñas (iPhone SE / pantallas de 320px) */
@media (max-width: 380px) {
    .hexagon-item {
        width: 120px;
        height: 140px;
        margin-bottom: -30px;
    }
    .hexagon-item:nth-child(even) { transform: translateX(30px); }
    .hexagon-item:nth-child(odd) { transform: translateX(-30px); }
}
/* --- PAGINA ORGANIGRAMA ------------------------------------------------------------------------------------------------*/
/* --- BOTÓN DE REGRESO --- */
.contenedor-boton-regreso {
    display: flex;
    justify-content: center;
    padding: 40px 0 80px 0; /* Espacio para que no quede pegado al final */
}

.btn-regresar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: #E98596; /* Rosa Institucional */
    border: 2px solid #E98596;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-regresar ion-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.btn-regresar:hover {
    background-color: #E98596;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(233, 133, 150, 0.2);
    transform: translateY(-3px);
}

/* Animación del icono al pasar el mouse */
.btn-regresar:hover ion-icon {
    transform: translateX(-5px); /* El icono se mueve a la izquierda */
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .btn-regresar {
        width: 80%;
        justify-content: center;
    }
}
/* --- DISEÑO EXCLUSIVO TÍTULO ORGANIGRAMA --- */
.titulo-organigrama-especial {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 20px;
}

.titulo-custom {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #636363;
    margin: 0;
    text-transform: none; /* Esto quita las mayúsculas automáticas */
    letter-spacing: -1px;
    animation: aparecerSuave 1.2s ease-out;
}

.titulo-custom span {
    background: linear-gradient(45deg, #E98596, #F9B680); /* Rosa a Naranja */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* Línea animada que nace del centro */
.linea-decorativa {
    height: 6px;
    width: 0;
    background: linear-gradient(to right, #E98596, #F9B680);
    margin: 10px auto 0;
    border-radius: 10px;
    animation: expandirLinea 1s forwards 0.5s ease-in-out;
}

/* Animaciones */
@keyframes aparecerSuave {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandirLinea {
    to { width: 120px; }
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .titulo-custom {
        font-size: 2.2rem;
    }
    .linea-decorativa {
        width: 80px;
    }
}
/* Color Naranja Institucional para la palabra CRUZ */
.txt-cruz-nav {
    color: #F9B680 !important; /* Naranja melón */
    font-weight: 900;
    text-transform: uppercase;
}

/* Color Rosa Institucional para la palabra ROSA */
.txt-rosa-nav {
    color: #E98596 !important; /* Rosa fuerte */
    font-weight: 900;
    text-transform: uppercase;
}

/* Ajuste para que el resto del título no salga siempre en mayúsculas */
.titulo-shimmer {
    text-transform: none !important; /* Esto permite que "Patronato" se vea normal */
    font-size: 3rem;
    font-weight: 800;
    color: #636363;
}

/* Opcional: Que el subrayado tenga ambos colores */
.subrayado-animado {
    background: linear-gradient(to right, #F9B680, #E98596) !important;
}

.patronato-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.patronato-container {
   max-width: 1400px !important; 
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patronato-main-card {
    background: #fffafa;
    border-left: 8px solid #E98596; /* Borde más grueso para resaltar */
    padding: 40px 20px !important; /* Más aire arriba y abajo */
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(233, 133, 150, 0.1);
    text-align: center;
    width: 100%;
}

.patronato-main-card p {
    font-size: 1.6rem; /* Texto de cabecera más grande */
    color: #333;
    line-height: 1.6;
    font-weight: 600;
}

/* Eliminamos el grid aquí para que fluyan en vertical gracias al contenedor */
.patronato-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.func-item {
    display: flex;
    align-items: center; 
    gap: 40px; /* Más espacio entre icono y texto */
    padding: 25px 40px !important; /* Padding vertical moderado y horizontal amplio */
    background: #ffffff;
    border-radius: 30px; /* Bordes más redondeados */
    border: 2px solid #fdf2f4;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.func-item:hover {
    transform: scale(1.03); /* Crece un poquito más al pasar el mouse */
    box-shadow: 0 20px 40px rgba(233, 133, 150, 0.12);
    border-color: #E98596;
}

.func-item ion-icon {
    font-size: 5rem; /* Icono XL */
    color: #F9B680;
    flex-shrink: 0;
}

.func-item h4 {
    color: #E98596;
    font-size: 1.4rem; /* Título de función más grande */
    font-weight: 800;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.func-item p {
    /* Ajustamos el tamaño de fuente si es necesario para que quepa en una línea */
    font-size: 1.15rem; 
    line-height: 1.4;
    margin: 0;
    /* Evita que el texto se amontone si la pantalla es muy ancha */
    flex: 1; 
}

/* --- AJUSTE MÓVIL OPTIMIZADO --- */
@media (max-width: 768px) {
    .patronato-section {
        padding: 40px 15px;
    }
    
    .patronato-main-card {
        padding: 30px 20px;
    }

    .patronato-main-card p {
        font-size: 1.2rem;
    }

    .func-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .func-item ion-icon {
        font-size: 4rem;
    }

    .func-item h4 {
        font-size: 1.2rem;
    }

    .func-item p {
        font-size: 1.05rem;
    }
}

/* --- DISEÑO MAPA CONCEPTUAL (MÁS GRANDE Y EN NEGRITAS) --- */
.mapa-conceptual-section {
    padding: 60px 20px;
    background-color: #fdfdfd;
}

.organigrama-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.tree-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 15px; /* Bordes redondeados sutiles */
    width: 260px; /* Reducido de 380px a 260px */
    padding: 20px; /* Padding reducido */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Colores de cabecera */
.tree-card.principal { border-top: 5px solid #F9B680; }
.tree-card.secundario { border-top: 5px solid #E98596; }

.tree-card.secundario, .tree-card:not(.principal) {
    background-color: #f9f9f9;
}

.tree-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(233, 133, 150, 0.15);
}

.card-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header ion-icon {
    font-size: 1.8rem; /* Icono más pequeño */
    color: #F9B680;
}

.card-header h3 {
    font-size: 1.1rem; /* Título ajustado */
    font-weight: 800;
    color: #555;
    margin: 0;
}

.card-header h3 { font-size: 1.2rem; font-weight: 800; color: #555; margin: 0; }
.card-body p { font-size: 0.95rem; line-height: 1.4; color: #444; font-weight: 500; }

.tree-connector-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.line-vertical-short {
    width: 2px;
    height: 30px;
    background-color: #f1bdc8;
}
.line-horizontal-wide {
    width: 75%; /* Ancho de la línea que une las 4 cajas */
    height: 2px;
    background-color: #f1bdc8;
}


.card-body strong {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.card-body p {
    font-size: 0.88rem; /* Texto más pequeño para ahorrar espacio vertical */
    line-height: 1.4;
    color: #444;
    font-weight: 700; /* Se mantiene negrita solicitado */
    margin: 0;
}

/* Conectores más visibles */
.tree-line.vertical {
    width: 4px;
    height: 60px; /* Conectores más largos */
    background: #f1bdc8;
}

.tree-branches {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre tarjetas reducido */
    width: 100%;
    margin-top: 0;
}
.branch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.branch-line {
    width: 2px;
    height: 20px;
    background-color: #f1bdc8;
}

/* Ajuste Móvil */
@media (max-width: 1024px) {
    .tree-branches {
        flex-direction: column;
        align-items: center;
        border-top: none;
        width: 100%;
        gap: 30px;
    }
    .line-horizontal-wide, .branch-line {
        display: none;
    }
    .tree-card {
        width: 100%;
        max-width: 450px;
    }
}
/* --- AJUSTES PARA VISTA DE TELÉFONO (MAPA CONCEPTUAL) --- */
@media (max-width: 768px) {
    .mapa-conceptual-section {
        padding: 50px 15px; /* Reducimos el espacio exterior */
    }

    .organigrama-tree {
        width: 100%;
    }

    .tree-card {
        width: 100% !important; /* La tarjeta ocupa todo el ancho disponible */
        max-width: 100%;
        padding: 25px 20px; /* Un poco más compacto */
        margin: 0 auto;
    }

    .card-header h3 {
        font-size: 1.3rem; /* Título un poco más pequeño para que no salte de línea */
    }

    .card-body p {
        font-size: 1.05rem; /* Tamaño de lectura cómodo para móvil */
        text-align: left; /* Alineación a la izquierda para mejor lectura */
    }

    /* Ajuste de las líneas conectoras en móvil */
    .tree-line.vertical {
        height: 30px; /* Líneas más cortas entre puestos principales */
    }

    .tree-branches {
        flex-direction: column; /* Alineamos Secretario, Tesorero y Vocales hacia abajo */
        align-items: center;
        gap: 20px;
        padding-top: 0;
        border-top: none; /* Quitamos la línea horizontal que no funciona en móvil */
        width: 100%;
    }

    /* Agregamos una pequeña línea vertical entre las tarjetas de abajo para mantener la conexión */
    .tree-branches .tree-card:not(:last-child)::after {
        content: '';
        display: block;
        width: 4px;
        height: 20px;
        background: #f1bdc8;
        margin: 20px auto -20px auto;
    }
}

/* Pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 380px) {
    .card-header ion-icon {
        font-size: 2.2rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
}

/* --- SECCIÓN NOMBRES PATRONATO ORGANIZADO --- */
.fundadores-badge {
    position: relative !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 50px !important;
    margin-bottom: -15px;
}
.seccion-patronato-nombres {
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}
.patronato-layout-wrapper {
    max-width: 1550px; /* Aumentamos el ancho máximo del contenedor */
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.patronato-header-box {
    border: 6px solid #E98596; 
    padding: 20px 60px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.patronato-header-box h1 {
    color: #E98596;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}
.fila-fundadores-unica {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}
.tarjeta-fundador-doble {
    position: relative;
    width: 800px; /* Ancho suficiente para ambos nombres */
    max-width: 90%;
}
.caja-rosa-fundadores-ancha {
    background-color: #FFE3E6;
    border: 5px solid #E98596; /* Borde rosa institucional */
    border-radius: 20px;
    padding: 45px 30px 25px 30px;
    display: flex;
    justify-content: space-around; /* Separa los nombres hacia los extremos */
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.nombre-fundador {
    font-size: 1.3rem;
    font-weight: 800;
    color: #444;
    flex: 1;
    text-align: center;
}

.fila-fundadores {
    display: flex;
    gap: 50px;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}
.fila-fundadores-unica .badge-estilo-fundador {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F9B680;
    color: white;
    padding: 8px 30px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 3px solid white;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tarjeta-fundador {
    position: relative;
    width: 400px; /* Tamaño reducido solicitado */
}
.caja-rosa-fundador {
    background-color: #FFE3E6; /* Rosa suave */
    border: 5px solid #E98596; /* Borde rosa fuerte */
    padding: 45px 25px 30px 25px; /* Más espacio interno */
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.badge-mini {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F9B680; /* Naranja institucional */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    border: 2px solid white;
}
.organigrama-linea-v {
    width: 3px;
    height: 50px;
    background: #E98596;
}
.organigrama-linea-h {
    width: 75%;
    height: 3px;
    background: #E98596;
    margin-bottom: 30px;
}

.fundadores-ancho {
    min-width: 600px; /* Caja más ancha para los dos nombres */
}
.nombres-fundadores-flex {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
/* --- DISEÑO DE TARJETAS CON TRASLAPE CIRCULAR --- */
.fila-directiva {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Hace que todas tengan la misma altura si quieres, o flex-start para compacto */
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.tarjeta-directiva {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 260px;
}
.badge-estilo-fundador {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F9B680; /* Naranja institucional */
    color: white;
    padding: 10px 35px;
    border-radius: 50px;
    font-size: 0.80rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Líneas conectoras del color de la marca */
.organigrama-linea-v { width: 3px; height: 30px; background: #E98596; }
.organigrama-linea-h { width: 85%; height: 3px; background: #E98596; margin-bottom: 20px; }

.caja-nombres-compacta {
    background-color: #FFE3E6; /* Rosa suave */
    border: 3px solid #E98596; /* Borde rosa fuerte */
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}
.nombres-juntos {
    margin-bottom: 5px;
}
.nombres-juntos .nom-p {
    font-size: 1.5rem;
    margin: 1px 0;
}
.caja-rosa {
    background-color: #FFE3E6;
    border: 3px solid #E98596;
    padding: 15px 10px 15px 55px;
    border-radius: 10px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #444;
}
.nom-p {
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    margin: 2px 0; /* Espaciado mínimo entre nombres */
    line-height: 1.1;
}
.nom-p.destaque-rosa {
    font-size: 1.2rem;
}
.zona-sup-compacta {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(233, 133, 150, 0.3);
}
.sup-label {
    font-size: 1.2rem;
    color: #8d4a5a;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.sup-p { 
    font-size: 0.7rem; 
    color: #8d4a5a; 
    text-decoration: underline; 
    display: block;
    margin-top: 4px;
    font-weight: 600;
}
.nom-sup {
    font-size: 1.05rem;
    color: #666;
    font-weight: 600;
    margin: 0;
}
.tarjeta-directiva.vocales-fix {
    max-width: 250px;
}
.nom-p.small { font-size: 0.75rem; color: #666; }

.tarjeta-directiva:last-child .caja-rosa {
    min-height: 180px;
}

.tarjeta-integrante {
    position: relative;
    display: flex;
    align-items: center; /* Centra el círculo verticalmente respecto a la caja */
    min-width: 300px;
    flex: 1;
}


.cuerpo-nombre {
    background-color: #FFE3E6; /* Rosa suave de la guía */
    padding: 20px 20px 20px 70px; /* Padding extra a la izquierda para no tapar el texto con el círculo */
    border-radius: 10px;
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.05);
    border: none;
}

/* Estilos de Texto dentro de la caja rosa */
.nombre-item {
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    margin: 0;
}

.zona-suplente {
    margin-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 5px;
}

.zona-suplente span {
    font-size: 0.7rem;
    text-decoration: underline;
    color: #666;
}

/* Ajuste específico para Vocales (que tiene más nombres) */
.tarjeta-integrante:last-child .cuerpo-nombre {
    min-height: 200px;
}


.patronato-grid-nombres {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px 30px; /* Más espacio entre filas para que respiren los cargos */
    max-width: 1200px;
    width: 100%;
}

.badge-cargo {
    position: absolute;
    top: 0;
    background-color: #F9B680;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 5;
    border: 3px solid white;
    min-width: 160px;
    text-align: center;
}



.tarjeta-integrante:hover .cuerpo-nombre {
    transform: translateY(-10px);
    border-color: #f1bdc8; 
    box-shadow: 0 20px 50px rgba(233, 133, 150, 0.12);
}



.nombre-item.destaque {
    color: #E98596;
    font-size: 1.2rem;
    font-weight: 800;
}

.lista-nombres {
    margin-bottom: 10px;
}

.lista-nombres p {
    font-size: 1rem;
    font-weight: 600;
    margin: 4px 0;
    color: #444;
}


.zona-suplente p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #777;
    margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .fila-directiva {
        flex-wrap: wrap; /* En tablets bajan los que no quepan */
        justify-content: center;
    }
    .tarjeta-integrante {
        flex: none;
        width: 300px;
    }
}
@media (max-width: 1024px) {
    .patronato-grid-nombres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .fundadores-ancho { min-width: 100%; }
    .nombres-fundadores-flex { flex-direction: column; }
    .fila-directiva { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
    .patronato-grid-nombres { grid-template-columns: 1fr; }
    .cuerpo-nombre { min-height: auto; }
}
/* --- SECCIÓN MENSAJE EDITORIAL (PRESIDENTA) --- */
.seccion-mensaje-editorial {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #ffffff, #fff5f6);
    display: flex;
    justify-content: center;
}

.mensaje-editorial-container {
    max-width: 1200px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Estilo de la Foto */
.columna-foto-presidenta {
    flex: 1;
    position: sticky;
    top: 100px;
    text-align: center;
}

.marco-foto {
    position: relative;
    padding: 15px;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid #f1bdc8;
    display: inline-block;
}

.marco-foto img {
    max-width: 320px;
    height: auto;
    display: block;
}

.info-presidenta-lateral {
    margin-top: 25px;
}

.firma-manuscrita {
    font-family: 'Dancing Script', cursive; /* Asegúrate de importar esta fuente o usa una similar */
    font-size: 2.5rem;
    color: #555;
    margin-bottom: 10px;
}

.nombre-cargo {
    color: #E98596;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0;
}

.sub-cargo {
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
}

/* Estilo de la Tarjeta de Texto */
.columna-texto-mensaje {
    flex: 2;
}

.card-mensaje-editorial {
    padding: 60px 50px; /* Más espacio interno para que se vea robusto */
    border-radius: 30px;
    background: white;
    box-shadow: 0 10px 50px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icono-comillas-bg {
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 6rem;
    color: #fde2e7;
    opacity: 0.5;
}

.titulo-mensaje {
    font-size: 3rem;
    color: #E98596;
    margin-bottom: 40px;
    font-weight: 900;
}

.saludo-inicial {
    font-size: 1.5rem;
    color: #E98596;
    font-weight: 800;
    margin-bottom: 25px;
}

.cuerpo-mensaje p {
    font-size: 1.35rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
    text-justify: inter-word;
}

.frase-resaltada {
    font-size: 1.4rem;
    color: #F9B680;
    font-weight: 700;
    padding: 30px;
    margin: 40px 0;
    border-top: 2px solid #F9B680;
    border-bottom: 2px solid #F9B680;
    text-align: center;
    font-style: italic;
}

.txt-rosa-bold {
    color: #E98596;
    font-weight: 800;
}
/* --- ANIMACIONES PARA LA TARJETA DE LA PRESIDENTA --- */

/* 1. Definición de las animaciones */

/* Entrada suave: aparece de abajo hacia arriba con opacidad */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Levitación: movimiento vertical infinito casi imperceptible */
@keyframes sutilFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* 2. Aplicación a la tarjeta rosa */

.tarjeta-identidad-rosa {
    /* ... tus estilos anteriores ... */
    
    /* Animación de entrada: dura 1 segundo al cargar la página */
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    
    will-change: transform, opacity;
}

/* 3. Efecto extra al pasar el mouse (Hover) */

.tarjeta-identidad-rosa:hover {
    transform: scale(1.02); /* Crece un 2% */
    box-shadow: 0 20px 45px rgba(233, 133, 150, 0.25);
    transition: all 0.4s ease-in-out;
}

/* 4. Animación sutil solo para la foto dentro del cuadro */

.marco-foto-ovalada {
    /* ... tus estilos anteriores ... */
    
    /* La foto "flota" suavemente todo el tiempo */
    animation: sutilFloat 5s ease-in-out infinite;
}

/* 5. Destello sutil en el texto al entrar */

.nombre-presidenta {
    animation: fadeInUp 1.5s ease-out forwards;
}

/* --- RESPONSIVO PARA MÓVIL --- */
@media (max-width: 992px) {
    .mensaje-editorial-container {
        flex-direction: column;
        align-items: center;
    }
    
    .columna-foto-presidenta {
        position: static;
        margin-bottom: 50px;
    }

    .card-mensaje-editorial {
        padding: 40px 25px;
        border-left: 0;
        border-top: 10px solid #E98596;
    }

    .titulo-mensaje {
        font-size: 2.2rem;
    }
}
@media (max-width: 1100px) {
    .marco-foto img {
        width: 350px !important; /* Un poco más pequeñas en pantallas medianas */
    }
}
/* --- AJUSTES PARA VISTA DE TELÉFONO (MENSAJE PRESIDENTA) --- */
@media (max-width: 992px) {
    .mensaje-editorial-container {
        flex-direction: column; /* Apila la foto sobre el texto */
        align-items: center;
        gap: 30px;
    }

    .columna-foto-presidenta {
        position: static; /* Quita el efecto pegajoso en móvil */
        width: 100%;
        max-width: 350px; /* Limita el tamaño de la foto en tablets */
    }

    .marco-foto img {
        max-width: 100%; /* La imagen se ajusta al marco */
    }

    .columna-texto-mensaje {
        width: 100%;
    }

    .card-mensaje-editorial {
        padding: 40px 20px; /* Menos espacio interno para que quepa más texto */
        border-left: 0;
        border-top: 8px solid #E98596; /* Cambiamos borde lateral por superior */
        border-radius: 20px;
    }

    .titulo-mensaje {
        font-size: 2.2rem; /* Título más pequeño para móvil */
        margin-bottom: 25px;
        text-align: center;
    }

    .icono-comillas-bg {
        font-size: 4rem; /* Comillas más pequeñas */
        top: 20px;
        right: 20px;
    }

    .saludo-inicial {
        font-size: 1.3rem;
        text-align: center;
    }

    .cuerpo-mensaje p {
        font-size: 1.05rem; /* Tamaño de letra cómodo para celular */
        text-align: left; /* Cambiamos de justificado a izquierda para evitar huecos */
        line-height: 1.7;
    }

    .frase-resaltada {
        font-size: 1.15rem;
        padding: 20px;
        margin: 30px 0;
    }

    .info-presidenta-lateral {
        margin-top: 15px;
    }

    .firma-manuscrita {
        font-size: 2rem;
    }
}

/* Optimización para pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 400px) {
    .titulo-mensaje {
        font-size: 1.8rem;
    }
    
    .card-mensaje-editorial {
        padding: 30px 15px;
    }
}
/* --- AJUSTE DE TEXTO JUSTIFICADO GENERAL PARA LECTURA --- */

/* 1. Sección Historia */
.intro-text, 
.cuadro-rosa-info,
.cuadro-rosa-interactivo p {
    text-align: justify !important;
    text-justify: inter-word; /* Mejora el espaciado entre palabras */
}

/* 2. Constitución Legal */
.constitucion-card p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* 3. Objetivos de Desarrollo Sostenible (ODS) */
.ods-texto-principal,
.ods-lema-principal {
    text-align: justify !important;
    text-justify: inter-word;
}

/* 4. Modelo de Intervención (Texto introductorio) */
.modelo-descripcion-introduccion {
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 30px;
    border-left: 8px solid #E98596; /* Acento rosa */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    text-align: justify;
    text-justify: inter-word;
}
.modelo-descripcion-introduccion p {
    font-size: 1.4rem; /* Tamaño XL para legibilidad */
    line-height: 1.7;
    color: #444;
    margin: 0;
    font-weight: 700;
}

.modelo-descripcion-introduccion strong {
    color: #F9B680; /* Naranja institucional */
    font-weight: 800;
}
/* 5. Mensaje de la Presidenta (Editorial) */
.cuerpo-mensaje p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* --- AJUSTE RESPONSIVO --- 
   En dispositivos móviles, a veces el justificado crea huecos blancos feos.
   Si notas eso, usa este bloque para regresarlo a la izquierda solo en celulares: */

@media (max-width: 768px) {
    .intro-text, 
    .cuadro-rosa-info,
    .constitucion-card p,
    .cuerpo-mensaje p,
   .modelo-descripcion-introduccion {
        margin: 1.5rem 20px 3rem 20px;
        padding: 25px;
        border-left-width: 5px;
    }
    .modelo-descripcion-introduccion p {
        font-size: 1.1rem;
        text-align: left;
    }
}
/*------ Nuevo estilo patronato Cruz rosa ---*/
/* --- TARJETA DE IDENTIDAD ROSA (IZQUIERDA) --- */

.tarjeta-identidad-rosa {
    background-color: #FFE3E6;
    border-radius: 30px;
    height: 100%;
    display: flex;
    justify-content: center; /* Centrado vertical */
    align-items: center;     /* Centrado horizontal */
    padding: 40px;
    box-shadow: 0 15px 40px rgba(233, 133, 150, 0.15);
}
.contenido-centrado-identidad {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.marco-foto-ovalada {
    width: 300px;  /* Aumentado de 250px a 300px */
    height: 400px; /* Aumentado de 330px a 400px */
    border-radius: 150px; /* Óvalo proporcional al nuevo tamaño */
    overflow: hidden;
    border: 8px solid #ffffff;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.marco-foto-ovalada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-perfil-centrada {
    width: 100%;
}

.gratitud-texto {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.nombre-presidenta {
    font-size: 1.4rem;
    font-weight: 800;
    color: #E98596; /* Rosa institucional */
    margin-bottom: 8px;
    line-height: 1.2;
}

.cargo-descripcion {
    font-size: 1.05rem;
    font-weight: 700;
    color: #444;
    margin: 2px 0;
}

/* --- AJUSTE DE COLUMNAS --- */

.mensaje-editorial-container {
    max-width: 1400px; /* Más ancho para reducir espacios vacíos en las orillas */
    width: 95%;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: stretch; /* Ambas columnas miden lo mismo de alto */
}

.columna-foto-presidenta {
    flex: 0 0 480px; /* Ancho fijo para la tarjeta rosa */
}

.columna-texto-mensaje {
    flex: 1;
}

/* --- RESPONSIVO PARA MÓVIL --- */

@media (max-width: 992px) {
    .mensaje-editorial-container {
        flex-direction: column;
        align-items: center;
    }
    
    .columna-foto-presidenta {
        width: 100%;
        max-width: 400px;
    }
}