:root {
    --aurevia-blue-dark: #000814;
    --aurevia-blue-nav: #001A31;
    --aurevia-gold: #C5A059;
    --white: #ffffff;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: var(--white);
    margin: 0;
    scroll-behavior: auto;
}


h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    background-color: var(--aurevia-blue-nav) !important;
    border-bottom: 3px solid var(--aurevia-gold);
    height: 80px;
    padding: 0 !important;
}

.navbar .container-fluid {
    position: relative;
    height: 100%;
}

.brand-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); 
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    z-index: 10;
}

.brand-at-left {
    left: 20px !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
}

#nav-logo {
    opacity: 0;
    width: 0; 
    transform: scale(0.5);
    transition: opacity 0.6s ease, width 0.6s ease, transform 0.6s ease;
}

.show-logo-final {
    opacity: 1 !important;
    width: 50px !important; 
    margin-right: 20px;
    transform: scale(1) !important;
}

.navbar-nav, .btn-aurevia {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}

.menu-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- HERO SECTION --- */
.hero-container {
    position: relative;
    height: 100vh;
    background-color: var(--aurevia-blue-dark);
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    animation: fadeInVideo 2s ease forwards;
    animation-delay: 2.9s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 2, 20, 0.559);
    z-index: 2;
}

.hero-logo, .hero-content {
    position: relative;
    z-index: 3; 
}

.hero-logo {
    width: 250px;
    z-index: 10;
    filter: drop-shadow(0 0 15px rgba(28, 0, 83, 0.718));
    animation: logoJourney 2s ease-in-out forwards;
}

.hero-content {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 1.8s;
    margin-top: -10px; 
}

.hero-content p { 
    font-size: 1.5rem; 
    color: var(--aurevia-gold); 
    font-style: italic; 
    margin-top: 0; 
}

@keyframes logoJourney {
    0% { transform: scale(0.8); opacity: 0; }
    20% { transform: scale(1); opacity: 1; } 
    60% { transform: scale(1); opacity: 1; } 
    100% { transform: translateY(-35px) scale(0.6); opacity: 1; }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(-30px); }
}

@keyframes fadeInVideo {
    to { opacity: 1; }
}

/* --- TARJETAS --- */
.section-padding { padding: 100px 0; }

.card-institutional {
    border: none;
    border-top: 4px solid var(--aurevia-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
    height: 100%;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

/* 1. Forzar que la tarjeta cambie a fondo dorado y texto blanco en hover */
.card-institutional:hover {
    background-color: #C5A059 !important; /* El color dorado de Aurevia */
    color: white !important;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* 2. Asegurar que TODO el texto interno se vuelva blanco en hover */
.card-institutional:hover h3,
.card-institutional:hover h4,
.card-institutional:hover p,
.card-institutional:hover ul,
.card-institutional:hover li,
.card-institutional:hover i,
.card-institutional:hover div {
    color: white !important;
}

/* 3. Arreglar los botones dentro del hover para que no desaparezcan */
.card-institutional:hover .btn-outline-dark {
    color: white !important;
    border-color: white !important;
}

.card-institutional:hover .btn-dark {
    background-color: #001A31 !important; /* El azul oscuro de la universidad */
    border-color: #001A31 !important;
    color: white !important;
}




.card-institutional:hover p, .card-institutional:hover h3 {
    color: #ffffff !important;
}

/* Efecto para los iconos dentro de las tarjetas al hacer hover */
.card-institutional:hover i {
    color: #ffffff !important; /* El icono se vuelve blanco junto con el texto */
    transition: color 0.4s ease;
}
.card-institutional:hover * {
    color: #ffffff !important;
}

/* Suavizar el desplazamiento al hacer clic en los botones del menú */
html {
    scroll-behavior: smooth;
}

/* Ajuste de margen para que la sección no quede pegada a la nav bar al navegar */
section {
    scroll-margin-top: 80px; 
}
.btn-aurevia {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--aurevia-gold);
    padding: 12px 35px;
    text-transform: uppercase;
    transition: 0.4s;
    text-decoration: none;
    display: inline-block;
}

.btn-aurevia:hover {
    background-color: var(--aurevia-gold);
    color: var(--aurevia-blue-dark);
}

/* --- FOOTER --- */
.footer-institucional {
    background-color: var(--aurevia-blue-nav);
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 40px;
    border-top: 2px solid var(--aurevia-gold);
    width: 100%;
}

.footer-logo-subtle {
    height: 70px; 
    opacity: 0.6; 
    margin-bottom: 20px;
}