/* ==========================================================================
   La Cocinade · estilos públicos
   ========================================================================== */

:root {
    --cream: #fffaf3;
    --paper: #fffdf9;
    --ink-soft: #8a786c;
    --line: rgba(63, 51, 44, .12);
    --shadow-sm: 0 8px 24px rgba(63, 51, 44, .07);
    --shadow-lg: 0 28px 70px rgba(63, 51, 44, .16);
    --radius-lg: 26px;
    --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 600px at 105% -10%, rgba(194, 65, 12, .06), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(217, 119, 6, .05), transparent 55%),
        var(--cream);
    color: var(--brand-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-name, .display-font {
    color: var(--brand-heading);
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: -.02em;
}

a { color: var(--brand-accent); text-decoration: none; }
a:hover { color: var(--brand-accent); }

[hidden] { display: none !important; }

::selection { background: var(--brand-accent); color: var(--brand-accent-text); }

/* Botones ------------------------------------------------------------------ */
.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.btn-brand {
    background: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent-text);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-accent) 28%, transparent);
}

.btn-brand:hover,
.btn-brand:focus {
    background: color-mix(in srgb, var(--brand-accent) 88%, #000);
    border-color: color-mix(in srgb, var(--brand-accent) 88%, #000);
    color: var(--brand-accent-text);
    transform: translateY(-1px);
}

.btn-brand:disabled,
.btn-brand.disabled {
    background: #cfc4ba;
    border-color: #cfc4ba;
    box-shadow: none;
    color: #fff;
}

.btn-outline-brand {
    border: 1px solid color-mix(in srgb, var(--brand-heading) 25%, transparent);
    color: var(--brand-heading);
    background: transparent;
}

.btn-outline-brand:hover {
    background: var(--brand-heading);
    border-color: var(--brand-heading);
    color: var(--cream);
}

.btn-soft {
    background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
    border: 1px solid transparent;
    color: var(--brand-accent);
}

.btn-soft:hover { background: color-mix(in srgb, var(--brand-accent) 18%, transparent); color: var(--brand-accent); }

.btn-whatsapp {
    background: #1f9d64;
    border: 1px solid #1f9d64;
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 157, 100, .22);
}

.btn-whatsapp:hover { background: #188654; border-color: #188654; color: #fff; }

/* Barra de navegación ------------------------------------------------------ */
.site-nav {
    background: rgba(255, 250, 243, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: .85rem 0;
}

.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-right: 1rem;
    padding: 0;
}

.brand-logo {
    max-height: 52px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 62%, #5b1b00));
    color: var(--brand-accent-text);
    display: grid;
    place-items: center;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-accent) 26%, transparent);
    flex: none;
}

.brand-mark-sm { width: 36px; height: 36px; border-radius: 12px; font-size: .95rem; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name { font-size: 1.18rem; font-weight: 600; }

.brand-slogan {
    color: var(--ink-soft);
    font-family: "Inter", sans-serif;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .13em;
    margin-top: .3rem;
    text-transform: uppercase;
}

.site-nav .nav-link {
    color: var(--brand-text);
    font-size: .9rem;
    font-weight: 600;
    padding: .5rem .9rem;
}

.site-nav .nav-link:hover { color: var(--brand-accent); }

.navbar-toggler { border: 1px solid var(--line); padding: .35rem .55rem; font-size: .95rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 20%, transparent); }

.btn-cart {
    align-items: center;
    background: var(--brand-heading);
    border: 1px solid var(--brand-heading);
    color: var(--cream);
    display: inline-flex;
    gap: .5rem;
    padding: .55rem 1rem;
}

.btn-cart:hover { background: #3a2a20; border-color: #3a2a20; color: #fff; }

.cart-count {
    align-items: center;
    background: var(--brand-accent);
    border-radius: 999px;
    color: var(--brand-accent-text);
    display: inline-flex;
    font-size: .68rem;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 .3rem;
}

/* Hero --------------------------------------------------------------------- */
.hero {
    background-color: #5b3a26;
    background-image:
        linear-gradient(var(--brand-overlay), var(--brand-overlay)),
        var(--brand-bg-image),
        radial-gradient(900px 500px at 80% 10%, rgba(251, 191, 36, .38), transparent 60%),
        radial-gradient(700px 600px at 10% 90%, rgba(194, 65, 12, .55), transparent 65%),
        linear-gradient(135deg, #7c2d12, #b45309 55%, #78350f);
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 5.5rem 0;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to top, transparent, #000 40%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-card {
    background: rgba(255, 250, 243, .95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    max-width: 660px;
    padding: clamp(1.75rem, 4vw, 3.5rem);
}

.hero-eyebrow {
    align-items: center;
    color: var(--brand-accent);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    gap: .5rem;
    letter-spacing: .16em;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    background: var(--brand-accent);
    border-radius: 999px;
    content: "";
    height: 2px;
    width: 30px;
}

.hero h1 {
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.02;
    margin-bottom: 1.1rem;
}

.hero-subtitle {
    color: color-mix(in srgb, var(--brand-text) 82%, #fff);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    margin-bottom: 1.75rem;
    max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-meta {
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin-top: 1.9rem;
    padding-top: 1.35rem;
}

.hero-meta-item {
    align-items: center;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 600;
    gap: .5rem;
}

.hero-meta-item i { color: var(--brand-accent); font-size: 1rem; }

/* Secciones ---------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }

.section-eyebrow {
    color: var(--brand-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .17em;
    margin-bottom: .7rem;
    text-transform: uppercase;
}

.section-title { font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.1; margin-bottom: .75rem; }
.section-subtitle { color: var(--ink-soft); margin: 0 auto; max-width: 42rem; }

.menu-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.menu-heading-copy { max-width: 46rem; }

.today-badge {
    align-items: center;
    background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 18%, transparent);
    border-radius: 999px;
    color: var(--brand-accent);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: .45rem;
    padding: .45rem .9rem;
    white-space: nowrap;
}

.today-badge .dot {
    background: var(--brand-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 15%, transparent);
    height: 7px;
    width: 7px;
}

/* Pestañas por día --------------------------------------------------------- */
.day-tabs {
    display: flex;
    gap: .45rem;
    margin-bottom: 1.75rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: thin;
}

.day-tab {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-text);
    flex: none;
    font-size: .84rem;
    font-weight: 700;
    padding: .6rem 1rem;
    white-space: nowrap;
}

.day-tab .count {
    color: var(--ink-soft);
    font-size: .7rem;
    font-weight: 600;
    margin-left: .25rem;
}

.day-tab:hover { border-color: color-mix(in srgb, var(--brand-accent) 40%, transparent); color: var(--brand-accent); }

.day-tab.active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-accent-text);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-accent) 24%, transparent);
}

.day-tab.active .count { color: color-mix(in srgb, var(--brand-accent-text) 75%, transparent); }

/* Tarjetas de menú --------------------------------------------------------- */
.menu-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

.menu-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
}

.menu-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.menu-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(140deg, #f7e7d3, #ead2b8);
    overflow: hidden;
    position: relative;
}

.menu-media img {
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    width: 100%;
}

.menu-card:hover .menu-media img { transform: scale(1.04); }

.menu-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, .5), transparent 45%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-accent) 18%, #fff4e5), color-mix(in srgb, var(--brand-accent) 38%, #f0c9a6));
    color: color-mix(in srgb, var(--brand-accent) 78%, #4a1d06);
    display: flex;
    flex-direction: column;
    gap: .3rem;
    height: 100%;
    justify-content: center;
}

.menu-placeholder i { font-size: 2.8rem; opacity: .8; }
.menu-placeholder span { font-family: "Fraunces", serif; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.media-badge {
    backdrop-filter: blur(8px);
    background: rgba(255, 253, 249, .9);
    border-radius: 999px;
    color: var(--brand-heading);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    padding: .38rem .7rem;
    position: absolute;
    text-transform: uppercase;
    top: .9rem;
}

.media-badge-left { left: .9rem; }
.media-badge-right { background: var(--brand-accent); color: var(--brand-accent-text); right: .9rem; }

.menu-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.3rem 1.35rem 1.35rem; }

.menu-day-label {
    color: var(--brand-accent);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.menu-card h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: .45rem; }

.menu-description {
    color: var(--ink-soft);
    display: -webkit-box;
    font-size: .86rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.menu-card-footer { margin-top: auto; }

.menu-price { align-items: baseline; display: flex; gap: .3rem; margin-bottom: .8rem; }
.menu-price strong { color: var(--brand-heading); font-family: "Fraunces", serif; font-size: 1.45rem; }
.menu-price span { color: var(--ink-soft); font-size: .74rem; font-weight: 600; }

.menu-order-row { align-items: center; display: flex; gap: .55rem; }

.stepper {
    align-items: center;
    background: #f7f1e9;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    flex: none;
    padding: .18rem;
}

.stepper button {
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--brand-heading);
    font-size: .95rem;
    height: 30px;
    line-height: 1;
    width: 30px;
}

.stepper button:hover { background: #fff; }

.stepper input {
    background: transparent;
    border: 0;
    color: var(--brand-heading);
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    width: 34px;
}

.stepper input:focus { outline: none; }

.btn-add-menu {
    flex: 1;
    font-size: .82rem;
    padding: .55rem .8rem;
    white-space: nowrap;
}

.menu-locked-note {
    align-items: center;
    background: #f7f1e9;
    border-radius: 10px;
    color: var(--ink-soft);
    display: flex;
    font-size: .75rem;
    gap: .4rem;
    margin-top: .7rem;
    padding: .45rem .65rem;
}

.menu-card.is-locked .menu-media img { filter: saturate(.65); opacity: .9; }

.menu-empty {
    background: var(--paper);
    border: 1px dashed color-mix(in srgb, var(--brand-accent) 35%, transparent);
    border-radius: var(--radius-lg);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.menu-empty i { color: var(--brand-accent); font-size: 2rem; }
.menu-empty h3 { font-size: 1.35rem; margin: .8rem 0 .4rem; }
.menu-empty p { color: var(--ink-soft); margin: 0 auto; max-width: 28rem; }

/* Cómo pedir --------------------------------------------------------------- */
.how-section {
    background: #f7efe4;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.steps-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2.5rem;
}

.step-card {
    background: rgba(255, 253, 249, .76);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    position: relative;
}

.step-number {
    align-items: center;
    background: var(--brand-accent);
    border-radius: 50%;
    color: var(--brand-accent-text);
    display: flex;
    font-family: "Fraunces", serif;
    font-size: .95rem;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 36px;
}

.step-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.step-card p { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.step-card i.step-icon {
    color: color-mix(in srgb, var(--brand-accent) 25%, transparent);
    font-size: 3rem;
    position: absolute;
    right: 1.1rem;
    top: 1rem;
}

/* CTA contacto ------------------------------------------------------------- */
.cta-band {
    background:
        radial-gradient(600px 300px at 85% 20%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-accent) 88%, #6b1d00), var(--brand-accent));
    border-radius: 30px;
    color: var(--brand-accent-text);
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.5rem);
    position: relative;
}

.cta-band h2 { color: var(--brand-accent-text); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .6rem; }
.cta-band p { color: color-mix(in srgb, var(--brand-accent-text) 82%, transparent); margin: 0; max-width: 34rem; }
.cta-band .btn-light { background: var(--paper); border: 0; color: var(--brand-heading); font-weight: 700; }
.cta-band .btn-outline-light { border-color: color-mix(in srgb, var(--brand-accent-text) 55%, transparent); }

.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; position: relative; z-index: 1; }

/* Carrito flotante --------------------------------------------------------- */
.cart-bar {
    align-items: center;
    background: var(--brand-heading);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: 0 18px 50px rgba(36, 26, 20, .35);
    color: var(--cream);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 50%;
    max-width: 720px;
    padding: .6rem .65rem .6rem .8rem;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    z-index: 1035;
}

.cart-bar-info { align-items: center; display: flex; gap: .75rem; min-width: 0; }
.cart-bar-icon {
    align-items: center;
    background: var(--brand-accent);
    border-radius: 50%;
    color: var(--brand-accent-text);
    display: flex;
    flex: none;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.cart-bar-info strong { display: block; font-size: .82rem; line-height: 1.2; }
.cart-bar-info span { color: rgba(255, 250, 243, .65); font-size: .7rem; }
.cart-bar-actions { align-items: center; display: flex; gap: .85rem; }
.cart-bar-total { font-family: "Fraunces", serif; font-size: 1.08rem; font-weight: 600; white-space: nowrap; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
    background: #221913;
    color: rgba(255, 250, 243, .72);
    margin-top: 5rem;
    padding: 4rem 0 1.5rem;
}

.footer-brand {
    align-items: center;
    color: var(--cream);
    display: inline-flex;
    font-family: "Fraunces", serif;
    font-size: 1.35rem;
    font-weight: 600;
    gap: .7rem;
    margin-bottom: 1rem;
}

.footer-slogan { color: rgba(255, 250, 243, .9); font-size: 1rem; margin-bottom: .6rem; max-width: 23rem; }
.footer-note { color: rgba(255, 250, 243, .55); font-size: .85rem; margin-bottom: 1.25rem; max-width: 24rem; }
.footer-title { color: var(--cream); font-family: "Inter", sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .15em; margin-bottom: 1.1rem; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { align-items: flex-start; display: flex; font-size: .86rem; gap: .65rem; margin-bottom: .7rem; }
.footer-list i { color: var(--brand-accent); margin-top: .15rem; }
.footer-list a { color: rgba(255, 250, 243, .72); }
.footer-list a:hover { color: var(--cream); }
.footer-delivery { color: rgba(255, 250, 243, .82); font-size: .9rem; }
.footer-delivery i { color: var(--brand-accent); margin-right: .35rem; }
.footer-small { color: rgba(255, 250, 243, .5); font-size: .8rem; }
.footer-link { color: var(--cream); font-size: .84rem; font-weight: 600; }
.footer-link:hover { color: var(--brand-accent); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 250, 243, .4);
    display: flex;
    font-size: .75rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.4rem;
}
.footer-bottom a { color: rgba(255, 250, 243, .4); }
.footer-bottom a:hover { color: var(--cream); }

/* Formularios -------------------------------------------------------------- */
.form-label { color: var(--brand-heading); font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.form-control, .form-select {
    background-color: #fffdfa;
    border: 1px solid color-mix(in srgb, var(--brand-text) 18%, transparent);
    border-radius: 12px;
    color: var(--brand-heading);
    font-size: .92rem;
    padding: .7rem .9rem;
}
.form-control::placeholder { color: #b6a79a; }
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--brand-accent) 14%, transparent);
    color: var(--brand-heading);
}
.form-text { color: var(--ink-soft); font-size: .75rem; }
.required-mark { color: var(--brand-accent); }

/* Checkout ----------------------------------------------------------------- */
.page-band {
    background: linear-gradient(180deg, #f7efe4, rgba(255, 250, 243, 0));
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0 2rem;
}

.page-band h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3rem; }
.page-band p { color: var(--ink-soft); margin: 0; }

.checkout-steps {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: .73rem;
    font-weight: 700;
    gap: .5rem;
    margin-top: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.checkout-steps .is-active { color: var(--brand-accent); }
.checkout-steps i { font-size: .65rem; opacity: .5; }

.checkout-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.checkout-card + .checkout-card { margin-top: 1.25rem; }

.checkout-card-title {
    align-items: center;
    display: flex;
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    font-weight: 600;
    gap: .6rem;
    margin-bottom: 1.2rem;
}
.checkout-card-title .num {
    align-items: center;
    background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
    border-radius: 10px;
    color: var(--brand-accent);
    display: inline-flex;
    font-family: "Inter", sans-serif;
    font-size: .8rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.summary-card { position: sticky; top: 100px; }

.summary-items { display: flex; flex-direction: column; gap: .85rem; }

.summary-item { align-items: flex-start; display: flex; gap: .8rem; justify-content: space-between; }
.summary-item-main { min-width: 0; }
.summary-item-name { color: var(--brand-heading); font-weight: 600; line-height: 1.3; }
.summary-item-meta { color: var(--ink-soft); font-size: .76rem; }
.summary-item-price { color: var(--brand-heading); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.summary-item-remove {
    background: none;
    border: 0;
    color: #b9a99b;
    font-size: .9rem;
    padding: 0 .15rem;
}
.summary-item-remove:hover { color: #b42318; }

.summary-divider { border-top: 1px dashed var(--line); margin: 1.15rem 0; }

.summary-total { align-items: baseline; display: flex; justify-content: space-between; }
.summary-total span { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.summary-total strong { color: var(--brand-heading); font-family: "Fraunces", serif; font-size: 1.65rem; }

.summary-note {
    align-items: flex-start;
    background: color-mix(in srgb, var(--brand-accent) 7%, transparent);
    border-radius: 12px;
    color: var(--ink-soft);
    display: flex;
    font-size: .76rem;
    gap: .5rem;
    line-height: 1.5;
    margin-top: 1rem;
    padding: .75rem .85rem;
}
.summary-note i { color: var(--brand-accent); margin-top: .1rem; }

.map-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

#orderMap, #trackingMap, #driverOrderMap, #orderDetailMap { height: 370px; width: 100%; }

.map-toolbar {
    align-items: center;
    background: rgba(255, 253, 249, .92);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    bottom: .85rem;
    box-shadow: 0 6px 20px rgba(63, 51, 44, .15);
    display: flex;
    gap: .4rem;
    left: .85rem;
    padding: .35rem;
    position: absolute;
    z-index: 500;
}
.map-toolbar .btn { font-size: .75rem; padding: .4rem .7rem; }

.location-status {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    font-size: .76rem;
    gap: .4rem;
    margin-top: .6rem;
}
.location-status i { color: var(--brand-accent); }
.location-status.is-ok { color: #1f7a4d; }
.location-status.is-ok i { color: #1f7a4d; }

.empty-cart {
    background: var(--paper);
    border: 1px dashed color-mix(in srgb, var(--brand-accent) 35%, transparent);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}
.empty-cart i { color: var(--brand-accent); font-size: 2.4rem; }
.empty-cart h2 { font-size: 1.5rem; margin: .8rem 0 .4rem; }
.empty-cart p { color: var(--ink-soft); margin: 0 auto 1.4rem; max-width: 26rem; }

.success-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}
.success-icon {
    align-items: center;
    background: #e7f6ee;
    border-radius: 50%;
    color: #1f7a4d;
    display: inline-flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    margin-bottom: 1.2rem;
    width: 72px;
}
.success-code {
    background: #f7f1e9;
    border-radius: 12px;
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin: .5rem 0 1rem;
    padding: .5rem 1rem;
}

.alert { border-radius: 14px; border: 0; font-size: .87rem; }
.alert-danger { background: #fdecea; color: #8a1c12; }
.alert-success { background: #e7f6ee; color: #14603c; }
.alert-warning { background: #fff4d6; color: #7a5300; }
.alert-info { background: #e8f2fb; color: #1c4d7a; }

/* Seguimiento -------------------------------------------------------------- */
.tracking-shell { max-width: 980px; }

.tracking-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.tracking-head { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-bottom: 1.4rem; }
.tracking-code { color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: .8rem; letter-spacing: .05em; margin-bottom: .2rem; }
.tracking-head h1 { font-size: 1.6rem; margin: 0; }

.status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    gap: .35rem;
    letter-spacing: .05em;
    padding: .4rem .8rem;
    text-transform: uppercase;
}
.status-pendiente { background: #fff1c9; color: #7a5300; }
.status-asignado { background: #e3edff; color: #1e4b9e; }
.status-en_camino { background: #dff4fb; color: #0d5c73; }
.status-entregado { background: #e2f6eb; color: #14603c; }
.status-cancelado { background: #fde8e6; color: #8a1c12; }

.timeline { display: flex; flex-direction: column; gap: 0; margin: 1.5rem 0; }
.timeline-step { display: flex; gap: .9rem; min-height: 54px; position: relative; }
.timeline-step::before {
    background: var(--line);
    content: "";
    left: 13px;
    position: absolute;
    top: 26px;
    bottom: 0;
    width: 2px;
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
    background: #f2ece4;
    border: 2px solid #e0d5c9;
    border-radius: 50%;
    flex: none;
    height: 28px;
    margin-top: 2px;
    position: relative;
    width: 28px;
    z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--brand-accent); border-color: var(--brand-accent); }
.timeline-step.current .timeline-dot { background: #fff; border-color: var(--brand-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-accent) 15%, transparent); }
.timeline-step.done .timeline-dot::after,
.timeline-step.current .timeline-dot::after {
    background: var(--brand-accent);
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 8px;
    position: absolute;
    top: 8px;
    width: 8px;
}
.timeline-step.done .timeline-dot::after { background: #fff; }
.timeline-content strong { color: var(--brand-heading); display: block; font-size: .9rem; }
.timeline-content span { color: var(--ink-soft); font-size: .76rem; }

.driver-live {
    align-items: center;
    background: #f7f1e9;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: .85rem 1rem;
}
.driver-live-info { align-items: center; display: flex; gap: .7rem; }
.driver-avatar {
    align-items: center;
    background: var(--brand-accent);
    border-radius: 50%;
    color: var(--brand-accent-text);
    display: inline-flex;
    font-family: "Fraunces", serif;
    font-size: 1rem;
    height: 38px;
    justify-content: center;
    width: 38px;
}
.driver-live strong { color: var(--brand-heading); display: block; font-size: .88rem; line-height: 1.2; }
.driver-live small { color: var(--ink-soft); font-size: .72rem; }
.live-dot { background: #1f9d64; border-radius: 50%; box-shadow: 0 0 0 4px rgba(31, 157, 100, .16); display: inline-block; height: 7px; width: 7px; margin-right: .35rem; }

.order-summary-list { display: flex; flex-direction: column; gap: .55rem; }
.order-summary-list .row-line { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; font-size: .86rem; }
.order-summary-list .row-line span { color: var(--ink-soft); }

/* Marcadores del mapa ------------------------------------------------------ */
.map-pin-icon { background: transparent; border: 0; }

.map-pin {
    align-items: center;
    background: var(--brand-accent);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 6px 16px rgba(36, 26, 20, .35);
    color: #fff;
    display: flex;
    height: 34px;
    justify-content: center;
    transform: rotate(-45deg);
    width: 34px;
}
.map-pin i { font-size: 1rem; transform: rotate(45deg); }
.map-pin.pin-driver { background: #0d6efd; }
.map-pin.pin-customer { background: var(--brand-accent); }

/* Toasts ------------------------------------------------------------------- */
.toast { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }
.toast-body { font-size: .86rem; font-weight: 500; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding-top: 1rem; }
    .site-nav .navbar-nav { padding-bottom: .5rem; }
    .btn-cart { margin-top: .35rem; }
    .summary-card { position: static; }
    .hero { min-height: auto; padding: 4rem 0; }
}

@media (max-width: 767.98px) {
    .hero-card { border-radius: 22px; }
    .menu-heading { align-items: flex-start; flex-direction: column; gap: .75rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .cta-actions { justify-content: flex-start; margin-top: 1.4rem; }
    .cart-bar { border-radius: 18px; bottom: .75rem; }
    .cart-bar-total { display: none; }
    .footer-bottom { flex-direction: column; gap: .5rem; }
    #orderMap, #trackingMap, #driverOrderMap, #orderDetailMap { height: 300px; }
}

@media (max-width: 575.98px) {
    .brand-slogan { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .menu-grid { grid-template-columns: 1fr; }
    .cart-bar-info span { display: none; }
    .checkout-card { border-radius: 18px; padding: 1.15rem; }
    .map-toolbar { left: .5rem; right: .5rem; bottom: .5rem; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
