@font-face {
  font-family: "Blue Winter";
  src: url("/blue-winter.woff2") format("woff2");
  font-display: swap;
}

:root {
  --vino: #7d2f52;
  --rosa: #d0628c;
  --rosa-medio: #c2577f;
  --malva: #9a5574;
  --borde: #f4a3bf;
  --fondo-boton: rgba(255, 255, 255, .72);
}

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

html { min-height: 100%; background: #fde3ec; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(40px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  color: var(--vino);
  font-family: "Blue Winter", "Quicksand", "Nunito", system-ui, sans-serif;
  letter-spacing: .01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, #fff6f9 0%, #fde3ec 55%, #f9d2df 100%);
}

/* Pétalos */
.petalos { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petalos i {
  position: absolute;
  top: -40px;
  border-radius: 60% 60% 60% 0;
  opacity: .8;
  animation: caer linear infinite;
}
@keyframes caer {
  0%   { transform: translate3d(0, -5vh, 0) rotate(var(--r)); }
  50%  { transform: translate3d(var(--dx), 55vh, 0) rotate(calc(var(--r) + 180deg)); }
  100% { transform: translate3d(0, 115vh, 0) rotate(calc(var(--r) + 360deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .petalos i { animation: none; top: var(--y); }
}

.contenedor {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
}

/* Perfil */
.perfil { text-align: center; }
.logo {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 22px rgba(176, 70, 110, .28), 0 0 0 6px rgba(255, 255, 255, .55);
}
.nombre { font-weight: 400; font-size: 30px; letter-spacing: .12em; color: var(--rosa-medio); }
.usuario { margin-top: 2px; font-size: 14px; color: var(--malva); }
.titulo { margin-top: 18px; font-size: 21px; line-height: 1.2; }
.titulo em { font-style: normal; color: var(--rosa); }
.lema { margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--malva); }
.ubicacion { margin-top: 6px; font-size: 14px; color: var(--rosa-medio); }

/* Links */
.links { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 9px 18px 9px 9px;
  border: 1.5px solid var(--borde);
  border-radius: 999px;
  background: var(--fondo-boton);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--vino);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(176, 70, 110, .12);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.link:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 6px 18px rgba(176, 70, 110, .22); }
.link:active { transform: translateY(0); }
.link:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }

.icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rosa);
}
.icono svg { width: 22px; height: 22px; fill: #fff; }

.texto { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.texto strong { font-weight: 400; font-size: 18px; }
.texto span { font-size: 13px; color: var(--malva); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flecha { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--borde); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.link.destacado { background: var(--rosa); border-color: var(--rosa); color: #fff; box-shadow: 0 4px 14px rgba(176, 70, 110, .35); }
.link.destacado:hover { background: #c4557f; }
.link.destacado .icono { background: #fff; }
.link.destacado .icono svg { fill: var(--rosa); }
.link.destacado .texto span { color: #fde3ec; }
.link.destacado .flecha { stroke: #fde3ec; }

/* Pie */
.pie { position: relative; z-index: 1; margin-top: 36px; font-family: system-ui, sans-serif; font-size: 12px; }
.pie a { color: var(--malva); text-decoration: none; opacity: .75; }
.pie a:hover { opacity: 1; text-decoration: underline; }

@media (min-width: 600px) {
  body { padding-top: 64px; }
  .nombre { font-size: 34px; }
  .titulo { font-size: 23px; }
}

/* ---------- Pestañas ---------- */
.contenedor { max-width: 1040px; }
.seccion[hidden] { display: none; }
#redes .links { max-width: 440px; margin-left: auto; margin-right: auto; }
.pestanas {
  display: flex;
  gap: 6px;
  width: max-content;
  margin: 24px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  border: 1.5px solid var(--borde);
}
.pestanas a {
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--malva);
  text-decoration: none;
  font-size: 16px;
}
.pestanas a.activa { background: var(--rosa); color: #fff; }
.pestanas a:not(.activa):hover { background: #fff; color: var(--vino); }

/* ---------- Filtro por categoría (sin JavaScript) ---------- */
.filtro-radio { position: absolute; opacity: 0; pointer-events: none; }
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 18px; }
.filtros label {
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--borde);
  background: rgba(255, 255, 255, .55);
  color: var(--vino);
  font-size: 14px;
  transition: background-color .15s ease;
}
.filtros label:hover { background: #fff; }
.filtro-radio:focus-visible + .filtros label { outline: none; }

/* ---------- Productos ---------- */
.productos { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 980px) { .productos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.producto {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  border: 1.5px solid #f9cfdc;
  box-shadow: 0 3px 14px rgba(176, 70, 110, .12);
  scroll-margin-top: 16px;
}
.producto:target { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(208, 98, 140, .35); }
.foto { position: relative; aspect-ratio: 1; background: #fde2ea; }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.etiqueta {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--rosa-medio);
  font-size: 11px;
}
.info { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; }
.info h2 { font-weight: 400; font-size: 17px; line-height: 1.15; color: var(--vino); }
.info p { font-size: 13px; line-height: 1.3; color: var(--malva); }
.precio { margin: 2px 0 10px; color: var(--rosa-medio) !important; font-size: 14px !important; }
.pedir {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--rosa);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(176, 70, 110, .3);
  transition: background-color .15s ease, transform .15s ease;
}
.pedir:hover { background: #c4557f; transform: translateY(-1px); }
.pedir:focus-visible { outline: 3px solid var(--vino); outline-offset: 2px; }
.pedir svg { width: 18px; height: 18px; fill: #fff; flex: none; }

.contacto-final { margin: 32px auto 0; max-width: 440px; text-align: center; }
.contacto-final .link { text-align: left; }
.contacto-final p { margin-bottom: 12px; color: var(--malva); font-size: 15px; }
.vacio { display: none; text-align: center; color: var(--malva); margin-top: 12px; }


/* Generado: pétalos */
.petalos i:nth-child(1){left:30.6%;width:18px;height:13px;background:#f4a3bf;--r:220deg;--dx:58px;--y:53.4vh;animation-duration:15.3s;animation-delay:-10.2s}
.petalos i:nth-child(2){left:43.3%;width:14px;height:10px;background:#f9cfdc;--r:214deg;--dx:14px;--y:64.9vh;animation-duration:19.4s;animation-delay:-2.5s}
.petalos i:nth-child(3){left:33.5%;width:14px;height:10px;background:#f9cfdc;--r:349deg;--dx:3px;--y:64.1vh;animation-duration:15.0s;animation-delay:-16.1s}
.petalos i:nth-child(4){left:53.6%;width:14px;height:10px;background:#f9cfdc;--r:87deg;--dx:49px;--y:54.0vh;animation-duration:20.2s;animation-delay:-5.2s}
.petalos i:nth-child(5){left:64.5%;width:14px;height:10px;background:#fde2ea;--r:12deg;--dx:36px;--y:47.7vh;animation-duration:21.6s;animation-delay:-4.0s}
.petalos i:nth-child(6){left:12.6%;width:14px;height:10px;background:#f4a3bf;--r:33deg;--dx:-49px;--y:20.8vh;animation-duration:17.8s;animation-delay:-18.9s}
.petalos i:nth-child(7){left:47.9%;width:22px;height:15px;background:#fde2ea;--r:250deg;--dx:41px;--y:23.3vh;animation-duration:14.3s;animation-delay:-18.1s}
.petalos i:nth-child(8){left:21.3%;width:14px;height:10px;background:#f4a3bf;--r:187deg;--dx:24px;--y:73.6vh;animation-duration:12.1s;animation-delay:-2.0s}
.petalos i:nth-child(9){left:69.1%;width:10px;height:7px;background:#f7b6cc;--r:230deg;--dx:-49px;--y:47.6vh;animation-duration:21.1s;animation-delay:-12.1s}
.petalos i:nth-child(10){left:18.5%;width:18px;height:13px;background:#fde2ea;--r:206deg;--dx:14px;--y:30.8vh;animation-duration:12.4s;animation-delay:-2.1s}
.petalos i:nth-child(11){left:58.0%;width:14px;height:10px;background:#f7b6cc;--r:224deg;--dx:-47px;--y:70.6vh;animation-duration:13.7s;animation-delay:-15.1s}
.petalos i:nth-child(12){left:54.2%;width:10px;height:7px;background:#f7b6cc;--r:57deg;--dx:1px;--y:48.4vh;animation-duration:21.9s;animation-delay:-5.7s}
.petalos i:nth-child(13){left:87.4%;width:10px;height:7px;background:#f7b6cc;--r:12deg;--dx:-35px;--y:91.8vh;animation-duration:21.1s;animation-delay:-2.4s}
.petalos i:nth-child(14){left:97.9%;width:22px;height:15px;background:#f4a3bf;--r:240deg;--dx:-20px;--y:12.5vh;animation-duration:17.6s;animation-delay:-20.2s}
.petalos i:nth-child(15){left:22.3%;width:18px;height:13px;background:#f7b6cc;--r:260deg;--dx:25px;--y:86.8vh;animation-duration:20.9s;animation-delay:-8.4s}
.petalos i:nth-child(16){left:84.7%;width:22px;height:15px;background:#f4a3bf;--r:344deg;--dx:51px;--y:1.6vh;animation-duration:14.4s;animation-delay:-15.3s}
.petalos i:nth-child(17){left:9.2%;width:10px;height:7px;background:#fde2ea;--r:154deg;--dx:10px;--y:27.9vh;animation-duration:17.6s;animation-delay:-15.6s}
.petalos i:nth-child(18){left:7.9%;width:10px;height:7px;background:#f9cfdc;--r:329deg;--dx:-9px;--y:13.2vh;animation-duration:12.7s;animation-delay:-21.3s}
/* Generado: filtros del catálogo */
#cat-todo:checked ~ .filtros label[for=cat-todo],
#cat-flores:checked ~ .filtros label[for=cat-flores],
#cat-regalos:checked ~ .filtros label[for=cat-regalos],
#cat-accesorios:checked ~ .filtros label[for=cat-accesorios],
#cat-decoracion:checked ~ .filtros label[for=cat-decoracion] { background: var(--vino); border-color: var(--vino); color: #fff; }
#cat-flores:checked ~ .productos .producto:not([data-cat=flores]),
#cat-regalos:checked ~ .productos .producto:not([data-cat=regalos]),
#cat-accesorios:checked ~ .productos .producto:not([data-cat=accesorios]),
#cat-decoracion:checked ~ .productos .producto:not([data-cat=decoracion]) { display: none; }
