@import url('variables.css');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Fix for Sticky Header Overlap on Scroll Links */
section,
#mision,
#actividades,
#instalaciones,
#contacto {
    scroll-margin-top: 60px;
    /* Header Space (Fixed) + Breathing Room */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
    width: 100%;
    opacity: 0;
    /* Hidden by default for smooth entry */
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

/* Watermark Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/CAMPAMENTO.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Watermark Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/CAMPAMENTO.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 187, 249, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-inverse);
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: var(--secondary-soft);
}

/* Top Info Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    /* Height adjustments in media query */
    background: #0b1026;
    /* Deep dark blue solid */
    color: var(--text-muted);
    z-index: 1006;
    /* Above everything */
    display: flex;
    justify-content: center;
    /* Center content */
    align-items: center;
    gap: 30px;
    /* Space between items */
    padding: 0 5%;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .top-bar {
        height: auto;
        padding: 8px 10px;
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }

    /* Push header down to avoid overlap */
    header {
        top: 75px !important;
    }

    /* Allow it to slide up on scroll */
    header.scrolled {
        top: 10px !important;
    }
}

/* Header & Nav - Floating White Pill */
header {
    position: fixed;
    top: 40px;
    /* Below the 30px top bar + 10px gap */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1005;
    /* Above decoration */

    /* White Glass Effect */
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

header.scrolled {
    top: 10px;
    /* Moves slightly up */
    width: 85%;
    /* Shrinks width slightly */
    padding: 2px 0;
    /* Shrinks height via padding/flex alignment */
    /* More glass opacity */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 30px;
    position: relative;
    /* Needed for absolute centering of logo on mobile */
    transition: height 0.3s ease;
    /* Smooth height change */
}

/* Shrink Nav Height on Scroll (Desktop) */
header.scrolled nav {
    height: 50px;
    /* Reduced from 60px */
}

/* Registration / Admin Navbar */
.reg-navbar {
    background: rgba(11, 16, 38, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.reg-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
}

.reg-navbar .logo img {
    height: 45px;
    /* Slightly smaller for better fit */
    width: auto;
    object-fit: contain;
    transform: none;
    /* Reset the scale(1.4) from main header */
    margin: 0;
}

/* Nav Button (Back to Home, Logout) */
.btn-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--bg-main);
    background: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.8rem;
}

.logo {
    display: flex;
    align-items: center;
    /* margin-left: 20px; Removed to prevent offset in reg-navbar */
}

.logo img {
    height: 50px;
    /* Updated from 65px to match design override */
    width: auto;
    transform: scale(1.4);
    /* Significant zoom to maximize text visibility */
    transition: all 0.3s ease;
}

/* Scroll effect for logo */
header.scrolled .logo img {
    height: 40px;
    /* Reduced from 52px to ensure it's smaller than base 50px */
    transform: scale(1.4);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-navbar);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Nav Hide */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Header Decoration (Little Einsteins) */
.header-decoration {
    position: fixed;
    top: 0px;
    right: -20px;
    /* Aligned to edge, slight overlap to hide potential whitespace */
    height: 700px;
    /* MASSIVE as requested */
    z-index: 995;
    /* Behind navbar/topbar */
    pointer-events: none;
    /* Removed float animation */
    /* animation: floatAnimation 4s ease-in-out infinite; */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));

    /* Load-in Effect Initial State */
    opacity: 0;
    transform: translateY(-20px) scale(0.95) rotate(-15deg);
    transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header-decoration.loaded {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-15deg);
}

/* Hidden on Scroll (Fade Out) */
.header-decoration.hidden-scroll {
    opacity: 0;
    transform: translateY(-50px) rotate(-15deg);
    /* Slide up and out */
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Float Animation */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px) rotate(-15deg);
    }

    50% {
        transform: translateY(-10px) rotate(-13deg);
    }

    100% {
        transform: translateY(0px) rotate(-15deg);
    }
}

/* Adjust position on scroll if needed */
/* Adjust position on scroll if needed - REMOVED SCALING as requested */
/* header.scrolled~.header-decoration {
    top: 20px;
    height: 500px; 
} */

.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Clean overrides */
    margin-top: 0;
    padding-top: 0;
    background: transparent;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Dark gradient over hero image to ensure text readability */
    background: linear-gradient(to bottom,
            rgba(11, 16, 38, 0.3) 0%,
            rgba(11, 16, 38, 0.4) 50%,
            var(--bg-main) 100%);
}

.hero .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    position: relative;
}

.hero-content .btn {
    margin: 10px;
    /* Visible gap between buttons */
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Floating Shapes */
.shape {
    position: absolute;
    opacity: 0.4;
    z-index: 1;
    filter: blur(40px);
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: var(--secondary);
    border-radius: 50%;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--accent-purple);
    border-radius: 50%;
}

/* Sections - Separation Logic */
.section-parallax {
    position: relative;
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 60px;
    position: relative;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    display: block;
    margin: 20px auto 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    border-radius: 2px;
}

/* Specific Section Tints */
#mision {
    background: transparent;
    /* Shows deep space & watermark */
}

#actividades {
    background: rgba(0, 0, 0, 0.2);
    /* Darker "control panel" feel */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

#contacto {
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.05));
    /* Subtle cyan glow at bottom */
}

#instalaciones {
    background: rgba(11, 16, 38, 0.5);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-text h3 {
        margin-top: 20px;
    }

    .about-text {
        order: -1;
        /* Text first on mobile */
    }
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-image {
    background: var(--bg-soft);
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    /* Clip image corners */
    /* Remove flex centering as it's now an image container */
    /* display: flex; align-items: center; justify-content: center; font-size: 5rem; */
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    /* Alien glow */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Highlight (Kitchen, etc.) */
.feature-highlight {
    background: rgba(11, 16, 38, 0.8);
    border: 1px solid var(--accent-green);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
    transition: transform 0.3s ease;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 255, 157, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 50%;
    line-height: 1;
}

.feature-content h3 {
    margin-bottom: 10px;
    color: var(--accent-green);
    font-size: 1.5rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }
}

/* Specific Feature Highlights */
.feature-monitors {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    margin-bottom: 50px;
}

.feature-monitors .feature-icon,
.feature-monitors h3 {
    color: var(--accent-yellow);
}

/* Activities Cards */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-soft);
    border-radius: 20px;
    /* overflow: hidden; REMOVED to allow logo to pop out */
    border: 1px solid var(--border-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* Needed for absolute positioning of logo */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary);
}

.card-header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 19px 19px 0 0;
    /* Maintain top rounding since parent overflow is visible */
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.card-text {
    color: var(--text-muted);
}

/* Card Accents */
.card-green .card-header {
    color: var(--accent-green);
    box-shadow: inset 0 0 20px rgba(0, 255, 157, 0.2);
}

.card-purple .card-header {
    color: var(--accent-purple);
    box-shadow: inset 0 0 20px rgba(213, 0, 249, 0.2);
}

.card-orange .card-header {
    color: var(--accent-orange);
    box-shadow: inset 0 0 20px rgba(255, 140, 0, 0.2);
}

/* Floating Card Logo (Warner) */
.card-floating-logo {
    position: absolute;
    top: -20px;
    left: -50px;
    width: 250px;
    opacity: 1;
    /* Solid sticker look */
    transform: rotate(-25deg);
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass through if needed */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    /* Add shadow for pop-out effect */
}

@media (max-width: 768px) {
    .card-floating-logo {
        width: 140px;
        /* Base size was small? Check user request: "mas grande" */
        /* Wait, user said now it is "super pequeño".
           If desktop is 250px, mobile should probably be similar or larger relative to card.
           Let's Force it.
        */
        width: 180px !important;
        left: -20px !important;
        top: -30px !important;
    }
}

/* Coming Soon Text */
.coming-soon-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dynamic Card Themes (Border & Text) */
.card-theme-secondary {
    border-color: var(--secondary);
}

.card-theme-secondary .card-header {
    color: var(--secondary);
}

.card-theme-green {
    border-color: var(--accent-green);
}

.card-theme-green .card-header {
    color: var(--accent-green);
}

.card-theme-orange {
    border-color: var(--accent-orange);
}

.card-theme-orange .card-header {
    color: var(--accent-orange);
}

/* Contact Form */
.contact-container {
    background: var(--bg-soft);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    max-width: 900px;
    /* Increased from 700px */
    margin: 0 auto;
    /* Center the container block */
    box-shadow: var(--shadow-soft);
    text-align: center;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 20px;
        /* Reduced from 50px */
        width: 100%;
        /* Ensure it doesnt overflow */
    }
}

/* Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-box {
    background: rgba(11, 16, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.launch-date {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

.meeting-notice {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.text-lg {
    font-size: 1.5rem;
}

/* Hide form elements for now if we replace them, or repurpose container */

.form-control {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(11, 16, 38, 0.6);
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    background: rgba(11, 16, 38, 0.9);
}

/* --- Footer Styling --- */
footer {
    background-color: #0b1026;
    /* Darker Navy Blue - Less "chillón" */
    color: white;
    padding: 60px 0 20px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    /* Base footer font size smaller */
}

/* Ensure text on white backgrounds is readable (black/dark grey) */
/* --- Legal & Content Pages Styling --- */
.legal-header,
.page-header {
    background: transparent;
    /* Minimalist dark header */
    color: white;
    /* Title white */
    padding: 30px 0 20px;
    /* Much smaller vertical padding */
    text-align: center;
    position: relative;
    z-index: 10;
}

.legal-header h1,
.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-header p,
.page-header p {
    opacity: 0.8;
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 300;
}

/* Ensure text on white backgrounds is readable (black/dark grey) */
.card-body {
    color: #1a1a1a;
}

/* Content directly on dark background */
.legal-content,
.page-content {
    background-color: transparent;
    /* No white container */
    padding: 20px 0;
    box-shadow: none;
    margin-bottom: 60px;
    color: #ffffff;
    /* White text */
    line-height: 1.8;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.legal-content h2,
.page-content h2 {
    color: var(--secondary);
    /* Green/Secondary for subtitles */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.legal-content p,
.page-content p {
    color: #f0f0f0;
    /* Soft white/light grey */
    margin-bottom: 1.5rem;
}

.legal-content ul,
.page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    color: #f0f0f0;
}

.legal-content li,
.page-content li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile default */
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 900px) {
    .footer-content {
        /* Desktop: First col smaller (0.8fr), others larger (1.2fr) */
        grid-template-columns: 0.8fr 1.2fr 1.2fr 1.2fr;
    }
}

.footer-col h3 {
    color: var(--accent-green);
    font-size: 1.1rem;
    /* Smaller heading */
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    /* More professional */
    letter-spacing: 0.5px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-col p {
    font-size: 0.85rem;
    /* Smaller text */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
    /* Tighter spacing */
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    /* Muted white */
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
    /* Subtle move */
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social-icons a {
    width: 32px;
    /* Smaller icons */
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    /* More subtle bg */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-social-icons a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    /* Very small copyright */
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS & MENU
   ========================================= */

/* Hamburger Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1010;
    /* Above overlay */
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Mobile Menu Sidebar (Floating Professional Dropdown) */
.mobile-menu-overlay {
    position: fixed;
    top: 155px;
    /* Moved down to clear the 75px header + height */
    /* Below header with more margin */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 350px;
    height: auto;
    /* Auto height based on content */
    background: rgba(11, 16, 38, 0.95);
    /* Deep Dark Blue Glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* Below Header (1005) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 20px;

    /* Animation: Fade In + Slide Down */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.3s ease, gap 0.3s ease, width 0.3s ease, max-width 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-menu-overlay.scrolled {
    top: 75px;
    /* Adjusts when header shrinks */
    padding: 15px;
    /* Reduced padding further */
    gap: 10px;
    /* Reduced gap further */

    /* Significantly narrower width on scroll */
    width: 80%;
    max-width: 260px;

    transition: top 0.3s ease, padding 0.3s ease, gap 0.3s ease, width 0.3s ease, max-width 0.3s ease;
}

.mobile-menu-overlay.scrolled a {
    font-size: 1.2rem;
    /* Even smaller text */
}



.mobile-menu-overlay a {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    /* Cleaner look */
    padding-bottom: 0;
    width: auto;
    font-size: 1.5rem;
    /* Larger font */
    letter-spacing: 2px;
}

.mobile-menu-overlay a:hover {
    color: white;
    color: var(--primary);
    border-bottom-color: transparent;
    padding-left: 0;
    transform: scale(1.1);
    transition: all 0.3s;
}

/* =========================================
   INVERSE LOGIC: Mobile Menu Visibility
   ========================================= */

/* Default State: Hide ALL in mobile menu (they are visible on bar) */
.mobile-menu-overlay a {
    display: none;
}

/* Always show Galeria/Inscripción if they are hidden on desktop? 
   Wait, logic:
   - < 1300: Inicio hides on Desk -> Show available in Mobile.
   - < 960: All hide on Desk -> Show All in Mobile.
*/

/* Link-Specific Visibility Triggers */

/* Stage 1: Inicio Hides on Desktop (< 1300px) */
@media (max-width: 1300px) {
    .mobile-menu-overlay a.mm-inicio {
        display: block;
    }
}

/* Stage 2: Misión Hides on Desktop (< 1200px) */
@media (max-width: 1200px) {
    .mobile-menu-overlay a.mm-mision {
        display: block;
    }
}

/* Stage 3: Actividades Hides on Desktop (< 1120px) */
@media (max-width: 1120px) {
    .mobile-menu-overlay a.mm-actividades {
        display: block;
    }
}

/* Stage 4: Servicios Hides on Desktop (< 1040px) */
@media (max-width: 1040px) {
    .mobile-menu-overlay a.mm-servicios {
        display: block;
    }
}

/* Stage 5: FULL Mobile Mode (< 960px) */
@media (max-width: 960px) {
    .mobile-menu-overlay a {
        display: block;
        /* Show EVERYONE */
    }
}

/* Large Desktop: Hide Decoration Early */
@media (max-width: 1400px) {
    .header-decoration {
        display: none !important;
        opacity: 0;
    }
}

/* Progressive 1-by-1 Hiding Logic */

/* Stage 1: Hamburger Appears Left, "Inicio" Hides (Tablet Landscape) */
@media (max-width: 1300px) {
    .mobile-menu-btn {
        display: block;
        order: -5;
        /* ALWAYS LEFT of logo */
        font-size: 1.8rem;
        /* margin-right: auto;  <-- REMOVED to prevent pushing logo away */
    }

    /* Ensure nav container handles the left-burger correctly */
    nav {
        justify-content: flex-start;
        /* Force items to start from left */
        gap: 30px;
        /* Increased gap */
    }

    .logo {
        margin-left: 20px;
        /* Extra push to compensate for scale(1.4) overlap */
    }

    .nav-links {
        margin-left: auto;
        /* Push links to the right edge */
    }

    .nav-links a:nth-child(1) {
        /* Hide "Inicio" */
        display: none;
    }
}

/* Stage 2: Hide "Misión" */
@media (max-width: 1200px) {
    .nav-links a:nth-child(2) {
        /* Hide "Misión" */
        display: none;
    }
}

/* Stage 3: Hide "Actividades" */
@media (max-width: 1120px) {
    .nav-links a:nth-child(3) {
        /* Hide "Actividades" */
        display: none;
    }
}

/* Stage 4: Hide "Servicios" */
@media (max-width: 1040px) {
    .nav-links a:nth-child(4) {
        /* Hide "Servicios" */
        display: none;
    }
}

/* Mobile Media Queries (Stage 5: Hide Everything Else) */
@media (max-width: 960px) {

    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        /* order: -5; REMOVED: Default order (last) puts it on the Right */
        /* Ensure it stays left */
        font-size: 2.2rem;
        /* Base size larger */
        transition: font-size 0.3s ease;
    }

    /* Scaling on scroll for Menu Button */
    header.scrolled .mobile-menu-btn {
        font-size: 2.0rem;
        /* Increased size to match larger logo */
    }

    .logo {
        margin-left: 0;
        /* Flow normally in flex */
        position: static;
        transform: none;
        flex-shrink: 0;
        /* Prevent squashing */
        margin-top: 4px;
        /* Nudge down for visual balance */
    }

    header {
        width: 95%;
        /* Wider header on mobile */
        padding: 5px 0;
        z-index: 1010;
        /* Ensure it stays on top */
        /* Ensure fixed position is reinforced */
        position: fixed;
        /* Optimization: Ensure transition doesn't cause disappearance */
        transition: top 0.3s ease, background 0.3s ease, width 0.3s ease;
    }

    /* Fixed Width on Scroll (Prevent Burger Drift) & Force Centering */
    header.scrolled {
        width: 95%;
        /* KEEP IT WIDE! */
        left: 50%;
        /* Force center */
        transform: translateX(-50%);
        /* Force center */
    }

    /* Mobile Logo Sizing (Disable Scale for Accuracy) */
    .logo img {
        height: 55px;
        /* Reverted to User Preference */
        transform: none;
        /* Disable global zoom */
    }

    header.scrolled .logo img {
        height: 55px;
        /* Reverted to User Preference */
        transform: none;
    }

    /* Reduce nav padding to move menu button more to the left */
    nav {
        padding: 0 15px;
        /* Comfortable side padding */

        /* USER REQUEST: Logo Left, Burger Right -> CHANGED: Burger is Order -5 (Left), so we justify start to keep them close */
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        /* Add spacing between Logo and Burger */

        position: relative;
    }

    /* Ghost Element for Perfect Centering Balance - REMOVED */
    nav::after {
        display: none;
    }

    /* Typography */
    .hero {
        align-items: flex-start;
        padding-top: 300px !important;
        /* Force content well below the fixed header area */
        height: auto;
        /* Allow growth if needed */
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Layouts */
    .section-padding {
        padding: 50px 0;
    }

    /* Countdown */
    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-box {
        min-width: 70px;
        padding: 10px;
    }

    .countdown-container {
        gap: 10px;
    }
}


/* --- GLightbox Custom Overrides (Professional Static Frame) --- */

/* 1. Hide DEFAULT Description */
.glightbox-clean .gslide-description {
    display: none !important;
}

/* 2. Custom STATIC Title Overlay */
#glightbox-static-title {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    /* GLightbox uses z-indices around 100000, so we go higher */
    z-index: 9999999 !important;

    /* Decoration - Glass Pill */
    padding: 12px 40px;
    background: rgba(11, 16, 38, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 4px solid var(--secondary);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);

    /* Text */
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    display: none;
    /* JS controls this */
}

/* 3. Image Frame & Layout */
.glightbox-clean .gslide-media {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* The actual image element inside */
.glightbox-clean .gslide-image img {
    /* FRAME STYLING applied directly to the IMG element */
    border: 10px solid rgba(11, 16, 38, 0.8) !important;
    border-radius: 20px !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.15),
        /* Highlight edge */
        0 20px 50px rgba(0, 0, 0, 0.9) !important;
    /* Deep shadow */

    background: #000;
    max-height: calc(100vh - 160px) !important;
    /* Ensure it fits */
    width: auto !important;
    max-width: 100% !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #glightbox-static-title {
        top: 15px;
        font-size: 1.1rem;
        padding: 8px 20px;
        width: 80%;
        /* Prevent overflow on small screens */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .glightbox-clean .gslide-media {
        padding-top: 60px !important;
    }

    .glightbox-clean .gslide-image img {
        border-width: 5px !important;
        max-height: calc(100vh - 100px) !important;
    }
}

/* Utility Spacing */
/* Utility Spacing */
.mt-4 {
    margin-top: 2rem !important;
}

/* Warner Logo Responsiveness (Mobile & Tablet) */
@media (max-width: 1200px) {
    .card-floating-logo {
        width: 200px !important;
        top: -25px !important;
        left: -10px !important;
    }

    .activities-grid {
        padding-left: 20px !important;
    }
}

@media (max-width: 768px) {
    .card-floating-logo {
        width: 180px !important;
        /* Fixed: Was 80px, too small */
        top: -30px !important;
        left: -10px !important;
        transform: rotate(-10deg) !important;
    }
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

/* Reverted full card background. Adding background only to headers as requested */
.contact-card h3,
.contact-form-card h3 {
    background-color: rgba(255, 255, 255, 0.9);
    /* Whitish background for the text */
    color: var(--primary);
    /* Blue text */
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .contact-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        /* Full width of container */
        gap: 20px;
    }

    .contact-form-card {
        order: -1;
        /* Move form to top */
    }

    .contact-grid .card {
        width: 100%;
        margin: 0;
        /* Ensure no horizontal overflow from borders/padding */
        box-sizing: border-box;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--secondary);
}

.contact-item h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item a {
    color: var(--secondary);
    text-decoration: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

/* Registration Page Styles - Relaxed Scrolling Layout */
.reg-page-body {
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
    /* Enable vertical scrolling */
}

.reg-navbar {
    background: rgba(11, 16, 38, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    width: 100%;
}

.reg-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to top to respect padding */
    background: rgba(0, 0, 0, 0.1);
    padding: 20px 20px;
    /* Reduced spacing to 20px */
    overflow: visible;
    /* content can overflow */
}

.form-fullscreen-container {
    width: 100%;
    max-width: 900px;
    /* Match typical Google Form width */
    min-height: 85vh;
    /* Keep it tall */
    /* Removed white background and box-shadow */
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    /* Extra scrolling terrain at bottom */
}

.form-fullscreen-container iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(5, 213, 250, 0.3);
}

.w-100 {
    width: 100%;
}

/* Hero Info Badges (Added for Motto Update) */
.hero-info-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(11, 16, 38, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--accent-yellow);
    padding: 12px 25px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-3px);
    background: rgba(11, 16, 38, 0.8);
}

.hero-badge i {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-info-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-badge {
        width: 90%;
        justify-content: center;
        font-size: 1rem;
    }
}

/* Info Features Section (Redesigned) */
.info-features-section {
    padding-top: 0;
    margin-top: -20px;
    /* Slight pull up closer to mission */
    position: relative;
    z-index: 10;
}

.info-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.feature-icon-floating {
    font-size: 2.5rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-value {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

/* Card Themes */
.theme-gold {
    border-color: rgba(255, 215, 0, 0.3);
}

.theme-gold .feature-icon-floating {
    color: var(--accent-yellow);
}

.theme-gold .feature-value {
    color: var(--accent-yellow);
    font-family: var(--font-display);
}

.theme-blue {
    border-color: rgba(0, 229, 255, 0.3);
}

.theme-blue .feature-icon-floating {
    color: var(--primary);
}

.theme-green {
    border-color: rgba(0, 255, 157, 0.3);
}

.theme-green .feature-icon-floating {
    color: var(--accent-green);
}

@media (max-width: 768px) {
    .info-features-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 15px;
    }

    .info-feature-card {
        padding: 20px;
    }

    .feature-value {
        font-size: 1.3rem;
    }

    /* Make the motto card slightly bigger on mobile? */
    .theme-gold .feature-value {
        font-size: 1.5rem;
    }
}

/* Price Theme */
.theme-price {
    border-color: rgba(255, 64, 129, 0.3);
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.theme-price .feature-icon-floating {
    color: #ff4081;
    background: rgba(255, 64, 129, 0.1);
}

.theme-price .feature-value {
    color: #ff4081;
}

.theme-price .btn:hover {
    background: #ff4081;
    border-color: #ff4081;
    color: white;
}

/* Details Animation Support for index.html */
details.faq-item summary {
    list-style: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary i {
    transition: transform 0.3s ease;
}

details.faq-item[open] summary i {
    transform: rotate(180deg);
}

/* --- Poster Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: visible;
    /* Allow close button to overlap */
    animation: scaleIn 0.3s ease-out forwards;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 20px;
    /* Safety margin on mobile */
}

.modal-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    /* Keep it within view */
    border-radius: 8px;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.close-btn:hover {
    transform: scale(1.1);
    color: var(--accent-red);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .modal-content {
        max-width: 600px;
        /* Limit width on desktop for poster shape */
    }
}

/* CTA in Navbar - Hide on Mobile */
.nav-cta {
    display: block;
}

@media (max-width: 960px) {

    /* Same breakpoint as nav-links hiding */
    .nav-cta {
        display: none !important;
    }
}

/* Global Visibility Utilities */
.cta-mobile-only {
    display: none !important;
    /* Hide on Desktop by default */
}

@media (max-width: 960px) {
    .cta-mobile-only {
        display: inline-block !important;
        /* Show on Mobile screens */
    }
}