/* 
 * inicio.css
 * Core styles for the Universidad Alfa y Omega Landing Page
 * Highly styled, modern look and feel.
 */

/*=============================================================================
 * 1. VARIABLES & FOUNDATION
 *============================================================================*/
:root {
    --color-primary: #0b1c3d;
    --color-primary-dark: #061125;
    --color-primary-light: #163063;
    --color-secondary: #0b1c3d;
    /* Deep Navy Blue */
    --color-warning: #f1c40f;
    /* Gold/Yellow from the logo */
    --color-warning-hover: #f39c12;
    --color-light: #f8f9fa;
    --color-dark: #0b1c3d;
    /* Use Navy Blue for typography */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Base Overrides for Bootstrap colors */
.text-dark {
    color: var(--color-dark) !important;
}

.text-primary {
    color: var(--color-secondary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    overflow-x: hidden;
    background-image: url('../../logo_alfa.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Make backgrounds slightly transparent to show the logo */
.bg-light {
    background-color: rgba(248, 249, 250, 0.92) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-playfair {
    font-family: var(--font-heading);
}

.font-montserrat {
    font-family: var(--font-body);
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.lh-sm {
    line-height: 1.2;
}

.max-w-700 {
    max-width: 700px;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Transitions & Utilities */
.transition-all {
    transition: all var(--transition-base);
}

.transition-colors {
    transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.transition-transform {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-text-warning:hover {
    color: var(--color-warning) !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.z-index-1 {
    z-index: 1;
    position: relative;
}

.z-index-2 {
    z-index: 2;
    position: relative;
}

.space-y-2> :not([hidden])~ :not([hidden]) {
    margin-top: 0.5rem;
}

.space-y-3> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem;
}

/* Custom divider */
.divider {
    height: 3px;
    width: 60px;
    border-radius: 3px;
}

/*=============================================================================
 * 2. NAVBAR
 *============================================================================*/
.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: transparent;
    transition: all 0.4s ease-in-out;
}

.navbar-scrolled {
    background-color: rgba(6, 17, 37, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    position: relative;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Underline animation for nav links */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--color-warning);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
    border-radius: 3px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: var(--color-warning) !important;
    font-weight: 700;
}

/* Sistemalfayomega Button */
.btn-sistem {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sistem:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(241, 196, 15, 0.3) !important;
    background-color: var(--color-warning-hover);
    color: #000 !important;
}

/*=============================================================================
 * 3. HERO SECTION
 *============================================================================*/
.hero-section {
    background-color: var(--color-primary);
    background-image: url('../../logo_alfa.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Fallback elegant gradient if image isn't loaded */
.hero-overlay {
    background: rgba(6, 17, 37, 0.85);
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/*=============================================================================
 * 4. OFERTA EDUCATIVA SECTION
 *============================================================================*/
/* Tabs Styling */
.nav-pills .nav-link {
    color: var(--color-dark);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
    background-color: rgba(11, 28, 61, 0.05);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--color-primary);
    color: #fff;
    /* Cambiado a navy blue para que se lea mejor en fondo lime */
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(11, 28, 61, 0.2);
}

/* Degree Cards (Image Backgrounds) */
.degree-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.degree-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.degree-card .bg-image {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.degree-card:hover .bg-image {
    transform: scale(1.1);
}

.degree-card .bg-overlay {
    opacity: 0.5;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 80%);
    transition: opacity 0.4s ease, background 0.4s ease;
}

.degree-card:hover .bg-overlay {
    opacity: 0.8;
    background: linear-gradient(to top, var(--color-primary-dark) 0%, rgba(11, 28, 61, 0.2) 100%);
}

.degree-card .transform-up {
    transform: translateY(10px);
    transition: transform 0.4s ease, color 0.4s ease;
}

.degree-card:hover .transform-up {
    transform: translateY(0);
    color: var(--color-warning) !important;
}

/* Maestrías Cards Overlay variation */
.degree-card-alt .bg-overlay.overlay-alt {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.degree-card-alt:hover .bg-overlay.overlay-alt {
    background: linear-gradient(to top, rgba(241, 196, 15, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.degree-card-alt:hover .title-text {
    color: var(--color-primary-dark) !important;
}

/* Doctorados Cards Overlay variation */
.degree-card-gold .bg-overlay.overlay-gold {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.degree-card-gold:hover .bg-overlay.overlay-gold {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95) 0%, rgba(241, 196, 15, 0.4) 100%);
}

/*=============================================================================
 * 5. CONÓCENOS SECTION
 *============================================================================*/
.blur-3xl {
    filter: blur(64px);
}

.transform-rotate-sm {
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.transform-rotate-sm:hover {
    transform: rotate(0deg);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(-50%);
    }

    50% {
        transform: translateY(-15px) translateX(-50%);
    }

    100% {
        transform: translateY(0px) translateX(-50%);
    }
}

/*=============================================================================
 * 6. RESPONSIVE ADJUSTMENTS
 *============================================================================*/
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--color-primary);
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .display-3 {
        font-size: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .nav-pills {
        flex-direction: column;
        border-radius: 1rem !important;
    }

    .nav-pills .nav-link {
        border-radius: 0.5rem !important;
    }
}

/*=============================================================================
 * 7. BANNER ANIMATIONS
 *============================================================================*/
.pulse-animation {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.backdrop-blur {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.banner-hover {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.banner-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}