:root {
    --bg: #fffaf4;
    --bg-soft: #f5eee6;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #241812;
    --muted: #6f625e;
    --primary: #8b2e1b;
    --primary-strong: #6d1f10;
    --accent: #f4b400;
    --green: #25d366;
    --border: rgba(139, 46, 27, 0.12);
    --shadow: 0 20px 45px rgba(46, 20, 14, 0.12);
}

body.dark {
    --bg: #130f0d;
    --bg-soft: #1c1613;
    --surface: rgba(31, 25, 22, 0.86);
    --surface-strong: #211a17;
    --text: #f6eee8;
    --muted: #ccbeb6;
    --primary: #ff8a65;
    --primary-strong: #ffb08e;
    --accent: #ffd166;
    --green: #5ce08f;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(244, 180, 0, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(37, 211, 102, 0.08), transparent 22%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.promo-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(90deg, var(--primary), #b4472f);
    color: #fff;
    text-align: center;
}

.promo-label {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
    backdrop-filter: blur(18px);
    background: rgba(15, 13, 12, 0.72);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.1rem;
}

.brand-copy span {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.78);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle,
.cart-pill,
.menu-toggle {
    border: none;
    cursor: pointer;
}

.theme-toggle,
.cart-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.cart-pill span {
    margin-left: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #2a160f;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 90px 20px;
    color: #fff;
}

.hero-slides,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
    background-position: center;
    background-size: cover;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(6, 5, 4, 0.35), rgba(6, 5, 4, 0.72));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.05;
}

.hero-content p {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.86);
}

.hero-badges,
.botones-hero,
.hero-indicators,
.category-filters,
.reservation-highlights,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badges,
.botones-hero,
.hero-indicators {
    justify-content: center;
}

.hero-badges span,
.reservation-highlights span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn,
.filter-btn,
.add-to-cart {
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    background: var(--accent);
    color: #1f160f;
}

.btn.alt {
    background: var(--green);
    color: #0c2314;
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn.full {
    width: 100%;
}

.btn:hover,
.filter-btn:hover,
.add-to-cart:hover,
.theme-toggle:hover,
.cart-pill:hover {
    transform: translateY(-2px);
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.indicator.active {
    background: var(--accent);
}

.stats,
.section,
.footer {
    padding: 88px 20px;
}

.stats,
.section-heading,
.menu-grid,
.order-panel,
.reservation-grid,
.reviews-grid,
.about-section,
.footer-grid,
.map-frame {
    max-width: 1180px;
    margin: 0 auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stats article,
.menu-card,
.order-panel,
.reservation-form,
.review-card,
.about-media,
.map-frame,
.section-heading,
.footer-grid {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.stats article {
    padding: 24px;
    border-radius: 26px;
    text-align: center;
}

.stats strong {
    display: block;
    color: var(--primary);
    font-size: 1.5rem;
}

.stats span {
    color: var(--muted);
}

.section {
    scroll-margin-top: 90px;
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.section-heading {
    padding: 30px;
    border-radius: 28px;
    margin-bottom: 28px;
    text-align: center;
}

.section-heading.left {
    text-align: left;
}

.section-heading h2 {
    margin: 12px 0;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
}

.category-filters {
    justify-content: center;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 600;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.menu-card {
    overflow: hidden;
    border-radius: 28px;
}

.menu-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.menu-card-body {
    padding: 20px;
}

.menu-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(139, 46, 27, 0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.menu-card h3 {
    margin-bottom: 8px;
}

.menu-card p {
    color: var(--muted);
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.menu-card-footer strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.add-to-cart {
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--green);
    color: #102418;
    font-weight: 700;
}

.order-layout {
    display: grid;
    gap: 28px;
}

.order-panel {
    padding: 28px;
    border-radius: 28px;
}

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-item,
.empty-cart {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--bg-soft);
}

.empty-cart {
    grid-template-columns: 1fr;
    text-align: center;
    color: var(--muted);
}

.cart-item strong {
    display: block;
}

.cart-item span {
    color: var(--muted);
    font-size: 0.92rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: var(--surface-strong);
    color: var(--text);
    cursor: pointer;
}

.remove-btn {
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cart-summary span {
    color: var(--muted);
}

.cart-summary strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
}

.reservation-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: start;
}

.reservation-form {
    padding: 26px;
    border-radius: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reservation-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.reservation-form input,
.reservation-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    outline: none;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.review-card {
    padding: 24px;
    border-radius: 26px;
}

.review-stars {
    margin-bottom: 12px;
    color: var(--accent);
    letter-spacing: 0.14em;
}

.review-card p {
    color: var(--muted);
    margin-bottom: 14px;
}

.menu-image-wrap {
    overflow: hidden;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 760px;
    margin: 0 auto;
    cursor: zoom-in;
}

.menu-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .menu-image-wrap {
        max-width: 100%;
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 2000;
}

.modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: min(1200px, 96vw);
    max-height: 92vh;
    border-radius: 18px;
    overflow: hidden;
    background: #0f0d0c;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.map-frame {
    overflow: hidden;
    border-radius: 30px;
}

.map-frame iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

.about-copy {
    padding: 20px 0;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-copy h2 {
    margin: 16px 0 12px;
    color: var(--primary);
    font-size: clamp(2rem, 3vw, 3rem);
}

.about-copy p {
    color: var(--muted);
    max-width: 62ch;
    font-size: 1.03rem;
    margin: 0 auto;
}

.founder-quote {
    margin: 20px auto 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    max-width: 640px;
    text-align: left;
}

.founder-card {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.founder-photo,
.founder-info {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    border-radius: 28px;
}

.founder-photo {
    min-height: 0;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(139, 46, 27, 0.14), rgba(244, 180, 0, 0.08)),
        var(--surface);
    text-align: center;
    overflow: hidden;
}

.founder-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    display: block;
}

.founder-info {
    padding: 28px;
}

.founder-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(139, 46, 27, 0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.founder-info h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.founder-info p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-card {
    padding: 22px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 100%;
}

.about-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.05rem;
}

.about-card span {
    color: var(--muted);
}

.footer {
    background: #120d0b;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.footer-grid h3 {
    margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-links {
    flex-direction: column;
    gap: 10px;
}

.datos-contacto p + p {
    margin-top: 10px;
}

.whatsapp-flotante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.08);
}

.whatsapp-flotante img {
    width: 34px;
    height: 34px;
}

/* Si por alguna razón el JS no carga, el contenido NO debe quedar invisible */
.reveal {
    opacity: 1;
    transform: none;
}

/* Animaciones solo cuando JS está activo */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* La primera pantalla debe verse siempre, aunque falle una animación */
.hero-content.reveal,
.stats.reveal {
    opacity: 1;
    transform: none;
}

.hidden-card {
    display: none;
}

@media (max-width: 1100px) {
    .navbar {
        grid-template-columns: auto auto auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        padding: 18px;
        border-radius: 24px;
        background: rgba(22, 19, 17, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .menu-grid,
    .reviews-grid,
    .footer-grid,
    .reservation-grid,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-copy {
        max-width: 760px;
    }

    .founder-card {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 720px;
        margin: 0 auto;
        align-items: start;
        justify-items: center;
    }

    .founder-info {
        min-width: 0;
        width: 100%;
    }

    .founder-photo {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .founder-info h3 {
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.1;
    }
}

@media (max-width: 768px) {
    .promo-bar {
        flex-direction: column;
    }

    .navbar {
        grid-template-columns: 1fr auto auto;
        padding: 14px 16px;
    }

    .brand-copy span,
    .cart-pill {
        display: none;
    }

    .hero {
        min-height: 82vh;
        padding: 70px 16px;
    }

    .hero-badges,
    .botones-hero,
    .category-filters {
        justify-content: flex-start;
    }

    .hero-content,
    .section-heading,
    .section-heading.left,
    .about-copy {
        text-align: left;
    }

    .hero-indicators {
        justify-content: flex-start;
    }

    .stats,
    .menu-grid,
    .reviews-grid,
    .about-section,
    .founder-card,
    .footer-grid,
    .reservation-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        margin-top: 0;
        padding-top: 26px;
    }

    .founder-card {
        gap: 16px;
    }

    .founder-photo,
    .founder-info {
        border-radius: 22px;
    }

    .founder-photo {
        padding: 10px;
    }

    .founder-photo img {
        aspect-ratio: 4 / 5;
        border-radius: 16px;
    }

    .founder-info {
        padding: 20px 18px;
    }

    .founder-label {
        margin-bottom: 10px;
        padding: 7px 12px;
        font-size: 0.76rem;
    }

    .founder-info h3 {
        margin-bottom: 10px;
        font-size: clamp(1.95rem, 8vw, 2.5rem);
        line-height: 1.08;
        letter-spacing: -0.02em;
    }

    .founder-info p {
        margin-bottom: 16px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-highlights {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 18px;
        border-radius: 18px;
    }

    .about-card strong {
        font-size: 1rem;
    }

    .about-card span {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .founder-quote {
        margin-top: 16px;
        padding: 16px 16px;
        font-size: 1rem;
        line-height: 1.55;
        margin-left: 0;
        margin-right: 0;
    }

    .cart-item {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .cart-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-flotante {
        width: 58px;
        height: 58px;
        right: 16px;
        bottom: 16px;
    }
}