/* ===== Contenido de final-design.css ===== */

/* ===== ESTILOS PREMIUM ===== */
:root {
    --black: #000000;
    --white: #ffffff;
    --dark-gray: #121212;
    --medium-gray: #222222;
    --light-gray: #f5f5f5;
    --accent: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-logo {
    width: 150px;
    height: 150px;
    background: url('/assets/images/logo.png') center/contain no-repeat;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--white);
    background-color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    padding-top: 90px; /* Adjust this value based on header height */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0 0 20px;
}

h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.5s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 90vh;
    min-height: 600px;
    background: #000;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Video de fondo del hero */
.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-video-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.hero-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    opacity: 1; /* Asegurar visibilidad por defecto */
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Onboard-style titles for internal pages (avoid huge ALL CAPS) */
.page-title .hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

.event-detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.event-detail-flyer img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.event-detail-card {
    padding: 28px;
}

.event-detail-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.event-detail-description {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
}

@media (max-width: 900px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

/* ===== GLASS EFFECT ===== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ===== NOSOTROS SECTION ===== */
.about-section {
    background: var(--dark-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05) rotateY(5deg);
}

.about-text h2 {
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== SERVICIOS SECTION ===== */
.services-section {
    background: var(--black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-content {
    flex-grow: 1;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.service-cta {
    margin-top: 25px;
}

/* ===== EVENTOS SECTION ===== */
.events-section {
    background: var(--dark-gray);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--white);
    margin: 20px auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.event-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.event-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-info-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--glass-border);
    border-top: none;
    flex-grow: 1;
}

.event-info h3 {
    margin: 0 0 10px;
    color: var(--white);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.event-date, .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.event-description {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== GALERÍA SECTION ===== */
.gallery-section {
    background: var(--black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

/* ===== PATROCINADORES SECTION ===== */
.sponsors-section {
    background: var(--dark-gray);
    padding: 60px 0;
}

.sponsors-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
    font-weight: 600;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
}

.sponsor-item {
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    height: 80px;
}

.sponsor-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 40px;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.cta-subtitle {
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACTO SECTION ===== */
.contact-section {
    background: var(--black);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    min-height: 120px;
}

/* ===== MAPA ===== */
.map-container {
    height: 400px;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== WHATSAPP BUTTON ===== */
.float-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-gray);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-copy {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* ===== TRANSICIONES DE PÁGINA ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .cta-section {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: 700px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .main-nav {
        gap: 15px;
    }

    .events-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .float-whatsapp {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .footer-links {
        gap: 15px;
    }
}


/* ===== Contenido de custom.css (Corregido) ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
}

.hero-text-slide {
    opacity: 1 !important;
}

.hero-info-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.hero-info-link:hover {
    transform: scale(1.05);
    color: var(--accent);
}

.text-center {
    text-align: center;
}

.text-center .hero-event-meta {
    justify-content: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.events-section, .events-page-section {
    background: var(--black);
}

/* Force hero button visibility */
.hero-text-slide .btn-primary {
    opacity: 1 !important;
    visibility: visible !important;
}
