:root{
  --bg:#ffffff;
  --paper:#ffffff;
  --text:#222;
  --muted:#666;
  --brand:#7b3f00;
  --accent:#f59e0b;
  --danger:#b91c1c;
  --row:#f6f6f6;
  --border:#e7e7e7;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Segoe UI", Arial, sans-serif;
}

/* ===== CONTENEDOR GENERAL ===== */
.wrapper{
  width:100%;
  display:flex;
  justify-content:center;
  padding:14px 10px 28px;
}

/* tarjeta tipo “papel” pero fluida */
.paper{
  width:min(980px, 100%);
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  overflow:hidden;
}

/* ===== HEADER ===== */
.head{
  text-align:center;
  padding:14px 14px 10px;
  color:var(--brand);
}

.brand{ font-size:22px; font-weight:900; }
.sub{ font-size:12px; color:var(--muted); margin-top:4px; }
.title{ font-size:16px; font-weight:900; color:#991b1b; margin-top:8px; }
.date{ font-size:14px; font-weight:800; margin-top:6px; }

.line{
  height:4px;
  background:var(--accent);
  border-radius:4px;
  width:100%;
  margin-top:10px;
}
.line-bottom{ margin:0 14px; }

.content{ padding:0 14px 6px; }

.empty{
  text-align:center;
  color:#999;
  padding:18px 8px;
}

/* ===== LAYOUTS POR TIPO ===== */
.grid-guisado{ grid-template-columns: 1fr 92px 92px; gap:8px; }
.grid-especial,
.grid-guarnicion{ grid-template-columns: 1fr 92px; gap:8px; }
.grid-simple{ grid-template-columns: 1fr 92px; gap:8px; }

/* ===== ENCABEZADO DE CATEGORÍA ===== */
.cat{
  margin-top:12px;
  padding:10px 10px;
  background:#f4f4f4;
  border-left:6px solid var(--accent);
  font-weight:900;
  text-transform:uppercase;
  display:grid;
  align-items:center;
}

.cat-name{
  font-size:16px;
  grid-column:1;
}

.cat-cols{
  font-size:12px;
  font-weight:900;
  color:var(--danger);
  letter-spacing:.4px;
  justify-self:end;
}

.cat-cols.cols-2{
  grid-column: 2 / 4;
  display:grid;
  grid-template-columns: 92px 92px;
  gap:8px;
  justify-items:end;
}
.cat-cols.cols-1{
  grid-column: 2 / 3;
  display:grid;
  grid-template-columns: 92px;
  justify-items:end;
}
.cat-cols.cols-0{ display:none; }

.cat-cols .col-h{
  text-align:right;
  width:100%;
  display:block;
}

/* ===== LISTADO ===== */
.list{ border-top:1px solid var(--border); }

/* FILA DE PLATILLO */
.row{
  padding:10px 10px;
  align-items:start;
  border-bottom:1px solid var(--border);
  display:grid;
}
.row:nth-child(even){ background:var(--row); }

/* ===== NOMBRE DEL PLATILLO (LO QUE TÚ PEDISTE) ===== */
.name{
  font-size:18px;      /* MÁS GRANDE */
  line-height:1.35;
  word-break:break-word;
  font-weight:400;     /* ELEGANTE, NO NEGRITA */
}

/* precio */
.price{
  text-align:right;
  font-weight:900;
  font-size:14px;
  white-space:nowrap;
}

.cat.grid-guisado, .row.grid-guisado{ grid-template-columns: 1fr 92px 92px; gap:8px; }
.cat.grid-especial, .row.grid-especial{ grid-template-columns: 1fr 92px; gap:8px; }
.cat.grid-guarnicion, .row.grid-guarnicion{ grid-template-columns: 1fr 92px; gap:8px; }
.cat.grid-simple, .row.grid-simple{ grid-template-columns: 1fr 92px; gap:8px; }

/* AGOTADO */
.agotado{
  text-decoration:line-through;
  color:#999;
  opacity:.85;
  font-style:italic;
}

/* ===== BANNER ===== */
.banner{
  width:100%;
  padding:12px 14px 0;
}
.banner img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:2px solid var(--accent);
}

/* ===== FOOTER ===== */
.foot{
  text-align:center;
  font-size:11px;
  color:var(--muted);
  padding:12px 14px 16px;
}

/* ===== RESPONSIVO MÓVIL ===== */
@media (max-width:420px){
  .cat.grid-guisado, .row.grid-guisado{ grid-template-columns: 1fr 78px 78px; }
  .cat.grid-especial, .row.grid-especial,
  .cat.grid-guarnicion, .row.grid-guarnicion,
  .cat.grid-simple, .row.grid-simple{ grid-template-columns: 1fr 78px; }

  .cat-cols.cols-2{ grid-template-columns: 78px 78px; }
  .cat-cols.cols-1{ grid-template-columns: 78px; }

  .price{ font-size:13px; }

  /* 🔹 Ajuste fino para celular: sigue grande pero limpio */
  .name{ font-size:17px; }

  .brand{ font-size:20px; }
  .title{ font-size:15px; }
}

/* =======================================================
   ✅ CLICKABLE (abre modal) — SIN SUBRAYADO
======================================================= */
.name[data-open-foto="1"]{
  cursor:pointer;
}

.name.agotado[data-open-foto="1"]{
  cursor:not-allowed;
  opacity:.75;
}

/* =======================================================
   ✅ MODAL FOTO (NO pantalla completa)
======================================================= */
.foto-modal.hidden{ display:none !important; }

.foto-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 12px;
  background:rgba(0,0,0,.35);
  z-index:99999;
}

.foto-card{
  width:min(560px, 92vw);
  background:#fff;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  border:1px solid #e7e7e7;
  overflow:hidden;
  position:relative;
  transform:translateY(6px);
  animation:fotoIn .14s ease-out forwards;
}

@keyframes fotoIn{
  to{ transform:translateY(0); }
}

.foto-close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid #e7e7e7;
  background:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.foto-wrap{
  padding:12px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#fafafa;
}

.foto-wrap img{
  width:100%;
  max-height:56vh;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
}

.foto-title{
  padding:10px 14px 14px;
  font-size:14px;
  color:#333;
  font-weight:800;
  border-top:1px solid #eee;
}
.foto-sub{
  font-weight:600;
  color:#666;
  font-size:12px;
  margin-top:4px;
}

/* ===== MÁS ESPACIO ENTRE CATEGORÍAS ===== */
.cat{
  margin-top: 18px;
}

.list{
  margin-bottom: 22px;
}


/* =========================
   BOTÓN LATERAL WHATSAPP VERTICAL
========================= */
.btn-lateral-wtsp{
  position: fixed;
  right: 0;
  bottom: 170px;
  z-index: 9998;

  width: 38px;          /* más delgado */
  min-height: 230px;    /* más largo */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 14px 4px;
  border-radius: 12px 0 0 12px;

  background: linear-gradient(180deg, #25D366 0%, #1faa52 100%);
  color: #ffffff;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-lateral-wtsp:hover{
  transform: translateX(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,.26);
  filter: brightness(1.02);
}

.btn-lateral-wtsp:active{
  transform: translateX(0) scale(.98);
}

.btn-lateral-wtsp__icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btn-lateral-wtsp__icon svg{
  width: 18px;
  height: 18px;
  display: block;
}

.btn-lateral-wtsp__text{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-orientation: mixed;

  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 1.4px;
  white-space: nowrap;
  text-transform: uppercase;
}

@media (max-width: 480px){
  .btn-lateral-wtsp{
    width: 34px;
    min-height: 210px;
    bottom: 160px;
    padding: 12px 3px;
    border-radius: 10px 0 0 10px;
  }

  .btn-lateral-wtsp__icon,
  .btn-lateral-wtsp__icon svg{
    width: 16px;
    height: 16px;
  }

  .btn-lateral-wtsp__text{
    font-size: 9px;
    letter-spacing: 1.2px;
  }
}