/* style.css — estilos del sitio público de Yoggi.
   Paleta: blanco, negro y gris, como pidió el negocio. */

:root {
  --black: #111111;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e2e2e2;
  --gray-400: #b0b0b0;
  --gray-600: #757575;
  --gray-800: #2b2b2b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: inherit; }

/* Los navegadores móviles (sobre todo Safari en iPhone) pintan el texto
   dentro de <button> en azul por defecto si no se resetea. Todos los
   botones del sitio (tarjetas de producto, carrito, etc.) deben verse en
   negro como el resto del texto, no como si fueran links. */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-mark {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gray-600);
  font-weight: 600;
}

.cart-toggle {
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Navegación de categorías ---------- */

.category-nav {
  position: sticky;
  top: 57px;
  z-index: 19;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.category-nav-inner {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 0 0.7rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cat-link:hover { color: var(--black); }

.cat-link.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* ---------- Carrusel de promociones ---------- */

.promo-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.promo-carousel-viewport {
  position: relative;
  overflow: hidden;
}

.promo-track {
  display: flex;
  transition: transform 0.45s ease;
}

.promo-slide {
  position: relative;
  flex: 0 0 100%;
  background: var(--gray-100);
}

.promo-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.promo-slide-img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.promo-slide-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.1rem 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--black);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.promo-arrow-prev { left: 0.6rem; }
.promo-arrow-next { right: 0.6rem; }

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 0.7rem;
}

.promo-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  cursor: pointer;
  padding: 0;
}

.promo-dots button.active {
  background: var(--black);
  width: 1.3rem;
  border-radius: 999px;
}

.promo-carousel.is-closing {
  animation: promoCarouselOut 0.3s ease both;
}

@keyframes promoCarouselOut {
  from { opacity: 1; max-height: 320px; }
  to { opacity: 0; max-height: 0; padding: 0; margin: 0; }
}

/* ---------- Animaciones suaves al hacer scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .promo-carousel, .promo-carousel.is-closing, .promo-track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 2.4rem 0 1.2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-sub {
  color: var(--gray-600);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Catálogo por categorías (tarjetas de producto) ---------- */

.catalog-section {
  margin: 2.5rem 0;
  scroll-margin-top: 120px;
}

.catalog-section-title-bar {
  background: var(--black);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 1.4rem;
  padding: 0.9rem 0;
}

.catalog-section-title {
  font-family: 'Anton', var(--font);
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-align: left;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font);
  width: 100%;
}

.product-card:hover {
  border-color: var(--gray-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  display: block;
  flex: 0 0 42%;
  width: 42%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  font-size: 2.4rem;
  flex: 0 0 42%;
  width: 42%;
  aspect-ratio: 1 / 1;
}

.product-card:hover .product-card-img { transform: scale(1.04); }

.product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 700;
}

.product-card-desc {
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-weight: 400;
  font-size: 0.98rem;
}

/* ---------- Modal de personalización de producto ---------- */

.product-modal-overlay {
  align-items: flex-start;
  padding: 0;
}

.modal-box.product-modal-box {
  max-width: 480px;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  padding: 0;
  text-align: left;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

@media (min-width: 620px) {
  .product-modal-overlay { align-items: center; padding: 1rem; }
  /* Alto fijo: todas las tarjetas de producto quedan del mismo tamaño sin
     importar cuántas opciones tengan. Si el contenido no cabe, la zona de
     opciones (.product-modal-scroll) se desplaza con su propia barra en
     vez de estirar la tarjeta entera. */
  .modal-box.product-modal-box { height: 600px; max-height: 85vh; border-radius: var(--radius); }
}

.product-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
}

.product-modal-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.product-modal-media { flex: 0 0 auto; }

.product-modal-media:not(:has(img:not([hidden]))) { display: none; }

.product-modal-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.product-modal-scroll {
  overflow-y: auto;
  flex: 1 1 auto;
}

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

/* Desde tablet/escritorio: la foto pasa a un panel fijo a la izquierda que
   ocupa todo el alto del modal, y el contenido (nombre, opciones, footer
   con cantidad y botón agregar) queda en una columna a la derecha, con
   scroll propio — igual a los pickers de las apps de comida grandes. */
@media (min-width: 760px) {
  .modal-box.product-modal-box { max-width: 920px; }
  .product-modal-layout { flex-direction: row; }
  .product-modal-media {
    display: flex;
    flex: 0 0 42%;
    width: 42%;
  }
  .product-modal-img { width: 100%; height: 100%; }
}

.product-modal-body {
  padding: 1.3rem 1.3rem 1rem;
}

.product-modal-body h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.product-modal-desc {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.product-modal-groups {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.product-modal-notes-label {
  display: block;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}

.product-modal-notes {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--black);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  resize: vertical;
  box-sizing: border-box;
}

.pm-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pm-group-head strong { font-size: 0.98rem; }

.badge-required,
.badge-optional {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-required { background: var(--black); color: var(--white); }
.badge-optional { background: var(--gray-100); color: var(--gray-600); }

.pm-group-hint {
  color: var(--gray-600);
  font-size: 0.8rem;
  margin: 0.2rem 0 0.6rem;
}

.pm-group-hint-count {
  font-weight: 700;
  color: #b45309;
}

.pm-group-hint-count-ok {
  color: #15803d;
}

.pm-group-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pm-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pm-option:has(input:checked) {
  border-color: var(--black);
  background: var(--gray-50);
}

.pm-option input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--black);
  flex: 0 0 auto;
}

.pm-option-name { flex: 1 1 auto; font-size: 0.92rem; }

.pm-option-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
}

.pm-option-stepper {
  cursor: default;
}

.pm-option-stepper.has-qty {
  border-color: var(--black);
  background: var(--gray-50);
}

.pm-option-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.pm-option-qty-minus,
.pm-option-qty-plus {
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--black);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-option-qty-minus:hover,
.pm-option-qty-plus:hover {
  border-color: var(--black);
}

.pm-option-qty-count {
  min-width: 1.1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-modal-footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--gray-200);
  flex: 0 0 auto;
}

.product-modal-footer .btn { margin-top: 0; flex: 1 1 auto; }

/* ---------- Armador ---------- */

.builder {
  padding-bottom: 2rem;
}

.builder-step {
  margin: 2.75rem 0;
  scroll-margin-top: 120px;
}

.builder-step h2 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  font-weight: 800;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
}

.option-card {
  position: relative;
  display: block;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.option-card:hover {
  border-color: var(--gray-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.option-card-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.option-card:hover .option-card-img {
  transform: scale(1.04);
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-card:has(input:checked) {
  border-color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
}

.option-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.1rem 1.25rem;
}

.option-card-body strong { font-size: 1.1rem; }

.badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--black);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.option-price {
  font-weight: 800;
  font-size: 1.1rem;
}

.option-desc {
  color: var(--gray-600);
  font-size: 0.85rem;
}

.free-note {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.topping-category {
  margin-bottom: 1.25rem;
}

.topping-category h3 {
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.cat-price {
  color: var(--gray-600);
  font-weight: 500;
}

.topping-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topping-chip {
  position: relative;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.topping-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.topping-chip:has(input:checked) {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.builder-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

.qty-control {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
}

.qty-stepper button {
  border: none;
  background: var(--gray-100);
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.qty-stepper input {
  width: 2.4rem;
  border: none;
  text-align: center;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.builder-total {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.builder-total strong {
  font-size: 1.3rem;
  color: var(--black);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) { opacity: 0.85; }

.btn-secondary {
  background: var(--gray-100);
  color: var(--black);
}

.btn-block { width: 100%; margin-top: 0.6rem; }

.error-text {
  color: #b3261e;
  background: #fdecea;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
}

.success-text {
  color: #1e6b3c;
  background: #e9f7ee;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
}

/* ---------- Carrito lateral ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 29;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  overflow-y: auto;
}

.cart-panel.open { transform: translateX(0); }

.cart-panel-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-header h2 { margin: 0; font-size: 1.2rem; }

.icon-btn {
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1rem;
}

.cart-empty { color: var(--gray-600); font-size: 0.9rem; }

.cart-items { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1rem; }

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.8rem;
}

.cart-item-info strong { font-size: 0.9rem; }

.cart-item-toppings {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 0.15rem;
}

.cart-item-notes {
  font-size: 0.78rem;
  color: var(--gray-600);
  font-style: italic;
  margin-top: 0.15rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.cart-item-remove {
  border: none;
  background: none;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-subtotal-row,
.cart-line-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--gray-200);
}

.cart-total-row {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 2px solid var(--black);
}

.cart-line-discount strong,
.cart-line-discount span {
  color: #1a7a3c;
}

.cart-line-discount #cartDescuentoCodigo {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.coupon-field-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-field-row input {
  flex: 1 1 auto;
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--black);
}

.coupon-field-row input:focus {
  outline: none;
  border-color: var(--black);
}

.coupon-field-row .btn {
  flex: 0 0 auto;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.checkout-form[hidden] {
  display: none;
}

.checkout-form h3 { margin: 0.3rem 0 0; font-size: 1rem; }

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--black);
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  outline: none;
  border-color: var(--black);
}

.checkout-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.checkout-fieldset legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
  padding: 0;
  margin-bottom: 0.4rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-chip {
  position: relative;
  flex: 1 1 auto;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-chip:has(input:checked) {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.bank-details {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.bank-details strong { font-size: 0.9rem; }

.bank-detail-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bank-detail-logo {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* ---------- Modal de confirmación ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-box h2 { margin-top: 0; }

.modal-box .btn { width: 100%; margin-top: 0.6rem; }

/* ---------- Secciones de contenido (Quiénes somos / Contáctanos) ---------- */

.content-section {
  padding: 3rem 0;
  border-top: 1px solid var(--gray-200);
}

.content-section-alt {
  background: var(--gray-50);
}

.content-section-inner {
  max-width: 760px;
}

.content-section-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.content-section-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-800);
  margin: 0;
}

.content-section-placeholder {
  color: var(--gray-600);
  font-style: italic;
}

.content-section-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.content-section-gallery-img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Banner de bienvenida (pantalla completa al abrir la página) ---------- */

.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(17, 17, 17, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: welcomeFadeIn 0.25s ease both;
}

.welcome-popup.is-closing {
  animation: welcomeFadeOut 0.3s ease both;
}

@keyframes welcomeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes welcomeFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.welcome-popup-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.welcome-popup-track {
  display: flex;
  transition: transform 0.4s ease;
}

.welcome-popup-slide {
  position: relative;
  flex: 0 0 100%;
  background: var(--gray-100);
}

.welcome-popup-img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
}

.welcome-popup-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.1rem 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.welcome-popup-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(17, 17, 17, 0.65);
  color: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  z-index: 2;
}

/* ---------- Pantalla de carga ---------- */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.site-loader-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Pie ---------- */

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.82rem;
  text-align: center;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.site-footer-nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer-nav a {
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-nav a:hover {
  text-decoration: underline;
}

/* ---------- Utilidades generales usadas también en el panel admin ---------- */

label { font-family: var(--font); }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .cart-panel { width: 100%; }
}

/* ---------- Checkout de pantalla completa ---------- */

body.checkout-open {
  overflow: hidden;
}

.checkout-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.checkout-view[hidden] {
  display: none;
}

.checkout-topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--gray-200);
  flex: 0 0 auto;
}

.checkout-topbar-brand {
  flex: 1 1 auto;
  text-align: center;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.checkout-topbar-spacer {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.checkout-view-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
}

.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.checkout-section {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.25rem;
}

.checkout-section-title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 800;
}

.checkout-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.checkout-section-body[hidden] {
  display: none;
}

.checkout-section label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
}

.checkout-section input,
.checkout-section textarea,
.checkout-section select {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--black);
}

.checkout-section input:focus,
.checkout-section textarea:focus,
.checkout-section select:focus {
  outline: none;
  border-color: var(--black);
}

.address-map-preview {
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-100);
}

.address-map-preview[hidden] {
  display: none;
}

.phone-input-row {
  display: flex;
  gap: 0.5rem;
}

.phone-input-row select {
  flex: 0 0 auto;
  width: auto;
  max-width: 6.5rem;
}

.phone-input-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.phone-input-hint {
  font-weight: 400;
  color: var(--gray-500, var(--gray-600));
  font-size: 0.78rem;
}

.phone-input-hint[hidden] {
  display: none;
}

.entrega-tabs,
.pago-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.entrega-tabs[hidden],
.pago-cards[hidden] {
  display: none;
}

.entrega-tab {
  position: relative;
  flex: 1 1 auto;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.entrega-tab input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.entrega-tab:has(input:checked) {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.pago-card {
  position: relative;
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pago-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pago-card:has(input:checked) {
  border-color: var(--black);
  background: var(--gray-50);
  box-shadow: inset 0 0 0 1.5px var(--black);
}

.pago-card-icon {
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.pago-card-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.checkout-summary {
  min-width: 0;
}

.checkout-summary-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.checkout-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.checkout-summary-item-img {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: 0 0 auto;
}

.checkout-summary-item-img-empty {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.checkout-summary-item-info {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
}

.checkout-summary-item-info strong {
  display: block;
  font-size: 0.9rem;
}

.checkout-summary-item-extras {
  font-size: 0.76rem;
  color: var(--gray-600);
  margin-top: 0.1rem;
}

.checkout-summary-item-notes {
  font-size: 0.76rem;
  color: var(--gray-600);
  font-style: italic;
  margin-top: 0.1rem;
}

.checkout-summary-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (min-width: 860px) {
  .checkout-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: flex-start;
    gap: 2rem;
  }

  .checkout-summary {
    position: sticky;
    top: 1.5rem;
  }
}

/* Hero normal con imagen/video de fondo full-bleed (agregado: quitamos el
   hero 3D y volvimos a un hero simple que opcionalmente muestra una imagen
   o video subido desde el panel admin, sin recortes feos en mobile/desktop). */
.hero {
  position: relative;
}
.hero.hero-media {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-align: center;
}
.hero-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}
.hero.hero-media .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem 1.25rem 2.4rem;
}
.hero.hero-media .hero-content h1 {
  color: #fff;
}
.hero.hero-media .hero-content .hero-sub {
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Hero: Ken Burns + entrada animada de texto ---------- */

@keyframes yoggiHeroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-media-el {
  animation: yoggiHeroKenBurns 20s ease-out forwards;
  transform-origin: center;
  will-change: transform;
}

@keyframes yoggiHeroTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  animation: yoggiHeroTextIn 0.7s ease-out both;
}

.hero-content .hero-sub {
  animation: yoggiHeroTextIn 0.7s ease-out 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media-el,
  .hero-content h1,
  .hero-content .hero-sub {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Credito "Powered by KUUL WEB" en el footer */
.kuul-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--gray-500, var(--gray-600));
  font-size: 0.75rem;
  opacity: 0.85;
}
.kuul-credit-logo {
  height: 13px;
  width: auto;
  display: block;
  color: var(--gray-700, #333);
}
/* Barra superior con selector de idioma (banderas ES/EN/FR) */
.top-utility-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.top-utility-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.35rem 1.25rem;
}
.lang-switcher {
  display: flex;
  gap: 0.35rem;
}
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.5;
  filter: grayscale(35%);
  transition: opacity 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.lang-flag:hover {
  opacity: 0.85;
}
.lang-flag.is-active {
  opacity: 1;
  filter: none;
  background: var(--white);
  box-shadow: 0 0 0 1.5px var(--black) inset;
}
/* Desglose por helado individual dentro de un combo (panel de Pedidos) */
.order-item-detalle {
  margin: 4px 0 2px 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 13px;
  color: #5f5e5a;
}
.order-item-detalle li {
  margin: 2px 0;
}
.order-item-opciones {
  font-size: 13px;
  color: #5f5e5a;
  margin: 2px 0;
}
/* ---------- Refresh visual: interactividad extra (agosto 2026) ---------- */

.product-grid .product-card.reveal:nth-child(1) { transition-delay: 0.02s; }
.product-grid .product-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.product-grid .product-card.reveal:nth-child(3) { transition-delay: 0.14s; }
.product-grid .product-card.reveal:nth-child(4) { transition-delay: 0.20s; }
.product-grid .product-card.reveal:nth-child(5) { transition-delay: 0.26s; }
.product-grid .product-card.reveal:nth-child(6) { transition-delay: 0.32s; }
.product-grid .product-card.reveal:nth-child(n+7) { transition-delay: 0.36s; }

@keyframes yoggiFadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes yoggiModalPop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-overlay:not([hidden]) { animation: yoggiFadeIn 0.2s ease; }
.modal-overlay:not([hidden]) .modal-box { animation: yoggiModalPop 0.25s ease; }
.cart-overlay:not([hidden]) { animation: yoggiFadeIn 0.2s ease; }
.checkout-view:not([hidden]) { animation: yoggiFadeIn 0.25s ease; }
.yoggi-modal-overlay:not([hidden]) { animation: yoggiFadeIn 0.2s ease; }
.yoggi-modal-overlay:not([hidden]) .yoggi-modal-box { animation: yoggiModalPop 0.25s ease; }

.content-section-gallery-img, .yoggi-loyalty-qr img { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.content-section-gallery-img:hover, .yoggi-loyalty-qr img:hover { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
.modal-overlay:not([hidden]), .modal-overlay:not([hidden]) .modal-box, .cart-overlay:not([hidden]), .checkout-view:not([hidden]), .yoggi-modal-overlay:not([hidden]), .yoggi-modal-overlay:not([hidden]) .yoggi-modal-box { animation: none !important; }
.product-grid .product-card.reveal { transition-delay: 0s !important; }
}


/* yoggiHeroSeparation:v2 -- separacion visual reforzada (mas notoria) */

.yoggi-site-header {
  border-radius: 0 0 28px 28px;
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.45);
}

main + .content-section {
  margin-top: 2.75rem;
  border-top: 4px solid var(--black);
}
