@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Estos 4 son los que el panel de administrador puede cambiar (logo,
     fondo y colores). El resto se calcula automáticamente a partir de
     ellos con color-mix(), para que todo el sitio se vea coherente sin
     tener que definir manualmente cada tono claro/oscuro. */
  --rojo: #C1440E;
  --verde: #4C7A3D;
  --mostaza: #E8A93B;
  --crema: #FFF6E8;

  --rojo-osc: color-mix(in srgb, var(--rojo) 80%, black);
  --terracota: var(--rojo);
  --verde-osc: color-mix(in srgb, var(--verde) 78%, black);
  --verde-claro: color-mix(in srgb, var(--verde) 55%, white);
  --mostaza-osc: color-mix(in srgb, var(--mostaza) 84%, black);
  --rosa: #E91E8C;
  --rosa-osc: #B31670;
  --crema-osc: color-mix(in srgb, var(--crema) 70%, var(--mostaza));
  --cafe: #6B3F2A;
  --texto: #3A2A1E;
  --texto-suave: #7A6A5A;
  --blanco: #FFFFFF;
  --borde: #ECDFC7;
  --sombra: 0 8px 24px rgba(107, 63, 42, 0.12);
  --sombra-suave: 0 4px 12px rgba(107, 63, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1160px;

  /* Tipografía y sombras del sitio público (rediseño): un serif cálido para
     titulares que le da un aire más editorial/profesional, manteniendo
     Nunito para texto de lectura y controles. No se usan en el panel de
     administrador ni en el de repartidor, así que no afectan su apariencia. */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sombra-lg: 0 24px 60px -12px rgba(107, 63, 42, 0.28);
  --sombra-xl: 0 36px 80px -16px rgba(107, 63, 42, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.55;
}
h1, h2, h3, h4, .display {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.4em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 12px 22px; font-weight: 700;
  font-size: 0.98rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--rojo); color: #fff; box-shadow: var(--sombra-suave); }
.btn-primary:hover { background: var(--rojo-osc); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-osc); }
.btn-outline { background: transparent; border: 2px solid var(--rojo); color: var(--rojo); }
.btn-outline:hover { background: var(--rojo); color: #fff; }
.btn-ghost { background: var(--crema-osc); color: var(--texto); }
.btn-ghost:hover { background: var(--borde); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn-danger { background: #D62828; color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,246,232,0.92);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--borde);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fredoka'; font-size: 1.3rem; color: var(--rojo-osc); }
.brand .logo-mark { width: 46px; height: 46px; flex: none; }
.brand small { display: block; font-family: 'Nunito'; font-weight: 700; font-size: 0.65rem; color: var(--texto-suave); letter-spacing: 0.06em; text-transform: uppercase; }
nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--texto); font-size: 0.95rem; }
nav.main-nav a:hover, nav.main-nav a.active { background: var(--mostaza); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--rosa); color: #fff;
  font-size: 0.7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; }
/* Rediseño del sitio público: escudo con #public-shell para no tocar el
   encabezado que reutiliza el panel de repartidor (misma clase .site-header). */
#public-shell .brand { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
#public-shell nav.main-nav a { text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.03em; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(560px 320px at 88% -8%, color-mix(in srgb, var(--mostaza) 22%, transparent), transparent),
    radial-gradient(480px 300px at 4% 108%, color-mix(in srgb, var(--verde) 16%, transparent), transparent);
}
.hero .container { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--rojo-osc);
  font-weight: 800; font-size: 0.76rem; padding: 7px 16px 7px 12px; border-radius: 999px; margin-bottom: 18px;
  letter-spacing: 0.04em; text-transform: uppercase; box-shadow: var(--sombra-suave); border: 1px solid var(--borde);
}
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); flex: none; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1.06; color: var(--rojo-osc); letter-spacing: -0.01em; }
.hero p.lead { font-size: 1.1rem; color: var(--texto-suave); max-width: 46ch; margin-top: 14px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 26px; font-size: 1rem; }
.hero-actions .btn-primary { box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--rojo) 60%, transparent); }

.hero-stats { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--borde);
  border-radius: 999px; padding: 9px 18px 9px 9px; box-shadow: var(--sombra-suave);
}
.hero-stats div strong {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--crema-osc); font-family: var(--serif); font-size: 1rem; color: var(--rojo); flex: none;
}
.hero-stats div span { font-size: 0.82rem; color: var(--texto-suave); font-weight: 700; }

.hero-art { position: relative; }
.hero-art::before {
  content: ''; position: absolute; inset: -8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--mostaza) 45%, transparent) 0%, transparent 70%);
  filter: blur(6px);
}
.hero-art > svg, .hero-art > img {
  position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sombra-xl);
  transform: rotate(1.2deg); border: 6px solid #fff;
}

.papel-picado { width: 100%; height: 70px; display: block; margin-top: -6px; position: relative; z-index: 1; filter: drop-shadow(0 8px 10px rgba(58,42,30,0.14)); }
.papel-picado--footer { height: 56px; margin: 0 0 -1px; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 46px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; color: var(--rojo-osc); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--texto-suave); }
.tag-pill { display: inline-block; background: var(--verde-claro); color: #234319; font-weight: 800; font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }

/* ---------- Por qué elegirnos (franja de valor) ---------- */
.value-strip { padding: 8px 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 2; }
.value-card {
  background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--sombra-lg);
  border: 1px solid var(--borde); text-align: left;
}
.value-card .ic {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.value-card h4 { font-size: 1rem; color: var(--texto); margin-bottom: 4px; }
.value-card p { font-size: 0.85rem; color: var(--texto-suave); margin: 0; }
.value-card:nth-child(1) .ic { background: color-mix(in srgb, var(--rojo) 16%, white); }
.value-card:nth-child(2) .ic { background: color-mix(in srgb, var(--verde) 18%, white); }
.value-card:nth-child(3) .ic { background: color-mix(in srgb, var(--mostaza) 22%, white); }
.value-card:nth-child(4) .ic { background: color-mix(in srgb, var(--rosa) 16%, white); }

/* ---------- Categorías (home) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 22px 12px 18px; text-align: center;
  box-shadow: var(--sombra-suave); border: 1px solid var(--borde);
  transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-lg); }
.cat-card .ic {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; padding: 5px;
  background: conic-gradient(from 200deg, var(--mostaza), var(--rojo), var(--rosa), var(--verde), var(--mostaza));
}
.cat-card .ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; }
.cat-card h4 { font-family: var(--serif); font-weight: 600; font-size: 1rem; margin: 0; color: var(--texto); }

/* ---------- Menú ---------- */
.menu-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #fff; border: 2px solid var(--borde); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; color: var(--texto-suave);
}
.chip.active { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.search-box { display: flex; align-items: center; background: #fff; border: 2px solid var(--borde); border-radius: 999px; padding: 6px 6px 6px 16px; min-width: 220px; }
.search-box input { border: none; outline: none; flex: 1; background: transparent; }
/* Escudado con #public-shell: .chip también la usa el panel de administrador
   (filtro de pedidos) y no debe cambiar de apariencia ahí. */
#public-shell .chip { padding: 9px 18px; font-weight: 800; transition: transform .15s ease; }
#public-shell .chip:hover { transform: translateY(-1px); }
#public-shell .chip.active { box-shadow: 0 10px 20px -6px color-mix(in srgb, var(--rojo) 55%, transparent); }
#public-shell .search-box { box-shadow: var(--sombra-suave); }

.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dish-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra-suave);
  border: 1px solid var(--borde); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dish-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); }
.dish-card .thumb { aspect-ratio: 1/1; background: var(--crema-osc); position: relative; }
.dish-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish-card .spicy-badge { position: absolute; top: 10px; right: 10px; background: var(--rosa); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.dish-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--texto); }
.dish-body .desc { font-size: 0.88rem; color: var(--texto-suave); flex: 1; }
.dish-body .porcion { font-size: 0.76rem; color: var(--texto-suave); font-style: italic; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-family: var(--serif); font-weight: 600; color: var(--rojo); font-size: 1.2rem; }
.qty-stepper { display: flex; align-items: center; gap: 8px; background: var(--crema-osc); border-radius: 999px; padding: 4px 6px; }
.qty-stepper button { width: 26px; height: 26px; border-radius: 50%; border: none; background: #fff; font-weight: 800; color: var(--rojo); }
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 800; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--texto-suave); }

/* ---------- Nosotros (about, en dos columnas) ---------- */
.about-split { display: grid; grid-template-columns: 1fr 0.9fr; gap: 52px; align-items: center; text-align: left; }
.about-split .tag-pill { margin-bottom: 14px; }
.about-split h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--rojo-osc); }
.about-split p { color: var(--texto-suave); font-size: 1.02rem; }
.about-stats { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.about-stats div strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--rojo); }
.about-stats div span { font-size: 0.8rem; color: var(--texto-suave); font-weight: 700; }
.about-collage { position: relative; width: 100%; aspect-ratio: 1/1; max-width: 380px; margin: 0 auto; }
.about-collage .blob {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--verde) 22%, var(--crema)) 0%, color-mix(in srgb, var(--mostaza) 20%, transparent) 100%);
}
.about-collage .ic {
  position: absolute; border-radius: 50%; background: #fff; box-shadow: var(--sombra-lg); border: 5px solid #fff; overflow: hidden;
}
.about-collage .ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-collage .ic.a { width: 52%; top: 4%; left: 24%; z-index: 2; }
.about-collage .ic.b { width: 34%; bottom: 6%; left: 0; z-index: 1; transform: rotate(-6deg); }
.about-collage .ic.c { width: 30%; bottom: 0; right: 2%; z-index: 3; transform: rotate(8deg); }

/* ---------- Contacto (tarjeta con datos + WhatsApp) ---------- */
.contact-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--borde); box-shadow: var(--sombra-lg);
  padding: 36px 40px; max-width: 640px; margin: 0 auto; text-align: left;
}
.contact-rows { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 28px; }
.contact-rows .row { display: flex; align-items: center; gap: 14px; }
.contact-rows .row .ic {
  width: 42px; height: 42px; border-radius: 12px; background: var(--crema-osc); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-rows .row span { color: var(--texto); font-weight: 600; font-size: 0.96rem; }

/* ---------- Carrito (drawer) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(58,42,30,0.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 70;
  box-shadow: -12px 0 30px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { padding: 18px 20px; border-bottom: 1px solid var(--borde); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { font-family: var(--serif); font-weight: 600; }
.cart-item .info h5 { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 20px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--borde); align-items: center; }
.cart-item .ic { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: var(--crema-osc); }
.cart-item .info { flex: 1; }
.cart-item .info h5 { margin: 0; font-size: 0.92rem; }
.cart-item .info .unit { font-size: 0.78rem; color: var(--texto-suave); }
.cart-summary { border-top: 1px solid var(--borde); padding: 16px 20px 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 6px; color: var(--texto-suave); }
.summary-row.total { color: var(--texto); font-weight: 800; font-size: 1.1rem; margin-top: 8px; }
.remove-btn { background: none; border: none; color: #B31670; font-size: 0.78rem; font-weight: 700; padding: 0; }

/* ---------- Checkout ---------- */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -10px auto 30px; max-width: 420px; }
.checkout-steps .step { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 800; color: var(--texto-suave); }
.checkout-steps .step b {
  width: 26px; height: 26px; border-radius: 50%; background: var(--crema-osc); color: var(--texto-suave);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); flex: none;
}
.checkout-steps .step.done b, .checkout-steps .step.current b { background: var(--rojo); color: #fff; }
.checkout-steps .step.current { color: var(--rojo-osc); }
.checkout-steps .line { width: 32px; height: 2px; background: var(--borde); }

.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.card-panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--borde); box-shadow: var(--sombra-suave); padding: 22px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; color: var(--texto); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--borde); border-radius: var(--radius-sm); outline: none; background: #FFFDF9;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--mostaza); }
.radio-group { display: flex; gap: 10px; }
.radio-card { flex: 1; border: 2px solid var(--borde); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; font-weight: 700; font-size: 0.88rem; text-align: center; transition: border-color .15s, background .15s; }
.radio-card.active { border-color: var(--rojo); background: #FFF1EA; color: var(--rojo-osc); }
/* Escudado con #public-shell: .card-panel y .form-row también los usa el
   panel de administrador y no deben cambiar de apariencia ahí. */
#public-shell .card-panel { border-radius: var(--radius-lg); padding: 28px; }
#public-shell .card-panel h3 { font-family: var(--serif); font-weight: 600; color: var(--rojo-osc); font-size: 1.25rem; }
#public-shell .form-row input, #public-shell .form-row select, #public-shell .form-row textarea { padding: 12px 16px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--cafe); color: #fff; padding: 0 0 20px; margin-top: 40px; }
footer.site-footer .footer-grid { padding-top: 40px; }
footer.site-footer .brand { font-family: var(--serif); font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: var(--mostaza); font-size: 0.95rem; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { color: #E9DFD2; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 12px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.social-row a:hover { background: var(--rosa); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 30px; padding-top: 16px; text-align: center; font-size: 0.8rem; color: #C9BBA8; }
.admin-link { color: #C9BBA8 !important; font-size: 0.78rem; }

/* ---------- Admin & Repartidor shared ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, var(--crema), var(--crema-osc)); }
.auth-card { background: #fff; border-radius: var(--radius); box-shadow: var(--sombra); padding: 36px 32px; width: 100%; max-width: 380px; text-align: center; }
.auth-card .logo-mark { width: 72px; height: 72px; margin: 0 auto 14px; }
.auth-error { color: #D62828; font-size: 0.85rem; margin-top: 8px; min-height: 18px; }
.auth-hint { font-size: 0.78rem; color: var(--texto-suave); margin-top: 14px; background: var(--crema-osc); padding: 10px; border-radius: 10px; }

.admin-shell, .rep-shell { min-height: 100vh; display: flex; }
.admin-side { width: 230px; background: var(--cafe); color: #fff; padding: 22px 14px; flex: none; }
.admin-side .brand-mini { display: flex; align-items: center; gap: 8px; font-family: 'Fredoka'; font-size: 1.05rem; margin-bottom: 22px; padding: 0 6px; }
.admin-side .logo-mark { width: 36px; height: 36px; }
.admin-side nav a, .admin-side button.tab-link {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; color: #E9DFD2;
  padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; margin-bottom: 4px;
}
.admin-side .tab-link.active, .admin-side .tab-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.admin-main { flex: 1; padding: 26px 32px; overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin-topbar h2 { color: var(--rojo-osc); margin: 0; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--borde); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th { text-align: left; background: var(--crema-osc); padding: 12px 14px; font-family: 'Fredoka'; color: var(--rojo-osc); font-size: 0.85rem; white-space: nowrap; }
table.data-table td { padding: 12px 14px; border-top: 1px solid var(--borde); vertical-align: middle; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 0.75rem; color: #fff; }
.thumb-sm { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--crema-osc); }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }

.modal-overlay { position: fixed; inset: 0; background: rgba(58,42,30,0.5); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal-box { background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 26px; box-shadow: var(--sombra); }
.modal-box h3 { color: var(--rojo-osc); }
.modal-close { float: right; background: var(--crema-osc); border: none; width: 32px; height: 32px; border-radius: 50%; font-weight: 800; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--borde); padding: 18px 20px; box-shadow: var(--sombra-suave); }
.stat-card strong { display: block; font-family: 'Fredoka'; font-size: 1.6rem; color: var(--rojo); }
.stat-card span { color: var(--texto-suave); font-size: 0.85rem; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--texto); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 100; box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.img-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 220px; overflow-y: auto; padding: 8px; border: 1px solid var(--borde); border-radius: 10px; }
.img-picker .opt { border: 2px solid transparent; border-radius: 10px; padding: 4px; cursor: pointer; background: var(--crema-osc); }
.img-picker .opt.selected { border-color: var(--rojo); }
.upload-box { border: 2px dashed var(--borde); border-radius: 10px; padding: 14px; text-align: center; font-size: 0.85rem; color: var(--texto-suave); }
.color-hex { font-family: monospace; font-size: 0.85rem; color: var(--texto-suave); text-transform: uppercase; }
input[type="color"] { width: 42px; height: 32px; padding: 2px; border: 1px solid var(--borde); border-radius: 8px; cursor: pointer; background: none; }
/* Los checkboxes y radios dentro de .form-row no deben estirarse al 100% del
   ancho como los campos de texto — si no, quedan enormes/invisibles y el
   texto de su etiqueta se ve empujado o descuadrado. */
.form-row input[type="checkbox"], .form-row input[type="radio"] { width: auto; flex-shrink: 0; }

input[type="date"] { border: 1px solid var(--borde); border-radius: 999px; padding: 8px 14px; background: var(--blanco); color: var(--texto); }

.menu-doc { background: #fff; padding: 30px; border-radius: var(--radius); max-width: 820px; margin: 0 auto; }
.menu-doc-header { text-align: center; margin-bottom: 20px; border-bottom: 3px dashed var(--mostaza); padding-bottom: 16px; }
.menu-doc-cat { margin-bottom: 22px; }
.menu-doc-cat h3 { color: var(--rojo-osc); border-bottom: 2px solid var(--crema-osc); padding-bottom: 6px; }
.menu-doc-item { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.menu-doc-item .nm { font-weight: 800; }
.menu-doc-item .ds { font-size: 0.82rem; color: var(--texto-suave); display:block; }

.reporte-doc { background: #fff; padding: 30px; border-radius: var(--radius); max-width: 820px; margin: 0 auto; }
.reporte-doc-header { text-align: center; margin-bottom: 20px; border-bottom: 3px dashed var(--mostaza); padding-bottom: 16px; }
.reporte-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.reporte-stat { flex: 1; min-width: 130px; background: var(--crema); border-radius: 12px; padding: 14px; text-align: center; }
.reporte-stat strong { display: block; font-size: 1.3rem; color: var(--rojo); font-family: 'Fredoka', sans-serif; }
.reporte-stat span { font-size: 0.78rem; color: var(--texto-suave); }
.reporte-section { margin-bottom: 22px; }
.reporte-section h3 { color: var(--rojo-osc); border-bottom: 2px solid var(--crema-osc); padding-bottom: 6px; }
.reporte-doc-item { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.92rem; }
.reporte-doc-footer { text-align: center; margin-top: 20px; font-size: 0.8rem; color: var(--texto-suave); }
table.reporte-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.reporte-table th { text-align: left; padding: 8px; background: var(--crema-osc); color: var(--rojo-osc); }
table.reporte-table td { padding: 8px; border-top: 1px solid var(--borde); vertical-align: middle; }

.order-detail dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 0.92rem; }
.order-detail dt { color: var(--texto-suave); font-weight: 700; }
.order-items-list { margin: 14px 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); padding: 10px 0; }
.order-items-list div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9rem; }

.rep-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.order-card { background: #fff; border: 1px solid var(--borde); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--sombra-suave); }
.order-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-card .folio { font-family: 'Fredoka'; color: var(--rojo-osc); }
.order-card .addr { font-size: 0.85rem; color: var(--texto-suave); margin: 6px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .value-grid { grid-template-columns: repeat(2,1fr); }
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .dish-grid { grid-template-columns: repeat(2,1fr); }
  .about-split { grid-template-columns: 1fr; text-align: center; }
  .about-split .about-stats { justify-content: center; }
  .about-collage { margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 80; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.open { transform: translateX(0); }
  .admin-main { padding: 18px; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  nav.main-nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; border-bottom: 1px solid var(--borde); transform: translateY(-130%); transition: transform .2s; z-index: 39; }
  nav.main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .value-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .dish-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 26px 22px; }
  .checkout-steps .step span.lbl { display: none; }
}
