/* =========================
   VARIABLES Y RESET
========================= */
:root {
    --bg: #f5e1b8;
    --text: #2b2b2b;
    --accent: #c49b63;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   NAVBAR
========================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 40px;
    background: rgba(42, 30, 22, 0.7);
    backdrop-filter: blur(12px);
    transition: 0.3s;
}

nav.shrink {
    padding: 10px 40px;
    background: rgba(20, 15, 12, 0.9);
}

nav .logo img {
    height: 55px;
}

/* LINKS DESKTOP */
nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

nav ul li a:hover {
    transform: scale(1.08);
    text-shadow: 0 0 10px var(--accent);
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
    height: 100vh;
    position: relative;
}

.carousel {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 1s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

/* =========================
   OVERLAY (MEJORADO)
========================= */
.overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.60);

    gap: 18px;
    padding: 20px;
}

/* LOGO */
.overlay img {
    width: 220px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}

.overlay img:hover {
    transform: scale(1.05);
}

/* TEXTO HERO */
.overlay h1,
.overlay p {
    font-family: 'Manrope', sans-serif;
    text-align: center;
    color: #ffffff;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.4);
}

.overlay h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: 1px;
    color: #ffffff;
}

/* BOTÓN */
.btn {
    background: linear-gradient(135deg, #c49b63, #e6c58f);
    padding: 14px 28px;
    border-radius: 999px;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* =========================
   CONTADOR
========================= */
.countdown {
    color: white;
    text-align: center;
    margin-top: 10px;
}

#timer {
    display: flex;
    gap: 15px;
    font-size: 18px;
}

#timer span {
    background: rgba(0,0,0,0.65);
    padding: 10px 15px;
    border-radius: 10px;
}

/* =========================
   SECCIONES
========================= */
section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 50px;

    background: rgba(255,255,255,0.7);
    border-radius: 20px;

    scroll-margin-top: 100px;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =========================
   PROGRESO
========================= */
.progress-box {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 18px;
    background: #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 75%; /*Editar esto para el progreso*/
    background: linear-gradient(90deg, #c49b63, #e6c58f);
    transition: width 1.5s ease;
    border-radius: 20px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #2a1e16;
    color: white;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer h3 {
    font-family: 'Playfair Display', serif;
}

.footer h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.footer a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer a:hover {
    color: var(--accent);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(0,0,0,0.9);
        flex-direction: column;
        width: 200px;
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: white;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .overlay img {
        width: 140px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

#premios .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

/* CARDS */
#premios .card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 20px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    backdrop-filter: blur(5px);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* HOVER */
#premios .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

/* TEXTO */
#premios .card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 10px;
}

/* IMAGEN */
#premios .card img {
    width: 80px;
    margin: 10px auto;
    display: block;
}
