/* Orizon Prime - Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Brand Colors */
    --color-hermes-orange: #F37021;
    --color-matte-black: #121212;
    --color-dark-gray: #1E1E1E;
    --color-silver: #E0E0E0;
    --color-white: #FFFFFF;

    /* Functional Colors */
    --bg-body: var(--color-matte-black);
    --text-primary: var(--color-white);
    --text-secondary: #A0A0A0;
    --accent: var(--color-hermes-orange);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --container-width: 1400px;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --container-width: 1400px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* Fix for sticky header overlap */
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ... (rest of typography if needed) */

/* Header / Nav */
/* Header / Nav */
/* Global Container for "Green Margins" Alignment */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    /* Internal breathing room */
    width: 90%;
    /* Responsive fallback */
}

/* Header Specifics */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0;
    z-index: 1000;
    transition: background 0.3s ease;
    background: #000;
    border-bottom: 1px solid #222;
}

nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Changed to adaptive width to ensure fit */
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    /* Reduced padding to save space */
    width: 100%;
    column-gap: 1rem;
    /* Reduced gap to save space */
}

.logo {
    justify-self: start;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 70px;
    /* Increased size as requested */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transform: scale(1.05, 1);
    margin-right: 1rem;
}

/* Nav Links Container */
.nav-links {
    display: flex;
    gap: 1.2rem;
    /* Slightly reduced gap */
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    text-align: center;
    list-style: none;
    /* remove default bullets */
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    /* Keep bullet and text together */
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    /* Slightly smaller text to fit */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: var(--color-white);
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    transition: color 0.3s ease;
    text-decoration: none;
    white-space: normal;
    /* Allow text to wrap */
    max-width: 150px;
    /* Limit width to force wrap if huge */
}

/* Hero Video Background */
.home-section {
    position: relative;
    overflow: hidden;
    /* Ensure video doesn't spill out */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Identify Scaling */
    z-index: 0;
    /* Behind overlay */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darken video for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Content above video and overlay */
}

/* Bullet Point for Nav Items */
.nav-links a::before {
    content: "•";
    margin-right: 0.15rem;
    /* Drastically reduced to tight gap */
    font-size: 1.2em;
    line-height: 0;
    letter-spacing: normal;
    /* Prevent inheritance of wide spacing */
    /* Color inherited automatically from parent 'a' */
}

/* Remove bullet from the first item */
.nav-links li:first-child a::before {
    content: none;
}

/* Specific styling for the CTA link in nav */
.nav-links a[href="#contacto"] {
    background-color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #fff !important;
    white-space: nowrap;
    /* Keep button text single line if possible */
}

/* Allow case sensitivity for specific links like #PromXperience */
.nav-links a.case-sensitive {
    text-transform: none;
    font-size: 0.8rem;
    /* Slightly larger for emphasis if needed, or keep same */
}

/* Specific Orange Links */
.nav-links a.nav-accent {
    color: var(--accent) !important;
}

/* Default Hover (White -> Orange) */
.nav-links a:hover {
    color: var(--accent);
}

/* Accent Hover (Orange -> White) */
.nav-links a.nav-accent:hover {
    color: var(--color-white) !important;
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    /* Tighter gap */
    align-items: center;
    justify-self: end;
    min-width: max-content;
    /* Ensure buttons don't shrink too much */
}

/* Sticky CTA Update */
.sticky-cta {
    background-color: var(--accent);
    color: var(--color-white);
    border: none;
    font-weight: 800;
    font-size: 0.7rem;
    /* Adjusted size */
    padding: 0.6rem 1rem;
    box-shadow: none;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: normal;
    /* Allow text wrap */
    text-align: center;
    max-width: 140px;
    line-height: 1.1;
    text-decoration: none !important;
    /* STRICTLY NO UNDERLINE */
    transition: all 0.3s ease;
    /* Smooth transition */
}

.sticky-cta:hover {
    background-color: #fff;
    /* Turn White */
    color: var(--accent);
    /* Orange Text */
    transform: scale(1.05);
    /* Slight Pop */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    /* Glow effect */
}

/* Student Access Button (Header) */
.student-access-btn {
    border: 1px solid var(--accent);
    /* Orange Border */
    color: var(--accent) !important;
    /* Orange Text explicitly */
    font-size: 0.7rem;
    padding: 0.8rem 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    text-align: center;
    line-height: 1.2;
    text-decoration: none !important;
    /* STRICTLY NO UNDERLINE */
    background: transparent;
}

.student-access-btn:hover {
    background: var(--accent);
    color: #000 !important;
}

/* Social Sidebar (Fixed Right Vertical) */
.social-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    /* Vertical Stack */
    gap: 1.5rem;
    z-index: 9999;
}

.social-link {
    width: 55px;
    height: 55px;
    background: var(--accent);
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.social-link:hover {
    background: #fff;
    color: var(--accent);
    transform: scale(1.15);
}

/* Graduate Access Section (Main Page Impact) */
.graduate-access-section {
    background: linear-gradient(135deg, #121212 0%, #000 100%);
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    padding: 8rem 0;
    /* Huge padding for impact */
    position: relative;
    overflow: hidden;
}

.graduate-access-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(243, 112, 33, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.graduate-access-section .container {
    position: relative;
    z-index: 2;
}

.graduate-access-section h2 {
    font-size: 4rem;
    /* Massive Title */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.graduate-access-section .btn {
    font-size: 1.2rem;
    padding: 1.5rem 4rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-top: 2rem;
}

.graduate-access-section .btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 30px rgba(243, 112, 33, 0.5);
}

/* Form Styling Refined */
.contact-wrapper {
    max-width: 900px;
    /* Wider */
    margin: 4rem auto 0;
    background: #080808;
    padding: 4rem;
    border: 1px solid #222;
}

/* Global Section Spacing for Premium Feel */
section:not(.hero) {
    padding: 8rem 0;
}

/* Laptop/Compact Screen Optimization (1024px - 1366px) */
@media (max-width: 1366px) {
    nav {
        padding: 0 1rem;
        column-gap: 0.5rem;
    }

    .header-logo {
        height: 55px;
        /* Slightly smaller for laptops */
        margin-right: 0.5rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.65rem;
        max-width: 110px;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .sticky-cta,
    .student-access-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.65rem;
    }
}

/* Mobile Media Query Updates (Partial snippet for context if needed, but primarily main CSS) */
@media (max-width: 900px) {

    /* ... existing mobile styles ... */
    .graduate-access-section h2 {
        font-size: 2.5rem;
    }

    .header-logo {
        margin-right: 0;
    }

    .nav-links,
    .nav-actions {
        margin: 0;
    }
}

/* --- Visual Enrichment (Images & Parallax) --- */

/* Quienes Somos Background */
#quienes-somos {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7)), url('../images/photo-output 2.JPEG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    border-bottom: 1px solid #222;
}

/* Graduate Access Background Update - More depth */
#acceso-graduados {
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(0, 0, 0, 0.95)), url('../images/gala3.jpg') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Clean override for Graduate Section to ensure visibility */
.graduate-access-section::before {
    display: none;
    /* Remove the old radial overlay to let the image shine through */
}

/* Experience Gallery Styles (New) */
.experience-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    cursor: default;
    border: 1px solid #333;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(30%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Why Us Background */
#ventajas {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.8)), url('../images/photo-output 5.JPEG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    border-top: 1px solid #222;
}

/* SVG Icon Styling */
.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    stroke: #666;
    transition: all 0.3s ease;
}

.form-group:focus-within .input-icon svg {
    stroke: var(--accent);
    filter: drop-shadow(0 0 5px rgba(243, 112, 33, 0.4));
}

/* Stronger Mobile Responsive Override */
@media (max-width: 768px) {
    header {
        position: relative;
        padding: 1rem 0;
    }

    nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }

    .logo {
        justify-self: center;
        margin-bottom: 0.5rem;
    }

    .nav-links {
        justify-content: center;
        gap: 1rem;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.9rem;
        /* Larger touch targets */
        max-width: none;
        padding: 0.5rem;
    }

    .nav-actions {
        justify-self: center;
        margin-top: 0.5rem;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .sticky-cta,
    .student-access-btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Adjust spacing */
    section:not(.hero) {
        padding: 4rem 0;
    }

    .hero-content {
        padding-top: 4rem !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .graduate-access-section h2 {
        font-size: 2rem;
    }

    /* --- WhatsApp Floating Button --- */
    .whatsapp-float {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: #25d366;
        color: #fff;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-left: 0;
        text-align: center;
        font-size: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        text-decoration: none;
        transition: all 0.3s ease;
        animation: pulse-wa 2s infinite;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    }

    .whatsapp-float svg {
        width: 35px;
        height: 35px;
        fill: #fff;
    }

    @keyframes pulse-wa {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }

        70% {
            box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }

    /* --- Hero Typography Enhancements --- */
    .hero-content h1 {
        font-size: 3.5rem;
        /* Base size */
        font-weight: 700;
        letter-spacing: 0.2em;
        /* Spacing for GRADUACIONES */
        color: #fff;
        margin-bottom: 1rem;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        /* Lift off video */
    }

    .hero-content h1 .text-accent {
        display: block;
        /* Force new line */
        font-size: 5rem;
        /* Much larger */
        color: var(--accent);
        font-family: 'Playfair Display', serif;
        /* Elegant font */
        font-style: italic;
        font-weight: 800;
        letter-spacing: 0;
        /* Reset spacing for script-like font */
        line-height: 0.9;
        margin-top: 0.5rem;
    }

    /* Response Adjustments */
    @media (max-width: 768px) {
        .hero-content h1 {
            font-size: 2rem;
        }

        .hero-content h1 .text-accent {
            font-size: 3rem;
        }
    }

    /* --- Mobile Optimizations (COMPLETE OVERHAUL) --- */
    @media (max-width: 900px) {

        /* --- 1. HEADER & HAMBURGER MENU --- */
        header {
            padding: 1rem 0;
        }

        nav {
            display: flex;
            /* Changed from grid to flex for better control */
            justify-content: space-between;
            align-items: center;
            padding: 0 1.5rem;
        }

        .logo {
            margin: 0;
            z-index: 1001;
            /* Above menu overlay */
        }

        /* Hamburger Button (Hidden on Desktop) */
        #mobile-menu-btn {
            display: block !important;
            background: transparent;
            border: none;
            color: #fff;
            cursor: pointer;
            z-index: 1001;
            /* Above overlay */
        }

        /* Hide links by default on mobile */
        .nav-links,
        .nav-actions {
            position: fixed;
            background-color: #000;
            flex-direction: column;
            width: 100%;
            left: 0;
            z-index: 1000;
            padding: 2rem;
            transition: transform 0.3s ease-in-out;
            transform: translateY(-150%);
            /* Hidden top */
            gap: 2rem;
            align-items: center;
            justify-content: center;
        }

        .nav-links {
            top: 0;
            height: 100vh;
            /* Full screen overlay */
            padding-top: 6rem;
        }

        /* Move Actions INTO the menu flow (CSS Hack mainly) */
        .nav-actions {
            top: auto;
            bottom: 0;
            height: auto;
            padding-bottom: 4rem;
            background: transparent;
            transform: translateY(200%);
            /* Hidden bottom */
        }

        /* "Nav Open" State */
        nav.nav-open .nav-links {
            transform: translateY(0);
        }

        nav.nav-open .nav-actions {
            transform: translateY(-100px);
            /* Bring up */
            z-index: 1002;
        }

        .nav-links a {
            font-size: 1.5rem;
            /* Big readable links */
            max-width: none;
        }

        .nav-actions {
            flex-direction: column;
            width: 100%;
            gap: 1rem;
        }

        .sticky-cta,
        .student-access-btn {
            width: 100%;
            max-width: 250px;
            font-size: 1.1rem;
            padding: 1rem;
        }


        /* --- 2. TYPOGRAPHY & MARGINS (Video Alignment) --- */
        .hero-content h1 {
            font-size: 1.8rem !important;
            letter-spacing: 0.05em;
            line-height: 1.2;
            margin-bottom: 1rem;
            padding: 0 1rem;
            /* Margins inside video */
        }

        .hero-content h1 .text-accent {
            font-size: 3rem !important;
            display: block;
            margin-top: 0.5rem;
        }

        .hero-content p {
            font-size: 1rem !important;
            padding: 0 1.5rem;
        }


        /* --- 3. SERVICES COMPASS (Hidden -> List) --- */
        .services-compass {
            display: none !important;
            /* Hide visual compass */
        }

        .services-details-stack {
            gap: 4rem;
            /* More space between items */
        }

        .detail-block {
            text-align: center;
            padding: 0 1rem;
        }


        /* --- 4. GALA DINNER (2 Columns) --- */
        /* Targeting the UL inside the Cena de Gala detail block */
        .detail-block ul {
            display: grid;
            grid-template-columns: 1fr 1fr;
            /* 2 Columns */
            gap: 0.8rem;
            text-align: left;
        }

        .detail-block ul li {
            font-size: 0.85rem !important;
            /* Slightly smaller to fit */
        }


        /* --- 5. "WHY CHOOSE US" (Horizontal Scroll) --- */
        .features-grid {
            display: flex;
            /* Override grid */
            overflow-x: auto;
            /* Enable scroll */
            scroll-snap-type: x mandatory;
            gap: 1.5rem;
            padding-bottom: 2rem;
            /* Space for gesture */
            margin: 0 -1.5rem;
            /* Negative margin to touch edges */
            padding-left: 1.5rem;
            /* Restore padding start */
            padding-right: 1.5rem;
            /* Restore padding end */
        }

        .feature-card {
            min-width: 280px;
            /* Fixed width */
            max-width: 280px;
            scroll-snap-align: center;
            margin: 0;
        }


        /* --- 6. FORM & BUTTONS --- */
        .contact-form {
            padding: 2rem 1.5rem;
            /* Less padding on mobile */
            width: 100%;
            border-radius: 12px;
        }

        .form-group input {
            width: 100% !important;
            /* Ensure full width */
        }

        /* Graduate Access Button Redesign */
        .graduate-access-section .btn {
            background-color: var(--accent);
            color: #fff;
            border: none;
            box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4);
            width: 80%;
            font-size: 1.1rem;
        }


        /* --- 7. FOOTER & EXTRAS --- */
        section:not(.hero) {
            padding: 3rem 1.5rem !important;
            /* Consistent margins */
        }

        /* Social Sidebar - Bottom Horizontal */
        .social-sidebar {
            top: auto;
            bottom: 20px;
            right: 50%;
            transform: translateX(50%);
            flex-direction: row;
            gap: 1.2rem;
            z-index: 1000;
            width: max-content;
        }

        .social-link {
            width: 45px;
            height: 45px;
            font-size: 1.2rem;
            background: rgba(243, 112, 33, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }
    }

    /* Default Desktop Toggle Hide */
    #mobile-menu-btn {
        display: none;
    }