:root {
  --color-primary: #c0392b;
  --color-primary-dark: #96291d;
  --color-accent: #e8890c;
  --color-bg: #fdf3ee;
  --color-card: #ffffff;
  --color-text: #2b2320;
  --color-muted: #8a7a73;
  --color-border: #ecdcd3;
  --color-success: #2f9e44;
  --color-danger: #c0392b;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

/* ---------- Placeholder images (hasta que subas fotos/video reales) ---------- */
.placeholder-img {
  position: relative;
  background: linear-gradient(135deg, #f3c9b8, #e8a488);
  overflow: hidden;
}
.placeholder-img::before {
  content: attr(data-placeholder-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(43, 35, 32, 0.6);
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.35) 10px,
    rgba(255,255,255,0.15) 10px,
    rgba(255,255,255,0.15) 20px
  );
  z-index: 1;
}
.placeholder-img img,
.placeholder-img video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}
/* Mientras no haya foto/video real, el archivo roto queda invisible
   (evita el icono nativo del navegador) y solo se ve el aviso */
.placeholder-img.has-media img,
.placeholder-img.has-media video { opacity: 1; }
.placeholder-img.has-media::before { display: none; }

/* ---------- Banner de avisos ---------- */
.aviso-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 44px 10px 16px;
  position: relative;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
}
.aviso-banner.tipo-aviso { background: var(--color-danger); }
.aviso-banner.tipo-promo { background: var(--color-accent); }
.aviso-banner.tipo-info { background: #2b6cb0; }
.aviso-banner button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  opacity: 0.8;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
}
.aviso-banner button:hover { opacity: 1; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text);
  text-decoration: none;
  margin-right: auto;
}
.brand-logo { border-radius: 8px; }

.nav-links {
  display: none;
  gap: 22px;
}
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--color-primary); }

.btn-whatsapp-nav {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-whatsapp-nav:hover { background: var(--whatsapp-dark); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 14px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 10px 4px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .btn-whatsapp-nav { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,23,20,0.35) 0%, rgba(43,23,20,0.55) 55%, rgba(20,12,10,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 56px;
  width: 100%;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 800;
}
.hero-sub {
  font-size: clamp(15px, 2.4vw, 18px);
  max-width: 560px;
  opacity: 0.92;
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--whatsapp); color: #fff; }
.btn-primary:hover { background: var(--whatsapp-dark); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ---------- Franja de confianza ---------- */
.trust-strip {
  background: var(--color-primary);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 22px 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
}
.trust-icon { font-size: 20px; }
@media (min-width: 700px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; }
}

/* ---------- Secciones ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px;
}
.section-muted { background: #fff5f0; }
.section-muted .section-head,
.section-muted .steps-grid,
.section-muted .gallery-grid { max-width: var(--max); margin: 0 auto; }

/* ---------- Campos de formulario (usado en /admin) ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  padding: 0 14px;
  background: #fff;
  font-size: 15px;
}
.field textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  padding: 10px 14px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 24px 0;
  font-size: 14px;
  grid-column: 1 / -1;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.section-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 10px; }
.section-head p { color: var(--color-muted); font-size: 16px; margin: 0; }

/* ---------- Preguntas frecuentes ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Menu / productos ---------- */
.menu-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

.product-card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(43,35,32,0.08);
  display: flex;
  flex-direction: column;
}
.product-card--featured { border: 2px solid var(--color-primary); }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.product-media { aspect-ratio: 4 / 3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { margin: 0; font-size: 21px; }
.product-desc { color: var(--color-muted); margin: 0; font-size: 14.5px; line-height: 1.5; }
.product-includes {
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 13.5px;
  color: var(--color-text);
}
.product-includes li::before { content: "✓ "; color: var(--color-success); font-weight: 800; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.product-price { font-size: 30px; font-weight: 800; color: var(--color-primary); }
.product-unit { color: var(--color-muted); font-size: 13.5px; }
.product-note { font-size: 13px; color: var(--color-muted); margin: 0; background: var(--color-bg); padding: 8px 12px; border-radius: var(--radius-sm); }

/* ---------- Como pedir ---------- */
.steps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(43,35,32,0.06);
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
}
.step-card h3 { margin: 0 0 6px; font-size: 17px; }
.step-card p { margin: 0; color: var(--color-muted); font-size: 14px; }
.steps-cta { text-align: center; margin-top: 34px; }

/* ---------- Zona de entrega ---------- */
.zona-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .zona-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.zona-text h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 32px); }
.zona-text p { margin: 0 0 12px; line-height: 1.6; }
.zona-text p.zona-nota { font-size: 13px; color: var(--color-muted); background: var(--color-bg); padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; line-height: 1.5; }
.zona-list {
  margin: 0 0 18px;
  padding: 0 0 0 20px;
  color: var(--color-text);
  line-height: 1.9;
}
.zona-shipping {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.zona-shipping-item {
  background: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.zona-shipping-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.zona-shipping-item span { font-size: 13.5px; color: var(--color-muted); }
.zona-media { border-radius: var(--radius); aspect-ratio: 1 / 1; }
.zona-media img { width: 100%; height: 100%; object-fit: cover; }

.editable-note {
  font-size: 12.5px;
  color: var(--color-accent);
  font-weight: 700;
  background: #fff3e0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ---------- Galeria ---------- */
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery-item img,
.gallery-item video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reseñas ---------- */
.resenas-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media (min-width: 700px) {
  .resenas-grid { grid-template-columns: repeat(3, 1fr); }
}
.resena-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(43,35,32,0.06);
}
.resena-card .resena-stars-display { color: var(--color-accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 8px; }
.resena-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--color-text); }
.resena-card .resena-autor { font-size: 13px; font-weight: 700; color: var(--color-muted); }

.resena-form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(43,35,32,0.06);
}
.resena-form-card h3 { margin: 0 0 16px; font-size: 18px; text-align: center; }
.resena-stars { display: flex; gap: 6px; justify-content: center; }
.resena-star {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--color-border);
  cursor: pointer;
  padding: 2px;
}
.resena-star.selected { color: var(--color-accent); }
.resena-form-msg { font-size: 13.5px; margin: 0 0 10px; min-height: 18px; }
.resena-form-msg.ok { color: var(--color-success); font-weight: 700; }
.resena-form-msg.error { color: var(--color-danger); font-weight: 700; }
.gallery-item--video { background: #2b2320; }

/* ---------- Contacto ---------- */
.contacto-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: 24px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 760px) {
  .contacto-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
.contacto-info h2 { margin: 0 0 12px; font-size: clamp(22px, 4vw, 30px); }
.contacto-card .editable-note { background: rgba(255,255,255,0.15); color: #fff; }
.contacto-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.contacto-list li { display: flex; gap: 10px; font-size: 14.5px; }
.contacto-card .btn-primary { background: #fff; color: var(--color-primary); flex-shrink: 0; }
.contacto-card .btn-primary:hover { background: #ffe9e2; }

/* ---------- Footer ---------- */
.footer {
  background: #201512;
  color: rgba(255,255,255,0.8);
  padding: 40px 20px 100px;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand img { border-radius: 6px; }
.footer p { margin: 4px 0; font-size: 13.5px; }
.footer-fine { opacity: 0.6; margin-top: 14px; font-size: 12px; }

.footer-install-btn {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.footer-install-btn:hover { background: rgba(255,255,255,0.2); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
  text-decoration: none;
}
.whatsapp-float:hover { background: var(--whatsapp-dark); }

@media (min-width: 860px) {
  .whatsapp-float { display: none; }
}
