/* Taquería Tumbapatos - estilos del sitio público */

:root {
    --color-primary: #C1440E;
    --color-primary-dark: #9A350A;
    --color-secondary: #2F5233;
    --color-accent: #F2A93B;
    --color-cream: #FFF8EC;
    --color-text: #2B1D14;
    --color-muted: #6B5B4F;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(43, 29, 20, 0.12);
    --shadow-sm: 0 2px 8px rgba(43, 29, 20, 0.08);
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Verdana, Arial, sans-serif;
    background: var(--color-cream);
    color: var(--color-text);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0 0 .5em;
    color: var(--color-primary-dark);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

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

button, .btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform .15s ease, background .15s ease;
    text-align: center;
}
.btn:hover, button:hover { background: var(--color-primary-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-secondary); }
.btn-secondary:hover { background: #213c25; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-danger { background: #B3261E; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.nav-link {
    color: var(--color-text);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .2px;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { text-decoration: none; background: var(--color-cream); color: var(--color-primary-dark); }
.nav-link.activo { color: #fff; background: var(--color-primary); }
.nav-link.activo:hover { background: var(--color-primary-dark); color: #fff; }
.nav-cart {
    font-weight: 700;
    background: var(--color-cream);
    color: var(--color-primary-dark);
    padding: 8px 16px;
    border-radius: 999px;
    margin-left: 8px;
    border: 1px solid rgba(193, 68, 14, .15);
    transition: background .15s ease, transform .15s ease;
}
.nav-cart:hover { background: var(--color-accent); text-decoration: none; transform: translateY(-1px); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    padding: 4px 8px;
    border-radius: 8px;
    transition: background .15s ease;
}
.nav-toggle:hover { background: var(--color-cream); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        box-shadow: var(--shadow);
        border-top: 1px solid rgba(43, 29, 20, .08);
    }
    .main-nav.abierto { display: flex; animation: nav-caida .18s ease; }
    .nav-link, .nav-cart { width: 100%; text-align: left; border-radius: 10px; }
}

@keyframes nav-caida {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 70px 0;
    overflow: hidden;
}
.hero-banner {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 380px; }
.hero-text h1 { color: #fff; font-size: 2.6rem; margin-bottom: .3em; }
.hero-text p { font-size: 1.15rem; opacity: .95; margin-bottom: 1.4em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: #fff; border-color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--color-primary-dark); }
.hero-img { flex: 1 1 320px; font-size: 9rem; text-align: center; line-height: 1; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--color-muted); font-size: 1.05rem; }

.bg-alt { background: #fff; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.platillo-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.platillo-img {
    height: 140px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.platillo-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.platillo-body h3 { font-size: 1.1rem; margin: 0; }
.platillo-body p { color: var(--color-muted); font-size: .92rem; margin: 0; flex: 1; }
.platillo-precio { font-weight: 800; color: var(--color-primary-dark); font-size: 1.2rem; }
.platillo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.categoria-titulo {
    font-size: 1.6rem;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 6px;
    margin: 40px 0 24px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd0c2;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: 2px solid var(--color-accent); }
.form-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
}
.form-row { display: flex; gap: 14px; }
.form-row > * { flex: 1; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: #e3f3e3; color: #245c28; }
.alert-error { background: #fbe4e1; color: #8a2417; }
.alert-info { background: #fff3da; color: #7a5410; }

/* ---------- Badges / estado ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge-recibido { background: #fde9d0; color: #8a5a10; }
.badge-preparando { background: #fdf0c4; color: #8a7110; }
.badge-en_camino { background: #d8e8fb; color: #1d4f8a; }
.badge-entregado { background: #d9f0db; color: #1f6b29; }
.badge-cancelado { background: #f6d4d0; color: #8a2417; }
.badge-pendiente { background: #f0e2d0; color: #7a5410; }
.badge-pagado { background: #d9f0db; color: #1f6b29; }
.badge-rechazado { background: #f6d4d0; color: #8a2417; }

/* ---------- Carrito ---------- */
.carrito-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee0d2; }
.carrito-item-info h4 { margin: 0 0 4px; font-size: 1rem; }
.carrito-item-info span { color: var(--color-muted); font-size: .9rem; }
.cantidad-control { display: flex; align-items: center; gap: 10px; }
.cantidad-control button { background: var(--color-cream); color: var(--color-text); width: 30px; height: 30px; border-radius: 50%; padding: 0; line-height: 30px; font-size: 1.1rem; }
.carrito-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; padding: 20px 0; border-top: 2px solid var(--color-primary); }

/* ---------- Mapa ---------- */
.mapa { height: 320px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.mapa-grande { height: 420px; }
.mapa-iframe { display: block; width: 100%; border: 0; }

/* ---------- Timeline pedido ---------- */
.timeline { display: flex; justify-content: space-between; margin: 30px 0; flex-wrap: wrap; gap: 10px; }
.timeline-step { flex: 1; text-align: center; position: relative; min-width: 90px; }
.timeline-dot { width: 26px; height: 26px; border-radius: 50%; background: #ddd0c2; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; }
.timeline-step.activo .timeline-dot { background: var(--color-primary); }
.timeline-step.completo .timeline-dot { background: var(--color-secondary); }
.timeline-step span { font-size: .85rem; font-weight: 600; color: var(--color-muted); }
.timeline-step.activo span, .timeline-step.completo span { color: var(--color-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-secondary); color: #f0ead9; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 50px 20px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col p { margin: 6px 0; font-size: .92rem; }
.footer-col a { color: #f0ead9; }
.footer-bottom { text-align: center; padding: 16px; background: #213c25; font-size: .85rem; }

/* ---------- Tabla ---------- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table th, table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0e6d8; }
table th { background: var(--color-cream); font-weight: 700; }

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
