/* ==========================================================================
   Herederas Repostería — Hoja de estilos oficial (Identidad 100% preservada)
   Paleta original: #6C342C (cacao) | #E0867B (coral) | #F7EDEB (blush) | #B59681 (taupe)
   Tipografía original: Playfair Display, Playfair Display SC, Poppins
   ========================================================================== */

:root {
  --cacao: #6c342c;
  --cacao-dark: #4f241e;
  --coral: #e0867b;
  --coral-dark: #c96d62;
  --taupe: #b59681;
  --taupe-deep: #9c7e6a;
  --blush: #f7edeb;
  --blush-hover: #eedcd8;
  --border-soft: #eadbd8;
  --text-muted: #7c5852;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sc: 'Playfair Display SC', 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 74px;
  --topbar-h: 34px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 28px rgba(108, 52, 44, 0.08);
  --container: 1200px;

  /* Override de tokens de scrollcraft.css con la identidad exacta de Herederas */
  --sc-canvas: #ffffff;
  --sc-surface: #f7edeb;
  --sc-ink: #6c342c;
  --sc-ink-soft: #7c5852;
  --sc-accent: #e0867b;
  --sc-accent-ink: #ffffff;
  --sc-font-display: 'Playfair Display', Georgia, serif;
  --sc-font-text: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Crucial: garantiza que [hidden] siempre prevalezca sobre display:flex / display:grid (filtros, modales, toggles) */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cacao);
  background: var(--white);
  overflow-x: clip;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cacao);
  color: var(--white);
  padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 880px;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Jerarquía tipográfica estandarizada
   ========================================================================== */
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.eyebrow--dark {
  color: var(--cacao);
}

.eyebrow--lined {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow--lined::before {
  content: '';
  display: inline-block;
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--cacao);
}

.section-title--left {
  text-align: left;
}

.section-title--sm {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.section-lead {
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 560px;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cacao);
}

.page-title--left {
  text-align: left;
}

.page-lead {
  margin: 12px auto 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section-pad {
  padding: 68px 0;
}

.section-pad-sm {
  padding: 44px 0;
}

.section-blush-soft {
  background: var(--blush);
}

/* ==========================================================================
   Botones (identidad pastel + cacao original)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--cacao);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--cacao-dark);
}

.btn--soft {
  background: var(--blush);
  color: var(--cacao);
  border-radius: 6px;
}
.btn--soft:hover {
  background: var(--blush-hover);
}

.btn--white-pill {
  background: var(--white);
  color: var(--cacao);
  box-shadow: 0 4px 16px rgba(108, 52, 44, 0.08);
}
.btn--white-pill:hover {
  background: var(--cacao);
  color: var(--white);
}

.btn--outline-pill {
  background: transparent;
  color: var(--cacao);
  border-color: var(--cacao);
}
.btn--outline-pill:hover {
  background: var(--cacao);
  color: var(--white);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--ghost-light:hover {
  background: var(--white);
  color: var(--cacao);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.78rem;
}

.btn--lg {
  padding: 14px 36px;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   TOPBAR SUPERIOR (Estilo switch: Pedir ahora | Consultar pedido)
   ========================================================================== */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  height: var(--topbar-h);
  background: var(--blush);
  border-bottom: 1px solid var(--border-soft);
  color: var(--cacao);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.site-topbar--home {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
}

.site-topbar--home.is-scrolled {
  background: var(--blush);
  border-bottom-color: var(--border-soft);
}

.site-topbar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topbar-switch {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.topbar-switch__btn {
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cacao);
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar-switch__btn:hover {
  background: var(--blush);
}

.topbar-switch__btn.is-active {
  background: var(--cacao);
  color: var(--white);
  font-weight: 600;
}

/* ==========================================================================
   HEADER COMPARTIDO (Sticky estable, transparente arriba solo en home)
   ========================================================================== */
.site-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 1000;
  height: var(--header-h);
  background: var(--taupe);
  transition: top 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-radius 0.25s ease;
}

.site-header.is-topbar-hidden {
  top: 0;
}

.site-header--home {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-h);
  background: transparent;
}

.site-header--home.is-scrolled {
  background: rgba(181, 150, 129, 0.97);
  box-shadow: 0 4px 18px rgba(79, 36, 30, 0.14);
  border-radius: 0 0 20px 20px;
}

.site-header--solid.is-scrolled {
  background: rgba(181, 150, 129, 0.97);
  box-shadow: 0 4px 18px rgba(79, 36, 30, 0.14);
  border-radius: 0 0 20px 20px;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header__brand img {
  height: 40px;
  width: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cacao-dark);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--white);
}

.site-nav__link--cta {
  background: var(--white);
  color: var(--cacao);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.site-nav__link--cta:hover,
.site-nav__link--cta.is-active {
  background: var(--cacao);
  color: var(--white);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__track {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.92;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
}
.site-header__track:hover {
  opacity: 1;
}

.site-header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--taupe-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.social-circle:hover {
  background: var(--cacao);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 7px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--topbar-h) - var(--header-h));
  background: var(--white);
  overflow-y: auto;
  z-index: 999;
}
.site-header.is-topbar-hidden .mobile-drawer {
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
}
.mobile-drawer__nav {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 26px;
}
.mobile-drawer__link {
  padding: 12px 4px;
  border-bottom: 1px solid var(--blush);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--cacao);
}
.mobile-drawer__link.is-active {
  color: var(--coral-dark);
  font-weight: 600;
}
.mobile-drawer__bottom {
  margin-top: auto;
  padding-top: 22px;
}
.mobile-drawer__cta-row {
  margin-top: 0;
}
.mobile-drawer__meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.mobile-drawer__info-line {
  display: block;
}
.mobile-drawer__maps-link {
  display: block;
  color: var(--coral-dark);
  font-weight: 600;
}

/* ==========================================================================
   HERO PRINCIPAL (Fondo #B59681 exacto + foto cuadrada 1080x1080 sin recortes)
   ========================================================================== */
.hero {
  position: relative;
  background: #b59681;
  padding-top: calc(var(--header-h) + 54px);
  padding-bottom: 0;
  min-height: 590px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: end;
}

.hero__text {
  max-width: 500px;
  color: var(--white);
  align-self: center;
  padding-bottom: 52px;
}

.hero__square {
  width: 100%;
  max-width: 760px;
  justify-self: end;
  align-self: end;
  line-height: 0;
}
.hero__square img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.hero__line {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 3.05rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(79, 36, 30, 0.18);
}

.hero__sub {
  margin: 16px 0 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 460px;
}

.hero__ctas {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   CORAZÓN + 4 ICONOS CON LÍNEAS PUNTEADAS + CURVAS FULL-WIDTH + BENTO CATEGORÍAS
   ========================================================================== */
.intro-heart {
  width: 56px;
  height: auto;
  margin: 0 auto 14px;
}

.icons-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}

.icons-track__dots {
  flex: 1 1 50px;
  min-width: 24px;
  height: 0;
  border-top: 2.5px dotted var(--coral);
  margin-top: 44px;
  opacity: 0.78;
}

.icon-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.icon-feature:hover {
  transform: translateY(-4px);
}
.icon-feature__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
}
.icon-feature__circle img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.icon-feature__label {
  font-family: var(--font-sc);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--cacao);
}

/* Curvas full-width en proporción real sin recortar */
.curve-divider {
  width: 100%;
  overflow: visible;
  line-height: 0;
  margin: 6px 0;
}
.curve-divider img {
  width: 100%;
  height: auto;
  display: block;
}
.curve-divider__mobile {
  display: none !important;
}

/* Mosaico Bento exacto a la proporción natural de las 4 fotos (0% recorte) */
.bento-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--blush);
  box-shadow: var(--shadow-soft);
}

.bento-card--postres {
  grid-column: 1 / 3;
  grid-row: 1;
  aspect-ratio: 1050 / 502;
}
.bento-card--galletas {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 497 / 517;
}
.bento-card--brownies {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 497 / 517;
}
.bento-card--tortas {
  grid-column: 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
}
.bento-card--tortas .bento-card__link {
  position: relative;
  height: 100%;
}
.bento-card--tortas .bento-card__link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.bento-card__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bento-card:hover .bento-card__link img {
  transform: scale(1.04);
}

.bento-card__overlay {
  position: absolute;
  inset: 0 0 auto auto;
  padding: 22px 24px;
  background: transparent;
  color: var(--cacao);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}
.bento-card__overlay h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cacao);
}
.bento-card__overlay span {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: var(--cacao);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   CARRUSELES Y TARJETAS DE PRODUCTO (Fotos grandes protagonistas 800x1052)
   ========================================================================== */
.carousel-wrap {
  position: relative;
}

.carousel-wrap--full {
  width: 100%;
}

.product-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.product-track::-webkit-scrollbar {
  display: none;
}

.product-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.product-track.product-track--full {
  padding-left: 32px;
  padding-right: 32px;
}

.product-track > * {
  flex: 0 0 395px;
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

.carousel-btn {
  position: absolute;
  top: 36%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.95);
  color: var(--cacao);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(108, 52, 44, 0.14);
  transition: background 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover {
  background: var(--cacao);
  color: var(--white);
}
.carousel-btn--prev { left: -16px; }
.carousel-btn--next { right: -16px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-sm);
}

.product-card__img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 800 / 1052;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--blush);
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card__img-wrap img {
  transform: scale(1.03);
}

.product-card__vermas {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--cacao);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 10px rgba(79, 36, 30, 0.14);
}

.product-card__body {
  padding: 16px 4px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__tag {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  font-weight: 500;
}

.product-card__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cacao);
}
.product-card__title a:hover {
  color: var(--coral-dark);
}

.product-card__desc {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.product-card__price {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cacao);
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn--dark-card {
  width: 100%;
  background: var(--cacao);
  color: var(--white);
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 0.82rem;
}
.btn--dark-card:hover {
  background: var(--cacao-dark);
}

@media (hover: hover) and (pointer: fine) {
  .product-track .product-card__pedir {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease;
  }
  .product-track .product-card:hover .product-card__pedir,
  .product-track .product-card:focus-within .product-card__pedir {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.product-card__more {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}
.product-card__more:hover {
  color: var(--cacao);
  border-color: var(--cacao);
}

.section-foot-cta {
  text-align: center;
  margin-top: 26px;
}

/* ==========================================================================
   NUESTRAS PREFERIDAS — Banda #F7EDEB + Scroll-Craft Flow (Reveal + Parallax + Spotlight)
   Fotos grandes en proporción natural 800/1052 (cero recortes, cero espacios vacíos)
   ========================================================================== */
.preferred-band {
  position: relative;
  background: var(--blush);
}

.wave-top,
.wave-bottom {
  position: relative;
  z-index: 3;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-top svg,
.wave-bottom svg {
  display: block;
  width: 100%;
  height: 54px;
}

.preferred-inner {
  padding-top: 32px;
  padding-bottom: 42px;
}

.preferred-head {
  text-align: center;
  margin-bottom: 28px;
}
.preferred-head .section-title {
  margin-bottom: 16px;
}

.preferred-track {
  padding-top: 22px;
  padding-bottom: 26px;
}

.preferred-track > * {
  flex: 0 0 355px;
}

.cake-slide {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.cake-slide__media {
  aspect-ratio: 800 / 1052;
  overflow: hidden;
  background: var(--blush);
}
.cake-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cake-slide:hover .cake-slide__media img {
  transform: scale(1.03);
}
.cake-slide figcaption {
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--cacao);
  text-align: center;
}

.preferred-hint {
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.testimonial-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.testimonial-card__quote {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--cacao);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card__author strong {
  display: block;
  font-size: 0.88rem;
  color: var(--cacao);
}
.testimonial-card__author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BLOQUE CUMPLEAÑOS + WOMPI + DOMICILIO + GOOGLE MAPS + INSTAGRAM + FOOTER
   ========================================================================== */
.birthday-band {
  padding: 58px 0 46px;
}

.birthday-band__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.birthday-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.line-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c9b5b0;
  padding: 10px 4px;
  background: transparent;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.line-field input:focus {
  border-bottom-color: var(--cacao);
}

.birthday-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.birthday-form__check a {
  text-decoration: underline;
}

.birthday-form__actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-feedback {
  font-size: 0.84rem;
}
.form-feedback.is-ok {
  color: #2f6b3e;
  font-weight: 500;
}
.form-feedback.is-error {
  color: #b52b27;
  font-weight: 500;
}

.delivery-band {
  background: var(--blush);
}

.delivery-strip {
  background: var(--blush);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
}

.delivery-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  flex-wrap: wrap;
}
.delivery-strip__moto {
  width: 52px;
  height: auto;
}
.delivery-strip__text {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--cacao);
}

/* Bloque Google Maps + NAP */
.maps-band {
  padding: 54px 0;
  background: var(--white);
}

.maps-band__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.maps-band__desc {
  margin: 12px 0 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.maps-band__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.maps-band__list a {
  text-decoration: underline;
  color: var(--cacao);
}

.maps-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.maps-band__frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
  background: var(--blush);
}
.maps-band__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Instagram limpio */
.insta-band {
  padding: 16px 0 44px;
}

.insta-band__header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--cacao);
}

.insta-band__badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cacao);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.insta-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--blush);
}
.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.insta-card:hover img {
  transform: scale(1.05);
}
.insta-card__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(79, 36, 30, 0.85));
  color: var(--white);
  font-size: 0.76rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.insta-card:hover .insta-card__caption {
  opacity: 1;
}

/* Pie institucional con fondo claro cálido */
.footer-main {
  background: #fbf6f5;
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
}

.footer-main__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-main__logo img {
  width: 148px;
  height: auto;
}

.footer-main__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-main__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.88rem;
}
.footer-main__contact .sep {
  opacity: 0.4;
}

.footer-main__links-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-main__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.footer-main__nav a:hover {
  color: var(--cacao);
  text-decoration: underline;
}

.footer-main__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-main__socials img {
  width: 30px;
  height: 30px;
}
.footer-social-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cacao);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social-circle:hover {
  background: var(--coral-dark);
}

.footer-bottom {
  background: #f7edeb;
  border-top: 1px solid var(--border-soft);
  padding: 14px 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Botones flotantes originales */
.floating-controls {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.25s ease;
}
.float-btn:hover {
  transform: scale(1.06);
}
.float-btn--top {
  opacity: 0;
  pointer-events: none;
}
.float-btn--top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.float-btn--wa img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 14px rgba(108, 52, 44, 0.24));
}

/* ==========================================================================
   PÁGINAS INTERNAS (Catálogo, Producto, Torta, Nosotras, FAQs, Legales)
   ========================================================================== */
.page-hero {
  padding: 46px 0 36px;
  text-align: center;
}
.page-hero--blush {
  background: var(--blush);
}
.page-hero--compact {
  padding: 34px 0 28px;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a:hover {
  color: var(--cacao);
  text-decoration: underline;
}
.breadcrumb--center {
  text-align: center;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.filter-pills--sm {
  justify-content: flex-start;
  margin: 0 0 18px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--cacao);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover,
.filter-pill.is-active {
  background: var(--cacao);
  color: var(--white);
  border-color: var(--cacao);
}
.filter-pill--accent {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.catalog-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cta-banner {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner p {
  margin: 8px 0 0;
  color: var(--text-muted);
  max-width: 580px;
}
.cta-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Detalle de producto */
.product-detail__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.product-detail__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--blush);
  box-shadow: var(--shadow-soft);
}
.product-detail__media img {
  width: 100%;
  aspect-ratio: 800 / 1052;
  object-fit: cover;
}

.product-detail__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
}

.product-detail__price {
  margin: 10px 0 16px;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--coral-dark);
}

.product-detail__desc {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.product-detail__variants h2 {
  font-family: var(--font-sc);
  font-size: 1rem;
  margin: 0 0 10px;
}

.variant-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.variant-list__item strong {
  display: block;
  font-size: 0.92rem;
}
.variant-list__item span {
  font-size: 0.86rem;
  color: var(--coral-dark);
  font-weight: 600;
}

.product-detail__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.product-specs {
  margin: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}
.product-specs dt {
  font-weight: 600;
  color: var(--cacao);
}
.product-specs dd {
  margin: 2px 0 0;
  color: var(--text-muted);
}

/* Página ¿Cómo quieres tu torta? */
.cake-steps-band {
  background: var(--blush);
}

.cake-step {
  padding: 36px 0;
}

.cake-step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.cake-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cake-opt__icon {
  height: 62px;
  display: flex;
  align-items: flex-end;
}
.cake-opt__icon img {
  max-height: 58px;
  width: auto;
}

.cake-opt__rule {
  border: 0;
  border-top: 1px solid #d5c1bc;
  margin: 12px 0 14px;
}

.cake-opt__title {
  margin: 0 0 8px;
  font-family: var(--font-sc);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--cacao);
}

.cake-opt__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.cake-opt__list--num {
  padding-left: 18px;
  list-style: decimal;
}

.style-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.style-card__img {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 800 / 1052;
  margin-bottom: 12px;
}
.style-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.style-card__title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--cacao);
}
.style-card__desc {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex: 1;
}

/* Sobre Nosotras (fiel a ref_nosotras.png) */
.about-hero {
  background: var(--blush);
  padding-top: 32px;
}

.about-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 42px;
}

.about-arch {
  width: min(460px, 100%);
  margin: 12px auto 34px;
}
.about-arch img {
  width: 100%;
  border-radius: 240px 240px 10px 10px;
  object-fit: cover;
}

.about-intro {
  max-width: 640px;
}
.about-intro__copy {
  margin: 16px 0 0;
  color: var(--text-muted);
}

.about-story__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.about-story__col p {
  margin: 0 0 14px;
  color: var(--text-muted);
}
.about-story__ctas {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Preguntas frecuentes */
.faq-group {
  margin-bottom: 40px;
}

.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.faq-item__q {
  padding: 16px 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item__q::-webkit-details-marker {
  display: none;
}
.faq-item__q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--coral);
  flex-shrink: 0;
}
.faq-item[open] .faq-item__q::after {
  content: '−';
}

.faq-item__a {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.faq-item__a p {
  margin: 0;
}

.legal-block {
  margin-bottom: 28px;
}
.legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.legal-block p {
  margin: 0;
  color: var(--text-muted);
}
.legal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ==========================================================================
   SISTEMA DE PEDIDOS (/pedir), SEGUIMIENTO (/pedido) Y ADMIN (/admin)
   ========================================================================== */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.order-form,
.order-summary {
  min-width: 0;
}

.order-card {
  background: #f2e5e2;
  border: 0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
  overflow: hidden;
}

.order-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.order-card__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.order-card__head p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 0;
  background: var(--white);
  border-radius: 10px;
  min-width: 0;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.order-item.is-selected {
  background: #e8d2cd;
  box-shadow: 0 4px 14px rgba(108, 52, 44, 0.12);
}

.order-item__img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.order-item__info {
  min-width: 0;
}
.order-item__info h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
}
.order-item__single {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.order-item__select {
  width: 100%;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--white);
  font-size: 0.84rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: var(--blush);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  gap: 2px;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--cacao);
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease, transform 0.15s ease;
}
.qty-btn:hover {
  background: transparent;
  color: var(--coral-dark);
  transform: scale(1.12);
}
.qty-input {
  width: 34px;
  text-align: center;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--cacao);
}

.custom-cake-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: var(--blush);
}
.custom-cake-box__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
.custom-cake-box__fields {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.adiciones-box {
  margin-top: 18px;
}
.adiciones-box h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.adiciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.adicion-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
}
.adicion-chip strong {
  margin-left: auto;
  color: var(--coral-dark);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.84rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  font-size: 0.92rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 52, 44, 0.16);
}
.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.radio-card:has(input:checked) {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--coral);
}
.radio-card input[type="radio"] {
  accent-color: var(--coral-dark);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.radio-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--cacao);
}
.radio-card small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.pickup-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blush);
  font-size: 0.86rem;
}
.pickup-notice a {
  color: var(--coral-dark);
  font-weight: 600;
  margin-left: 6px;
}

.delivery-fields {
  margin-top: 14px;
}

.order-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdecec;
  border: 1px solid #f0b6b4;
  color: #8f1f1c;
  font-size: 0.88rem;
}

/* Resumen sticky */
.order-summary {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.order-summary__card {
  background: var(--blush);
  border-radius: var(--radius-md);
  padding: 22px;
}
.order-summary__card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.order-summary__empty {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.summary-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.summary-list small {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
}
.order-summary__totals {
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid #dec9c4;
  border-bottom: 1px solid #dec9c4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}
.order-summary__totals > div {
  display: flex;
  justify-content: space-between;
}
.order-summary__totals dd {
  margin: 0;
  font-weight: 600;
}
.order-summary__grand {
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 6px;
}
.order-summary__note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Modal confirmación */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(79, 36, 30, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 44px 38px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 50px rgba(79, 36, 30, 0.28);
}
.modal-card__logo {
  width: 96px;
  height: auto;
  margin: 0 auto 18px;
}
.order-code-pill {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 30px;
  background: var(--blush);
  color: var(--cacao);
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}
.modal-card__copy {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modal-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Seguimiento (/pedido) */
.track-search {
  margin: 20px auto 0;
  max-width: 440px;
  display: flex;
  gap: 10px;
}
.track-search input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid #d9c6c1;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.track-card {
  background: #fbf6f5;
  border: 0;
  border-radius: var(--radius-md);
  padding: 28px;
}
.track-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.track-card__top h2 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.track-meta {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--blush);
  color: var(--cacao);
}
.status-badge--confirmado { background: #e8f1fb; color: #1f548c; }
.status-badge--preparacion { background: #fff3df; color: #9a5b08; }
.status-badge--lista { background: #eaf7ee; color: #1f6b3a; }
.status-badge--entregada { background: #2f6b3e; color: var(--white); }
.status-badge--cancelada { background: #fdecec; color: #9c2420; }

.status-timeline {
  position: relative;
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.status-timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-soft);
  z-index: 0;
}
.status-timeline li {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0.48;
}
.status-timeline li span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--cacao);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(108, 52, 44, 0.08);
}
.status-timeline li strong {
  display: block;
  font-size: 0.76rem;
}
.status-timeline li.is-done {
  opacity: 1;
}
.status-timeline li.is-done span {
  background: var(--coral);
  color: var(--white);
}
.status-timeline li.is-current span {
  background: var(--cacao);
  color: var(--white);
}

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  margin-top: 18px;
}
.track-grid > div {
  background: var(--white);
  border-radius: 12px;
  padding: 18px 20px;
}
.track-grid h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-dark);
}
.track-list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.track-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}
.track-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.track-dl dt { color: var(--text-muted); }
.track-dl dd { margin: 0; font-weight: 500; text-align: right; }
.track-dl__total {
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 1rem;
  font-weight: 700;
}
.track-notes {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--blush);
  border-radius: 8px;
  font-size: 0.84rem;
}
.review-cta-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.review-cta-box p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.track-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Admin */
.admin-login-card {
  max-width: 420px;
  margin: 36px auto;
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.admin-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #fdf1ef;
  border-left: 4px solid var(--coral);
  color: var(--cacao);
  font-size: 0.92rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.admin-topbar__actions {
  display: flex;
  gap: 10px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.metric-card {
  padding: 16px;
  border-radius: 10px;
  background: var(--blush);
}
.metric-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.metric-card strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cacao);
}
.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
.admin-order-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--white);
}
.admin-order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--blush);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-order-card__head small {
  display: block;
  color: var(--text-muted);
}
.admin-order-card__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.admin-order-card__controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-order-card__controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 500;
}
.admin-order-card__controls select,
.admin-order-card__controls input,
.admin-order-card__controls textarea {
  padding: 8px 10px;
  border: 1px solid #d9c6c1;
  border-radius: 6px;
  font-size: 0.88rem;
}
.admin-order-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}
.admin-table th {
  background: var(--blush);
  font-weight: 600;
}

/* ==========================================================================
   ANIMACIONES SCROLL-CRAFT (Seguras y accesibles)
   ========================================================================== */
[data-sc-in] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-sc-in].is-in,
[data-sc-in].sc-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-sc-in] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   RESPONSIVE — MÓVIL COMPACTO, LIMPIO Y FÁCIL DE NAVEGAR
   ========================================================================== */
@media (max-width: 1024px) {
  .site-nav,
  .site-header__socials,
  .site-header__track {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .categories-grid,
  .testimonials-grid,
  .catalog-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-layout,
  .product-detail__grid,
  .maps-band__grid,
  .birthday-band__grid,
  .admin-order-card__body {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
  }
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 62px;
  }
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 16px;
  }
  .section-pad {
    padding: 40px 0;
  }
  .section-pad-sm {
    padding: 28px 0;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .site-header__brand img {
    height: 42px;
  }

  /* Hero en móvil: más aire antes de BIENVENIDOS y más separación entre botones y foto */
  .hero {
    min-height: auto;
    padding-top: calc(var(--topbar-h) + var(--header-h) + 46px);
    padding-bottom: 0;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__text {
    padding-bottom: 0;
  }
  .hero__square {
    order: 0;
    max-width: 100%;
    justify-self: center;
    align-self: end;
  }
  .hero__title {
    font-size: 1.85rem;
  }
  .hero__sub {
    font-size: 0.88rem;
    margin-top: 8px;
  }
  .hero__ctas {
    margin-top: 14px;
  }
  .hero__ctas .btn {
    padding: 10px 18px;
    font-size: 0.78rem;
  }

  /* Iconos con líneas punteadas compactas en móvil */
  .intro-heart {
    width: 44px;
    margin-bottom: 10px;
  }
  .icons-track {
    align-items: flex-start;
  }
  .icons-track__dots {
    min-width: 10px;
    margin-top: 28px;
    border-top-width: 2px;
  }
  .icon-feature {
    padding: 2px 3px;
    gap: 5px;
  }
  .icon-feature__circle {
    width: 54px;
    height: 54px;
  }
  .icon-feature__circle img {
    width: 52px;
    height: 52px;
  }
  .icon-feature__label {
    font-size: 0.68rem;
  }

  /* Mosaico Bento compacto en móvil respetando proporciones reales */
  .bento-categories {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .bento-card--postres {
    grid-column: 1 / 3;
    grid-row: 1;
    aspect-ratio: 1050 / 502;
  }
  .bento-card--galletas {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 497 / 517;
  }
  .bento-card--brownies {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 497 / 517;
  }
  .bento-card--tortas {
    grid-column: 1 / 3;
    grid-row: 3;
    aspect-ratio: 4 / 5;
  }
  .bento-card__overlay {
    padding: 10px 10px;
    gap: 2px;
  }
  .bento-card__overlay h3 {
    font-size: 0.96rem;
    line-height: 1.05;
  }
  .bento-card__overlay span {
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .product-track > *,
  .preferred-track > * {
    flex: 0 0 280px;
  }
  .carousel-btn {
    display: none;
  }

  .catalog-grid,
  .catalog-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-card__title {
    font-size: 0.98rem;
  }
  .product-card__desc {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cake-options-grid,
  .about-story__grid,
  .birthday-form__grid,
  .form-grid-2,
  .adiciones-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonios en carrusel loop infinito y arrastrable en móvil (sin flechas ni paginación) */
  .testimonials-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 4px 0;
    cursor: grab;
    user-select: none;
  }
  .testimonials-marquee::-webkit-scrollbar {
    display: none;
  }
  .testimonials-marquee.is-dragging {
    cursor: grabbing;
  }
  .testimonials-marquee.is-looping .testimonials-grid {
    display: flex;
    gap: 14px;
    width: max-content;
    padding: 0 16px;
  }
  .testimonials-marquee.is-looping .testimonial-card {
    flex: 0 0 290px;
    padding: 18px 16px;
  }

  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .footer-main__grid {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-main__logo {
    order: 1;
  }
  .footer-main__logo img {
    width: 195px;
  }
  .footer-main__right {
    display: contents;
  }
  .footer-main__links-row {
    display: contents;
  }
  .footer-main__socials {
    order: 2;
    justify-content: center;
  }
  .footer-main__contact {
    order: 3;
    justify-content: center;
    font-size: 0.84rem;
    gap: 6px 10px;
  }
  .footer-main__nav {
    order: 4;
    justify-content: center;
    gap: 10px 16px;
    font-size: 0.85rem;
    padding-top: 4px;
  }
  .footer-bottom {
    padding: 10px 0;
    font-size: 0.68rem;
  }
  .footer-bottom__inner {
    gap: 6px 12px;
  }

  .order-card,
  .order-summary__card {
    margin-left: -16px;
    margin-right: -16px;
    padding: 20px 16px;
    border-radius: 0;
  }
  .custom-cake-box {
    margin-left: -16px;
    margin-right: -16px;
    padding: 14px 16px;
    border-radius: 0;
  }
  .order-card__head h2 {
    font-size: 1.18rem;
  }
  .order-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }
  .order-item__img {
    width: 56px;
    height: 56px;
  }
  .order-item .qty-stepper {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .status-timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .status-timeline li strong {
    font-size: 0.65rem;
  }
  .curve-divider__desktop {
    display: none !important;
  }
  .curve-divider__mobile {
    display: block !important;
  }
  .wave-top svg,
  .wave-bottom svg {
    height: 30px;
  }
  .floating-controls {
    right: 12px;
    bottom: 14px;
  }
  .float-btn--wa img {
    width: 46px;
    height: 46px;
  }
}
