/* ========== VARIABLES GLOBALES ========== */
:root {
    --azul-cielo: #87CEEB;
    --amarillo-trigo: #F5DEB3;
    --oro-castilla: #E2C185;
    --negro-carbon: #1A1A1A;
    --blanco-limpio: #331F00;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: var(--blanco-limpio);
    color: white;
    overflow-x: hidden;
}

/* ========== HEADER / HERO ========== */
.parallax-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;      /* ← permite que el skyline baje sin cortarse */
    background: linear-gradient(180deg, var(--azul-cielo) 0%, #B0E0E6 100%);
}

.hero-title {
    text-align: center;
    z-index: 10;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title h1 {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    color: white !important;
    line-height: 0.8;
    text-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-subtitle {
    font-style: italic;
    font-weight: bold;
    font-size: 2rem;
    margin: 0;
    color: white;
}

/* ========== MENÚ HAMBURGUESA (MÓVIL) ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    position: fixed;
    top: 25px;
    right: 25px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========== CONTENEDOR DEL MENÚ (NUBES Y ENLACES MÓVILES) ========== */
.nav-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 0 1rem;
}

/* En móvil: el contenedor se convierte en panel deslizante */
@media (max-width: 768px) {
    .hamburger {
        position: absolute;
        display: flex;
        top: -300px;
        right: 25px;
    }

    .nav-cards-container {
        position: fixed;
        right: -100%;
        width: 75%;
        border-radius: 15px;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(112, 122, 40, 0.8);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 150;
    }
    
    .skyline-layer {
    position: absolute;
    bottom: 50px;          /* Ajusta este valor para bajar el skyline a tu gusto */
    left: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

    .nav-cards-container.active {
        right: 0;
    }

    /* Oculta las nubes en móvil */
    .nav-cards-container .nav-card {
        display: none;
    }

    /* Muestra los enlaces de texto */
    .mobile-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .mobile-links a {
        color: white;
        font-family: 'Josefin Sans', sans-serif;
        font-size: 1.5rem;
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid transparent;
        transition: border 0.2s;
    }

    .mobile-links a:hover {
        border-bottom: 1px solid white;
    }
}

/* En escritorio: oculta los enlaces móviles */
@media (min-width: 769px) {
    .mobile-links {
        display: none;
    }
    /* ========== SKYLINE ========== */
.skyline-layer {
    position: absolute;
    bottom: 0px;          /* Ajusta este valor para bajar el skyline a tu gusto */
    left: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.skyline-layer img {
    display: block;
    width: 100%;
    height: auto;
}
}

/* ========== NUBES DE NAVEGACIÓN (Escritorio) ========== */
.nav-card {
    position: relative;
    width: 180px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: float 5s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 10px 20px rgba(255,255,255,0.5));
}

.cloud-shape {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(255,255,255,0.6),
        inset 0 0 20px rgba(255,255,255,0.5);
}

.cloud-shape::before,
.cloud-shape::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.473);
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    border-radius: 50%;
    box-shadow: inherit;
}

.cloud-shape::before {
    width: 90px;
    height: 90px;
    top: 50px;
    left: -25px;
}

.cloud-shape::after {
    width: 100px;
    height: 100px;
    top: 40px;
    right: -20px;
}

.cloud-text {
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: lowercase;
    color: #2e2416;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
    pointer-events: none;
    text-align: center;
    line-height: 1.3;
}

.nav-card:hover {
    transform: translateY(-10px) scale(1.06);
    animation-play-state: paused;
}

.nav-card:hover .cloud-shape {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 0 30px rgba(255,255,255,0.8),
        inset 0 0 25px rgba(255,255,255,0.7);
}

.nav-card:nth-child(1) { animation-delay: 0s; }
.nav-card:nth-child(2) { animation-delay: 0.6s; }
.nav-card:nth-child(3) { animation-delay: 1.2s; }
.nav-card:nth-child(4) { animation-delay: 1.8s; }
.nav-card:nth-child(5) { animation-delay: 2.4s; }
.nav-card:nth-child(6) { animation-delay: 3.0s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========== SECCIONES GENÉRICAS ========== */
section {
    padding: 120px 10%;
    background: var(--blanco-limpio);
    position: relative;
    z-index: 1;            /* ← por debajo del skyline */
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 40px;
    position: relative;
    color: white;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--amarillo-trigo);
}

.grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.premios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.premio-card {
    padding: 40px;
    border: 1px solid #eee;
    background: white;
    color: #1A1A1A;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premio-card:hover {
    background: var(--amarillo-trigo);
    transform: scale(1.02);
    border-color: var(--amarillo-trigo);
}

.premio-card span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.highlight-box {
    background: rgba(245,222,179,0.15);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--oro-castilla);
}

        /* Estilos para la sección de jueces */
        .jurado-section {
            padding: 60px 10%;
            background: var(--blanco-limpio);
        }
        .jurado-titulo {
            text-align: center;
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            color: white;
            margin-bottom: 40px;
        }
        .jurado-contenedor {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
        }
        .jurado-item {
            text-align: center;
            flex: 1 1 250px;
            max-width: 300px;
        }
        .jurado-foto {
            width: 300px;
            height: 400px;
            object-fit: cover;
            border-radius: 15px;
            border: 4px solid var(--oro-castilla);
            box-shadow: 0 0 20px rgba(226, 193, 133, 0.3);
            margin-bottom: 15px;
        }
        .jurado-nombre {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--oro-castilla);
        }
        .jurado-cargo {
            display: inline-block;
            background: var(--oro-castilla);
            color: white;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-top: 5px;
        }

/* ========== FOOTER ========== */
footer {
    background: var(--negro-carbon);
    color: white;
    padding: 100px 10% 50px;
    text-align: center;
}

.email-footer {
    border-radius: 7px;
    color: black;
    padding: 5px;
    font-family: 'Josefin Sans', sans-serif;
}

.unirse {
    border-radius: 7px;
    color: white;
    background-color: rgb(12, 194, 201);
    width: 70px;
    padding: 5px;
    font-family: 'Josefin Sans', sans-serif;
}

/* ========== NUEVOS ESTILOS PARA CONÓCENOS ========== */
.conocenos-hero {
    text-align: center;
    margin-bottom: 60px;
}

.conocenos-hero h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: white;
}

.conocenos-hero .bajada {
    font-size: 1.2rem;
    color: #5c4328;
    font-style: italic;
}

.historia-texto {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.objetivos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
}

.objetivo-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--amarillo-trigo);
    color: white;
}

.objetivo-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.organizadores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 60px 0;
    text-align: center;
}

.organizador-grupo {
    flex: 1 1 200px;
}

.organizador-grupo h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: white;
}

.logos-placeholder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.logo-box {
    width: 150px;
    height: 150px;
    background: #e0d7c3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #888;
    border: 1px dashed #bbb;
}

.sede-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
}

.img-placeholder {
    background: #ddd;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #666;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .grid-info,
    .objetivos-grid,
    .sede-detalle {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 5%;
    }

    .nav-card {
        width: 130px;
        height: 130px;
        font-size: 0.8rem;
    }
}
