/* ==========================================================
   DOS AVENIDAS - ESTILOS GENERALES
   Archivo organizado para mantenimiento
   IMPORTANTE: solo se reformateó; no se modificó la lógica CSS.
   ========================================================== */

:root {
    --ink:#151515;
    --muted:#6f6f6f;
    --bg:#f6f6f6;
    --brand:#ff3d00;
    --gold:#ffb300;
    --green:#168a45;
    --card:#fff
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    font-family:Inter,system-ui,Segoe UI,Arial;
    background:var(--bg);
    color:var(--ink)
}

a {
    text-decoration:none;
    color:inherit
}

.top {
    position:sticky;
    top:0;
    z-index:30;
    background:#fff;
    border-bottom:1px solid #eee;
    padding:12px 4%;
    display:flex;
    align-items:center;
    justify-content:space-between
}

.brand {
    font-size:22px;
    font-weight:900
}

.brand b {
    color:var(--brand)
}

.container {
    width:min(1180px,92%);
    margin:auto
}

.hero {
    background:linear-gradient(115deg,#111,#3b160a);
    color:#fff;
    border-radius:24px;
    padding:28px;
    margin:20px 0;
    overflow:hidden
}

.hero h1 {
    font-size:clamp(32px,6vw,64px);
    line-height:.95;
    margin:8px 0
}

.pill {
    display:inline-block;
    background:#fff1eb;
    color:#c32f00;
    padding:7px 11px;
    border-radius:999px;
    font-weight:800;
    font-size:12px
}

.carousel {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(260px,34%);
    overflow-x:auto;
    gap:14px;
    padding:4px 2px 15px;
    scroll-snap-type:x mandatory
}

.promo {
    scroll-snap-align:start;
    min-height:190px;
    border-radius:22px;
    padding:22px;
    color:#fff;
    background:linear-gradient(135deg,#ff3d00,#ff8a00);
    box-shadow:0 12px 30px #0002;
    display:flex;
    flex-direction:column;
    justify-content:flex-end
}

.promo h3 {
    font-size:24px;
    margin:5px 0
}

.cats {
    display:flex;
    gap:9px;
    overflow:auto;
    padding:8px 0 16px
}

.cat {
    white-space:nowrap;
    background:#fff;
    padding:10px 15px;
    border-radius:999px;
    border:1px solid #e7e7e7
}

.grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
    gap:15px
}

.card {
    background:#fff;
    border-radius:18px;
    padding:16px;
    box-shadow:0 5px 20px #0000000b
}

.card h3 {
    margin:5px 0
}

.price {
    font-size:21px;
    font-weight:900
}

.btn {
    border:0;
    background:var(--brand);
    color:#fff;
    border-radius:12px;
    padding:11px 15px;
    font-weight:800;
    cursor:pointer
}

.btn.secondary {
    background:#222
}

.btn.green {
    background:var(--green)
}

input,select,textarea {
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:11px;
    margin:5px 0 12px
}

.bottom {
    display:none
}

.badge {
    background:#111;
    color:#fff;
    border-radius:999px;
    padding:3px 8px;
    font-size:12px
}

.section-title {
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-top:28px
}

.section-title h2 {
    margin:0;
    font-size:28px
}

.adminnav {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:16px 0
}

.stat {
    font-size:28px;
    font-weight:900
}

.tablewrap {
    overflow:auto
}

table {
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:15px;
    overflow:hidden
}

th,td {
    padding:11px;
    border-bottom:1px solid #eee;
    text-align:left
}

.status {
    font-weight:800
}

.notice {
    padding:12px;
    border-radius:12px;
    background:#fff3cd;
    margin:12px 0
}

@media(max-width:700px) {
    .carousel {
        grid-auto-columns:84%
    }

    .container {
        width:94%
    }

    .top {
        padding:11px 3%
    }

    .bottom {
        display:grid;
        grid-template-columns:repeat(5,1fr);
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        background:#fff;
        border-top:1px solid #ddd;
        z-index:50
    }

    .bottom a {
        font-size:11px;
        text-align:center;
        padding:9px 2px
    }

    .bottom span {
        display:block;
        font-size:19px
    }

    .pagepad {
        padding-bottom:72px
    }

    .hero {
        padding:23px 18px;
        border-radius:20px
    }

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

    .card {
        padding:12px
    }

    .card h3 {
        font-size:15px
    }

}

/* ===== INICIO GASTRONÓMICO V2 ===== */

.home-v2 {
    background:#f7f7f8
}

.home-v2 .container {
    max-width:1180px
}

.top-actions {
    display:flex;
    align-items:center;
    gap:12px
}

.cart-link {
    display:flex;
    align-items:center;
    gap:3px
}

.food-search {
    margin:16px 0 12px;
    background:#fff;
    border:1px solid #e9e9eb;
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 15px;
    box-shadow:0 6px 24px #0000000a
}

.food-search input {
    border:0!important;
    margin:0!important;
    padding:15px 4px!important;
    outline:0;
    font-size:15px;
    background:transparent
}

.hero-food {
    position:relative;
    min-height:380px;
    background-image:linear-gradient(90deg,rgba(15,8,4,.94) 0%,rgba(20,8,2,.72) 46%,rgba(20,8,2,.08) 100%),url('../img/hero-pizza.jpg');
    background-size:cover;
    background-position:center;
    border-radius:28px;
    padding:42px;
    display:flex;
    align-items:center;
    box-shadow:0 18px 45px #0002
}

.hero-copy {
    max-width:540px;
    position:relative;
    z-index:2
}

.hero-kicker {
    display:inline-block;
    background:#fff;
    color:#d83a0b;
    padding:8px 12px;
    border-radius:999px;
    font-weight:900;
    font-size:12px
}

.hero-food h1 {
    font-size:clamp(42px,7vw,72px);
    letter-spacing:-2px;
    line-height:.9;
    margin:15px 0 13px
}

.hero-food h1 strong {
    color:#ffb300
}

.hero-food p {
    font-size:18px;
    max-width:460px;
    line-height:1.4
}

.hero-btn {
    display:inline-block;
    padding:13px 19px
}

.hero-chip {
    position:absolute;
    right:20px;
    bottom:20px;
    background:#fff;
    color:#171717;
    border-radius:999px;
    padding:10px 14px;
    font-weight:900;
    box-shadow:0 7px 20px #0003
}

.quick-categories {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(118px,1fr);
    gap:10px;
    overflow-x:auto;
    padding:4px 0 10px;
    scrollbar-width:none
}

.quick-cat {
    background:#fff;
    border:1px solid #eee;
    border-radius:18px;
    padding:14px 10px;
    text-align:center;
    box-shadow:0 5px 18px #0000000a
}

.quick-cat span {
    font-size:30px;
    display:block;
    margin-bottom:5px
}

.quick-cat b {
    font-size:12px
}

.eyebrow {
    font-size:10px;
    font-weight:900;
    color:var(--brand);
    letter-spacing:1.2px
}

.promo-carousel {
    grid-auto-columns:minmax(300px,38%)
}

.promo-photo {
    position:relative;
    min-height:270px;
    padding:0;
    background-image:var(--promo-img);
    background-size:cover;
    background-position:center;
    overflow:hidden
}

.promo-shade {
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,transparent 15%,rgba(0,0,0,.88) 100%)
}

.promo-content {
    position:relative;
    z-index:2;
    padding:22px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    height:100%;
    min-height:270px
}

.promo-tag {
    align-self:flex-start;
    background:#ff3d00;
    color:#fff;
    border-radius:999px;
    padding:6px 9px;
    font-size:10px;
    font-weight:900
}

.promo-content h3 {
    font-size:27px
}

.promo-content p {
    margin:0 0 8px;
    color:#eee
}

.promo-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}

.promo-bottom .price {
    font-size:27px
}

.order-now {
    background:#fff;
    color:#111;
    border-radius:999px;
    padding:9px 12px;
    font-size:12px;
    font-weight:900
}

.cat.active {
    background:#171717;
    color:#fff;
    border-color:#171717
}

.food-grid {
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px
}

.food-card {
    padding:0;
    overflow:hidden;
    border-radius:22px;
    box-shadow:0 8px 25px #00000010
}

.food-img {
    height:185px;
    background-size:cover;
    background-position:center;
    position:relative
}

.category-badge {
    position:absolute;
    left:12px;
    top:12px;
    background:#ffffffed;
    padding:6px 9px;
    border-radius:999px;
    font-size:10px;
    font-weight:900
}

.food-body {
    padding:15px
}

.food-body h3 {
    font-size:18px;
    margin:0 0 6px
}

.food-body p {
    color:var(--muted);
    font-size:13px;
    line-height:1.35;
    margin:0 0 12px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
}

.food-buy {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px
}

.food-buy form {
    margin:0
}

.add-round {
    width:40px;
    height:40px;
    border:0;
    border-radius:50%;
    background:var(--brand);
    color:#fff;
    font-size:25px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 6px 16px #ff3d0040
}

.no-results {
    background:#fff;
    border-radius:16px;
    padding:24px;
    text-align:center;
    color:var(--muted)
}

@media(max-width:700px) {
    .hello {
        font-size:14px
    }

    .brand {
        font-size:20px
    }

    .food-search {
        margin-top:12px
    }

    .hero-food {
        min-height:330px;
        margin:12px 0 15px;
        padding:26px 20px;
        background-position:60% center;
        border-radius:24px
    }

    .hero-food h1 {
        font-size:44px
    }

    .hero-food p {
        font-size:15px;
        max-width:82%
    }

    .hero-chip {
        font-size:11px;
        right:12px;
        bottom:12px
    }

    .quick-categories {
        grid-auto-columns:105px
    }

    .promo-carousel {
        grid-auto-columns:88%
    }

    .promo-photo,.promo-content {
        min-height:250px
    }

    .food-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px
    }

    .food-img {
        height:130px
    }

    .food-body {
        padding:11px
    }

    .food-body h3 {
        font-size:15px
    }

    .food-body p {
        font-size:12px
    }

    .food-buy .price {
        font-size:18px
    }

    .add-round {
        width:36px;
        height:36px
    }

    .bottom a.active {
        color:var(--brand);
        font-weight:800
    }

}

/* ==========================================================
   DOS AVENIDAS
   Navegación y flujo de compra - V3
   ========================================================== */

/* ==========================================================
   1. NAVEGACIÓN / ENLACES DE RETORNO
   ========================================================== */

.back-link {
    display: inline-block;
    margin: 16px 0;
    color: #444;
    font-weight: 800;
}

/* ==========================================================
   2. CARRITO - PRODUCTOS
   ========================================================== */

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}

.cart-item small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.remove-link {
    margin-left: 10px;
    color: var(--brand);
    font-weight: 900;
}

/* ==========================================================
   3. CARRITO - TOTAL
   ========================================================== */

.cart-total {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    font-size: 22px;
}

/* ==========================================================
   4. CARRITO - ACCIONES
   ========================================================== */

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cart-actions .btn {
    padding: 14px;
    text-align: center;
}

.btn-outline {
    background: #fff !important;
    color: var(--brand) !important;
    border: 2px solid var(--brand);
}

/* ==========================================================
   5. CARRITO - SUGERENCIAS Y ESTADO VACÍO
   ========================================================== */

.upsell-note {
    margin: 14px 0;
    padding: 14px;
    background: #fff7e6;
    border-radius: 14px;
}

.empty-cart {
    margin-top: 20px;
    padding: 30px;
    text-align: center;
}

/* ==========================================================
   6. LOGIN / REGISTRO - CONTENEDOR
   ========================================================== */

.auth-wrap {
    max-width: 520px !important;
}

/* ==========================================================
   7. LOGIN / REGISTRO - CABECERA
   ========================================================== */

.auth-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 15px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, #ff3d00, #ff8a00);
    border-radius: 22px;
}

.auth-hero > span {
    font-size: 40px;
}

.auth-hero h1 {
    margin: 0;
}

.auth-hero p {
    margin: 4px 0;
}

/* ==========================================================
   8. LOGIN / REGISTRO - FORMULARIO
   ========================================================== */

.auth-card {
    padding: 20px;
}

.auth-card label {
    font-weight: 800;
}

.auth-btn {
    width: 100%;
    padding: 14px;
}

.auth-switch {
    margin-top: 16px;
    color: var(--muted);
    text-align: center;
}

.auth-switch a {
    color: var(--brand);
}

/* ==========================================================
   9. RESPONSIVE - MÓVILES
   ========================================================== */

@media (max-width: 700px) {
    .cart-actions {
        grid-template-columns: 1fr;
    }

}
