:root {
  --primary-color: #ff9800; /* Naranja apetitoso */
  --secondary-color: #ffc107; /* Amarillo dorado */
  --bg-color: #fffdf7; /* Crema muy claro */
  --text-dark: #3e2723; /* Marrón oscuro / chocolate para texto */
  --white: #ffffff;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #128c7e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(62, 39, 35, 0.4), rgba(62, 39, 35, 0.7)), url('images/tequenos_hero.jpg');
  background-size: cover;
  background-position: center;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 45px 25px;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  max-width: 500px;
  border-bottom: 6px solid var(--primary-color);
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #e65100;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.hero-features {
  list-style: none;
  margin-bottom: 35px;
  text-align: left;
  display: inline-block;
}

.hero-features li {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 16px 45px;
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:active {
  transform: scale(0.95);
}

/* Main Content */
main {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 35px;
  color: #e65100;
  font-weight: 900;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 60px;
  border: 3px solid #ffecb3;
}

.product-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 30px 25px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 900;
}

.product-info p {
  font-size: 1.1rem;
  color: #5d4037;
}

.product-options {
  margin: 20px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  cursor: pointer;
  background: #fdfdfd;
  padding: 12px 15px;
  border: 2px solid #ffecb3;
  border-radius: 12px;
  transition: background-color 0.2s, border-color 0.2s;
}

.option-label:has(input:checked) {
  background: #fff8e1;
  border-color: var(--primary-color);
}

.option-label input {
  width: auto;
  margin-right: 15px;
  transform: scale(1.3);
}

.option-text {
  font-weight: 700;
  color: var(--text-dark);
}

.actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 25px 0 15px;
}

.btn-qty {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  border: none;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
  transition: transform 0.1s;
}

.btn-qty:active {
  transform: scale(0.9);
  background-color: #ffca28;
}

.qty-display {
  font-size: 2.5rem;
  font-weight: 900;
  width: 60px;
  color: #e65100;
}

.btn-add {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border: none;
  padding: 18px;
  font-size: 1.3rem;
  font-weight: 900;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
  transition: transform 0.1s, background-color 0.2s;
}

.btn-add:active {
  transform: scale(0.97);
  background-color: #ffca28;
}

/* Cart Section */
.cart-section {
  background: #fff3e0;
  padding: 30px 25px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 3px solid #ffcc80;
  margin-bottom: 40px;
}

.cart-items {
  list-style: none;
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px dashed #ffb74d;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-item:last-child {
  border-bottom: none;
}

.btn-remove {
  background: #ef5350;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 900;
  cursor: pointer;
}

.cart-summary {
  margin-top: 20px;
  border-top: 2px solid #ffb74d;
  padding-top: 15px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.total-line {
  font-size: 1.6rem;
  font-weight: 900;
  color: #e65100;
  margin-top: 15px;
  border-top: 2px solid #ffb74d;
  padding-top: 15px;
}

/* Form */
.form-section {
  background: var(--white);
  padding: 40px 25px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 3px solid #ffecb3;
}

.form-subtitle {
  text-align: center;
  font-weight: 900;
  margin-top: -25px;
  margin-bottom: 30px;
  color: #d84315;
  font-size: 1.1rem;
  background-color: #fbe9e7;
  padding: 10px;
  border-radius: 10px;
}

.input-group {
  margin-bottom: 25px;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--text-dark);
}

input, textarea {
  width: 100%;
  padding: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1.15rem;
  font-family: inherit;
  background-color: #fafafa;
  transition: border-color 0.2s, background-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

textarea {
  resize: vertical;
  height: 110px;
}

.btn-whatsapp {
  width: 100%;
  background-color: var(--whatsapp-color);
  color: var(--white);
  border: none;
  padding: 20px;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  margin-top: 20px;
  transition: transform 0.1s, background-color 0.2s;
}

.btn-whatsapp:active {
  background-color: var(--whatsapp-hover);
  transform: scale(0.97);
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 20px 80px;
  background-color: #f7eed7;
  color: var(--text-dark);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.info-block h3 {
  color: #e65100;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.info-block p {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-block {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 20px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-text {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.btn-help {
  display: inline-block;
  background: var(--whatsapp-color);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Confirm Section */
.confirm-section {
  background: var(--white);
  padding: 40px 25px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 3px solid #ffcc80;
  margin-top: 30px;
}

.confirm-card {
  background: #fff8e1;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.confirm-details p {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.confirm-order-items {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 2px dashed #ffb74d;
  border-bottom: 2px dashed #ffb74d;
}

.confirm-item {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.confirm-totals p {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.confirm-payment {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #ffb74d;
  text-align: center;
}

.payment-method {
  font-size: 1.3rem;
  font-weight: 900;
  color: #2e7d32;
  margin: 10px 0;
}

.payment-note {
  font-size: 1rem;
  color: #555;
  background: #e8f5e9;
  padding: 10px;
  border-radius: 10px;
}

.btn-whatsapp-huge {
  width: 100%;
  background-color: var(--whatsapp-color);
  color: var(--white);
  border: none;
  padding: 25px 15px;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.ready-message {
  text-align: center;
  margin-top: 20px;
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Sticky Mobile Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 18px;
  font-size: 1.4rem;
  font-weight: 900;
  z-index: 1000;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Detalle de producto (combos / congelados) */
.product-detalle {
  margin-top: 8px;
  font-size: 1rem !important;
  font-weight: 700;
  color: #6d4c41 !important;
  background: #fff8e1;
  border-radius: 10px;
  padding: 10px 12px;
}

/* Separador de secciones del menú */
.menu-section + .menu-section {
  margin-top: 10px;
}
.menu-section > h2 {
  margin-top: 20px;
}

/* =====================================================
   PANEL DE ADMINISTRACIÓN
   ===================================================== */
.admin-body {
  background: #f4f1ea;
  font-family: 'Nunito', sans-serif;
  color: #3e2723;
}

.admin-login {
  max-width: 380px;
  margin: 12vh auto;
  background: #fff;
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-bottom: 6px solid var(--primary-color);
}
.admin-login h1 { color: #e65100; font-size: 1.6rem; margin-bottom: 4px; }
.admin-login p { margin-bottom: 20px; color: #777; }

.admin-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.admin-top h1 { color: #e65100; font-size: 1.5rem; }

.admin-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 11px 20px;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .1s, filter .2s;
}
.admin-btn:active { transform: scale(.96); }
.admin-btn:hover { filter: brightness(1.05); }
.admin-btn.ghost { background: #fff; color: #e65100; border: 2px solid #ffcc80; }
.admin-btn.danger { background: #ef5350; }
.admin-btn.danger:hover { background: #e53935; }

.admin-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.admin-alert.ok { background: #e8f5e9; color: #2e7d32; }
.admin-alert.error { background: #fdecea; color: #c62828; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.admin-stats .stat {
  background: #fff;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.admin-stats .stat .n {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #e65100;
}
.admin-stats .stat span:last-child { font-size: .85rem; color: #777; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.admin-tabs a {
  background: #fff;
  border: 2px solid #ffcc80;
  color: #e65100;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
}

.admin-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px;
  margin-bottom: 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.admin-card > h2 {
  text-align: left;
  font-size: 1.4rem;
  color: #e65100;
  margin-bottom: 14px;
}
.admin-card .muted { color: #888; font-size: .9rem; margin-bottom: 14px; }
.tipo-h {
  margin: 22px 0 10px;
  font-size: 1.1rem;
  color: #5d4037;
  border-bottom: 2px dashed #ffcc80;
  padding-bottom: 6px;
}

.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: .95rem;
  color: #5d4037;
}
.admin-form label.chk {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form select {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
}
.admin-form input:focus, .admin-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
}
.admin-form small { font-weight: 400; color: #999; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; }

.prod-item {
  border: 2px solid #ffe0b2;
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 10px;
  background: #fffdf7;
}
.prod-item summary {
  cursor: pointer;
  padding: 10px 4px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.prod-item summary .tags { font-weight: 600; font-size: .85rem; color: #888; }
.prod-item .tags .on { color: #2e7d32; }
.prod-item .tags .off { color: #c62828; }
.prod-item .admin-form { margin: 12px 0 6px; }

.ops { display: flex; flex-direction: column; gap: 8px; }
.op-row { display: grid; grid-template-columns: 3fr 1fr; gap: 10px; }

.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.row-btns.sep { margin: 4px 0 12px; padding-top: 12px; border-top: 1px solid #eee; }
.admin-form.nuevo { border: 2px dashed #ffcc80; border-radius: 12px; padding: 16px; background: #fffdf7; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.admin-table th { color: #8d6e63; font-size: .8rem; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

@media (max-width: 700px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
