/* =====================================================
   Sweet Cami — hoja de estilos
   Paleta anclada en el logo: fucsia + dorado + crema cálida
   ===================================================== */

:root {
  --fucsia: #d6006e;
  --fucsia-dark: #a8005a;
  --rosa: #f4a6c6;
  --rosa-soft: #fbdceb;
  --dorado: #e8a020;
  --dorado-dark: #9b5e00; /* dorado oscuro: pasa contraste AA como texto */
  --crema: #fff7f0;
  --crema-rosa: #fff1f7;
  --cacao: #3a2318;
  --cacao-soft: #6b5347;
  --blanco: #ffffff;
  /* Verde WhatsApp oscurecido para que el texto blanco pase AA (5.1:1) */
  --wa: #1e7e34;
  --wa-dark: #166328;

  --shadow-sm: 0 2px 10px rgba(166, 0, 90, 0.08);
  --shadow-md: 0 12px 34px rgba(166, 0, 90, 0.14);
  --shadow-lg: 0 24px 60px rgba(166, 0, 90, 0.20);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1140px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cacao);
  background: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--fucsia);
  color: var(--blanco);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--fucsia-dark); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--fucsia);
  border-color: var(--fucsia);
}
.btn--ghost:hover { background: var(--fucsia); color: var(--blanco); }

.btn--outline {
  background: var(--blanco);
  color: var(--fucsia);
  border-color: var(--rosa);
}
.btn--outline:hover { border-color: var(--fucsia); }

.btn--whatsapp {
  background: var(--wa);
  color: var(--blanco);
  box-shadow: 0 8px 22px rgba(30, 126, 52, 0.35);
}
.btn--whatsapp:hover { background: var(--wa-dark); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rosa-soft);
  transition: box-shadow 0.2s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 58px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav__links a {
  font-weight: 600;
  color: var(--cacao);
  position: relative;
  transition: color 0.15s ease;
}
.nav__links a:not(.nav__cta):hover { color: var(--fucsia); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--dorado);
  transition: width 0.2s ease;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  background: var(--fucsia);
  color: var(--blanco) !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}
.nav__cta:hover { background: var(--fucsia-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--fucsia);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.2rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--rosa-soft) 0%, transparent 70%);
  z-index: -1;
}
.hero__eyebrow {
  color: var(--dorado-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  color: var(--fucsia);
  margin-bottom: 1.1rem;
}
.hero__text {
  font-size: 1.12rem;
  color: var(--cacao-soft);
  max-width: 46ch;
  margin-bottom: 1.8rem;
  white-space: pre-line; /* un Enter en el panel = salto de línea */
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.8rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero__badges span {
  background: var(--blanco);
  border: 1px solid var(--rosa-soft);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cacao-soft);
  box-shadow: var(--shadow-sm);
}
/* Texto de reservas (editable desde el panel) */
.hero__note {
  margin-top: 1.4rem;
  max-width: 52ch;
  background: var(--blanco);
  border: 1px solid var(--rosa-soft);
  border-left: 4px solid var(--fucsia);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-sm);
  color: var(--cacao-soft);
  font-size: 0.97rem;
  text-align: left;
}
.hero__note p + p { margin-top: 0.45rem; }
.hero__note p:first-child { color: var(--cacao); font-weight: 700; }

.hero__art { display: flex; justify-content: center; }
.hero__cake {
  position: relative;
  background: var(--blanco);
  border-radius: 30px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.hero__cake img, .hero__cake video { border-radius: 22px; width: 100%; }
/* Foto o video de portada: 4:3 (o 4:5 si es vertical, como los videos de celular) */
.hero__media {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--crema-rosa);
}
.hero__media.is-portrait { aspect-ratio: 4 / 5; max-height: 70vh; margin: 0 auto; }
.hero__media img, .hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hero__cake::before {
  content: "🎂";
  position: absolute;
  top: -22px; left: -18px;
  font-size: 2.4rem;
  transform: rotate(6deg);
}

/* Animación de entrada (única, orquestada) */
.hero__eyebrow, .hero__title, .hero__text, .hero__actions, .hero__badges, .hero__note {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__title { animation-delay: 0.08s; }
.hero__text { animation-delay: 0.16s; }
.hero__actions { animation-delay: 0.24s; }
.hero__badges { animation-delay: 0.32s; }
.hero__note { animation-delay: 0.4s; }
.hero__cake {
  opacity: 0;
  animation: pop 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pop { to { opacity: 1; transform: rotate(-2deg) scale(1); } }

/* ---------- Barra de promo ---------- */
.promobar {
  background: linear-gradient(90deg, var(--dorado-dark), var(--fucsia));
  color: var(--blanco);
  text-align: center;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
}
.promobar strong { text-decoration: underline; }

/* ---------- Secciones ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.2rem;
}
.section--soft {
  max-width: none;
  background: var(--crema-rosa);
}
.section--soft > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 2.4rem; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--fucsia);
}
.section__sub {
  color: var(--cacao-soft);
  max-width: 54ch;
  margin: 0.6rem auto 0;
}
.section__foot { text-align: center; margin-top: 2rem; }

/* ---------- Filtros ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}
.filters__btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--rosa);
  background: var(--blanco);
  color: var(--fucsia);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filters__btn:hover { border-color: var(--fucsia); }
.filters__btn.is-active {
  background: var(--fucsia);
  color: var(--blanco);
  border-color: var(--fucsia);
}

/* ---------- Grid de productos ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
}
.grid__loading { grid-column: 1 / -1; text-align: center; color: var(--cacao-soft); }
.grid__error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--cacao);
  background: var(--blanco);
  border: 1px solid var(--rosa-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
}
.grid__error .btn { margin-top: 0.9rem; }
/* La barra de promo vive siempre en el DOM (región viva); vacía no ocupa lugar */
.promobar:empty { padding: 0; }

.card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__imgwrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--crema-rosa); }
.card__img { width: 100%; height: 100%; object-fit: cover; }

/* Carrusel de fotos: se desliza con el dedo; en compu, con las flechas */
.card__slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.card__slides::-webkit-scrollbar { display: none; }
.card__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.card__slide--solo { display: block; width: 100%; }
.card__slide:focus-visible { outline-offset: -4px; }
.card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cacao);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.card__nav--prev { left: 0.5rem; }
.card__nav--next { right: 0.5rem; }
.card__imgwrap:hover .card__nav:not(:disabled),
.card__nav:focus-visible { opacity: 1; }
.card__nav:disabled { opacity: 0 !important; pointer-events: none; }
/* En pantallas táctiles se desliza: las flechas se ocultan */
@media (hover: none) { .card__nav { display: none; } }
.card__count {
  position: absolute;
  right: 0.7rem; bottom: 0.7rem;
  background: rgba(58, 35, 24, 0.82);
  color: var(--blanco);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  pointer-events: none;
}
.card__tag {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: var(--dorado);
  color: var(--cacao); /* cacao sobre dorado: 6.6:1 */
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-transform: capitalize;
}
.card__fav {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
}
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--cacao); }
.card__desc { color: var(--cacao-soft); font-size: 0.95rem; margin: 0.4rem 0 1rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.card__price { font-weight: 800; font-size: 1.2rem; color: var(--fucsia); }
.card__price small { font-weight: 600; font-size: 0.75rem; color: var(--cacao-soft); display: block; }
.card__price--ask { font-size: 1.05rem; color: var(--cacao); }
.card__from { font-weight: 700; font-size: 0.85rem; color: var(--cacao-soft); }
.card__view {
  background: var(--fucsia);
  color: var(--blanco);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}
.card__view:hover { background: var(--fucsia-dark); }

/* ---------- Vista del producto ---------- */
.pview {
  width: min(980px, calc(100vw - 2rem));
  max-width: none; max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--blanco);
  color: var(--cacao);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pview::backdrop { background: rgba(58, 35, 24, 0.55); }
body:has(.pview[open]) { overflow: hidden; }
.pview__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pview__close {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.94); color: var(--cacao);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.pview__close:hover { background: var(--rosa-soft); }

.pview__media { background: var(--crema-rosa); display: flex; flex-direction: column; min-width: 0; }
.pview__stage { position: relative; }
.pview__slides {
  display: flex;
  aspect-ratio: 1 / 1;
  max-height: calc(100dvh - 7rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pview__slides::-webkit-scrollbar { display: none; }
.pview__slide {
  flex: 0 0 100%; height: 100%;
  scroll-snap-align: start;
  border: 0; padding: 0; background: none;
  cursor: zoom-in;
}
.pview__slide:focus-visible { outline-offset: -4px; }
.pview__img { width: 100%; height: 100%; object-fit: cover; }
.pview__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.92); color: var(--cacao);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.pview__nav--prev { left: 0.6rem; }
.pview__nav--next { right: 0.6rem; }
.pview__nav:disabled { opacity: 0; pointer-events: none; }
.pview__count {
  position: absolute; right: 0.7rem; bottom: 0.7rem;
  background: rgba(58, 35, 24, 0.82); color: var(--blanco);
  font-size: 0.8rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  pointer-events: none;
}
.pview__thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.7rem; }
.pview__thumb {
  width: 60px; height: 60px; padding: 0;
  border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: none; cursor: pointer;
  opacity: 0.7;
}
.pview__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pview__thumb:hover { opacity: 1; }
.pview__thumb[aria-current="true"] { border-color: var(--fucsia); opacity: 1; }

.pview__info {
  padding: 2rem 1.8rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  min-width: 0;
}
.pview__tag {
  align-self: flex-start;
  background: var(--dorado); color: var(--cacao);
  font-size: 0.75rem; font-weight: 800;
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.pview__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15;
  color: var(--cacao);
  padding-right: 2.5rem; /* lugar para la × */
}
.pview__desc { color: var(--cacao-soft); white-space: pre-line; }
.pview__sizes { border: 0; }
.pview__sizes legend { font-weight: 800; margin-bottom: 0.5rem; }
.pview__options { display: flex; flex-direction: column; gap: 0.5rem; }
.size-opt {
  display: flex; align-items: center; gap: 0.7rem;
  border: 2px solid var(--rosa-soft); border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.size-opt:hover { border-color: var(--rosa); }
.size-opt input { accent-color: var(--fucsia); width: 1.1rem; height: 1.1rem; flex: none; margin: 0; }
.size-opt__label { flex: 1; font-weight: 700; }
.size-opt__price { font-weight: 800; color: var(--fucsia); white-space: nowrap; }
.size-opt:has(input:checked) { border-color: var(--fucsia); background: var(--crema-rosa); }
.size-opt:has(input:focus-visible) { outline: 3px solid var(--cacao); outline-offset: 2px; }
.pview__buy {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 0.8rem;
  padding-top: 0.4rem;
}
.pview__price strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--fucsia); line-height: 1.1; }
.pview__price small { font-weight: 600; font-size: 0.85rem; color: var(--cacao-soft); }
.pview__price--ask { font-size: 1.3rem; font-weight: 800; color: var(--cacao); }
.pview__order { justify-content: center; }

@media (max-width: 720px) {
  /* En el celular ocupa toda la pantalla: fotos arriba y datos abajo */
  .pview { width: 100vw; height: 100dvh; border-radius: 0; }
  .pview__grid { grid-template-columns: 1fr; height: 100%; max-height: none; align-content: start; }
  .pview__slides { aspect-ratio: 1 / 1; max-height: 62dvh; }
  .pview__thumbs { display: none; }
  .pview__info { padding: 1.3rem 1.2rem 0; }
  .pview__title { padding-right: 0; }
  /* Precio y botón siempre a mano al pie */
  .pview__buy {
    position: sticky; bottom: 0;
    background: var(--blanco);
    margin: 0 -1.2rem;
    padding: 0.8rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 20px rgba(166, 0, 90, 0.08);
    flex-direction: row; align-items: center; justify-content: space-between;
  }
  .pview__price strong { font-size: 1.45rem; }
  .pview__price { min-width: 0; }
  .pview__sizename { display: none; } /* el tamaño elegido ya se ve marcado arriba */
  .pview__order { padding: 0.8rem 1.1rem; flex: none; }
}

/* ---------- Visor de fotos ampliadas ---------- */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(20, 12, 8, 0.97);
  color: var(--blanco);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 12, 8, 0.6); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(rgba(20, 12, 8, 0.8), transparent);
}
.lightbox__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; flex: 1; }
.lightbox__count { font-weight: 700; font-size: 0.9rem; opacity: 0.9; }
.lightbox__close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.15); color: var(--blanco);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__slides {
  display: flex; height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.lightbox__slides::-webkit-scrollbar { display: none; }
.lightbox__slide {
  flex: 0 0 100%; height: 100%;
  scroll-snap-align: center;
  display: grid; place-items: center;
  padding: 4rem 1rem 2rem;
  overflow: hidden;
}
/* La foto siempre entra entera en la pantalla (el alto se limita con la altura de la
   ventana: un porcentaje acá no alcanza y las fotos verticales se salían por abajo). */
.lightbox__slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 6.5rem);
  max-height: calc(100dvh - 6.5rem);
  object-fit: contain;
  border-radius: 8px;
}
/* En pantallas grandes: margen para las flechas y un tope de tamaño cómodo */
@media (min-width: 700px) {
  .lightbox__slide img { max-width: min(calc(100vw - 10rem), 1200px); }
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.92); color: var(--cacao);
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav:disabled { opacity: 0; pointer-events: none; }
.lightbox.is-single .lightbox__nav { display: none; }
.lightbox :focus-visible { outline-color: var(--blanco); }
@media (hover: none) { .lightbox__nav { width: 44px; height: 44px; font-size: 1.7rem; background: rgba(255, 255, 255, 0.75); } }

/* ---------- Galería: carrusel automático ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.3rem 0.1rem 0.6rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .grid__loading { flex: 1; padding: 1rem 0; }
.carousel__slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
}
.carousel__open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--crema-rosa);
  cursor: zoom-in;
}
.carousel__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
/* El contorno de foco va por dentro: en los bordes del carrusel no se corta */
.carousel__open:focus-visible { outline: 3px solid var(--blanco); outline-offset: -6px; box-shadow: inset 0 0 0 9px var(--cacao); }
.carousel__open:hover img { transform: scale(1.05); }
.carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(58, 35, 24, 0.85));
  color: var(--blanco);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
}
.carousel__nav {
  position: absolute;
  top: calc(50% - 1.6rem);
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cacao);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  z-index: 1;
}
.carousel__nav--prev { left: -0.6rem; }
.carousel__nav--next { right: -0.6rem; }
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.8rem;
}
.carousel__pause {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--rosa);
  background: var(--blanco);
  color: var(--fucsia);
  font-size: 0.95rem;
  cursor: pointer;
}
.carousel__pause:hover { border-color: var(--fucsia); }
.carousel__dots { display: flex; flex-wrap: wrap; gap: 0.2rem; }
/* Área táctil de 24px; el punto visible es más chico */
.carousel__dot {
  width: 24px; height: 24px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.carousel__dot::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rosa);
  transition: transform 0.2s ease, background 0.2s ease;
}
.carousel__dot[aria-current="true"]::before { background: var(--fucsia); transform: scale(1.3); }
/* Si todas las fotos entran en pantalla, no hay nada que mover */
.carousel.is-static .carousel__nav,
.carousel.is-static .carousel__controls,
.carousel.is-empty .carousel__nav,
.carousel.is-empty .carousel__controls { display: none; }
@media (max-width: 820px) {
  .carousel__slide { flex-basis: calc((100% - 1rem) / 2); }
}
@media (max-width: 480px) {
  .carousel__slide { flex-basis: 82%; }
  .carousel__nav { display: none; }
}

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 2.5rem;
}
.about__media {
  background: radial-gradient(circle, var(--rosa-soft), var(--crema-rosa));
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  justify-content: center;
}
.about__media img { max-width: 240px; height: auto; }
/* Foto propia (en vez del logo): ocupa todo el recuadro */
.about__media.is-photo { padding: 0; overflow: hidden; }
.about__media.is-photo img { max-width: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text p { color: var(--cacao-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.about__text .btn { margin-top: 0.6rem; }

/* ---------- Pedidos ---------- */
.order {
  background: linear-gradient(135deg, var(--fucsia), var(--fucsia-dark));
  color: var(--blanco);
  padding: 4rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.order::before, .order::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.order::before { width: 300px; height: 300px; top: -100px; left: -80px; }
.order::after { width: 220px; height: 220px; bottom: -90px; right: -50px; }
.order__inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.order__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.order__text { margin: 0.9rem auto 1.8rem; max-width: 52ch; opacity: 0.95; font-size: 1.08rem; }
.order__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.order__note { margin-top: 1.2rem; font-weight: 600; opacity: 0.9; }

/* ---------- Footer ---------- */
.footer { background: var(--cacao); color: var(--crema); padding: 2.5rem 1.2rem 1.5rem; }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer__logo { height: 70px; width: auto; background: var(--blanco); border-radius: 12px; padding: 6px; }
.footer__col { font-size: 0.95rem; opacity: 0.85; }
.footer__city { font-weight: 700; opacity: 1; }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.footer__social a:hover { background: var(--fucsia); }
.footer__social svg { width: 22px; height: 22px; fill: var(--crema); }
.footer__legal { text-align: center; margin-top: 2rem; font-size: 0.85rem; opacity: 0.6; }

/* ---------- FAB WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  background: var(--wa);
  color: var(--blanco);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(30, 126, 52, 0.45);
  z-index: 60;
  transition: transform 0.15s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring 2s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__note { margin-left: auto; margin-right: auto; }
  .hero__art { order: -1; max-width: 340px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about__media { order: -1; }
  .about__media img { max-width: 180px; }
  .about__media.is-photo { max-width: 340px; width: 100%; margin: 0 auto; }
  .about__media.is-photo img { max-width: none; }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    background: var(--blanco);
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: flex; z-index: 55; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1rem; }
  .btn { font-size: 0.95rem; padding: 0.8rem 1.3rem; }
}

/* ---------- Accesibilidad: respetar reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__eyebrow, .hero__title, .hero__text, .hero__actions, .hero__badges, .hero__note, .hero__cake {
    opacity: 1; transform: none;
  }
}

/* Focus visible para navegación por teclado (cacao: alto contraste sobre fondos claros) */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cacao);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Sobre fondos oscuros o fucsia, el contorno va en claro */
.order :focus-visible,
.promobar :focus-visible { outline-color: var(--blanco); }
.footer :focus-visible { outline-color: var(--crema); }
