/* ========================================== */
/* === VARIABLES & CONFIGURACIÓN GENERAL === */
/* ========================================== */
:root {
    --bg-main: #E8F3FC;
    --primary-blue: #2B82C9;
    --primary-dark: #1A5485;
    --accent-orange: #FF7A00;
    --accent-orange-hover: #E06B00;
    --card-bg: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #6B7C93;
    --border-radius: 24px;
    --shadow-soft: 0 12px 35px rgba(43, 130, 201, 0.15);
    --shadow-strong: 0 16px 40px rgba(43, 130, 201, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(43, 130, 201, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 122, 0, 0.08) 0%, transparent 40%);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding-top: 100px;
    padding-bottom: 40px;
    text-align: center;
    overflow-y: auto;
}

/* ========================================== */
/* === NAVBAR / MENÚ SUPERIOR === */
/* ========================================== */
.navbar {
    width: 100%;
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid #D0E4F7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-content {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-logo-img {
    height: 40px; /* Ajusta la altura del icono */
    width: auto;
    object-fit: contain;
}

.logo-chupo { color: var(--primary-blue); }
.logo-award { color: var(--accent-orange); }
.logo-com { color: var(--primary-blue); font-size: 0.75em; }

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5em;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
    background-color: #E2F0FD;
}

/* ========================================== */
/* === CONTENEDOR PRINCIPAL (CARD) === */
/* ========================================== */
.award-container {
    background: var(--card-bg);
    border: 4px solid #D0E4F7;
    border-radius: var(--border-radius);
    padding: 3em 2.5em;
    width: 90%;
    max-width: 580px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.3s ease;
}

/* Badge decorativo */
.badge-gala {
    display: inline-block;
    background-color: #E2F0FD;
    color: var(--primary-blue);
    font-size: 0.85em;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Encabezados */
h1 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary-blue);
    font-size: 2.5em;
    margin: 0;
    line-height: 1.2;
}

.highlight-date {
    color: var(--accent-orange);
}

.subtitle {
    font-size: 1.05em;
    color: var(--text-muted);
    margin-top: 0.6em;
    margin-bottom: 2em;
    font-weight: 400;
}

/* Seccion Pre-reveal */
#pre-reveal h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary-dark);
    font-size: 1.6em;
    margin-bottom: 1.2em;
}

/* Botón Revelar */
#reveal-button {
    background: linear-gradient(135deg, var(--accent-orange), #FF922D);
    color: #FFFFFF;
    border: none;
    padding: 16px 36px;
    font-size: 1.2em;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#reveal-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 122, 0, 0.45);
    background: linear-gradient(135deg, var(--accent-orange-hover), var(--accent-orange));
}

#reveal-button:active {
    transform: translateY(1px) scale(0.98);
}

/* ========================================== */
/* === INFORMACIÓN DEL GANADOR === */
/* ========================================== */
.photo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1em;
}

.winner-photo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 6px solid var(--primary-blue);
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(43, 130, 201, 0.25);
}

.winner-crown {
    position: absolute;
    top: -12px;
    right: 8px;
    font-size: 2.5em;
    transform: rotate(15deg);
}

.winner-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 2em;
    color: var(--primary-dark);
    margin: 0.2em 0 0.5em 0;
}

.quote {
    background-color: #F4F8FC;
    border-left: 5px solid var(--accent-orange);
    border-radius: 0 16px 16px 0;
    padding: 1.2em 1.5em;
    margin: 1.5em 0 0.5em 0;
    text-align: left;
}

.quote p {
    margin: 0;
    font-size: 1.1em;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ========================================== */
/* === PREMIO DE CONSOLACIÓN === */
/* ========================================== */
.consolation-prize {
    margin-top: 2.5em;
    padding-top: 2em;
    border-top: 2px dashed #D0E4F7;
}

.consolation-prize h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--text-muted);
    font-size: 1.4em;
    margin-bottom: 1em;
}

.consolation-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #A0B2C6;
    object-fit: cover;
    margin-bottom: 0.8em;
}

.consolation-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.3em 0;
}

/* Utility */
.hidden {
    display: none !important;
}

/* ========================================== */
/* === PÁGINA DE HISTORIAL === */
/* ========================================== */
.history-container {
    width: 90%;
    max-width: 1100px;
    padding: 1em 0;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8em;
    margin-top: 2em;
}

.winner-card {
    background: var(--card-bg);
    border: 3px solid #D0E4F7;
    border-radius: 20px;
    padding: 1.8em 1.2em;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.winner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-blue);
}

.winner-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-blue);
    object-fit: cover;
}

.winner-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4em;
    color: var(--primary-dark);
    margin: 0.8em 0 0.2em;
}

.winner-card .date {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 0.8em;
}

.winner-card .reason {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar-content {
        flex-direction: column;
        gap: 0.8em;
    }
    
    body {
        padding-top: 130px;
    }

    .award-container {
        padding: 2em 1.5em;
    }

    h1 {
        font-size: 2em;
    }
}