/* ==========================================================================
   Contenido del Archivo: style.css
   Descripción: Estilos generales del sitio web de AMUP SC
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES Y UTILIDADES GLOBALES
   ========================================================================== */
/* Define colores, fuentes, etc., si los usas como variables CSS */
:root {
    --golden-primary: #B8860B; /* Dark Goldenrod */
    --golden-secondary: #DAA520; /* Goldenrod */
    --golden-accent: #FFD700; /* Gold */
    --dark-blue: #2c3e50; /* Un azul oscuro para fondos */
    --text-dark: #343a40;
    --text-light: #ecf0f1;
    --text-muted: #95a5a6;
    --bg-light-soft: #f9f9f9;
    --white: #ffffff;
    --light-gray: #f8f9fa; /* Fondo general del body */
    --border-color-light: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Ajustado para carrusel/cards */
}

/* Clases de utilidad que puedes aplicar en HTML */
.text-golden {
    color: var(--golden-primary) !important;
}
.justified-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    margin-bottom: 0.5em; /* Un poco de espacio entre cada "línea" */
}
.justified-list {
    text-align: justify;
    padding-left: 0;
    list-style: none;
}
.justified-list li::before {
    content: "•"; /* Usa un bullet personalizado */
    color: var(--golden-primary);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}
.bg-light-soft {
    background-color: var(--bg-light-soft);
}
.text-light-50 { /* Para texto más claro sobre fondos oscuros, como en el footer */
    color: rgba(255, 255, 255, 0.7) !important;
}


/* ==========================================================================
   2. ESTILOS BASE Y RESET
   ========================================================================== */
html {
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', sans-serif; /* Mantenemos tu fuente actual */
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Ajusta este valor si tu navbar cambia de altura */
}

/* Estilos de Contenedor General */
.container {
    max-width: 960px; /* Ancho máximo para centrar el contenido */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Encabezados Generales */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Mantengo esta fuente para títulos */
    color: var(--golden-primary); /* Dorado para todos los encabezados por defecto */
    margin-bottom: 1rem;
}
h1 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-top: 20px;
}
h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #EEE8AA; /* Dorado claro, puedes usar una variable si la defines */
    padding-bottom: 8px;
}
/* El .lead de Bootstrap ya tiene estilos, pero lo sobrescribimos si es necesario */
.lead {
    font-size: 1.35rem;
    color: var(--white); /* Para el hero section */
    margin-bottom: 30px;
    text-align: center; /* Mantener el centrado original */
}

/* Listas Generales (no para navbar) */
ul {
    list-style: none;
    padding-left: 0;
}
 
.checklist ul,
.justified-list {
    list-style: none;
    padding-left: 0;
}

.checklist ul li::before,
.justified-list li::before {
    content: "•";
    color: var(--golden-primary);
    display: inline-block;
    width: 1em;
    margin-left: -1em; /* O puedes usar margin-right si prefieres bullet antes del texto */
}

 /* ==========================================================================
   2.1. TABLAS
   ========================================================================== */
.custom-courses-table {
    border-radius: 0.75rem; /* Bordes redondeados para la tabla completa */
    overflow: hidden; /* Asegura que los bordes redondeados se apliquen bien */
    box-shadow: var(--shadow-md); /* Sombra sutil para un efecto "flotante" */
    background-color: var(--white); /* Fondo blanco para la tabla */
    border-collapse: separate; /* Necesario para que border-radius funcione con overflow */
    border-spacing: 0; /* Elimina espacio entre celdas */
}

/* Estilos del encabezado de la tabla */
.custom-courses-table thead {
    background-color: var(--golden-primary);
    color: var(--white);
}

.custom-courses-table th {
    padding: 1rem 1.2rem; /* Más padding para los encabezados */
    font-weight: 600; /* Un poco más de peso a la fuente */
    text-align: left; /* Asegura la alineación izquierda */
    border-bottom: none; /* Elimina el borde inferior del thead, Bootstrap ya añade un borde por defecto en th */
}

.custom-courses-table tbody tr {
    transition: background-color 0.2s ease-in-out; /* Transición suave al pasar el ratón */
}

/* Esta regla se ELIMINA o se deja COMENTADA si quieres el color por defecto de Bootstrap: */
 
.custom-courses-table tbody tr:hover {
    background-color: rgba(218, 165, 32, 0.1); /* Fondo dorado suave al pasar el ratón */
    color: var(--text-dark); /* Color de texto más oscuro al pasar el ratón */
}

.custom-courses-table td {
    padding: 1rem 1.2rem; /* Padding consistente para las celdas */
    border-bottom: 1px solid var(--border-color-light); /* Solo borde inferior suave */
    color: var(--text-dark); /* Color de texto estándar para celdas */
}

/* Estilo para el último borde inferior de la tabla */
.custom-courses-table tbody tr:last-child td {
    border-bottom: none;
}

/* Alineación para el icono de WhatsApp en la celda */
.custom-courses-table td:last-child {
    text-align: center; /* Centra el icono de WhatsApp en su celda */
}

/* Estilo específico para el enlace de WhatsApp */
.course-whatsapp-link {
    color: #25D366 !important; /* Color oficial de WhatsApp */
    transition: transform 0.2s ease-in-out;
}

.course-whatsapp-link:hover {
    transform: scale(1.1); /* Efecto de zoom al pasar el ratón */
    color: #1DA851 !important; /* Un verde un poco más oscuro al pasar el ratón */
}

/* Asegurar que las imágenes de productos (si las tuvieras en la tabla) se vean bien */
.custom-courses-table .course-img {
    max-width: 80px;
    height: auto;
    border-radius: 0.5rem;
}

/* ==========================================================================
   3. COMPONENTES DEL SITIO
   ========================================================================== */

/* --- Navbar / Header --- */
.navbar {
    box-shadow: 0 0.2rem 0.5rem var(--border-color-light);
    z-index: 1030;
    position: fixed;
    top: 0;
    width: 100%;
}
/* Estilo para navbar con fondo blanco */
.navbar-light {
    background-color: var(--white);
}

.navbar-brand img {
    height: 70px; /* Tamaño del logo en la navbar */
    transition: height 0.3s ease-in-out;
}
/* Ajustes para el texto de la marca (logo) */
.navbar-light .navbar-brand {
    color: var(--golden-primary) !important;
    font-weight: 700;
}
.navbar-light .navbar-brand:hover {
    color: var(--golden-secondary) !important;
}

/* **¡NUEVAS REGLAS CRÍTICAS PARA LISTAS DE NAV!** */
.navbar-nav {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}
.navbar-nav .nav-item {
    list-style: none !important;
}
.navbar-nav .nav-item::before { /* Esto es más robusto para pseudo-elementos */
    content: none !important;
    display: none !important;
}

/* Estilos para los enlaces de navegación */
.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-right: 15px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Efecto de raya inferior y cambio de color al pasar el mouse o para el enlace activo */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--golden-primary) !important;
    border-bottom: 2px solid var(--golden-primary);
    padding-bottom: 2px;
}


/* Estilos para el botón de sonido */
#audio-control {
    position: fixed;
     top: 10px;
    right: 20px;
    z-index: 9999;
}

#audio-control button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border-radius: 50%;
    background-color:  var(--white);
    border: none;
}

.btn-primary {
        background-color: #B8860B;
        border: none;
        border-radius: 50px;
        padding: 10px 22px;
        font-weight: 600;
        box-shadow: 0 5px 12px rgba(184, 134, 11, 0.4);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }
    .btn-primary:hover {
        background-color: #a9780a;
        box-shadow: 0 7px 15px rgba(169, 120, 10, 0.7);
    }


/* --- Botones CTA generales --- */
.cta-button {
    display: inline-block;
    background-color: var(--white); /* Botón blanco sobre fondo dorado */
    color: var(--golden-primary) !important;
    padding: 15px 35px; /* Ajustado de 12px 30px */
    border-radius: 0.75rem; /* Ajustado de 50px */
    text-transform: uppercase; /* Lo tenía en la versión anterior, lo conservo */
    font-weight: 600; /* Ajustado de bold */
    font-size: 1.3rem; /* Ajustado de 1.1rem */
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none; /* Asegurar que no tenga borde si lo tuviera */
    cursor: pointer; /* Asegurar el cursor de puntero */
    margin-top: 20px; /* Mantener margen del botón CTA */
	 text-decoration: none;
}
.cta-button:hover {
    background-color: #f0f0f0; /* Un blanco más suave al pasar el mouse */
    color: var(--golden-secondary) !important; /* Dorado más oscuro al pasar el mouse */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* --- Tarjetas (Cards) --- */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm); /* Usamos la variable para la sombra */
    margin-bottom: 25px;
    background-color: var(--white);
    transition: transform 0.2s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
}
.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 50px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-text {
    font-size: 0.95rem;
    color: #6c757d; /* Gris más oscuro */
    flex-grow: 1;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.card-footer {
    background-color: var(--light-gray);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: #888;
}
.card-footer small {
    color: inherit;
}
.card-img-top {
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: block;
}


/* --- Carruseles (Galerías de imágenes) --- */
.carousel-inner {
    height: 650px; /* Altura predeterminada para escritorio */
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg); /* Sombra más marcada */
}
.carousel-item {
    height: 100%;
    width: 100%;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Sombra de la imagen individual */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: block;
    margin: 0 auto;
}
.carousel-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.carousel-caption {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    padding: 15px;
    border-radius: 0.5rem;
}
.carousel-caption h5 {
    color: var(--golden-primary);
    font-size: 1.7rem;
}
.carousel-caption p {
    color: #555;
    font-size: 1.1rem;
}
/* Carrusel de Ex-Presidentas */
#exPresidentasCarousel .carousel-inner {
    height: 600px; /* Altura específica para ex-presidentas */
    max-width: 700px; /* Limita el ancho máximo del carrusel */
    margin-left: auto;
    margin-right: auto; /* Centra el carrusel en la página */
}
/* Carrusel de Sede (Si aplica y tiene un ID diferente) */
#sedeCarousel .carousel-inner {
    height: 600px; /* Ajusta si necesitas una altura diferente para la sede */
}

/* Controles del carrusel (flechas y puntos) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23B8860B'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23B8860B'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0-.708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.carousel-indicators [data-bs-target] {
    background-color: var(--golden-primary);
}


/* ==========================================================================
   4. SECCIONES ESPECÍFICAS
   ========================================================================== */

/* --- Sección Principal / Hero (Inicio - index.php) --- */
.golden-background-section {
    background-image: linear-gradient(135deg, var(--golden-accent) 0%, var(--golden-secondary) 20%, var(--golden-primary) 50%, var(--golden-secondary) 80%, var(--golden-accent) 100%);
    background-size: 200% 200%;
    animation: goldShine 3s ease infinite;
    color: var(--white);
    padding: 100px 0; /* Padding vertical, puedes ajustar */
    margin-top: 0;
    margin-bottom: 0;
    /* position: relative; overflow: hidden; si tienes formas de fondo */
}
@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.anniversary-heading {
    font-size: 58px !important;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.full-width-section { /* Si usas esta clase para secciones de ancho completo */
    width: 100%;
    padding: 40px 0;
}


/* --- Sección "Nuestra Historia" (nosotras.php) --- */
#nuestra-historia { /* Aplica el bg-light-soft y relative/overflow aquí */
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light-soft); /* Aplicar el fondo suave aquí directamente */
    padding-top: 5rem; /* Ajusta el padding vertical si es necesario */
    padding-bottom: 5rem;
}
.story-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid var(--golden-primary);
    margin-bottom: 20px;
}
.lead.fw-bold.text-dark {
    font-size: 1.25rem;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    line-height: 1.6;
}
.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.5s;
}
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.background-shape { /* Elemento decorativo */
    position: absolute;
    top: -50px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(218, 165, 32, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
#nuestra-historia .container {
    position: relative;
    z-index: 1;
}


/* --- Sección "Nuestro Directorio" (nosotras.php) --- */
.member-card {
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out;
}
.member-card:hover {
    transform: translateY(-5px);
}
 .member-card img.rounded-circle {
        /* Define un tamaño fijo y cuadrado para las imágenes de perfil */
        width: 150px; /* Ajusta este valor al tamaño que desees para el círculo */
        height: 150px; /* Debe ser igual al width para un círculo perfecto */
        object-fit: cover; /* Recorta la imagen para llenar el contenedor */
        /* --- ESTO ES CLAVE: Ajusta la posición del recorte --- */
        object-position: center top; /* O '50% 0%' - Prioriza la parte superior de la imagen */
        /* Si quieres que se centre verticalmente en la cara: 'center 20%' o 'center 30%'
           Puedes jugar con el segundo valor (vertical) para encontrar el punto ideal. */

        /* Asegúrate de que no haya otros estilos que anulen esto, como un 'max-height' excesivo */
        border-radius: 50%; /* Reafirmar que sea completamente circular */
    }
.member-card h5 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 5px;
}
.member-card p {
    font-size: 0.9rem;
}


/* --- Sección CTA Global (ej. "Sé parte de una historia...") --- */
.cta-section {
    text-align: center;
    margin-top: 50px;
    background-image: linear-gradient(135deg, var(--golden-accent) 0%, var(--golden-secondary) 20%, var(--golden-primary) 50%, var(--golden-secondary) 80%, var(--golden-accent) 100%);
    background-size: 200% 200%;
    animation: goldShine 3s ease infinite;
    color: var(--white);
    padding: 40px 20px;
    border-radius: 1rem;
    box-shadow: var(--shadow-md); /* Sombra estándar */
}


/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    font-size: 1.05rem;
    border-top: 5px solid var(--golden-primary);
}
.footer p {
    margin-bottom: 10px;
    color: var(--text-muted);
}
.footer p.copyright {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.footer h5 {
    color: var(--golden-secondary);
    font-weight: 600;
}
.footer ul {
    list-style: none;
    padding-left: 0;
}
.footer ul li {
    margin-bottom: 8px;
}
/* Iconos de Redes Sociales en el Footer */
.footer .social-icons a {
    color: var(--golden-secondary);
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.footer .social-icons a:hover {
    color: var(--golden-accent);
    transform: translateY(-3px);
}
/* Estilo para los iconos de contacto (mapa, teléfono, email) */
.footer .list-unstyled .fa-map-marker-alt,
.footer .list-unstyled .fa-phone,
.footer .list-unstyled .fa-envelope {
    font-size: 1.2rem;
    color: var(--golden-primary);
}
/* Línea divisoria en el footer */
.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   6. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 768px) {
  #audio-control {
    position: fixed !important;
    bottom: 20px !important;
    top: auto !important;
    right: 20px !important;
    z-index: 9999;
  }
  card-body h2 {
            font-size: 1.3rem; /* Títulos más pequeños en móviles */
            /* Si también tienes line-clamp en h2, quítalo aquí: */
            -webkit-line-clamp: unset !important; /* Desactiva el corte para títulos */
            display: block !important; /* Asegura que no se comporte como caja flexible para el clamp */
        }
        .card-body p {
            font-size: 0.9rem; /* Párrafos más pequeños en móviles */
        }
        .card-body {
            padding: 1rem; /* Menos padding en pantallas pequeñas */
        }

        /* --- LO MÁS IMPORTANTE PARA EL TEXTO QUE SE CORTA --- */
        .card-text {
            /* Desactiva el line-clamp para que el texto fluya libremente */
            -webkit-line-clamp: unset !important; /* Elimina la limitación de líneas */
            display: block !important; /* Sobreescribe el display -webkit-box para que el texto fluya */
            height: auto !important; /* Asegura que no haya una altura fija forzada */
            overflow: visible !important; /* Permite que el contenido se vea completo */
            text-overflow: unset !important; /* Elimina los puntos suspensivos */
        }

        /* Si tienes un min-height en card-title que pueda causar problemas, ajústalo aquí si es necesario */
        .card-title {
            -webkit-line-clamp: unset !important; /* Desactiva el corte para títulos */
            display: block !important;
            height: auto !important;
            overflow: visible !important;
            text-overflow: unset !important;
        }
  
  
  .member-card img.rounded-circle {
            width: 100px; /* Un poco más pequeño en móviles */
            height: 100px;
            object-position: center top; /* Mantén el recorte superior */
        }
.footer .list-unstyled li::before {
    content: none !important;
    display: none !important;
}
.footer .list-unstyled.d-flex {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer .list-unstyled.d-flex li {
    margin-bottom: 0 !important;
  }

  .footer .list-unstyled.d-flex li::before {
    content: none; /* Elimina el punto dorado si no lo quieres horizontal */
  }
  .contact-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding-left: 0;
  }

  .contact-list li {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    text-align: center;
  }

  .contact-list li i {
    margin-right: 8px;
  }

  .contact-list li span,
  .contact-list li a {
    white-space: nowrap;
  }
  .custom-courses-table th,
    .custom-courses-table td {
        padding: 0.8rem; /* Menos padding en pantallas pequeñas */
        font-size: 0.9rem; /* Texto ligeramente más pequeño */
    }

    /* Asegurar que el icono de WhatsApp sigue centrado o visible en móvil */
    .custom-courses-table td:last-child {
        text-align: center;
    }
}

/* Para pantallas de tablets y móviles (menos de 992px) */
@media (max-width: 991.98px) {
    /* Navbar en móviles */
    .navbar-collapse {
        background-color: var(--white);
        border-top: 1px solid var(--border-color-light);
        padding-bottom: 10px;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        box-shadow: var(--shadow-md);
    }
    .navbar-nav {
        width: 100%;
    }
    .navbar-nav .nav-item {
        text-align: center;
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: none !important; /* Remueve la raya inferior en móviles si no se desea */
        padding-bottom: 0 !important; /* Remueve el padding inferior en móviles si no se desea */
    }
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
 

    /* Padding de secciones generales en móviles */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Fuente de encabezados en móviles */
    h1 { font-size: 2.5rem; margin-bottom: 15px; }
    h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 0.8rem; }
    h3 { font-size: 1.5rem; }
    .display-4 { font-size: 2.5rem; } /* Asegura el tamaño del display-4 */
    .lead { font-size: 1.1rem; margin-bottom: 20px; } /* Ajuste para .lead */

    /* Altura de carruseles en móviles */
    .carousel-inner {
        height: 350px;
    }
    #exPresidentasCarousel .carousel-inner {
        height: 600px;
    }
    #sedeCarousel .carousel-inner {
        height: 350px;
    }
    .carousel-caption {
        padding: 10px;
        font-size: 0.9rem;
    }
    .carousel-caption h5 {
        font-size: 1.3rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }

    /* CTA Section en móviles */
    .cta-section {
        padding: 30px 15px;
    }
    .cta-section .h4 { /* Específico para el texto de la CTA */
        font-size: 1.2rem;
    }
    .cta-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    .justified-text, .justified-list {
        text-align: left; /* En móviles, a menudo es mejor alinear a la izquierda para la legibilidad */
    }

     
    .story-image { /* Ajuste de imagen de historia en móviles */
        width: 200px;
        height: 200px;
    }
    .background-shape { /* Ajuste de forma de fondo en móviles */
        width: 150px;
        height: 150px;
        filter: blur(40px);
        top: 20px;
        left: -50px;
    }
	 
}

/* Para pantallas muy pequeñas (celulares muy chicos, menos de 576px) */
@media (max-width: 575.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    .display-4 { font-size: 2rem; }
    .lead { font-size: 1rem; }

    .carousel-inner {
        height: 250px;
    }
    #exPresidentasCarousel .carousel-inner {
        height: 500px;
    }
    #sedeCarousel .carousel-inner {
        height: 250px;
    }
    .anniversary-heading {
        font-size: 30px !important;
    }

    /* Mapa responsive (si lo agregas) */
    .map-responsive {
        position: relative;
        padding-bottom: 100%;
        height: 0;
        overflow: hidden;
    }
    .map-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .story-image { /* Ajuste de imagen de historia en móviles muy pequeños */
        width: 150px;
        height: 150px;
    }
	  
}