:root {
  --pink: #f6b9c9;      /* fondo exacto del logo */
  --blush: #fdeef3;
  --cream: #fffafb;
  --rose: #c93d7f;
  --rose-deep: #a52a68;
  --ink: #3d1f29;
  --muted: #7a4b5a;
  --shadow: 0 2px 4px rgba(122,40,70,.06), 0 10px 28px rgba(122,40,70,.10);
  --shadow-hover: 0 4px 8px rgba(122,40,70,.08), 0 18px 40px rgba(122,40,70,.16);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: Fredoka, system-ui, sans-serif; font-weight: 400; background: var(--blush); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* Banner principal */
header { padding: 40px 16px 110px; position: relative; overflow: hidden;
         background: radial-gradient(60% 70% at 85% 30%, rgba(246,185,201,.55), transparent 70%),
                     radial-gradient(50% 60% at 5% 90%, rgba(246,185,201,.45), transparent 70%), #fff; }
.hero { position: relative; z-index: 1; max-width: 1120px; margin: auto; display: grid; gap: 36px; align-items: center; text-align: center; }
.logo { width: min(240px, 60vw); margin: 0 auto; }

/* Destellos que caen */
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i { position: absolute; top: -24px; width: var(--s); height: var(--s); background: var(--c);
          -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 22 10.3 20.4C4.2 14.9 0 11.1 0 6.5 0 2.8 2.9 0 6.6 0c2.1 0 4.1 1 5.4 2.5C13.3 1 15.3 0 17.4 0 21.1 0 24 2.8 24 6.5c0 4.6-4.2 8.4-10.3 13.9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 22 10.3 20.4C4.2 14.9 0 11.1 0 6.5 0 2.8 2.9 0 6.6 0c2.1 0 4.1 1 5.4 2.5C13.3 1 15.3 0 17.4 0 21.1 0 24 2.8 24 6.5c0 4.6-4.2 8.4-10.3 13.9z'/%3E%3C/svg%3E") center / contain no-repeat;
          animation: fall var(--d) linear var(--delay) infinite; opacity: .85; }
.snow i.dot { -webkit-mask: none; mask: none; border-radius: 50%; }
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(-15deg); }
  50%  { transform: translate(var(--x), 50vh) rotate(15deg); }
  100% { transform: translate(0, 110vh) rotate(-15deg); }
}
h1 { margin-top: 32px; font-weight: 600; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.02em; color: var(--rose-deep); text-wrap: balance; }
.tagline { margin-top: 14px; font-weight: 500; font-size: 17px; color: var(--ink); opacity: .8; }
.cta { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn.ghost { background: #fff; color: var(--rose-deep); box-shadow: inset 0 0 0 2px var(--rose), 0 6px 16px rgba(168,50,90,.12); }
.btn.ghost:hover { background: var(--blush); }
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center; max-width: 520px; margin: 0 auto; width: 100%; }
.collage img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 20px; box-shadow: 0 6px 14px rgba(122,40,70,.14), 0 24px 48px rgba(122,40,70,.18);
               animation: rise 1s cubic-bezier(.16,1,.3,1) both; }
.collage img:nth-child(1) { transform: rotate(-4deg) translateY(14px); animation-delay: .08s; }
.collage img:nth-child(2) { transform: translateY(-14px); }
.collage img:nth-child(3) { transform: rotate(4deg) translateY(14px); animation-delay: .16s; }
header::after { /* borde festoneado de pastelería */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: radial-gradient(circle at 50% 100%, var(--blush) 15px, transparent 15.5px) 0 0 / 30px 16px repeat-x;
}

/* Barra de categorías */
.cats { position: relative; z-index: 2; max-width: 760px; margin: -72px auto 0; padding: 12px; background: var(--cream); border-radius: 28px;
        box-shadow: var(--shadow-hover); }
.cats-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px 14px; border-radius: 20px; background: var(--blush);
          text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: background .2s, transform .3s cubic-bezier(.16,1,.3,1); }
.cats a:hover { background: var(--pink); transform: translateY(-2px); }
.cats svg { width: 46px; height: 46px; }
.soon { text-align: center; color: var(--muted); font-weight: 500; padding: 8px 0 16px; }
.cats-wrap { padding: 0 16px; }
.cats a { white-space: nowrap; }
.cats-arrow { display: none; }
@media (max-width: 719px) {
  .cats-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
  .cats-track::-webkit-scrollbar { display: none; }
  .cats-track a { flex: 0 0 108px; scroll-snap-align: start; }
  .cats-arrow { display: grid; place-items: center; position: absolute; top: 50%; z-index: 1; width: 38px; height: 38px; margin-top: -19px; padding: 0;
                border: 0; border-radius: 50%; background: #fff; color: var(--rose-deep); box-shadow: var(--shadow-hover); cursor: pointer; }
  .cats-arrow[hidden] { display: none; }
  .cats-arrow svg { width: 20px; height: 20px; }
  .cats-arrow.prev { left: -8px; }
  .cats-arrow.next { right: -8px; }
}

@media (min-width: 880px) {
  header { padding: 56px 16px 130px; }
  .hero { grid-template-columns: 1.15fr 1fr; text-align: left; gap: 48px; }
  .logo { margin: 0; }
  .cta { justify-content: flex-start; }
  .collage { max-width: none; gap: 16px; }
  .cats a { flex-direction: row; justify-content: center; gap: 12px; padding: 18px 12px; font-size: 17px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
       background: var(--rose); color: #fff; font-weight: 600; border-radius: 999px; padding: 12px 22px;
       transition: background .2s, transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s; box-shadow: 0 6px 16px rgba(168,50,90,.28); }
.btn:hover { background: var(--rose-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

main { max-width: 1120px; margin: auto; padding: 0 16px 120px; }
section { padding-top: clamp(72px, 9vw, 112px); scroll-margin-top: 8px; }
h2 { font-family: Pacifico, cursive; font-weight: 400; color: var(--rose); font-size: clamp(30px, 6vw, 42px); line-height: 1.3;
     display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 32px; text-wrap: balance; }
h2 svg { width: 16px; height: 16px; fill: var(--pink); flex: none; }
h2 svg:last-child { width: 11px; height: 11px; align-self: flex-start; margin-top: 10px; }


.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { background: var(--cream); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
        transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .ph { display: block; overflow: hidden; background: var(--pink); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--rose-deep); }
.card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 46%; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.card:hover img { transform: scale(1.04); }
.body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.card p { font-size: 13.5px; line-height: 1.45; color: var(--muted); flex: 1; }
.price { font-weight: 600; color: var(--rose); font-size: 15px; margin-top: 4px; }
.card .btn { padding: 10px 14px; margin-top: 6px; font-size: 14px; box-shadow: none; }

footer { background: var(--cream); text-align: center; padding: 40px 16px 110px; position: relative; color: var(--rose-deep); font-weight: 600; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: radial-gradient(circle at 50% 100%, var(--cream) 15px, transparent 15.5px) 0 0 / 30px 16px repeat-x; }
footer img { width: 150px; margin: 0 auto 12px; }

.fab { position: fixed; right: 24px; bottom: 24px; z-index: 10; padding: 18px 28px; font-size: 19px; gap: 10px; box-shadow: 0 10px 26px rgba(168,50,90,.38); }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
  .body { padding: 18px 18px 20px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14.5px; }
}
/* Página de detalle */
.bar { background: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 8; box-shadow: 0 1px 0 rgba(122,40,70,.08); }
.bar-in { max-width: 1120px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar img { width: 92px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--rose-deep); font-weight: 600; text-decoration: none; padding: 8px 4px; }
.back:hover { color: var(--rose); }
.detail { max-width: 1120px; margin: auto; padding: 32px 16px 0; display: grid; gap: 32px; }
.gal-main { border-radius: 26px; overflow: hidden; background: var(--pink); box-shadow: var(--shadow); }
.gal-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 46%; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--pink);
                 box-shadow: inset 0 0 0 3px transparent; opacity: .7; transition: opacity .2s; }
.thumbs button img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--rose); outline-offset: -3px; }
.thumbs button:hover { opacity: 1; }
.thumbs button:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 2px; }
.info h1 { margin: 0; font-size: clamp(30px, 4.4vw, 46px); }
.info .cat { display: inline-block; margin-top: 10px; color: var(--muted); font-weight: 500; text-decoration: none; }
.info .cat:hover { color: var(--rose-deep); }
.info .big-price { margin-top: 24px; font-size: 28px; font-weight: 600; color: var(--rose); }
.info .lead { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 46ch; }
.info .btn-lg { margin-top: 32px; width: 100%; padding: 16px 24px; font-size: 18px; }
.info .btn-lg svg { width: 22px; height: 22px; }
.info .hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.more { max-width: 1120px; margin: auto; padding: clamp(80px, 11vw, 136px) 16px 140px; }
.notfound { text-align: center; padding: 80px 16px; }
.notfound .btn { margin-top: 18px; }
@media (min-width: 880px) {
  .detail { grid-template-columns: 1.05fr 1fr; gap: 64px; padding-top: 48px; align-items: start; }
  .info { position: sticky; top: 96px; padding-top: 24px; }
  .info .btn-lg { width: auto; }
}

@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
#producto { padding: 0; }
@media (min-width: 880px) { .fab { right: 32px; bottom: 32px; } }

/* Reseñas */
.reviews { max-width: 760px; margin: auto; padding: clamp(80px, 11vw, 136px) 16px 0; }
/* Títulos de sección en la página de producto: un paso por debajo del nombre del producto */
.reviews h2, .more h2 { font-size: clamp(28px, 4.4vw, 38px); margin-bottom: 32px; }
.reviews .avg { text-align: center; color: var(--muted); font-weight: 500; }
.comment { background: var(--cream); border-radius: 28px; padding: 22px 22px 18px; box-shadow: var(--shadow); }
.comment-row { display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--pink); color: var(--rose); display: grid; place-items: center; }
.avatar svg { width: 20px; height: 18px; }
.comment textarea { flex: 1; min-width: 0; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); background: transparent; border: 0; resize: none;
  padding: 10px 0; field-sizing: content; min-height: 2lh; max-height: 10lh; }
.comment textarea::placeholder { color: var(--muted); }
.comment textarea:focus { outline: none; }
.comment:focus-within { box-shadow: inset 0 0 0 2px var(--pink), var(--shadow); }
.comment-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(122,40,70,.08); }
.comment-foot .hint { flex: 1; font-size: 14px; color: var(--muted); }
.comment-foot .hint.error { color: var(--rose-deep); font-weight: 500; }
.comment .btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; padding: 11px 24px; box-shadow: none; }
.comment .btn:disabled { opacity: .6; cursor: wait; }
.rev-count { margin-top: 56px; font-size: 20px; font-weight: 600; }
.rev-list { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 12px; }
.rev-list li { display: flex; gap: 12px; background: var(--cream); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); }
.rev-list strong { color: var(--rose-deep); font-weight: 600; }
.rev-list p { margin-top: 2px; line-height: 1.5; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.admin { padding-bottom: 80px; }
.admin .rev-list li { display: grid; gap: 4px; }
.admin .cat { color: var(--muted); font-weight: 500; text-decoration: none; }
.admin small { color: var(--muted); }
.acciones { display: flex; gap: 8px; margin-top: 10px; }
.acciones .btn { font: inherit; font-weight: 500; border: 0; cursor: pointer; padding: 9px 18px; box-shadow: none; }
.acciones .btn:disabled { opacity: .5; }
/* Formulario de la página de admin */
.rev-form { margin-top: 24px; background: var(--cream); border-radius: 24px; padding: 22px 18px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.rev-form label { display: grid; gap: 6px; font-weight: 500; }
.rev-form input { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--pink); border-radius: 14px; padding: 12px 14px; }
.rev-form input:focus-visible { outline: none; border-color: var(--rose); }
.rev-form .btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; justify-self: start; }
.rev-form .hint { font-size: 14px; color: var(--muted); }
/* Títulos largos: en Fredoka, la cursiva queda para los títulos cortos */
h2.h2-plain { font-family: Fredoka, system-ui, sans-serif; font-weight: 600; color: var(--rose-deep); font-size: clamp(24px, 3.6vw, 32px); letter-spacing: -.01em; line-height: 1.2; }
h2.h2-plain svg:last-child { margin-top: 2px; }
.fab svg { width: 24px; height: 24px; }
/* Nota destacada del producto (ej. precios para colegios) */
.note { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13.5px; font-weight: 500; line-height: 1.35;
  color: var(--rose-deep); background: var(--blush); border-radius: 12px; padding: 7px 10px; text-decoration: none; transition: background .2s; }
.note:hover { background: var(--pink); }
.note svg { width: 16px; height: 16px; flex: none; }
.note-lg { margin-top: 14px; font-size: 16px; padding: 10px 14px; border-radius: 14px; }
.note-lg svg { width: 18px; height: 18px; }

/* Sello "Preventa" sobre la foto */
.card .ph, .gal-main { position: relative; }
.sello { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 7px 14px; border-radius: 999px;
         background: var(--rose-deep); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
         box-shadow: 0 6px 16px rgba(120,30,70,.28); pointer-events: none; }
.gal-main .sello { top: 18px; left: 18px; font-size: 14.5px; padding: 8px 16px; }
