/* =============================================================
   Creaciones Abi — hoja de estilos
   Paleta y medidas en las variables de :root (línea de abajo).
   Cambiando esos colores cambia todo el sitio de una.
   ============================================================= */

:root {
  --fondo:        #FFF7FC;
  --fondo-2:      #FBECF7;
  --fondo-3:      #F5DCEE;
  --rosa:         #DB4E96;
  --rosa-2:       #BC3B7C;
  --tinta:        #4A2E52;
  --tinta-suave:  #7D6088;
  --lila:         #9159C8;
  --wa:           #25D366;
  --wa-2:         #14a84a;
  --blanco:       #FFFFFF;
  --borde:        #F2D9EA;

  --radio:        18px;
  --radio-sm:     12px;
  --sombra:       0 2px 4px rgba(90,42,99,.05), 0 12px 28px rgba(90,42,99,.09);
  --sombra-alta:  0 8px 16px rgba(90,42,99,.10), 0 24px 48px rgba(90,42,99,.16);
  --ancho:        1140px;
  --header-h:     68px;

  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --script: "Pacifico", "Brush Script MT", cursive;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--rosa-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.6vw, 3.2rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 20px; }
.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;
}
.muted { color: var(--tinta-suave); }
.small { font-size: .85rem; }
.mt { margin-top: 1.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--tinta); color: var(--fondo); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 4px; }

/* ---------- Aviso de demo ---------- */
.demo-banner {
  background: #FFF4D6; border-bottom: 1px solid #EBD79A; color: #6B5312;
  font-size: .88rem; text-align: center; padding: 10px 16px;
}
.demo-banner p { margin: 0; }
.demo-banner code { background: rgba(0,0,0,.07); padding: 1px 6px; border-radius: 5px; font-size: .95em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 90;
  background: rgba(255,247,252,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--borde);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  background: linear-gradient(140deg, var(--rosa), var(--lila)); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.32rem; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--script); font-size: 1.12rem; font-weight: 400; color: var(--rosa-2); }
.brand-text small { color: var(--tinta-suave); font-size: .74rem; }

.nav-toggle {
  display: grid; place-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--borde); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--fondo); border-bottom: 1px solid var(--borde);
  padding: 12px 20px 20px;
  flex-direction: column; gap: 4px;
  box-shadow: var(--sombra);
}
.nav.abierto { display: flex; }
.nav a {
  text-decoration: none; color: var(--tinta); font-weight: 500;
  padding: 11px 6px; border-radius: 10px;
}
.nav a:hover { background: var(--fondo-2); }
.nav .btn { margin-top: 8px; justify-content: center; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 4px;
    background: transparent; border: 0; padding: 0; box-shadow: none;
  }
  .nav a { padding: 8px 12px; font-size: .95rem; }
  .nav .btn { margin-top: 0; margin-left: 8px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: .96rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; fill: currentColor; flex: 0 0 18px; }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--tinta); color: var(--fondo); box-shadow: var(--sombra); }
.btn-primary:hover { background: #3A2141; }
.btn-wa { background: var(--wa); color: #05301a; box-shadow: 0 8px 20px rgba(37,211,102,.28); }
.btn-wa:hover { background: var(--wa-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--rosa); color: var(--rosa-2); }
.btn-ghost:hover { background: var(--fondo-2); }

/* ---------- Hero ---------- */
.hero { padding: 30px 0 34px; background: linear-gradient(170deg, var(--fondo) 0%, #F7E9FA 55%, var(--fondo-2) 100%); }
.hero-inner { display: grid; gap: 20px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700;
  color: var(--rosa); margin: 0 0 .6rem;
}
.hero h1 em {
  font-family: var(--script); font-style: normal; font-weight: 400;
  color: var(--rosa); white-space: nowrap; line-height: 1;
}
.lead { font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--tinta-suave); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 18px; }
.hero-actions .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-badges {
  list-style: none; margin: 0 0 4px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: .88rem; color: var(--tinta-suave);
}
.hero-art { order: -1; justify-self: center; width: 150px; }
.hero-art img { filter: drop-shadow(0 18px 36px rgba(61,49,41,.16)); }

@media (min-width: 620px) {
  .hero { padding: 44px 0 48px; }
  .section { padding: 56px 0; }
  .hero-art { width: 210px; }
}
@media (min-width: 880px) {
  .hero { padding: 64px 0 60px; }
  .hero-inner { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .hero-art { order: 0; width: 100%; max-width: 420px; }
}

/* ---------- Secciones ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--fondo-2); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-sub { color: var(--tinta-suave); margin: 0; }

/* ---------- Toolbar del catálogo ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 26px; }
.search { position: relative; }
.search .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: var(--tinta-suave); pointer-events: none;
}
.search input {
  width: 100%; padding: 13px 16px 13px 42px;
  font-family: var(--sans); font-size: 1rem; color: var(--tinta);
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 999px;
}
.search input::placeholder { color: #B098BC; }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.filtros::-webkit-scrollbar { height: 4px; }
.filtros::-webkit-scrollbar-thumb { background: var(--fondo-3); border-radius: 4px; }
.chip-filtro {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--blanco); border: 1px solid var(--borde);
  font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--tinta-suave);
  transition: background-color .18s, color .18s, border-color .18s;
}
.chip-filtro:hover { border-color: var(--rosa); color: var(--rosa-2); }
.chip-filtro[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--fondo); }

@media (min-width: 720px) {
  .toolbar { grid-template-columns: 300px 1fr; align-items: center; }
}

/* ---------- Grilla de productos ---------- */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
@media (min-width: 600px) {
  .grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
}

.card {
  display: flex; flex-direction: column;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden; box-shadow: var(--sombra);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--fondo-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media button {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.etiqueta {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--tinta); color: var(--fondo);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.etiqueta.pedido { background: var(--lila); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 13px 13px 15px; }
.card-cat { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rosa); font-weight: 700; margin: 0 0 5px; }
.card-titulo { font-size: 1rem; margin: 0 0 5px; }
.card-titulo button {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
.card-titulo button:hover { color: var(--rosa-2); }
.card-desc {
  flex: 1; font-size: .84rem; line-height: 1.5; color: var(--tinta-suave); margin: 0 0 12px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.precio { font-family: var(--display); font-size: 1.08rem; font-weight: 700; color: var(--tinta); margin: 0 0 12px; }
.precio small { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--tinta-suave); }
.card .btn { margin-top: auto; padding-inline: 12px; }
@media (min-width: 600px) {
  .card-body { padding: 16px 16px 18px; }
  .card-cat { font-size: .72rem; letter-spacing: .12em; }
  .card-titulo { font-size: 1.08rem; }
  .card-desc { font-size: .9rem; margin-bottom: 14px; }
  .precio { font-size: 1.2rem; margin-bottom: 14px; }
}

.empty { text-align: center; color: var(--tinta-suave); padding: 36px 0; }

/* ---------- Pasos ---------- */
.pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 18px; }
.pasos li {
  counter-increment: paso;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 24px 22px 22px; position: relative;
}
.pasos li::before {
  content: counter(paso);
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 12px;
  background: var(--fondo-2); color: var(--rosa-2); border-radius: 50%;
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
}
.pasos h3 { margin-bottom: .3em; }
.pasos p { margin: 0; color: var(--tinta-suave); font-size: .94rem; }
@media (min-width: 760px) { .pasos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sobre mí ---------- */
.sobre-inner { display: grid; gap: 28px; align-items: center; }
.sobre-art {
  justify-self: center;
  width: min(230px, 65vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--fondo-2), var(--fondo-3));
  border: 1px solid var(--borde);
  display: grid; place-items: center;
}
.sobre-art span { font-family: var(--script); font-size: 4.6rem; color: var(--rosa); padding-bottom: 14px; }
.sobre-copy p { color: var(--tinta-suave); max-width: 56ch; }
@media (min-width: 880px) { .sobre-inner { grid-template-columns: 300px 1fr; gap: 56px; } }

/* ---------- Contacto ---------- */
.section-contacto { background: var(--fondo-2); }
.contacto-grid { display: grid; gap: 20px; }
@media (min-width: 880px) { .contacto-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.card-contacto {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 24px 22px;
}
.card-contacto.destacada { border-color: var(--wa); box-shadow: 0 10px 30px rgba(37,211,102,.14); }
.card-contacto h3 { margin-bottom: .5em; }
.wa-num { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin: 0 0 .2em; letter-spacing: .01em; }
.card-contacto .muted { font-size: .9rem; }
.card-contacto .btn { margin-top: 10px; }

.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.datos li { display: grid; gap: 2px; font-size: .95rem; }
.datos span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--tinta-suave); font-weight: 700; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .94rem; }
.checks li { padding-left: 26px; position: relative; color: var(--tinta-suave); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--lila); font-weight: 700;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--fondo-2); border: 1px solid var(--borde); border-radius: 999px;
  padding: 5px 13px; font-size: .84rem; color: var(--tinta-suave);
}

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(140deg, #5B3564, var(--tinta)); color: var(--fondo-2); padding: 40px 0 92px; }
.footer-inner { display: grid; gap: 14px; text-align: center; }
.site-footer strong { font-family: var(--script); font-weight: 400; font-size: 1.1rem; }
.site-footer .muted { color: #C6B0CE; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--fondo-2); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { text-decoration: underline; }
@media (min-width: 880px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Botón flotante ---------- */
.fab-wa {
  position: fixed; z-index: 80;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 18px; border-radius: 999px;
  background: var(--wa); color: #06331a; text-decoration: none;
  font-weight: 700; font-size: .93rem;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  transition: transform .2s ease;
}
.fab-wa:hover { transform: translateY(-3px); }
.fab-wa svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 24px; }
@media (max-width: 560px) {
  .fab-wa { padding: 15px; }
  .fab-wa span { display: none; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(60,30,66,.6); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; z-index: 1;
  width: min(900px, 100%); max-height: 92vh; overflow: auto;
  background: var(--fondo); border-radius: var(--radio); box-shadow: var(--sombra-alta);
  display: grid;
  animation: aparecer .22s ease;
}
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,247,252,.95); color: var(--tinta);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: var(--sombra);
}
.modal-media { background: var(--fondo-2); overflow: hidden; display: flex; flex-direction: column; }
.modal-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; flex: 0 0 auto; }

.modal-miniaturas { display: flex; gap: 8px; padding: 10px; overflow-x: auto; flex: 0 0 auto; }
.modal-miniaturas::-webkit-scrollbar { height: 4px; }
.modal-miniaturas::-webkit-scrollbar-thumb { background: var(--fondo-3); border-radius: 4px; }
.modal-miniaturas button {
  flex: 0 0 auto; width: 62px; height: 62px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: var(--blanco); transition: border-color .18s ease;
}
.modal-miniaturas button:hover { border-color: var(--fondo-3); }
.modal-miniaturas button[aria-current="true"] { border-color: var(--rosa); }
.modal-miniaturas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 22px 22px 26px; }
.modal-body .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rosa); font-weight: 700; margin: 0 0 6px; }
.modal-body h3 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.modal-body > p:not(.cat):not(.precio) { color: var(--tinta-suave); }
.modal-body .chips { margin-bottom: 20px; }
body.sin-scroll { overflow: hidden; }
@media (min-width: 760px) {
  .modal-box { grid-template-columns: 1fr 1fr; }
  .modal-media { height: 100%; }
  .modal-media > img { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
  .modal-body { padding: 34px 32px; align-self: center; }
}
