/* PIZZERÍA RÚSTICA · Ajustes puntuales de legibilidad y responsive (2026)
   Se carga después de los estilos existentes. Sin rediseñar la web. */

/* Acciones consistentes: sin texto blanco sobre un fondo ausente. */
.rustica-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 700 12px/1.35 'DM Sans', Arial, sans-serif;
  letter-spacing: .065em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(26, 37, 17, .10);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.rustica-cta .ui-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.rustica-cta--primary,
.rustica-cta--primary:visited {
  color: #fff8ec;
  background: #b7581f;
  border-color: #a44d17;
}
.rustica-cta--primary:hover {
  color: #fff;
  background: #974115;
  box-shadow: 0 8px 18px rgba(83, 37, 12, .20);
  transform: translateY(-2px);
}
.rustica-cta--secondary,
.rustica-cta--secondary:visited {
  color: #1c3318;
  border-color: #a9a88b;
  background: #fffaf0;
}
.rustica-cta--secondary:hover {
  color: #132e10;
  background: #eee4ce;
  border-color: #596f44;
  transform: translateY(-2px);
}
/* Botón del PDF de la carta: en la cabecera oscura, marco fino y crema. */
.rustica-cta--pdf-dark,
.rustica-cta--pdf-dark:visited {
  color: #fff7e8;
  background: rgba(255, 249, 233, .085);
  border-color: rgba(239, 211, 161, .70);
  box-shadow: none;
}
.rustica-cta--pdf-dark:hover {
  color: #132e10;
  background: #f6ead5;
  border-color: #f6ead5;
  box-shadow: 0 6px 17px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}
.rustica-cta:focus-visible {
  outline: 3px solid #f3ae61;
  outline-offset: 4px;
}

/* Novedades: dos acciones que pertenecen a una misma familia visual. */
.novedades-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.novedades-actions .rustica-cta { max-width: 100%; }
.novedades-rustica-inner, .novedades-head > div,
.novedad-card, .novedad-card h3, .novedad-card p { min-width: 0; }
.novedad-card h3, .novedad-card p { overflow-wrap: break-word; }
.novedades-head p { text-wrap: pretty; }

/* Carta: agrupar llamada + PDF, sin descentrar "Volver a la web". */
.carta-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 14px;
}
.carta-hero-actions .carta-call-primary {
  width: auto;
  min-width: 190px;
  flex: 0 0 auto;
  margin: 0;
  padding-inline: 26px;
}
.carta-hero-actions .rustica-cta--pdf-dark { min-width: 220px; }
.carta-hero-inner { min-width: 0; max-width: 100%; }

/* Pequeños ajustes de fluidez y navegación con teclado. */
#novedades, #pizzas-carta { scroll-margin-top: 90px; }
.main-nav a { white-space: nowrap; }
.novedades-rustica { min-width: 0; }
.novedad-card .pizza-allergens { min-width: 0; }

@media (max-width: 900px) {
  .novedades-head { align-items: start; }
  .novedades-note { display: none; }
  .novedades-grid { gap: 18px; }
  .novedades-rustica .novedades-rustica-inner { width: 100%; }
}
@media (max-width: 620px) {
  #novedades, #pizzas-carta { scroll-margin-top: 76px; }
  .novedades-rustica { padding: 46px 6% 52px; }
  .novedades-head { margin-bottom: 22px; }
  .novedades-head h2 { font-size: clamp(31px, 8vw, 42px); }
  .novedades-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .novedad-card { padding: 21px 19px; }
  .novedad-card .novedad-card-top { gap: 9px; }
  .novedad-price { padding: 7px 10px; font-size: 18px; }
  .novedades-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .novedades-actions .rustica-cta { width: 100%; min-height: 50px; }
  .carta-hero-actions { flex-direction: column; align-items: stretch; gap: 11px; }
  .carta-hero-actions .carta-call-primary,
  .carta-hero-actions .rustica-cta--pdf-dark {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0;
    align-self: center;
  }
  .carta-hero-actions .carta-call-primary { min-height: 50px; }
  .carta-hero-actions .rustica-cta--pdf-dark { min-height: 50px; }
}
@media (max-width: 360px) {
  .rustica-cta { padding: 12px 13px; font-size: 11px; letter-spacing: .025em; gap: 7px; }
  .novedades-head h2 { font-size: 30px; }
  .novedad-card h3 { font-size: 23px; }
  .novedad-card p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rustica-cta { transition: none; }
  .rustica-cta:hover { transform: none; }
}
