/* Joy Tienda de Detalles — demo local
   Paleta tomada del logo de Instagram (rosa, lavanda, menta, celeste acuarela). */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rosa: #f6c6e8;
  --rosa-suave: #fdeef8;
  --rosa-medio: #f3d0f0;
  --lavanda: #decfef;
  --lavanda-profunda: #b89ad4;
  --menta: #cceae0;
  --menta-viva: #248d85;
  --menta-suave: #e2f4ef;
  --celeste: #d4f0f8;
  --celeste-suave: #eaf7fb;
  --nube: #fffdfb;
  --papel: #fff9fc;
  --texto: #3d4450;
  --texto-suave: #5a6c73;
  --acento: #a45a92;
  --acento-oscuro: #7d3e70;
  --linea: rgba(164, 90, 146, 0.16);
  --sombra: 0 16px 40px rgba(122, 70, 120, 0.12);
  --sombra-suave: 0 8px 24px rgba(122, 70, 120, 0.08);
  --radio: 28px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  color: var(--texto);
  background:
    radial-gradient(900px 600px at 8% -10%, #fde4f6 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #d8f3f8 0%, transparent 55%),
    radial-gradient(700px 500px at 80% 100%, #d8efe6 0%, transparent 50%),
    radial-gradient(600px 400px at 0% 80%, #eadcff 0%, transparent 50%),
    #fbf7fb;
  min-height: 100vh;
  line-height: 1.5;
}

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

a { color: var(--menta-viva); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Decorative watercolor blobs */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blobs svg { width: 100%; height: 100%; display: block; }

.wrap { position: relative; z-index: 1; }

/* Header */
header.nav {
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(16px);
  background: rgba(255, 250, 253, 0.78);
  border-bottom: 1px solid var(--linea);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(204, 234, 224, 0.8);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--acento-oscuro);
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--texto-suave);
  font-weight: 400;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem 0.85rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--texto-suave);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
}
.nav-links a:hover { color: var(--acento); }

/* Google button (maquetado) */
.btn-google {
  appearance: none;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
  white-space: nowrap;
}
.btn-google:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25); }
.btn-google:focus-visible { outline: 3px solid #4285f4; outline-offset: 2px; }
.btn-google svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-google .btn-google-label-short { display: none; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 2.8rem;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.cloud {
  position: relative;
  background: var(--nube);
  border-radius: 48px;
  padding: 2.4rem 1.6rem 2.2rem;
  box-shadow: var(--sombra);
  max-width: 760px;
  width: 100%;
  overflow: hidden;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.cloud::before {
  width: 180px; height: 110px;
  background: rgba(204, 234, 224, 0.55);
  top: -40px; left: -30px;
  filter: blur(2px);
}
.cloud::after {
  width: 200px; height: 130px;
  background: rgba(212, 240, 248, 0.6);
  bottom: -50px; right: -40px;
}

.logo-halo {
  width: 176px;
  height: 176px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, #fff 42%, rgba(226, 244, 239, 0.9) 58%, rgba(246, 198, 232, 0.55) 72%, rgba(212, 240, 248, 0.3) 82%, transparent 88%);
  position: relative;
  z-index: 1;
}
.logo-halo img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  color: var(--acento-oscuro);
  position: relative;
  z-index: 1;
}
.hero .tagline {
  margin: 0 auto 1.4rem;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  color: var(--texto-suave);
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 500;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-ig {
  background: linear-gradient(135deg, #e39bcf 0%, #a45a92 55%, #7d3e70 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(164, 90, 146, 0.28);
}
.btn-ig:hover { color: #fff; }

.btn-ghost {
  background: var(--menta-suave);
  color: var(--menta-viva);
  box-shadow: var(--sombra-suave);
}

/* Catalog */
#inicio,
#catalogo {
  scroll-margin-top: 5.5rem;
}

.catalog {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.4rem 1.25rem 3.5rem;
}

.catalog h2 {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 600;
  color: var(--acento-oscuro);
}

.demo-banner {
  background: linear-gradient(90deg, #fdeef8, #eef6ff 50%, #e2f4ef);
  border: 1px dashed rgba(164, 90, 146, 0.4);
  color: var(--acento-oscuro);
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  font-weight: 500;
  margin: 0 auto 1.4rem;
  max-width: 820px;
  font-size: 0.98rem;
}

.filters {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.search input {
  width: 100%;
  border: 1px solid var(--linea);
  background: #fff;
  border-radius: 999px;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--texto);
  box-shadow: var(--sombra-suave);
}
.search input:focus {
  outline: 3px solid rgba(36, 141, 133, 0.35);
  border-color: var(--menta-viva);
}
.search svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--texto-suave);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.chip {
  border: 1px solid var(--linea);
  background: rgba(255, 255, 255, 0.8);
  color: var(--texto-suave);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover { border-color: var(--lavanda-profunda); color: var(--acento); }
.chip[aria-pressed="true"] {
  background: var(--menta-viva);
  border-color: var(--menta-viva);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--papel);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}
.card-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #efe6ee;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.card-cat {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--menta-viva);
  font-weight: 500;
}
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.25;
}
.card p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
}
.price {
  margin-top: auto;
  align-self: flex-start;
  background: var(--menta-suave);
  color: var(--menta-viva);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.card-consult {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--acento);
  text-decoration: none;
  font-weight: 500;
}
.card-consult:hover { text-decoration: underline; }

.empty {
  text-align: center;
  color: var(--texto-suave);
  padding: 2rem 1rem;
  grid-column: 1 / -1;
}

/* Footer */
footer {
  border-top: 1px solid var(--linea);
  background: rgba(255, 250, 253, 0.7);
  padding: 2rem 1.25rem 2.4rem;
  text-align: center;
  color: var(--texto-suave);
}
footer .foot-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
}
footer strong { color: var(--acento-oscuro); font-weight: 600; }
footer p { margin: 0.2rem 0; }
footer .fine { font-size: 0.82rem; opacity: 0.85; }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 44, 60, 0.45);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  z-index: 1;
  background: var(--nube);
  border-radius: 28px;
  max-width: 560px;
  width: min(560px, 100%);
  max-height: min(90vh, 840px);
  overflow: auto;
  box-shadow: var(--sombra);
  padding: 1.2rem 1.2rem 1.4rem;
}
.modal-card.modal-product {
  max-width: 720px;
  width: min(720px, 100%);
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .modal-card.modal-product {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 1.3rem;
  }
}
.modal-card img.product-shot {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  background: #efe6ee;
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: none;
  background: var(--rosa-suave);
  color: var(--acento-oscuro);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.modal h2 { margin: 0 0 0.5rem; color: var(--acento-oscuro); font-size: 1.35rem; }
.modal p { margin: 0 0 0.7rem; color: var(--texto-suave); }

@media (max-width: 640px) {
  .brand-text span { display: none; }
  .nav-links a { display: none; }
  .btn-google .btn-google-label { display: none; }
  .btn-google .btn-google-label-short { display: inline; }
  .hero { padding: 1.1rem 1rem 1.5rem; }
  .cloud { border-radius: 36px; padding: 1.35rem 1.1rem 1.25rem; }
  .logo-halo { width: 128px; height: 128px; margin-bottom: 0.65rem; }
  .logo-halo img { width: 96px; height: 96px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .tagline { margin-bottom: 0.95rem; font-size: 1.05rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .card-body { padding: 0.7rem 0.7rem 0.85rem; }
  .card h3 { font-size: 0.95rem; }
  .card p { display: none; }
  .hero { padding-top: 1.4rem; }
}

@media (max-width: 699px) {
  .modal-card.modal-product { padding-top: 2.5rem; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
