/* ===== Reset mínimo y base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #111;
  background: #fafafa; /* fallback */
  line-height: 1.5;
  position: relative; /* para overlay de fondo */
  overflow-x: hidden;
}

/* Fondo Cuba difuminado (no bloquea scroll) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("/static/img/bg-cuba.svg") center / cover no-repeat;
  filter: blur(8px) saturate(1.05) brightness(1.02);
  opacity: 0.60;
  z-index: 0;
  transform: translateZ(0);
}

/* Aseguramos contenido por encima del fondo */
.site-header, #content, .site-footer { position: relative; z-index: 1; }

/* ===== Contenedores ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17,17,17,0.90);
  color: #fff;
  border-bottom: 2px solid #ffb703;
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.brand {
  color: #ffb703;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.05rem;
}
.nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  padding: 28px 0 8px;
  text-align: center;
}
.hero-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #111;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.hero-subtitle {
  margin: 0;
  color: #333;
  font-size: 0.98rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* ===== Secciones ===== */
.section-title {
  margin: 16px 0 12px;
  font-size: 1.25rem;
  color: #111;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

/* ===== Grid de tarjetas ===== */
.catalog { padding-bottom: 28px; }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Tarjeta “flotando” ===== */
.card {
  background: rgba(255, 224, 150, 0.20);
  border: 1px solid rgba(238,238,238,0.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  backdrop-filter: blur(4px);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.16),
    0 6px 14px rgba(0,0,0,0.10);
}

/* ===== Marco de imagen ===== */
.card-image{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 224, 150, 0.20);
  border: 2px solid #fb8500;
  display: grid;
  place-items: center;
  padding: 0;
}
.card-image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  background: #f6f6f6;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

/* ===== Cuerpo de tarjeta ===== */
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px;
  justify-content: space-between;
  gap: 10px;
}
.card-title {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

/* ===== Botones (unificados al estilo footer) ===== */
.btn {
  margin-left: 6px;
  padding: 6px 12px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #111;
  background: #ffb703;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  background: #fb8500;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Alias */
.btn-primary, .btn-accent { composes: btn; }

/* Tamaños */
.btn-sm { padding: 4px 10px; font-size: 0.85rem; }

/* Acciones en tarjeta */
.card-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.card-actions .btn {
  min-width: 120px;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 24px;
  background: rgba(17,17,17,0.90);
  color: #fff;
  border-top: 2px solid #ffb703;
  backdrop-filter: blur(6px);
}
.footer-inner {
  padding: 18px 0;
  text-align: center;
  font-size: 0.95rem;
}
.zelle-line strong { color: #ffb703; }

/* ===== Utilidades ===== */
.hidden { display: none !important; }
.center { text-align: center !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* ===== Accesibilidad / foco ===== */
a, button { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===== Imagen placeholder ===== */
img[alt][src*="placeholder"] {
  object-fit: contain;
  padding: 10%;
  filter: grayscale(15%);
}

/* Notas de precio en modales */
.price-highlight {
  color: #d00;
  font-weight: 800;
  font-style: italic;
}

/* ===== Modal: inputs elegantes y layout ===== */
.modal .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;         /* centra la caja de Cantidad */
}
.modal .form-field label { font-weight: 600; }

/* Caja de entrada dentro del modal */
.modal .input {
  width: 180px;                /* ancho elegante */
  max-width: 100%;
  height: 38px;                /* más alta para que no se vea “estrecha” */
  padding: 6px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.modal .input:focus {
  border-color: #ffb703;
  box-shadow: 0 0 0 3px rgba(255,183,3,0.25);
}

/* Específico para Cantidad (number): un poco más corto y centrado el texto */
.modal .form-field input.input[type="number"] {
  width: 140px;
  text-align: center;
}

/* Fila de radios bien alineada */
.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Estilos especiales para método de entrega ===== */
.radio-row label {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Hover Recogida (resplandor azul de enlace) */
#m-pickup + label:hover {
  background: #0000EE;   /* azul de enlaces estándar */
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 32, 96, 0.8);
}

/* Hover Delivery (resplandor verde césped) */
#m-delivery + label:hover {
  background: #228B22;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 128, 64, 0.8);
}

/* Seleccionados (glow un poco más intenso) */
#m-pickup:checked + label {
  background: rgba(0, 32, 96, 0.85);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 32, 96, 1);
}
#m-delivery:checked + label {
  background: rgba(0, 128, 64, 0.85);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 128, 64, 1);
}

/* =========================================================
   FICHAS DE PRODUCTO — Alineación “Ingredientes” y botones
   ========================================================= */
.card figure + div{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
}
.card figure + div .section-title{
  margin: 8px 0 8px;
  font-size: 1.15rem;
}
.card figure + div ul{
  list-style: disc;
  padding-left: 1.1rem;
  margin: 6px auto 0;
  width: 100%;
  max-width: 320px;
  text-align: left;
}
.card figure + div ul li{ margin: 4px 0; }
.card figure + div > div{
  margin-top: 14px !important;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.card figure img{
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 720px){
  .container > .card{
    grid-template-columns: 1fr !important;
  }
  .container > .card figure{
    margin-bottom: 6px;
  }
  .container > .card figure + div .section-title{
    font-size: 1.12rem;
  }
  .container > .card figure + div ul{
    max-width: 360px;
    padding-left: 1rem;
  }
  .container > .card figure + div > div{
    margin-top: 12px !important;
  }
}

/* ===== Fix zoom en móviles (iOS Safari / Firefox) ===== */
input, textarea, select, button {
  font-size: 16px; /* Evita zoom automático en campos de formulario */
}

