/* ==========================================================================
   1. ESTILOS GENERALES Y RESETEO
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2a0a3a 0%, #4a2a6b 50%, #7d5ba6 100%);
    color: #fff;
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER Y NAVEGACIÓN
   ========================================================================== */

/*
 * Estilos para la cabecera (header).
 * Fondo semitransparente, padding, borde inferior, y sombra para dar profundidad.
 * Flexbox para organizar su contenido en una columna centrada.
 */
header {
    background: rgba(42, 10, 58, 0.8);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/*
 * Pseudoelemento '::after' para crear una línea decorativa con gradiente
 */
header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #9d7cc9, transparent);
    opacity: 0.7;
}

/* Contenedor del logo */
.logo-container {
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    max-width: 90%;
    position: relative;
    z-index: 2; /* Asegura que esté por encima de otros elementos */
}

/* Estilos de la imagen del logotipo */
.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(157, 124, 201, 0.7)); /* Sombra para efecto de brillo */
}

/* Barra de navegación */
nav {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Lista (ul) de la navegación */
nav ul {
    display: flex; /* Alinea los elementos horizontalmente */
    list-style: none; /* Quita los puntos de la lista */
    flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente línea si no caben */
    justify-content: center; /* Centra los elementos */
    gap: 1.5rem; /* Espacio entre elementos */
}

/* Elementos de la lista (li) de navegación */
nav li {
    position: relative;
}

/* Enlaces (a) de la navegación */
nav a {
    color: #e0d6f0;
    text-decoration: none; /* Quita el subrayado */
    font-family: 'Pathway Gothic One', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase; /* Convierte el texto a mayúsculas */
    letter-spacing: 2px; /* Espacio entre letras */
    padding: 0.5rem 1rem;
    transition: all 0.3s ease; /* Transición suave para cambios de estilo */
    position: relative;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/*
 * Animación de líneas superior e inferior para los enlaces de navegación al pasar el ratón.
 * Se crean con pseudoelementos '::before' y '::after'.
 */
nav a::before,
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d4b3ff;
    transform: scaleX(0); /* Inicialmente invisibles (escala 0 en X) */
    transition: transform 0.3s ease;
}

nav a::before {
    top: -5px;
    transform-origin: right; /* La animación empieza desde la derecha */
}

nav a::after {
    bottom: -5px;
    transform-origin: left; /* La animación empieza desde la izquierda */
}

/* Estilos para los enlaces al pasar el ratón (hover) */
nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 179, 255, 0.8);
}

/* Al pasar el ratón, las líneas crecen hasta ocupar todo el ancho */
nav a:hover::before,
nav a:hover::after {
    transform: scaleX(1);
}


/* ==========================================================================
   3. BOTONES Y FORMULARIOS
   ========================================================================== */

/* Estilos generales para botones */
.login-btn, button, .evento-btn, .descarga-btn, .logout-btn, .whatsapp-btn {
    background-color: transparent;
    color: #d4b3ff;
    border: 2px solid #d4b3ff;
    padding: 0.5rem 1.5rem;
    font-family: 'Pathway Gothic One', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Oculta el efecto de brillo antes de la animación */
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(212, 179, 255, 0.3);
}

/* Estilos para botones al pasar el ratón (hover) */
.login-btn:hover, button:hover, .evento-btn:hover, .descarga-btn:hover, .logout-btn:hover {
    background-color: rgba(212, 179, 255, 0.2);
    box-shadow: 0 0 20px rgba(212, 179, 255, 0.6);
    transform: translateY(-3px); /* Efecto de "levantarse" */
    color: #fff;
    border-color: #fff;
}

/* Efecto de barrido de luz en los botones al pasar el ratón */
.login-btn::before, button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Empieza fuera del botón */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 179, 255, 0.4), transparent);
    transition: 0.5s;
}

.login-btn:hover::before, button:hover::before {
    left: 100%; /* Se mueve a través del botón */
}

/* Secciones de formulario (login y registro) */
.login-section, .registro-section {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: rgba(17, 17, 17, 0.8);
    border-radius: 5px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.login-section:hover, .registro-section:hover {
    border-color: #690d74;
    box-shadow: 0 0 20px rgba(225, 31, 255, 0.2);
}

.login-section h2, .registro-section h2 {
    font-family: 'Pathway Gothic One', sans-serif;
    color: #690d74;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

/* Estructura del formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Campos de entrada (input) */
input {
    background-color: #111;
    border: 1px solid #333;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

/* Estilo del input cuando está seleccionado (focus) */
input:focus {
    outline: none; /* Quita el borde por defecto del navegador */
    border-color: #690d74;
    box-shadow: 0 0 10px rgba(225, 31, 255, 0.3);
}

/* Estilo para el texto de placeholder */
input::placeholder {
    color: #666;
}

/* Mensajes de error y éxito */
.error, .exito {
    padding: 0.5rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.error {
    color: #ff4444;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
}

.exito {
    color: #44ff44;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #44ff44;
}


/* ==========================================================================
   4. SECCIONES DE CONTENIDO PRINCIPAL
   ========================================================================== */

/* ----------------- CARRUSEL DE IMÁGENES ----------------- */
.carrusel-container {
    position: relative;
    max-width: 1900px;
    margin: 0 auto;
    overflow: hidden; /* Oculta las imágenes que se salen del contenedor */
}

.carrusel {
    display: flex; /* Alinea las imágenes horizontalmente */
    transition: transform 0.5s ease; /* Animación suave para el desplazamiento */
    width: 100%;
}

.evento {
    min-width: 100%; /* Cada slide ocupa el 100% del contenedor */
    box-sizing: border-box;
    padding: 0 10px;
    height: 500px; /* Altura fija */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin deformarse */
    object-position: center; /* Centra la imagen */
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
}

.evento img:hover {
    transform: scale(1.02); /* Ligero zoom al pasar el ratón */
}

/* Botones de navegación del carrusel */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(212, 179, 255, 0.355);
    border: none;
    color: #690d74;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carrusel-btn:hover {
    background-color: rgba(212, 179, 255, 0.3);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

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

/* ----------------- SECCIÓN DE FRASE DESTACADA ----------------- */
.frase {
    padding: 4rem 2rem; 
    text-align: center;
    background-color: rgba(42, 10, 58, 0.7);
    margin: 3rem 0; 
    position: relative;
}

.frase h2 {
    font-family: 'Pathway Gothic One', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    color: #d4b3ff;
    text-shadow: 0 0 15px rgba(212, 179, 255, 0.7);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Animación de brillo reutilizable */
@keyframes glow {
    from {
        text-shadow: 0 0 5px #690d74, 0 0 10px rgba(225, 31, 255, 0.5);
    }
    to {
        text-shadow: 0 0 10px #690d74, 0 0 20px rgba(225, 31, 255, 0.7), 0 0 30px rgba(225, 31, 255, 0.3);
    }
}

.frase-container {
    max-width: 800px;
    margin: 0 auto;
}

.frase blockquote {
    font-family: 'Pathway Gothic One', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4b3ff;
    text-shadow: 0 0 15px rgba(212, 179, 255, 0.7);
    margin: 0;
    padding: 0;
    line-height: 1.4;
    position: relative;
}

.frase blockquote footer {
    display: block;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    text-transform: none;
    letter-spacing: 1px;
    color: #9d7cc9;
    font-style: italic;
    text-align: right;
    padding-right: 2rem;
}


/* ----------------- SECCIÓN "ABOUT" Y TARJETAS (CARDS) ----------------- */
.about-section {
    display: flex;
    gap: 2.5rem;
    padding: 4rem 5%;
    border-top: 1px solid rgba(157, 124, 201, 0.3);
    border-bottom: 1px solid rgba(157, 124, 201, 0.3);
}

.cards-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-text {
    flex: 1;
    padding: 1.5rem;
}

.about-text h2 {
    font-family: 'Pathway Gothic One', sans-serif;
    color: #d4b3ff;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212, 179, 255, 0.5);
    font-weight: 700;
}

.about-text p {
    color: #e0d6f0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Contenedor general para rejillas de contenido */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo individual de cada tarjeta */
.card {
    background-color: rgba(17, 17, 17, 0.7); /* Ligeramente más transparente */
    border-radius: 8px; /* Bordes un poco más redondeados */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(212, 179, 255, 0.4);
    border-color: #690d74;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-family: 'Pathway Gothic One', sans-serif;
    color: #d4b3ff; /* Un color un poco más brillante */
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.card p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 1rem; /* Ligeramente más pequeño para diferenciar del título */
    flex-grow: 1;
}

.card-button {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    font-family: 'Pathway Gothic One', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #d4b3ff;
    border-color: #d4b3ff;
}

/* ==========================================================================
   5. ESTILOS ESPECÍFICOS POR PÁGINA
   ========================================================================== */

/* ----------------- PÁGINA: MI CUENTA (mi_cuenta.php) ----------------- */
.mi-cuenta-content {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.user-info h1, .registros-section h1 {
    font-family: 'Pathway Gothic One', sans-serif;
    color: #d4b3ff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212, 179, 255, 0.5);
    font-weight: 700;
}

.info-card, .registros-card {
    background-color: rgba(42, 10, 58, 0.7);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.info-card h2, .registros-card h2 {
    color: #d4b3ff;
    font-family: 'Pathway Gothic One', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(212, 179, 255, 0.3);
    padding-bottom: 0.5rem;
}

.info-card p { margin-bottom: 1rem; line-height: 1.8; }
.info-card p strong { color: #d4b3ff; font-weight: 700; }

/* Botón de WhatsApp */
.whatsapp-btn-container { margin-top: 2rem; text-align: center; }
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    font-size: 1.1rem;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    box-shadow: 0 5px 15px rgba(18, 140, 126, 0.4);
}
.whatsapp-btn i { margin-right: 8px; }

/* Lista de registros del usuario */
.registros-list { list-style: none; padding: 0; }
.registros-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(17, 17, 17, 0.5);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.registros-list li a {
    color: #d4b3ff; text-decoration: none; font-size: 0.9rem;
    padding: 0.3rem 0.8rem; border: 1px solid #d4b3ff;
    border-radius: 3px; transition: all 0.3s ease;
}
.registros-list li a:hover { background-color: rgba(212, 179, 255, 0.2); }
.no-registros { text-align: center; color: #ccc; font-style: italic; }

/* Acciones de usuario: Bienvenida y botón de logout */
.user-actions { display: flex; align-items: center; gap: 1rem; }
.welcome { color: #d4b3ff; font-family: 'Pathway Gothic One', sans-serif; letter-spacing: 1px; }
.logout-btn { color: #ff6b6b; border-color: #ff6b6b; }
.logout-btn:hover { background-color: rgba(255, 107, 107, 0.2); color: #fff; }

/* ----------------- PÁGINAS GENÉRICAS DE CONTENIDO ----------------- */
.reuniones-content, .eventos-content, .convocatorias-content {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reuniones-section h1, .proximos-eventos h1, .eventos-anteriores h1, .convocatorias-section h1 {
    font-family: 'Pathway Gothic One', sans-serif;
    color: #d4b3ff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212, 179, 255, 0.5);
    font-weight: 700;
}

/* ----------------- PÁGINA: REUNIONES (reuniones.php) ----------------- */
.reuniones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.reunion-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.reunion-card:hover { transform: translateY(-5px); }
.reunion-card img { width: 100%; height: auto; display: block; }

.reunion-text {
    padding: 1.5rem;
    background-color: rgba(42, 10, 58, 0.7);
    border-radius: 8px;
    line-height: 1.8;
}

.reunion-text p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.highlight-link { color: #d4b3ff; text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.highlight-link:hover { color: #fff; text-shadow: 0 0 10px rgba(212, 179, 255, 0.8); }

/* ----------------- PÁGINA: EVENTOS (eventos.php) ----------------- */
.proximos-eventos, .eventos-anteriores { margin-bottom: 4rem; }

.aviso-destacado {
    background-color: rgba(42, 10, 58, 0.7);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 8px;
}

.evento-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.evento-imagen { border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.evento-imagen img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.evento-imagen:hover img { transform: scale(1.03); }
.evento-descripcion { padding: 1.5rem; background-color: rgba(42, 10, 58, 0.7); border-radius: 8px; }
.evento-descripcion h2 { font-family: 'Roboto', sans-serif; color: #d4b3ff; margin-bottom: 1rem; font-size: 1.8rem; font-weight: 700; }
.evento-descripcion p { margin-bottom: 1.5rem; line-height: 1.8; }
.evento-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 179, 255, 0.3); }

/* ----------------- PÁGINA: CONVOCATORIAS (convocatorias.php) ----------------- */
.convocatorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.convocatoria-item { text-align: center; }
.convocatoria-item img {
    width: 100%; max-width: 500px; height: auto;
    border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem; transition: transform 0.3s ease;
}
.convocatoria-item img:hover { transform: translateY(-5px); }
.descarga-btn { font-size: 1.1rem; }
.descarga-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 179, 255, 0.3); }


/* ==========================================================================
   6. FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.cffc-footer {
    background-color: rgba(42, 10, 58, 0.9);
    padding: 3rem 0;
    border-top: 1px solid rgba(157, 124, 201, 0.3);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d4b3ff;
    text-decoration: none;
    font-family: 'Pathway Gothic One', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid transparent;
}

.social-link:hover {
    color: #fff;
    border-color: #d4b3ff;
    box-shadow: 0 0 10px rgba(212, 179, 255, 0.3);
    transform: translateY(-2px);
}

.social-logo { width: 20px; height: 20px; object-fit: contain; filter: none; }

.footer-text {
    color: #9d7cc9;
    font-family: 'Pathway Gothic One', sans-serif;
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
}


/* ==========================================================================
   7. EFECTOS DE FONDO (ESTRELLAS)
   ========================================================================== */
#estrellas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.estrella {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    filter: blur(0.5px);
    animation: flotar linear infinite;
    bottom: -10px;
}

/* Diferentes tamaños y opacidades para las estrellas */
.estrella.pequena { width: 1px; height: 1px; opacity: 0.7; }
.estrella.mediana { width: 2px; height: 2px; opacity: 0.9; }
.estrella.grande { width: 3px; height: 3px; opacity: 1; }

.estrella.brillante {
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.8);
    animation: flotar-brillante linear infinite;
}

/* Animación para que las estrellas suban */
@keyframes flotar {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Animación para las estrellas que parpadean */
@keyframes flotar-brillante {
    0%   { transform: translateY(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    20%, 60% { box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.9); }
    100% { transform: translateY(-100vh); opacity: 0; }
}


/* ==========================================================================
   8. MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================================================== */

/* ----------------- Para Tablets y pantallas medianas (hasta 1024px) ----------------- */
@media (max-width: 1024px) {
    .about-section {
        flex-direction: column;
    }
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .mi-cuenta-content {
        grid-template-columns: 1fr;
    }
}

/* ----------------- Para Móviles (hasta 768px) ----------------- */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    .logo {
        max-width: 150px;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .login-section, .registro-section {
        width: 90%;
        margin: 2rem auto;
        padding: 1.5rem;
    }
    .frase h2 { font-size: 2rem; }
    .frase blockquote { font-size: 1.5rem; }
    .frase blockquote footer { font-size: 1rem; }
    .evento { height: 300px; }
    .cards-container,
    .reuniones-grid, 
    .evento-item, 
    .convocatorias-grid { 
        grid-template-columns: 1fr;
    }
    .about-text h2 { font-size: 1.8rem; }
    .footer-content {
        flex-direction: column;
    }
    .user-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .logout-btn, .login-btn {
        text-align: center;
    }
    .footer-text { font-size: 0.9rem; }
    .reuniones-section h1, .proximos-eventos h1, .eventos-anteriores h1, .convocatorias-section h1 {
        font-size: 2rem;
    }
    .registros-list li {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ----------------- Para pantallas muy pequeñas (hasta 480px) ----------------- */
@media (max-width: 480px) {
    .evento {
        height: 200px;
    }
    .frase h2 { font-size: 1.5rem; }
    .frase blockquote { font-size: 1.2rem; }

    .reuniones-section h1, .proximos-eventos h1, .eventos-anteriores h1, .convocatorias-section h1 {
        font-size: 1.8rem;
    }
}

