@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat.ttf');
}

:root {
    --azul: #2aabe3;
    --naranja: #f05a25;
    --azul-obscuro: #030816;
    --blanco: #ffffff;
    --negro: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   HEADER / NAVEGACIÓN
   ============================================= */

header {
    height: 70px;
    background-color: var(--azul-obscuro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.logo_deart {
    cursor: pointer;
    height: 100%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--naranja);
    aspect-ratio: 1/1;
}

.logo_deart img {
    height: 60%;
    object-fit: contain;
}

.logo-name {
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navegación Desktop */
.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
    height: 100%;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--naranja);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blanco);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Botón Ingreso Alumnos */
.btn-ingreso {
    background-color: var(--naranja);
    color: var(--blanco) !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    box-shadow: 0 3px 15px rgba(240, 90, 37, 0.3);
}

.btn-ingreso::after {
    display: none !important;
}

.btn-ingreso:hover {
    background-color: var(--blanco);
    color: var(--naranja) !important;
    transform: scale(1.05);
}

/* Hamburguesa Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(3, 8, 22, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.mobile-nav a {
    color: var(--blanco);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--naranja);
}

.mobile-nav .btn-ingreso {
    font-size: 1rem !important;
    padding: 15px 30px;
    margin-top: 20px;
}

/* =============================================
   FOOTER
   ============================================= */

#main-footer {
    background-color: var(--azul-obscuro);
    color: var(--blanco);
    position: relative;
    border-top: 5px solid var(--naranja);
}

.footer-cta-strip {
    text-align: center;
    padding: 80px 20px 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(240, 90, 37, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(42, 171, 227, 0.08) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    position: relative;
    overflow: hidden;
}

.footer-cta-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--naranja), transparent);
    border-radius: 2px;
}

.footer-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient-orange {
    background: linear-gradient(135deg, var(--naranja), #ff8a5c, #ffccaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
}

.footer-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-cta-buttons .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--naranja), #ff7043);
    color: var(--blanco);
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(240, 90, 37, 0.3);
}

.footer-cta-buttons .btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240, 90, 37, 0.45);
}

.footer-cta-buttons .btn-cta-primary svg {
    width: 20px;
    height: 20px;
}

.footer-cta-buttons .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-cta-buttons .btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--azul);
    transform: translateY(-3px);
}

.footer-cta-buttons .btn-cta-secondary svg {
    width: 20px;
    height: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.footer-column {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--naranja);
    transform: translateX(5px);
}

.icon-box {
    min-width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--azul);
    transition: background 0.3s;
}

.contact-link:hover .icon-box {
    background: rgba(240, 90, 37, 0.2);
    color: var(--naranja);
}

.icon-box svg {
    width: 20px;
    height: 20px;
}

.btn-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--blanco);
    color: var(--azul-obscuro);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-footer:hover {
    background-color: var(--naranja);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(240, 90, 37, 0.4);
}

.btn-footer svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-footer:hover svg {
    transform: translate(3px, -3px);
}

.map-column {
    flex: 1.2;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-wrapper iframe {
    filter: grayscale(100%) invert(90%) hue-rotate(180deg);
    transition: filter 0.5s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) invert(0%);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--naranja);
    color: var(--blanco);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: none;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.privacy-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: var(--blanco);
    text-decoration: underline;
}

/* =============================================
   UTILIDADES COMPARTIDAS
   ============================================= */

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--naranja), #ff8a5c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--blanco);
    color: var(--blanco);
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--blanco);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--azul-obscuro);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-glow {
    background-color: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(240, 90, 37, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-glow:hover {
    background-color: var(--blanco);
    color: var(--naranja);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.btn-glow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-glow:hover svg {
    transform: translateX(5px);
}

/* =============================================
   PAGE TRANSITION LOADER
   ============================================= */

/* Loader overlay – glassmorphism */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(3, 8, 22, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.5s;
    opacity: 1;
    visibility: visible;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo mark inside loader */
.loader-mark {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderPulse 1.6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.loader-mark svg {
    width: 36px;
    height: 36px;
}

/* Animated progress bar */
.loader-bar {
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.loader-bar-fill {
    width: 40%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--naranja), #ff8a5c);
    animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Page content reveal after loader */
body.loaded main {
    animation: contentReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes contentReveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Outgoing transition */
.page-loader.navigating {
    opacity: 1;
    visibility: visible;
}

/* Scroll reveal base classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.6s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   MOBILE NAV ANIMATION
   ============================================= */

/* Hamburger → X animation */
.menu-toggle .bar-top,
.menu-toggle .bar-mid,
.menu-toggle .bar-bot {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    transform-origin: center;
}

.menu-toggle.active .bar-top {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .bar-mid {
    opacity: 0;
}

.menu-toggle.active .bar-bot {
    transform: translateY(-6px) rotate(-45deg);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
    header {
        padding: 0 20px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Nav animated overlay */
    .mobile-nav {
        display: flex;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-nav.open {
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav a {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s;
    }

    .mobile-nav.open a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
    .mobile-nav.open a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
    .mobile-nav.open a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
    .mobile-nav.open a:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
    .mobile-nav.open a:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .map-wrapper {
        height: 300px;
    }

    .contact-link {
        font-size: 0.95rem;
    }

    .footer-cta-buttons .btn-cta-primary,
    .footer-cta-buttons .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
