/* ========================================== */
/* RESETEO BÁSICO Y VARIABLES GLOBAL          */
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    --verde-pistacho: #93C572;
    --morado: #6B2A8C; 
    --verde-arbol: #228B22; 
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa; 
}

/* ========================================== */
/* RESETEO BÁSICO Y VARIABLES GLOBAL          */
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    --verde-pistacho: #93C572;
    --morado: #6B2A8C; 
    --verde-arbol: #228B22; 
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa; 
}

/* ESTA ES LA REGLA NUEVA QUE ARREGLA EL FOOTER EN TODAS LAS PÁGINAS */
main {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

/* ========================================== */
/* CABECERA (HEADER) CON RESPIRACIÓN ÓPTIMA   */
/* ========================================== */
header.header-transparente {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; 
    padding: 20px 0; /* Aumentado para que no quede apretado, pero sin ser gigante */
    z-index: 1000;
    transition: background-color 0.4s ease;
}

header.header-transparente:hover {
    background-color: var(--morado);
}

.header-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 96%; 
    max-width: 1400px; 
    margin: 0 auto;
}

.logo {
    flex-shrink: 0; 
}

/* ========================================== */
/* LOGOTIPO INSTITUCIONAL UCJC (RECONSTRUIDO CSS - FINAL) */
/* ========================================== */
.logo {
    display: flex;
    align-items: center; /* Centrado vertical perfecto en el header */
}

/* Enlace contenedor del logo */
.logo-ucjc-css {
    display: flex;
    align-items: center;
    gap: 12px; /* Separación entre iniciales y texto */
    text-decoration: none;
    line-height: 1;
    color: #003366; /* Color azul institucional profundo */
    transition: all 0.4s ease; /* Transición suave para el hover */
}

/* Estilo para las iniciales grandes 'UCJC' */
.logo-ucjc-css .iniciales {
    font-family: 'Times New Roman', Times, serif; /* Fuente con remates, seria y académica */
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilo para el nombre completo 'Universidad...' */
.logo-ucjc-css .nombre-completo {
    font-family: Arial, sans-serif; /* Fuente sans-serif, limpia y moderna */
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #444; /* Gris oscuro para sutil distinción */
    display: inline-block;
}

/* Efecto al pasar el ratón (Hover) sobre el header transparente */
header.header-transparente:hover .logo-ucjc-css {
    color: white; /* Las iniciales y el texto se vuelven blancos */
}

header.header-transparente:hover .logo-ucjc-css .nombre-completo {
    color: #f8f9fa; /* Ligeramente grisáceo para que el texto sea legible */
}
.logo-ucjc .thin {
    font-weight: 400;
    letter-spacing: 1px;
}

header.header-transparente:hover .logo-ucjc {
    color: white;
}

header.header-transparente:hover .logo-ucjc .thin {
    color: var(--verde-pistacho);
}

header.header-transparente:hover .logo-placeholder {
    color: white;
}

.menu {
    list-style: none;
    display: flex;
    gap: 12px; 
    align-items: center;
}

.menu li a {
    color: var(--verde-arbol); 
    text-decoration: none;
    font-weight: bold;
    font-size: 13px; 
    padding: 8px 10px;
    display: block;
    transition: color 0.4s ease;
    white-space: nowrap; 
}

header.header-transparente:hover .menu li a {
    color: white;
}

.menu li a:hover {
    color: var(--verde-pistacho) !important; 
}

/* Desplegables del menú */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--verde-arbol);
    min-width: 160px;
    top: 100%;
    left: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border-radius: 4px;
}
.dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    font-weight: normal;
}
.dropdown-content a:hover {
    background-color: var(--verde-pistacho);
    color: black !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* ========================================== */
/* MAIN: BIENVENIDA (GLASSMORPHISM)           */
/* ========================================== */
main.hero-bienvenida {
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden; 
    background-color: #f8f9fa; 
}

/* Manchas de color flotantes */
main.hero-bienvenida::before,
main.hero-bienvenida::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); 
    z-index: 0;
}

main.hero-bienvenida::before {
    width: 400px;
    height: 400px;
    background-color: rgba(107, 42, 140, 0.15); 
    top: 10%;
    left: 10%;
    animation: flotar 8s ease-in-out infinite alternate;
}

main.hero-bienvenida::after {
    width: 500px;
    height: 500px;
    background-color: rgba(147, 197, 114, 0.25); 
    bottom: -5%;
    right: 5%;
    animation: flotar 12s ease-in-out infinite alternate-reverse;
}

@keyframes flotar {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(40px) translateX(30px) scale(1.1); }
}

/* Tarjeta Efecto Cristal */
.hero-content {
    position: relative;
    z-index: 1; 
    max-width: 900px;
    padding: 70px 60px;
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.05), 0 0 0 1px rgba(107, 42, 140, 0.05);
    text-align: center;
}

/* Tipografía de la portada */
.titulo-bienvenida {
    font-size: 3.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--verde-arbol), var(--morado));
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.descriptivo-bienvenida {
    font-size: 1.4rem; 
    line-height: 1.6;
    color: #444; 
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* ========================================== */
/* FOOTER CENTRADO Y CON BOTONES BLANCOS      */
/* ========================================== */
footer {
    background-color: var(--morado); 
    color: white;
    padding: 20px 10px; /* Más espacio para que respire y no quede apretado */
    position: relative; 
    z-index: 10;
    width: 100%;
}

.footer-contenido {
    display: flex;
    flex-direction: column; /* Pone el texto arriba y los botones abajo */
    justify-content: center; 
    align-items: center; /* Todo perfectamente centrado en el medio */
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px; /* Separación perfecta entre la frase y los botones */
}

.footer-contenido p {
    font-size: 15px;
    margin: 0;
    color: white; 
}

.redes-sociales {
    display: flex;
    gap: 15px; /* Espacio entre los botones */
    justify-content: center;
}

/* ESTOS SON TUS BOTONES BLANCOS */
.social-link {
    color: var(--morado) !important;
    background-color: white !important;
    text-decoration: none !important;
    padding: 10px 22px !important; /* Botones con un tamaño elegante */
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}

.social-link:hover {
    background-color: var(--verde-pistacho) !important;
    color: var(--texto-oscuro) !important;
    transform: translateY(-2px); /* Pequeño efecto al pasar el ratón */
}

/* ========================================== */
/* ESTILOS PARA BOTONES DE SECCIÓN            */
/* ========================================== */

/* Contenedor para centrar el botón en la tarjeta */
.contenedor-boton {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Estilo del botón/enlace */
.btn-seccion {
    display: inline-block;
    background-color: var(--morado); /* Color base morado */
    color: white !important; /* Texto blanco forzado */
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px; /* Bordes redondeados */
    transition: all 0.3s ease; /* Animación suave */
    box-shadow: 0 4px 15px rgba(107, 42, 140, 0.3); /* Sombra elegante */
}

/* Efecto al pasar el ratón (Hover) */
.btn-seccion:hover {
    background-color: var(--verde-arbol); /* Cambia a verde */
    transform: translateY(-3px); /* Sube un poco */
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}