/* Tipografías alojadas en la web (variables, subconjunto latino: incluye acentos, ñ, ¿¡ y comillas).
 Se declaran los mismos grosores que entregaba Google Fonts, así las negritas se ven idénticas (el archivo se descarga una sola vez). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/fraunces-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/fraunces-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/fraunces-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 600; font-display: swap; src: url(fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/outfit.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/outfit.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/outfit.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/outfit.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/caveat.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/caveat.woff2) format('woff2'); }

/* Letras de reemplazo ajustadas al ancho de las definitivas: solo se ven mientras cargan las tipografías
   y evitan que el título cambie de cantidad de líneas (la página no salta). */
@font-face { font-family: 'Fraunces Fallback'; font-style: normal; font-weight: 400; src: local('Georgia'); size-adjust: 85.7%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces Fallback'; font-style: normal; font-weight: 600 800; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 78%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces Fallback'; font-style: italic; font-weight: 400 600; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 86%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* en celular el título es más chico y corta distinto: el reemplazo necesita otra proporción */
@media (max-width: 560px) {
  @font-face { font-family: 'Fraunces Fallback'; font-style: normal; font-weight: 600 800; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 88%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
}
@font-face { font-family: 'Outfit Fallback'; font-style: normal; font-weight: 300 600; src: local('Arial'), local('ArialMT'); size-adjust: 117%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat Fallback'; font-style: normal; font-weight: 500 700; src: local('Comic Sans MS'), local('ComicSansMS'); size-adjust: 78.8%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #F7EFE2;
  --cream-2: #EFE2CC;
  --paper: #FFFBF4;
  --ink: #2A1D16;
  --ink-2: #5B4637;
  --terracotta: #C4552D;
  --terracotta-d: #9E3F1E;
  --saffron: #F0A93B;
  --saffron-d: #C9831B;
  --indigo: #1F3A6B;
  --nazar: #3B8FD9;
  --olive: #6E7A3A;
  --wa: #1FAF5B;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(70, 35, 15, .35);
  --serif: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --sans: 'Outfit', 'Outfit Fallback', system-ui, sans-serif;
  --hand: 'Caveat', 'Caveat Fallback', cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* textura de papel */
  background-image: radial-gradient(rgba(120, 70, 30, .06) 1px, transparent 1px);
  background-size: 18px 18px;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.ital { font-style: italic; color: var(--terracotta); font-weight: 400; }
.hand { font-family: var(--hand); color: var(--indigo); font-weight: 700; font-size: 1.15em; display: inline-block; transform: rotate(-3deg); }
.hand-sub { font-family: var(--hand); font-size: 1.6rem; color: var(--terracotta); margin: 0 0 .1em; transform: rotate(-2deg); display: inline-block; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 0; font-weight: 500; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 22px -10px var(--terracotta); }
.btn-primary:hover { background: var(--terracotta-d); }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--saffron); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; font-size: 1.05rem; box-shadow: 0 10px 22px -10px var(--wa); }
.btn-wa:hover { background: #17924b; }
.btn-wa:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 48px);
  background: rgba(247, 239, 226, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: rgba(42, 29, 22, .1); }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-text { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.logo-text em { font-weight: 400; color: var(--terracotta); }
.logo-img { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--terracotta); }
.logo-img.big { width: 56px; height: 56px; }
.logo-eye {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #111 0 18%, var(--nazar) 19% 42%, #fff 43% 66%, var(--indigo) 67%);
}
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { text-decoration: none; font-size: .95rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--terracotta); transition: right .25s; }
.nav-links a:hover::after { right: 0; }
.cart-btn {
  display: flex; align-items: center; gap: .5rem; border: 0; background: var(--ink); color: var(--cream);
  padding: .6rem 1rem; border-radius: 999px; font-weight: 500;
}
.cart-count {
  background: var(--saffron); color: var(--ink); min-width: 22px; height: 22px; border-radius: 99px;
  display: grid; place-items: center; font-size: .8rem; padding: 0 6px;
}
.cart-count.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.5) rotate(-10deg); } }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 72px) clamp(56px, 8vw, 110px);
  max-width: 1320px; margin: 0 auto; min-height: calc(100vh - 66px);
}
.hero-sun {
  position: absolute; right: -10%; top: 4%; width: 62vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 40% 40%, #F7C46A, var(--saffron) 45%, rgba(240, 169, 59, 0) 70%);
  opacity: .55; filter: blur(4px);
}
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 1.3rem; }
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 5px rgba(196, 85, 45, .2); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); font-weight: 600; }
.lead { font-size: 1.15rem; max-width: 34ch; color: var(--ink-2); margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 2.4rem 0 0; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.hero-badges b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 560px; justify-self: center; }
.polaroid {
  position: absolute; margin: 0; background: var(--paper); padding: 10px 10px 0; border-radius: 6px; box-shadow: var(--shadow);
  width: 46%; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.polaroid img { aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.4rem; text-align: center; padding: .25rem 0 .4rem; color: var(--ink-2); }
.p1 { left: 2%; top: 6%; transform: rotate(-8deg); }
.p2 { right: 2%; top: 0; transform: rotate(6deg); }
.p3 { left: 27%; bottom: 0; transform: rotate(-2deg); z-index: 2; }
.hero-art:hover .p1 { transform: rotate(-12deg) translate(-12px, -6px); }
.hero-art:hover .p2 { transform: rotate(10deg) translate(12px, -8px); }
.hero-art:hover .p3 { transform: rotate(1deg) translateY(8px); }

.nazar {
  position: absolute; z-index: 3; width: 26%; aspect-ratio: 1; right: 4%; bottom: 14%;
  filter: drop-shadow(0 12px 18px rgba(31, 58, 107, .4)); animation: float 6s ease-in-out infinite;
}
.nazar-ring { position: absolute; border-radius: 50%; display: grid; place-items: center; }
.r1 { inset: 0; background: radial-gradient(circle at 35% 30%, #3f63a8, var(--indigo) 60%); }
.r2 { inset: 13%; background: #fff; }
.r3 { inset: 27%; background: radial-gradient(circle at 35% 35%, #7cc0f5, var(--nazar) 65%); }
.pupil { width: 44%; aspect-ratio: 1; border-radius: 50%; background: #0d0d14; box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .35); transition: transform .12s ease-out; }
.r1::after { content: ''; position: absolute; width: 18%; height: 12%; top: 14%; left: 22%; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-30deg); }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }

.spark { position: absolute; color: var(--terracotta); font-size: 1.6rem; animation: twinkle 3s ease-in-out infinite; }
.s1 { left: -2%; bottom: 22%; } .s2 { right: 40%; top: -4%; animation-delay: 1s; color: var(--indigo); } .s3 { right: -3%; top: 45%; animation-delay: 2s; font-size: 1.1rem; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6) rotate(45deg); } }

/* ---------- cinta ---------- */
.ribbon { background: var(--indigo); color: var(--cream); overflow: hidden; transform: rotate(-1.4deg); margin: 0 -2%; padding: .9rem 0; }
.ribbon-track { display: flex; gap: 1.6rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.5rem; white-space: nowrap; }
.ribbon-track i { color: var(--saffron); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
section { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 72px); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.sec-head h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.sec-lead { color: var(--ink-2); margin: 1rem auto 0; max-width: 52ch; }

/* intenciones */
.intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1180px; margin: 0 auto; }
.intent {
  text-align: left; border: 0; border-radius: var(--radius); padding: 1.6rem 1.4rem 1.5rem; background: var(--paper);
  display: flex; flex-direction: column; gap: .3rem; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04); transition: transform .25s, box-shadow .25s, color .25s;
}
.intent::before { content: ''; position: absolute; right: -36px; bottom: -48px; width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--c); opacity: .22; transition: transform .45s, opacity .3s; }
.intent b { color: var(--c); transition: color .25s; }
.intent:hover b { color: #fff; }
.intent:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.intent:hover::before { transform: scale(6); opacity: 1; }
.intent:hover, .intent:hover small { color: #fff; }
.intent > * { position: relative; }
.intent-ico { font-size: 2rem; line-height: 1; margin-bottom: .6rem; }
.intent b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.intent small { color: var(--ink-2); font-size: .9rem; transition: color .25s; }

/* ---------- tienda ---------- */
.shop { background: var(--cream-2); border-radius: 48px 48px 0 0; }
.filters { max-width: 1240px; margin: 0 auto 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip {
  border: 1.5px solid rgba(42, 29, 22, .18); background: var(--paper); padding: .5rem 1rem; border-radius: 999px; font-size: .92rem;
  display: inline-flex; gap: .45rem; align-items: center; transition: all .2s;
}
.chip i { font-style: normal; color: var(--terracotta); }
.chip small { opacity: .55; font-size: .78rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip[aria-selected="true"] i { color: var(--saffron); }
.filter-note { display: flex; align-items: center; gap: .6rem; background: var(--indigo); color: #fff; padding: .4rem .5rem .4rem 1rem; border-radius: 999px; font-size: .9rem; }
.filter-note button { border: 0; background: rgba(255, 255, 255, .2); color: #fff; width: 26px; height: 26px; border-radius: 50%; }

.grid { max-width: 1240px; margin: 0 auto; columns: 4 260px; column-gap: 1.2rem; }
.card {
  break-inside: avoid; margin: 0 0 1.2rem; background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05); transition: transform .3s, box-shadow .3s; position: relative;
  animation: rise .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #e9dcc6; overflow: hidden; }
.card-media img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--saffron); color: var(--ink); font-family: var(--hand); font-size: 1.15rem; font-weight: 700; padding: 0 .6rem; border-radius: 8px; transform: rotate(-4deg); }
.card-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; padding: .15rem .55rem; border-radius: 99px; }
.card-body { padding: 1rem 1.1rem 1.1rem; }
.card-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terracotta); margin: 0 0 .25rem; }
.card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: .7rem; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.price { font-weight: 500; font-size: .95rem; }
.price.ask { font-family: var(--hand); font-size: 1.25rem; color: var(--ink-2); }
.add {
  border: 0; background: var(--ink); color: var(--cream); width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s, transform .2s; flex: none;
}
.add:hover { background: var(--terracotta); transform: rotate(90deg); }
.add.in { background: var(--wa); }
.empty { text-align: center; color: var(--ink-2); padding: 3rem 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1240px; margin: 0 auto; }
.about-photos { position: relative; aspect-ratio: 1; }
.ap { position: absolute; border-radius: 200px 200px 24px 24px; object-fit: cover; box-shadow: var(--shadow); border: 8px solid var(--paper); }
.a1 { width: 54%; height: 72%; left: 0; top: 0; }
.a2 { width: 44%; height: 58%; right: 0; top: 12%; border-radius: 24px; transform: rotate(4deg); }
.a3 { width: 46%; height: 42%; left: 26%; bottom: 0; border-radius: 50%; }
.about-copy h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--ink-2); }
.signature { font-family: var(--hand); font-size: 2rem; color: var(--terracotta) !important; margin: .4rem 0 1.6rem; }
.about-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.about-facts li { background: var(--paper); border-radius: 16px; padding: .9rem 1rem; }
.about-facts b { display: block; font-family: var(--serif); }
.about-facts span { font-size: .85rem; color: var(--ink-2); }

/* ---------- cómo comprar ---------- */
.how { background: var(--indigo); color: var(--cream); text-align: center; border-radius: 48px; margin: 0 clamp(8px, 2vw, 24px); position: relative; overflow: hidden; }
.how::before { content: ''; position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; border: 60px solid rgba(59, 143, 217, .18); left: -180px; top: -200px; }
.how .sec-head h2 { color: var(--cream); }
.how .ital { color: var(--saffron); }
.how .hand-sub { color: var(--saffron); }
.steps { list-style: none; padding: 0; margin: 0 auto 2.6rem; max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; position: relative; }
.steps li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 2rem 1.5rem; }
.num { font-family: var(--serif); font-style: italic; font-size: 3.2rem; color: var(--saffron); line-height: 1; display: block; margin-bottom: .4rem; }
.steps b { font-family: var(--serif); font-size: 1.5rem; }
.steps p { opacity: .8; margin: .5rem 0 0; }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.6rem clamp(16px, 5vw, 72px); font-size: .92rem; color: var(--ink-2); }
.footer-brand { display: flex; gap: .7rem; align-items: center; }
.footer-brand b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.1rem; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: 1.2rem; }

/* ---------- modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.modal.open, .drawer.open { visibility: visible; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(30, 18, 10, .55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.open .modal-backdrop, .open .drawer-backdrop { opacity: 1; }
.modal-card {
  position: absolute; left: 50%; top: 50%; width: min(1040px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: all .35s cubic-bezier(.2, .8, .2, 1);
  background: var(--paper); border-radius: 28px; display: grid; grid-template-columns: 1.15fr 1fr;
}
.modal.open .modal-card { transform: translate(-50%, -50%); opacity: 1; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.modal-x.static { position: static; box-shadow: none; background: var(--cream-2); }
.modal-media { background: #e9dcc6; display: flex; flex-direction: column; }
.modal-media > img { width: 100%; flex: 1; object-fit: contain; max-height: 72vh; background: #1d1611; }
.modal-thumbs { display: flex; gap: 6px; padding: 8px; }
.modal-thumbs:empty { display: none; }
.modal-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 64px; height: 64px; }
.modal-thumbs button[aria-current="true"] { border-color: var(--terracotta); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 2.4rem 2rem 2rem; display: flex; flex-direction: column; gap: .7rem; }
.m-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--terracotta); margin: 0; }
.modal-info h3 { font-size: 2.1rem; }
.modal-info p { margin: 0; color: var(--ink-2); }
.m-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.m-tags span { font-size: .8rem; background: var(--cream-2); padding: .2rem .7rem; border-radius: 99px; }
.m-price { font-family: var(--serif); font-size: 1.4rem; color: var(--ink) !important; }
.m-note { font-size: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.m-note small { color: var(--ink-2); }
input, textarea { font: inherit; border: 1.5px solid rgba(42, 29, 22, .18); border-radius: 12px; padding: .7rem .9rem; background: #fff; width: 100%; resize: vertical; }
input:focus, textarea:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(196, 85, 45, .15); }
.m-actions { display: flex; gap: .8rem; align-items: center; margin-top: .4rem; }
.m-actions .btn { flex: 1; }
.qty { display: flex; align-items: center; background: var(--cream-2); border-radius: 999px; }
.qty button { border: 0; background: none; width: 40px; height: 44px; font-size: 1.2rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.m-hand { font-family: var(--hand); font-size: 1.25rem; }

/* ---------- drawer ---------- */
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--cream-2); }
.drawer-head h3 { font-size: 1.7rem; }
.drawer-body { flex: 1; overflow: auto; padding: 1rem 1.4rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--cream-2); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.line b { font-family: var(--serif); font-weight: 600; display: block; line-height: 1.2; }
.line small { color: var(--ink-2); display: block; font-size: .82rem; }
.line .qty { transform: scale(.85); transform-origin: right; }
.line .rm { border: 0; background: none; color: var(--terracotta); font-size: .8rem; padding: 0; text-decoration: underline; margin-top: .2rem; }
.drawer-foot { padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--cream-2); display: flex; flex-direction: column; gap: .7rem; background: var(--cream); }
.drawer-foot label { font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.total { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.fine { font-size: .8rem; color: var(--ink-2); margin: 0; text-align: center; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.cart-empty .big { font-size: 3rem; display: block; }
.cart-empty p { font-family: var(--hand); font-size: 1.6rem; margin: .5rem 0 1rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 200%); opacity: 0;
  background: var(--ink); color: var(--cream); padding: .8rem 1.3rem; border-radius: 999px; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  display: flex; gap: .8rem; align-items: center; font-size: .95rem; box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast button { border: 0; background: var(--saffron); color: var(--ink); border-radius: 99px; padding: .3rem .8rem; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-art { max-width: 460px; }
  .intent-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-photos { max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-media > img { max-height: 52vh; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .logo-text { font-size: 1.05rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { columns: 2 150px; column-gap: .7rem; }
  .card { margin-bottom: .7rem; border-radius: 16px; }
  .card h3 { font-size: 1rem; }
  .card-body { padding: .75rem; }
  .add { width: 36px; height: 36px; }
  .price.ask { font-size: 1.05rem; }
  .about-facts { grid-template-columns: 1fr; }
  .intent { padding: 1.2rem 1rem; }
  .intent b { font-size: 1.1rem; }
  .modal-info { padding: 1.4rem 1.2rem; }
  .modal-info h3 { font-size: 1.6rem; }
  .shop, .how { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   MEJORAS: temporada, buscador, significados, stock, WhatsApp flotante
   ========================================================= */
.season {
  display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
  padding: .55rem 16px; background: #24543a; color: #fff; font-size: .92rem; text-align: center;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.5px); background-size: 22px 22px;
}
.season button { border: 0; background: #F3C34D; color: var(--ink); border-radius: 99px; padding: .3rem .9rem; font-weight: 600; font-size: .85rem; }
.season button:hover { background: #fff; }

.search {
  display: flex; align-items: center; gap: .6rem; width: min(560px, 100%);
  background: var(--paper); border: 1.5px solid rgba(42, 29, 22, .18); border-radius: 999px; padding: 0 1.1rem; color: var(--ink-2);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(196, 85, 45, .15); }
.search input { border: 0; background: none; padding: .85rem 0; box-shadow: none !important; }
.search input:focus { outline: 0; }
.empty p { margin: 0 0 1rem; }

/* significados */
.meaning-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.meaning {
  text-align: left; border: 1.5px solid rgba(42, 29, 22, .1); background: var(--paper); border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.meaning:not(:disabled):hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--terracotta); }
.meaning:disabled { cursor: default; opacity: .7; }
.meaning-ico { font-size: 1.9rem; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--cream-2); margin-bottom: .4rem; }
.meaning b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.meaning p { margin: 0; color: var(--ink-2); font-size: .93rem; flex: 1; }
.meaning small { color: var(--terracotta); font-weight: 500; margin-top: .4rem; }

/* stock */
.stock-tag { position: absolute; bottom: 10px; left: 10px; font-size: .74rem; font-weight: 600; padding: .2rem .6rem; border-radius: 99px; background: #fff; color: var(--ink); }
.stock-tag.listo { background: #2f8a55; color: #fff; }
.stock-tag.pedido { background: var(--saffron); }
.stock-tag.agotado { background: #555; color: #fff; }
.card.out img { filter: grayscale(.8); opacity: .75; }
.m-stock { font-weight: 600; font-size: .9rem; color: #2f8a55 !important; }
.m-stock.pedido { color: var(--saffron-d) !important; }
.m-stock.agotado { color: #777 !important; }

/* ficha: medidas, materiales y significado */
.m-specs { margin: 0; display: grid; gap: .45rem; font-size: .9rem; }
.m-specs:empty { display: none; }
.m-specs div { display: grid; grid-template-columns: 92px 1fr; gap: .6rem; }
.m-specs dt { font-weight: 600; }
.m-specs dd { margin: 0; color: var(--ink-2); }
.m-symbols { display: grid; gap: .5rem; }
.m-symbols:empty { display: none; }
.m-sub { font-family: var(--hand); font-size: 1.35rem; color: var(--terracotta) !important; margin: .2rem 0 0 !important; }
.m-sym { display: flex; gap: .7rem; align-items: flex-start; background: var(--cream); border-radius: 14px; padding: .6rem .8rem; }
.m-sym > span { font-size: 1.4rem; line-height: 1.2; }
.m-sym b { display: block; font-family: var(--serif); font-size: .98rem; }
.m-sym small { color: var(--ink-2); font-size: .84rem; line-height: 1.4; display: block; }
#mAdd:disabled { background: #999; box-shadow: none; cursor: not-allowed; transform: none; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: .5rem;
  background: var(--wa); color: #fff; text-decoration: none; border-radius: 999px; padding: .75rem; padding-right: 1.1rem;
  box-shadow: 0 12px 26px -10px rgba(20, 120, 60, .7); font-weight: 500; transition: transform .2s, background .2s;
}
.wa-float:hover { transform: translateY(-3px); background: #17924b; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.25); } }
.toast { bottom: 90px; }
@media (max-width: 560px) {
  .wa-float { padding: .8rem; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  .season { font-size: .82rem; gap: .5rem; }
}

/* =========================================================
   FONDO BLANCO, KITS, SOUVENIRS / PERSONALIZADOS, INSTAGRAM
   ========================================================= */
.card-media { background: #fff; }
.modal-media > img.on-white { background: #fff; }
.card-badge.save { background: var(--terracotta); color: #fff; }
.price s, .m-price s { color: var(--ink-2); opacity: .6; font-weight: 400; font-size: .85em; margin-right: .2em; }
.save-txt { font-family: var(--hand); font-style: normal; font-size: 1.2rem; color: var(--terracotta); margin-left: .3rem; }
.m-kit { display: grid; gap: .45rem; }
.m-kit:empty { display: none; }
.kit-item { display: grid; grid-template-columns: 52px 1fr auto; gap: .7rem; align-items: center; text-align: left; border: 1.5px solid var(--cream-2); background: #fff; border-radius: 14px; padding: .4rem .7rem .4rem .4rem; transition: border-color .2s; }
.kit-item:hover { border-color: var(--terracotta); }
.kit-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.kit-item span { font-weight: 500; font-size: .92rem; line-height: 1.25; }
.kit-item small { color: var(--ink-2); }

.custom { background: var(--paper); }
.custom-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.custom-card {
  background: var(--cream); border-radius: 28px; padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .8rem;
  border: 1.5px solid rgba(42, 29, 22, .08); position: relative; overflow: hidden;
}
.custom-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; aspect-ratio: 1; border-radius: 50%; background: var(--saffron); opacity: .18; }
.custom-card.alt::after { background: var(--nazar); }
.custom-ico { font-size: 2.2rem; line-height: 1; }
.custom-card h3 { font-size: 1.8rem; }
.custom-card > p { margin: 0; color: var(--ink-2); }
.custom-card label { font-size: .88rem; font-weight: 500; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.custom-card label small { font-weight: 400; color: var(--ink-2); }
.custom-card select { font: inherit; border: 1.5px solid rgba(42, 29, 22, .18); border-radius: 12px; padding: .7rem .8rem; background: #fff; width: 100%; }
.custom-card select:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(196, 85, 45, .15); }
.f-row { display: flex; gap: .8rem; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tiers li { background: #fff; border-radius: 14px; padding: .6rem .7rem; text-align: center; }
.tiers b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.tiers span { font-size: .78rem; color: var(--ink-2); }
.estimate { margin: 0; font-family: var(--hand); font-size: 1.35rem; color: var(--terracotta); min-height: 1.6em; }
.custom-card .btn-wa { margin-top: auto; }

.insta { padding-bottom: clamp(48px, 6vw, 80px); }
.insta-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; position: relative; text-decoration: none; }
.insta-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform .3s, filter .3s; }
.insta-grid:hover img { filter: saturate(1.15); }
.insta-grid img:hover { transform: scale(1.04) rotate(-1deg); }
.insta-cta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--ink); color: var(--cream);
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap;
}
@media (max-width: 960px) {
  .custom-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .f-row { flex-direction: column; }
  .custom-card { padding: 1.5rem 1.2rem; border-radius: 22px; }
  .tiers b { font-size: 1rem; }
}

/* crédito del desarrollador */
.credit { flex-basis: 100%; text-align: center; font-size: .82rem; color: var(--ink-2); padding-top: 1.2rem; margin-top: .4rem !important; border-top: 1px solid rgba(42, 29, 22, .1); }
.credit a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.credit a:hover { text-decoration: underline; }
@media (max-width: 560px) { .footer { padding-bottom: 5.5rem; } }

/* =========================================================
   REVISIÓN FINAL (invisible para el visitante)
   ========================================================= */
/* campo trampa anti-bots: fuera de la vista y del lector de pantalla */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* foco visible solo al navegar con teclado */
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .search input:focus-visible { outline: 0; }
/* página 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem; padding: 32px 16px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.notfound p { color: var(--ink-2); margin: 0; }
.notfound .btn { margin-top: 1rem; }
/* área táctil mínima de 44 × 44 px en botones chicos (invisible: no cambia cómo se ven) */
.add, .chip, .cart-btn, .season button, .footer-links a, .credit a, .nav-links a, .logo,
.qty button, .rm, .filter-note button, .modal-x.static { position: relative; }
.add::before, .chip::before, .cart-btn::before, .season button::before, .footer-links a::before, .credit a::before,
.nav-links a::before, .logo::before, .qty button::before, .rm::before, .filter-note button::before, .modal-x::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
@media (max-width: 560px) { .chips { padding-top: 2px; margin-top: -2px; } }
