/* ===== Los Sabores de Leyla — single stylesheet ===== */

@font-face {
    font-family: "Fraunces";
    src: url("/fonts/fraunces.woff2") format("woff2");
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("/fonts/nunito.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --cream: #fff6e8;
    --cream-2: #fdebd0;
    --paper: #ffffff;
    --cocoa: #3b2418;
    --cocoa-soft: #6b4a3a;
    --chili: #a8321c;
    --chili-dark: #86240f;
    --saffron: #f6b73c;
    --berry: #b0245a;
    --berry-soft: #fbe3ec;
    --avocado: #5c7a2e;
    --line: #ead9c0;
    --danger: #b3261e;
    --ok-bg: #e6f3d9;
    --warn-bg: #fff0c2;
    --info-bg: #e8eef9;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(59, 36, 24, .35);
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--cocoa);
    background: var(--cream);
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chili); text-underline-offset: .18em; }
a:hover { color: var(--chili-dark); }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--cocoa-soft); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: .75rem; top: -4rem; background: var(--cocoa); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; transition: top .15s; }
.skip-link:focus { top: .75rem; color: #fff; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .65rem 1.3rem;
    font: 700 1rem/1.2 var(--font-body);
    border: 2px solid transparent; border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: transform .15s, background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--chili); color: #fff; box-shadow: 0 6px 16px -8px var(--chili); }
.btn-primary:hover { background: var(--chili-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--chili); border-color: var(--chili); }
.btn-outline:hover { background: var(--chili); color: #fff; }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: transparent; }
.btn-ghost:hover { background: var(--cream-2); color: var(--cocoa); }
.btn-light { background: #fff; color: var(--chili-dark); }
.btn-light:hover { background: var(--cream-2); color: var(--chili-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--chili-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8c1d17; color: #fff; }
.btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 246, 232, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--chili); }
.brand-logo { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--paper); box-shadow: 0 2px 8px -2px rgba(59, 36, 24, .35); }
.lang-switch { order: 2; display: inline-flex; align-items: center; border: 2px solid var(--cocoa); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch a { display: inline-block; min-width: 44px; padding: .45rem .7rem; text-align: center; font-weight: 800; font-size: .85rem; letter-spacing: .04em; color: var(--cocoa); text-decoration: none; }
.lang-switch a:hover { background: var(--saffron); }
.lang-switch a[aria-current="true"] { background: var(--cocoa); color: var(--cream); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--cocoa); letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--cocoa); font-weight: 700; text-decoration: none; padding: .4rem 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { border-bottom-color: var(--saffron); color: var(--cocoa); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--cocoa); background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 10px; width: 20px; height: 2px; background: var(--cocoa); content: ""; transition: transform .2s, top .2s; }
.nav-toggle-bars { top: 19px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); background:
    radial-gradient(900px 400px at 85% 0%, rgba(246, 183, 60, .35), transparent 65%),
    radial-gradient(700px 400px at 0% 100%, rgba(176, 36, 90, .12), transparent 65%),
    var(--cream); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); margin-bottom: .75rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--cocoa-soft); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.5rem 0; }
.center-actions { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; list-style: none; font-weight: 700; color: var(--avocado); }
.hero-points li::before { content: "✓"; margin-right: .4rem; }

.hero-collage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; }
.collage-item { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: #fff; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-1 { inset: 0 22% 28% 0; transform: rotate(-3deg); z-index: 2; }
.collage-2 { inset: 22% 0 0 38%; transform: rotate(3deg); z-index: 3; }
.collage-3 { inset: 58% 56% 0 4%; transform: rotate(-2deg); z-index: 1; }
.hero-collage:has(.collage-1:only-child) .collage-1 { inset: 4%; transform: rotate(-2deg); }

/* ===== Sections ===== */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }

.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem); background: linear-gradient(135deg, var(--cream-2), var(--cream)); border-bottom: 1px solid var(--line); }
.page-hero-postres { background: linear-gradient(135deg, var(--berry-soft), var(--cream)); }
.page-hero-salados { background: linear-gradient(135deg, #fde3c4, var(--cream)); }
.page-intro { max-width: 52em; }
.breadcrumb { font-size: .95rem; color: var(--cocoa-soft); margin-bottom: 1rem; }
.breadcrumb a { color: inherit; }

.showcase { margin-bottom: 3.5rem; }
.showcase:last-child { margin-bottom: 0; }
.showcase-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 3px solid var(--saffron); }
.showcase-postres .showcase-head { border-bottom-color: var(--berry); }
.showcase-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.showcase-tagline { margin: .25rem 0 0; color: var(--cocoa-soft); }

.coming-soon { background: #fff; border: 2px dashed var(--saffron); border-radius: var(--radius); padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.coming-soon p { margin: 0; }
.coming-soon-lg { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
.coming-soon-lg p { max-width: 36em; }

/* ===== Gallery ===== */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.5rem; }
.dish-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px -6px rgba(59, 36, 24, .25); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-2); cursor: zoom-in; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dish-card:hover .dish-photo img { transform: scale(1.04); }
.badge { position: absolute; top: .75rem; left: .75rem; background: var(--saffron); color: var(--cocoa); font-weight: 800; font-size: .8rem; padding: .25rem .75rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.dish-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.dish-name { font-size: 1.2rem; margin-bottom: .35rem; }
.dish-desc { color: var(--cocoa-soft); font-size: .98rem; margin-bottom: .75rem; }
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.dish-serving { font-size: .88rem; font-weight: 700; color: var(--avocado); }
.dish-cta { font-weight: 800; color: var(--chili); text-decoration: none; margin-left: auto; }
.dish-cta::after { content: " →"; }
.dish-cta:hover { text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Lightbox ===== */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(30, 16, 10, .92); }
.lightbox-figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem; gap: .75rem; }
.lightbox-img { max-width: min(96vw, 1100px); max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-caption { font-family: var(--font-display); font-size: 1.15rem; text-align: center; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .32); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ===== About / steps / testimonials ===== */
.about { display: grid; place-items: center; }
.about-card { background: #fff; border-radius: calc(var(--radius) * 1.5); padding: clamp(1.5rem, 4vw, 3rem); max-width: 820px; box-shadow: var(--shadow); text-align: center; border-top: 6px solid var(--saffron); }
.about-text { font-size: 1.15rem; margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 4px 14px -6px rgba(59, 36, 24, .25); }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--chili); color: #fff; font: 800 1.3rem var(--font-display); margin-bottom: 1rem; }
.step:nth-child(2) .step-num { background: var(--berry); }
.step:nth-child(3) .step-num { background: var(--avocado); }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--cocoa-soft); }

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 4px 14px -6px rgba(59, 36, 24, .25); }
.stars { color: #c47d00; letter-spacing: .15em; font-size: 1.2rem; }
.testimonial blockquote { margin: .5rem 0 1rem; font-size: 1.05rem; }
.testimonial figcaption { color: var(--cocoa-soft); font-size: .95rem; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--chili), var(--berry)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .4rem; }
.cta-inner p { margin: 0; max-width: 38em; color: #fff; opacity: .95; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: var(--cocoa); color: #f3e4d2; padding-top: 3rem; }
.site-footer a { color: #ffd98a; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { font: 800 1.4rem var(--font-display); color: #fff; margin-bottom: .5rem; }
.footer-text { margin: 0 0 .5rem; }
.footer-title { font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0 5rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; }

.whatsapp-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; background: #1a7f43; color: #fff; text-decoration: none; font-weight: 800; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .45); }
.whatsapp-fab:hover { background: #14663a; color: #fff; }
.whatsapp-fab svg { width: 24px; height: 24px; }

/* ===== Forms ===== */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-card.wide { max-width: 980px; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field.grow { flex: 1; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 1rem; }
label { font-weight: 700; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
    width: 100%; min-height: 44px; padding: .6rem .8rem;
    font: inherit; color: var(--cocoa); background: #fff;
    border: 2px solid var(--line); border-radius: var(--radius-sm);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--chili); outline: 3px solid rgba(168, 50, 28, .2); outline-offset: 0; }
input[type="file"] { font: inherit; padding: .4rem 0; }
.help { margin: 0; font-size: .88rem; color: var(--cocoa-soft); }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin-bottom: .5rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--chili); }
.check-row { display: grid; gap: .25rem; margin-top: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.validation-message, .field .validation-message { color: var(--danger); font-size: .9rem; font-weight: 700; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--danger); }
.validation-errors { color: var(--danger); font-weight: 700; padding-left: 1.2rem; }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 70%, transparent); padding: 1rem 0 .25rem; }
.group { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem .25rem; margin: 0 0 1.5rem; min-width: 0; }
.group legend, .lang-fields legend { font: 800 1.05rem var(--font-display); padding: 0 .5rem; color: var(--chili); }
.lang-fields { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: .75rem 1.25rem .25rem; margin: 1rem 0; min-width: 0; }
.tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--cream-2); border-radius: 999px; margin-bottom: 1rem; }
.tab { border: 0; background: transparent; font: 800 .95rem var(--font-body, inherit); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; color: inherit; }
.tab[aria-selected="true"] { background: var(--chili); color: #fff; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.contact-aside { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 2px dashed var(--saffron); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.thanks { grid-column: 1 / -1; text-align: center; background: #fff; border-radius: var(--radius); padding: 3rem 1.5rem; box-shadow: var(--shadow); }
.login-wrap { min-height: 60vh; display: grid; align-items: center; }
.login-card { max-width: 420px; margin-inline: auto; }

/* ===== Alerts / tags ===== */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border-left: 5px solid; font-weight: 600; }
.alert.inline { display: inline-block; margin: 0; padding: .4rem .8rem; }
.alert-ok { background: var(--ok-bg); border-color: var(--avocado); }
.alert-warn { background: var(--warn-bg); border-color: var(--saffron); }
.alert-info { background: var(--info-bg); border-color: #3b64b5; }
.alert-error { background: #fde7e5; border-color: var(--danger); color: #7a140f; }
.tag { display: inline-block; background: var(--cream-2); border-radius: 999px; padding: .1rem .65rem; font-size: .82rem; font-weight: 800; margin-left: .35rem; }

/* ===== Admin ===== */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #f8f1e6; }
.admin-sidebar { background: var(--cocoa); color: #f3e4d2; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { text-decoration: none; display: grid; gap: .15rem; }
.admin-brand .brand-name { color: #fff; font-size: 1.15rem; }
.admin-brand-sub { font-size: .85rem; color: #d4bda4; }
.admin-nav { display: grid; gap: .25rem; }
.admin-nav a { color: #f3e4d2; text-decoration: none; padding: .6rem .85rem; border-radius: var(--radius-sm); font-weight: 700; }
.admin-nav a:hover { background: rgba(255, 255, 255, .1); }
.admin-nav a.is-active { background: var(--saffron); color: var(--cocoa); }
.admin-sidebar-footer { margin-top: auto; display: grid; gap: .5rem; }
.admin-sidebar-footer .btn-ghost { color: #f3e4d2; border-color: rgba(255, 255, 255, .3); width: 100%; }
.admin-sidebar-footer .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-user { margin: 0; font-size: .9rem; color: #d4bda4; word-break: break-all; }
.admin-main { padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.admin-main h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.admin-head h1 { margin: 0; }
.panel { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1rem 0 1.5rem; box-shadow: 0 2px 8px -4px rgba(59, 36, 24, .3); }
.panel-title { font-size: 1.2rem; margin-bottom: .5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: end; margin: 1rem 0; }
.toolbar .field { margin-bottom: .5rem; }
.toolbar select { width: auto; min-width: 140px; }
.toolbar .grow { min-width: 200px; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 8px -4px rgba(59, 36, 24, .3); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cocoa-soft); background: #fbf5ea; }
.table tbody tr:last-child td { border-bottom: 0; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--cream-2); }
.switch { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 700; }
.switch input { width: 20px; height: 20px; accent-color: var(--avocado); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 2px 8px -4px rgba(59, 36, 24, .3); display: grid; }
.stat-num { font: 800 2.6rem/1 var(--font-display); color: var(--chili); }
.stat-label { color: var(--cocoa-soft); font-weight: 700; }

.edit-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 2rem; align-items: start; }
.preview { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--cream-2); margin-bottom: 1rem; }
.preview-empty { display: grid; place-items: center; color: var(--cocoa-soft); border: 2px dashed var(--line); }

.inquiry-list { display: grid; gap: 1rem; }
.inquiry { background: #fff; border-radius: var(--radius); padding: 1.25rem; border-left: 6px solid var(--line); box-shadow: 0 2px 8px -4px rgba(59, 36, 24, .3); }
.inquiry-new { border-left-color: var(--chili); }
.inquiry-contacted { border-left-color: var(--saffron); }
.inquiry-closed { border-left-color: var(--avocado); }
.inquiry-head { display: flex; justify-content: space-between; gap: 1rem; }
.inquiry-name { font-size: 1.2rem; margin: 0; }
.inquiry-head p { margin: 0; }
.inquiry-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .75rem 0; }
.inquiry-meta div { display: flex; gap: .4rem; }
.inquiry-meta dt { font-weight: 800; }
.inquiry-meta dt::after { content: ":"; }
.inquiry-meta dd { margin: 0; }
.inquiry-message { white-space: pre-wrap; background: #fbf5ea; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ===== Blazor system UI ===== */
.blazor-error-boundary { background: var(--danger); color: #fff; padding: 1rem; }
.blazor-error-boundary::after { content: "Ocurrió un error."; }

#components-reconnect-modal { border: 0; border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow); max-width: 24rem; text-align: center; color: var(--cocoa); }
#components-reconnect-modal::backdrop { background: rgba(30, 16, 10, .55); }
#components-reconnect-modal .components-reconnect-container > p,
#components-reconnect-modal .components-reconnect-container > button { display: none; }
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible { display: block; }
.components-rejoining-animation { display: none; position: relative; width: 56px; height: 56px; margin: 0 auto 1rem; }
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation { display: block; }
.components-rejoining-animation div { position: absolute; border: 4px solid var(--chili); border-radius: 50%; opacity: 1; animation: ripple 1.5s cubic-bezier(0, .2, .8, 1) infinite; }
.components-rejoining-animation div:nth-child(2) { animation-delay: -.5s; }
@keyframes ripple { 0% { top: 28px; left: 28px; width: 0; height: 0; opacity: 0; } 4.9% { top: 28px; left: 28px; width: 0; height: 0; opacity: 0; } 5% { top: 28px; left: 28px; width: 0; height: 0; opacity: 1; } 100% { top: 0; left: 0; width: 56px; height: 56px; opacity: 0; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-collage { max-width: 420px; }
    .nav-toggle { display: inline-block; order: 3; }
    .lang-switch { margin-left: auto; }
    .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px -12px rgba(59, 36, 24, .35); display: none; }
    .nav-open .site-nav { display: flex; }
    .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: .75rem; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .edit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .whatsapp-fab span { display: none; }
    .whatsapp-fab { padding: .85rem; }
    .brand-name { font-size: 1.1rem; }
    .dish-grid { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
