/* ============================================
   WORLD CREATIVE CHEF 2026 - STYLES
   Inspired by Fagor Professional design language
   ============================================ */

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e22119;
    --color-primary-dark: #b91c16;
    --color-black: #1a1a1a;
    --color-dark: #2d2d2d;
    --color-gray-dark: #4a4a4a;
    --color-gray: #6f6f6f;
    --color-gray-light: #b0b0b0;
    --color-gray-lighter: #e0e0e0;
    --color-bg-light: #f6f6f6;
    --color-white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --header-height: 80px;
    --container-max: 1200px;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    font-weight: 400;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--white {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--white:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all var(--transition);
}

.header--scrolled {
    background-color: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
}

.header__logo {
    z-index: 1001;
}

.header__logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition);
}

.header__logo-img:hover {
    opacity: 0.8;
}

.header__logo-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.header__logo-text strong {
    font-weight: 800;
    color: var(--color-primary);
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.header__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 4px 0;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
}

.header__link:hover,
.header__link.active {
    color: var(--color-white);
}

.header__link:hover::after,
.header__link.active::after {
    width: 100%;
}

.header__link--cta {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 10px 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.header__link--cta::after {
    display: none;
}

.header__lang {
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.header__lang-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    transition: color var(--transition);
}

.header__lang-link:hover {
    color: var(--color-white);
}

.header__link--cta:hover {
    background-color: var(--color-primary-dark);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero__slide {
    height: 100%;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--color-black);
    /* Replace with actual image */
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(226, 33, 25, 0.3) 100%),
        url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 24px;
}

.hero__badge {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.3em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 8px 24px;
    margin-bottom: 32px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

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

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 48px;
    letter-spacing: 0.05em;
}

.hero__cta {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226, 33, 25, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(226, 33, 25, 0); }
}

/* ========== LOGOS CAROUSEL ========== */
.logos {
    background-color: var(--color-bg-light);
    padding: 40px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--color-gray-lighter);
}

.logos__track {
    display: flex;
    gap: 60px;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.logos__slide {
    flex-shrink: 0;
}

.logos__img {
    height: 40px;
    width: auto;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.logos__img:hover {
    opacity: 0.7;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

/* ========== EVENTO ========== */
.evento {
    padding: 120px 0;
    background-color: var(--color-white);
}

.evento__header {
    text-align: center;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.evento__header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.evento__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.evento__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.0625rem;
    color: var(--color-gray-dark);
    font-weight: 500;
}

.evento__meta-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.evento__divider {
    width: 1px;
    height: 24px;
    background-color: var(--color-gray-lighter);
}

.evento__body {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.evento__body.revealed {
    opacity: 1;
    transform: translateY(0);
}

.evento__description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray);
}

/* ========== FASES ========== */
.fases {
    padding: 120px 0;
    background-color: var(--color-bg-light);
}

.fases__timeline {
    position: relative;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.fases__line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-gray-lighter);
}

.fases__item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fases__item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.fases__item:nth-child(3).revealed { transition-delay: 0.1s; }
.fases__item:nth-child(4).revealed { transition-delay: 0.2s; }
.fases__item:nth-child(5).revealed { transition-delay: 0.3s; }

.fases__number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.fases__card {
    flex: 1;
    background-color: var(--color-white);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--color-primary);
    transition: transform var(--transition), box-shadow var(--transition);
}

.fases__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.fases__date {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.fases__card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 12px;
}

.fases__card-text {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* ========== PREMIOS ========== */
.premios {
    position: relative;
    padding: 160px 24px;
    background-color: var(--color-black);
    /* Replace with actual image */
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(226, 33, 25, 0.4) 100%),
        url('../assets/images/premios-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

.premios__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.premios__content {
    position: relative;
    z-index: 2;
}

.premios__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.premios__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.premios__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.premios__divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0 auto 40px;
}

.premios__coming {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 32px;
}

/* ========== JURADO ========== */
.jurado {
    padding: 120px 0;
    background-color: var(--color-white);
}

.jurado__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.jurado__card {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.jurado__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.jurado__card:nth-child(2).revealed { transition-delay: 0.1s; }
.jurado__card:nth-child(3).revealed { transition-delay: 0.2s; }
.jurado__card:nth-child(4).revealed { transition-delay: 0.3s; }

.jurado__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: var(--color-bg-light);
    margin-bottom: 24px;
    overflow: hidden;
}

.jurado__coming-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 26, 26, 0.85);
}

.jurado__coming-overlay span {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
}

.jurado__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jurado__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-black);
    text-transform: uppercase;
}

.jurado__nationality,
.jurado__restaurant,
.jurado__awards {
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

/* ========== BASES LEGALES ========== */
.bases {
    position: relative;
    padding: 100px 24px;
    background-color: var(--color-dark);
    text-align: center;
    overflow: hidden;
}

.bases__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    opacity: 0.9;
}

.bases__content {
    position: relative;
    z-index: 2;
}

.bases__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.bases__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* ========== INSCRIPCIÓN ========== */
.inscripcion {
    padding: 120px 0;
    background-color: var(--color-bg-light);
}

.inscripcion__form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.inscripcion__form-wrapper.revealed {
    opacity: 1;
    transform: translateY(0);
}

.inscripcion__placeholder {
    background-color: var(--color-white);
    border: 2px dashed var(--color-gray-lighter);
    padding: 80px 40px;
    text-align: center;
}

.inscripcion__placeholder-icon {
    color: var(--color-gray-light);
    margin-bottom: 24px;
}

.inscripcion__placeholder h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 12px;
}

.inscripcion__placeholder p {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.7;
}

.inscripcion__placeholder a {
    color: var(--color-primary);
    font-weight: 600;
}

.inscripcion__placeholder a:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--color-black);
    padding: 60px 0 0;
    color: var(--color-white);
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 24px;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer__tagline {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition);
}

.footer__social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(226, 33, 25, 0.1);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.footer__legal a:hover {
    color: var(--color-white);
}

.footer__copy {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer__copy p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
    .jurado__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .fases__item {
        gap: 24px;
    }

    .fases__card {
        padding: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header__burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        inset: 0;
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
    }

    .header__menu {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .header__link {
        font-size: 1.25rem;
    }

    .header__link--cta {
        margin-top: 16px;
    }

    .hero__title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }

    .evento {
        padding: 80px 0;
    }

    .evento__meta {
        flex-direction: column;
        gap: 16px;
    }

    .evento__divider {
        display: none;
    }

    .fases {
        padding: 80px 0;
    }

    .fases__timeline {
        margin-top: 48px;
        gap: 40px;
    }

    .fases__line {
        left: 24px;
    }

    .fases__number {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .fases__item {
        gap: 16px;
    }

    .fases__card {
        padding: 24px;
    }

    .fases__card-title {
        font-size: 1.25rem;
    }

    .premios {
        padding: 100px 24px;
        background-attachment: scroll;
    }

    .jurado {
        padding: 80px 0;
    }

    .jurado__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .inscripcion {
        padding: 80px 0;
    }

    .inscripcion__placeholder {
        padding: 48px 24px;
    }

    .footer__top,
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .jurado__grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .fases__line {
        display: none;
    }

    .fases__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .logos__img {
        height: 30px;
    }
}
