/* Little Sugar — rosas de su etiqueta, con toque lila de sus florecitas */
:root {
  --fondo: #FFF6F9;
  --blush: #FCE4EE;
  --rosa: #F6C1D6;
  --berry: #C93F78;
  --lila: #E8DCF8;
  --ciruela: #3A1430;
  --suave: #7E5B6E;
  --blanco: #FFFFFF;
  --letra: 'Urbanist', system-ui, sans-serif;
  --lado: clamp(12px, 3vw, 32px);
  --r-grande: clamp(22px, 3vw, 36px);
  --r-medio: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--fondo); color: var(--ciruela); font: 500 1.0625rem/1.55 var(--letra); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, .carril:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
p { margin: 0; }
b { font-weight: 700; }

/* Botones tipo píldora */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 1.5rem; border: 0; border-radius: 999px; font: 700 1rem var(--letra); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s; }
.pill:active { transform: scale(.97); }
.pill--oscura { background: var(--ciruela); color: var(--blush); }
.pill--oscura:hover { background: #511d43; }
.pill--clara { background: var(--blanco); color: var(--ciruela); box-shadow: inset 0 0 0 1.5px rgba(58, 20, 48, .12); }
.pill--clara:hover { box-shadow: inset 0 0 0 1.5px var(--ciruela); }
.pill--chica { min-height: 42px; padding: 0 1.1rem; font-size: .95rem; }
.pill--ancha { width: 100%; }

/* Barra superior flotante */
.barra-sup { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 10px var(--lado) 0; padding: 7px 7px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(58, 20, 48, .06), 0 8px 24px -16px rgba(58, 20, 48, .35); }
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.marca img { width: 40px; height: 40px; border-radius: 50%; }
.barra-sup__nav { display: flex; gap: .3rem; }
.barra-sup__nav a { padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.barra-sup__nav a:hover { background: var(--blush); }
@media (max-width: 720px) { .barra-sup__nav { display: none; } }

/* Portada en mosaico */
.mosaico { display: grid; gap: 12px; padding: 12px var(--lado) 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; border-radius: var(--r-grande); overflow: hidden; }
.tile--intro { grid-column: 1 / -1; background: var(--blush); padding: clamp(1.6rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; }
.tile__sello { position: absolute; top: clamp(1rem, 2.5vw, 2rem); right: clamp(1rem, 2.5vw, 2rem); width: clamp(92px, 11vw, 150px); border-radius: 50%; transform: rotate(8deg); box-shadow: 0 10px 24px -12px rgba(58, 20, 48, .45); }
@media (max-width: 899px) { .tile--intro { min-height: 0; padding-top: 8.4rem; } }
.tile--intro h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; max-width: 13ch; }
.tile--intro > p { margin-top: 1.1rem; max-width: 34ch; color: var(--suave); font-size: 1.12rem; }
.tile__acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.tile--foto { display: block; aspect-ratio: 4 / 5; }
.tile--foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile--foto:hover img { transform: scale(1.04); }
.chip-vidrio { position: absolute; left: 12px; bottom: 12px; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: .9rem; }
.tile--lila { grid-column: 1 / -1; background: var(--lila); padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; }
.tile__frase { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tile--lila p:not(.tile__frase) { color: var(--suave); }
@media (min-width: 900px) {
  .mosaico { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(250px, 21vw, 320px)); }
  .tile--intro { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 0; }
  .tile--a { grid-column: 8 / 11; grid-row: 1 / 3; aspect-ratio: auto; }
  .tile--b { grid-column: 11 / 13; grid-row: 1 / 2; aspect-ratio: auto; }
  .tile--lila { grid-column: 11 / 13; grid-row: 2 / 3; }
}
/* Entrada de la portada (una sola vez) */
.mosaico .tile { animation: aparecer .7s cubic-bezier(.2, .7, .2, 1) both; }
.mosaico .tile--a { animation-delay: .08s; }
.mosaico .tile--b { animation-delay: .16s; }
.mosaico .tile--lila { animation-delay: .24s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* Menú */
.menu { padding: clamp(4rem, 9vw, 7rem) var(--lado) clamp(3rem, 6vw, 5rem); max-width: 1320px; margin: 0 auto; }
.menu__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; margin: 0 clamp(0px, 1.5vw, 1rem) 2rem; }
.menu h2, .pasos h2, .galeria h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; }
.filtros { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.filtro { flex: none; min-height: 42px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: var(--blanco); color: var(--ciruela); font: 600 .95rem var(--letra); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(58, 20, 48, .1); }
.filtro:hover { box-shadow: inset 0 0 0 1.5px var(--ciruela); }
.filtro.activo { background: var(--ciruela); color: var(--blush); box-shadow: none; }

.postres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 12px; }
@media (min-width: 900px) {
  /* 6 columnas: se repite 3 chicas + 2 anchas, así ninguna fila queda con hueco */
  .postres { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.6rem 16px; }
  .postre { grid-column: span 2; }
  .postre:nth-child(5n+4), .postre:nth-child(5n+5) { grid-column: span 3; }
  .postre:nth-child(5n+4) .postre__foto img, .postre:nth-child(5n+5) .postre__foto img { aspect-ratio: 5 / 4; }
}
.postre[hidden] { display: none; }
.postre__foto { position: relative; border-radius: var(--r-medio); overflow: hidden; background: var(--blush); margin-bottom: .9rem; }
.postre__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.postre h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.025em; padding: 0 .2rem; }
.postre p { margin-top: .3rem; padding: 0 .2rem; color: var(--suave); font-size: .95rem; line-height: 1.45; }
@media (max-width: 899px) { .postre p { font-size: .88rem; } }
.postre.resalta .postre__foto { box-shadow: 0 0 0 3px var(--berry); }

/* + y contador sobre la foto */
.cantidad { position: absolute; right: 10px; bottom: 10px; }
.agregar { width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--blanco); color: var(--ciruela); font: 500 1.8rem/1 var(--letra); cursor: pointer; box-shadow: 0 6px 18px -6px rgba(58, 20, 48, .45); transition: transform .15s, background .2s; display: grid; place-content: center; }
.agregar:hover { background: var(--ciruela); color: var(--blush); }
.agregar:active { transform: scale(.92); }
.contador { display: flex; align-items: center; gap: 2px; height: 50px; padding: 4px; border-radius: 999px; background: var(--ciruela); color: var(--blush); box-shadow: 0 6px 18px -6px rgba(58, 20, 48, .5); animation: abrirPill .22s ease-out; }
.contador button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 500 1.4rem/1 var(--letra); cursor: pointer; }
.contador button:hover { background: rgba(255, 255, 255, .14); }
.contador output { min-width: 1.6rem; text-align: center; font-weight: 800; font-size: 1.05rem; }
@keyframes abrirPill { from { transform: scale(.7); opacity: 0; } }

/* Cómo pedir */
.pasos { margin: 0 var(--lado); padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem); border-radius: var(--r-grande); background: var(--ciruela); color: var(--blush); }
.pasos ol { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
@media (min-width: 800px) { .pasos ol { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; } }
.pasos li { display: grid; gap: .9rem; align-content: start; }
.pasos li span { display: grid; place-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rosa); color: var(--ciruela); font-weight: 800; font-size: 1.15rem; }
.pasos li p { color: rgba(252, 228, 238, .78); max-width: 30ch; }
.pasos li b { color: var(--blush); }

/* Galería */
.galeria { padding: clamp(4rem, 9vw, 7rem) 0 1rem; }
.galeria__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; padding: 0 calc(var(--lado) + clamp(0px, 1.5vw, 1rem)); margin-bottom: 1.8rem; }
.carril { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--lado); padding: 0 var(--lado) 1rem; scrollbar-width: thin; scrollbar-color: var(--rosa) transparent; }
.carril img { flex: none; width: clamp(230px, 26vw, 340px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-medio); scroll-snap-align: start; }

/* Pie */
.pie { margin: clamp(3rem, 7vw, 5rem) var(--lado) 0; padding: 2rem clamp(1.2rem, 4vw, 3rem) 0; border-radius: var(--r-grande) var(--r-grande) 0 0; background: var(--blush); overflow: hidden; }
.pie__arriba { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.pie__logo { width: 84px; height: 84px; border-radius: 50%; }
.pie__ligas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; color: var(--suave); font-weight: 600; }
.pie__ligas a { color: var(--ciruela); text-decoration: none; }
.pie__ligas a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pie__nombre { margin: 2.4rem 0 -.17em; font-size: clamp(3.6rem, 17.5vw, 15.5rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: var(--rosa); white-space: nowrap; }

/* Crédito Alkanza (pieza estándar: ver _plantilla/README.md) */
.akz{margin-top:1.4rem;font-size:.7rem;line-height:1.4}
.akz a{display:inline-flex;align-items:center;gap:.5em;color:inherit;text-decoration:none;opacity:.75;transition:opacity .2s}
.akz a:hover,.akz a:focus-visible{opacity:1}
.akz svg{width:1.7em;height:auto;flex:none}
.akz b{font-weight:600}
.pie .akz{margin-top:1.6rem;color:var(--suave)}

/* Botón del pedido */
.bolsa { position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(400px, calc(100% - 24px)); display: flex; align-items: center; gap: .8rem; padding: 7px 8px 7px 7px; border: 0; border-radius: 999px; background: var(--ciruela); color: var(--blush); font: 700 1.02rem var(--letra); text-align: left; cursor: pointer; box-shadow: 0 16px 34px -10px rgba(58, 20, 48, .55); animation: subirBolsa .35s cubic-bezier(.2, .8, .2, 1.15); }
.bolsa[hidden] { display: none; }
.bolsa__num { display: grid; place-content: center; min-width: 44px; height: 44px; padding: 0 .5rem; border-radius: 999px; background: var(--rosa); color: var(--ciruela); font-weight: 800; }
.bolsa__txt { flex: 1; }
.bolsa__fotos { display: flex; }
.bolsa__fotos img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ciruela); margin-left: -12px; }
.bolsa.recien .bolsa__num { animation: latido .35s ease-out; }
@keyframes subirBolsa { from { transform: translate(-50%, 140%); } }
@keyframes latido { 50% { transform: scale(1.18); } }

/* Hoja del pedido */
.hoja { border: 0; padding: 0; width: min(480px, 100%); max-height: 92vh; border-radius: 28px; background: var(--fondo); color: var(--ciruela); }
.hoja::backdrop { background: rgba(58, 20, 48, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hoja__in { padding: 1.5rem 1.3rem 1.4rem; }
.hoja__cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hoja__cab h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.cerrar { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--blush); color: var(--ciruela); font: 500 1.6rem/1 var(--letra); cursor: pointer; }
.lista { list-style: none; margin: 0 0 1.2rem; padding: 6px; display: grid; gap: 6px; background: var(--blanco); border-radius: 20px; }
.lista li { display: flex; align-items: center; gap: .8rem; padding: 6px; border-radius: 14px; }
.lista li + li { box-shadow: 0 -1px 0 var(--blush); }
.lista img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.lista .nom { flex: 1; font-weight: 700; line-height: 1.2; }
.lista .contador { height: 42px; padding: 3px; box-shadow: none; animation: none; }
.lista .contador button { width: 36px; height: 36px; }
.campos { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.campo { display: block; font-weight: 700; font-size: .92rem; }
.campo span { font-weight: 500; color: var(--suave); margin-left: .25rem; }
.campo input { display: block; width: 100%; margin-top: .35rem; padding: .85rem 1rem; border: 0; border-radius: 14px; background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--blush); color: var(--ciruela); font: 500 1rem var(--letra); }
.campo input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--berry); }
.hoja__nota { margin-top: .8rem; text-align: center; font-size: .88rem; color: var(--suave); }
@media (max-width: 560px) {
  .hoja { margin: auto 0 0; max-width: 100%; width: 100%; border-radius: 28px 28px 0 0; }
  .hoja[open] { animation: subirHoja .3s cubic-bezier(.2, .8, .2, 1); }
  .hoja__in { padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); }
}
@keyframes subirHoja { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
