/* ============================================
   CAVEMAN GRILL & BBQ — Curso de Ahumado
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --color-red: #C0392B;
    --color-red-dark: #96281B;
    --color-red-light: #E74C3C;
    --color-black: #0D0D0D;
    --color-black-soft: #1A1A1A;
    --color-white: #FFFFFF;
    --color-gray: #F2F2F2;
    --color-gray-dark: #333333;
    --color-text: #CCCCCC;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

/* ---------- TOAST (Regla general) ---------- */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 28px;
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    animation: toastIn 0.4s ease forwards;
    pointer-events: none;
}

.toast.success {
    background: rgba(39, 174, 96, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.toast.error {
    background: rgba(192, 57, 43, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.toast.fade-out {
    animation: toastOut 0.4s ease forwards;
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 60px;
}

.navbar.scrolled .navbar__logo img {
    height: 46px;
}

.navbar.scrolled .navbar__logo {
    top: 50%;
    transform: translate(-50%, -50%);
}

.navbar__links {
    display: flex;
    gap: 30px;
}

.navbar__links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-white);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

.navbar__links a:hover::after {
    width: 100%;
}

.navbar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar__logo img {
    height: 102px;
    width: auto;
}

.navbar__social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.navbar__social a {
    color: var(--color-white);
    font-size: 1.43rem;
    transition: var(--transition);
}

.navbar__social a:hover {
    color: var(--color-red);
    transform: scale(1.15);
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.navbar__hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile menu */
.navbar__mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar__mobile-menu.active {
    display: flex;
    opacity: 1;
}

.navbar__mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-white);
    text-transform: uppercase;
}

.navbar__mobile-menu a:hover {
    color: var(--color-red);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(13, 13, 13, 0.3) 0%,
            rgba(13, 13, 13, 0.1) 40%,
            rgba(13, 13, 13, 0.6) 80%,
            rgba(13, 13, 13, 1) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--color-black);
    text-shadow: none;
    margin-bottom: 15px;
}

.hero__date {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--color-white);
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---------- Fade In Animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.25s;
}

.fade-in-delay-3 {
    transition-delay: 0.4s;
}

.fade-in-delay-4 {
    transition-delay: 0.55s;
}

/* ============================================
   SPONSORS / LOGOS BAR
   ============================================ */
.sponsors {
    background: var(--color-black);
    padding: 0px 0;
    overflow: hidden;
}

.sponsors__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.sponsors__item {
    opacity: 0.85;
    transition: var(--transition);
}

.sponsors__item:hover {
    opacity: 1;
    transform: scale(1.08);
}

.sponsors__item img {
    height: 260px;
    width: auto;
}

/* ============================================
   INVITADO ESPECIAL
   ============================================ */
.invitado {
    background: var(--color-gray);
    padding: 80px 40px;
}

.invitado__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.invitado__image-wrapper {
    flex-shrink: 0;
}

.invitado__image {
    width: 434px;
    height: 427px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.invitado__info {
    color: var(--color-black);
}

.invitado__name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

.invitado__name span {
    color: var(--color-red);
    display: block;
    font-weight: 400;
}

.invitado__role {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--color-gray-dark);
}

.invitado__details {
    font-family: var(--font-body);
    font-size: 1.17rem;
    line-height: 1.8;
    color: #555;
}

.invitado__details p {
    margin-bottom: 2px;
}

/* ============================================
   MARQUEE — INSCRÍBETE
   ============================================ */
.marquee {
    background: var(--color-black);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee__track {
    display: flex;
    animation: marqueeScroll 12s linear infinite;
}

.marquee__text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
    padding: 0 30px;
    flex-shrink: 0;
}

.marquee__separator {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 10px;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   GALERÍA + PRICING
   ============================================ */
.galeria {
    background: var(--color-black);
    padding: 70px 40px 80px;
}

.galeria__grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto 60px;
    flex-wrap: wrap;
}

.galeria__img-wrapper {
    flex: 1 1 250px;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.galeria__img-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(192, 57, 43, 0.3);
}

.galeria__img-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.galeria__info {
    text-align: center;
}

.galeria__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--color-red);
    margin-bottom: 5px;
}

.galeria__subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.galeria__price {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 30px;
}

.btn-inscribir {
    display: inline-block;
    padding: 16px 50px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-inscribir:hover {
    background: var(--color-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-black-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 40px;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer__phone {
    font-family: var(--font-body);
    font-size: 1.17rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 1px;
}

.footer__logo img {
    height: 61px;
    width: auto;
}

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

.footer__social a {
    color: var(--color-white);
    font-size: 1.43rem;
    transition: var(--transition);
}

.footer__social a:hover {
    color: var(--color-red);
    transform: scale(1.15);
}

/* ============================================
   RESPONSIVE — Tablet (max 768px)
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 25px 20px;
    }

    .navbar__logo img {
        height: 70px;
    }

    .navbar__links {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__social {
        display: none;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__content {
        width: 80%;
        margin: 0 auto;
    }

    .hero__date {
        width: 70%;
        margin: 0 auto;
    }

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

    .sponsors__item img {
        height: 200px;
    }

    .invitado {
        padding: 50px 20px;
    }

    .invitado__container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .invitado__image {
        width: 250px;
        height: 250px;
    }

    .galeria {
        padding: 50px 20px 60px;
    }

    .galeria__grid {
        gap: 15px;
    }

    .galeria__img-wrapper {
        max-width: 100%;
        flex: 1 1 200px;
    }

    .galeria__img-wrapper img {
        height: 280px;
    }

    .footer__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer__logo {
        position: static;
        transform: none;
        order: -1;
    }
}

/* ============================================
   RESPONSIVE — Móvil (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__date {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .invitado__image {
        width: 200px;
        height: 200px;
    }

    .invitado__name {
        font-size: 2.2rem;
    }

    .galeria__img-wrapper img {
        height: 220px;
    }

    .galeria__title {
        font-size: 2.2rem;
    }

    .galeria__price {
        font-size: 2rem;
    }

    .btn-inscribir {
        padding: 14px 40px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 25px 15px;
    }
}