/* ==========================================================================
   Ruda Indumentaria — demo QuickPixel
   Editorial de moda: crema, negro, verde oliva y rosa empolvado.
   Una sola familia tipográfica (Bricolage Grotesque).
   ========================================================================== */
:root {
  --cream: #f3efe6;
  --tint: #ebe5d8;
  --ink: #151515;
  --olive: #4f5d2f;
  --olive-2: #3f4b24;
  --pink: #e8c2b8;
  --pink-2: #d9a89c;
  --muted: #6f6a60;
  --line: #d8d0c0;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: clamp(1.1rem, .5rem + 3vw, 3rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 1.02rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.demo { padding: .5rem var(--gutter); background: var(--ink); color: #cfc8b8; font-size: .78rem; text-align: center; }
.demo a { color: #fff; font-weight: 700; text-decoration: none; margin-left: .3rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem; border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--olive); }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--pink { background: var(--pink); color: var(--ink); }
.btn--pink:hover { background: #fff; }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.6rem; height: 74px; }
.nav__logo { color: var(--ink); }
.nav__logo svg { width: 116px; display: block; }
.nav__links { display: none; gap: 1.8rem; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-weight: 600; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__toggle { margin-left: auto; display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 999px) {
  .nav.is-open .nav__links { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: .4rem var(--gutter) 1.4rem; background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero: collage editorial ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.hero__word { position: absolute; left: -1.5vw; bottom: -4vw; z-index: -1; font-size: clamp(9rem, 32vw, 30rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: var(--tint); pointer-events: none; user-select: none; }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: var(--olive); color: var(--cream); font-size: .85rem; font-weight: 600; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.hero__title { max-width: 13ch; margin-top: 1.3rem; font-size: clamp(2.6rem, 1.3rem + 4.8vw, 5.4rem); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
.hero__lead { max-width: 31rem; margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.collage { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.08; }
.collage img { position: absolute; object-fit: cover; border-radius: 14px; transition: transform .6s var(--ease); will-change: transform; }
.collage__a { left: 18%; top: 4%; width: 60%; height: 80%; z-index: 2; animation: drop 1.1s var(--ease) both .1s; }
.collage__b { left: 0; top: 0; width: 34%; height: 40%; z-index: 3; animation: drop 1.1s var(--ease) both .3s; }
.collage__c { right: 0; bottom: 0; width: 38%; height: 44%; z-index: 3; animation: drop 1.1s var(--ease) both .45s; }
@keyframes drop { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
.sticker { position: absolute; left: 4%; bottom: 10%; z-index: 4; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: var(--pink); font-weight: 800; font-size: .86rem; line-height: 1.15; text-align: center; rotate: -12deg; animation: drop 1.1s var(--ease) both .65s; transition: transform .6s var(--ease); }

/* ---------- Franja en movimiento ---------- */
.band { overflow: hidden; background: var(--ink); color: var(--cream); padding-block: 1rem; }
.band__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem); font-weight: 700; white-space: nowrap; }
.band__track i { font-style: normal; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.section--tint { background: var(--tint); }
.section--olive { background: var(--olive); color: #e9ead9; }
.title { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; margin-bottom: 2.2rem; }
.title--light { color: var(--cream); }
.lead { max-width: 34rem; font-size: 1.08rem; color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.2rem; }
.head-row .title { margin-bottom: 0; }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cat { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4; text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover img { transform: scale(1.07); }
.cat span { position: absolute; left: .8rem; bottom: .8rem; padding: .55rem 1rem; border-radius: 999px; background: var(--cream); font-weight: 800; font-size: 1.05rem; transition: background .25s, color .25s; }
.cat span::after { content: " →"; }
.cat:hover span { background: var(--ink); color: var(--cream); }

/* ---------- Productos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { height: 40px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: none; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s; }
.chip.is-on, .chip:hover { background: var(--ink); color: var(--cream); }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
.product { display: flex; flex-direction: column; gap: .5rem; animation: fade .5s var(--ease); }
.product[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.product__img { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 3.8; background: var(--cream); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__badge { position: absolute; top: .7rem; left: .7rem; padding: .3rem .7rem; border-radius: 999px; background: var(--pink); font-weight: 700; font-size: .78rem; }
.product h3 { margin-top: .4rem; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.price { font-weight: 700; }
.price s { margin-right: .4rem; font-weight: 500; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0 .4rem; }
.sizes button { min-width: 38px; height: 34px; padding: 0 .55rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--cream); font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.sizes button:hover { border-color: var(--ink); }
.sizes button.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.product .btn { margin-top: auto; }

/* ---------- Lookbook ---------- */
.lookbook .head-row { margin-bottom: 1.6rem; }
.strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 1rem; scrollbar-width: thin; cursor: grab; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip figure { flex: none; width: clamp(220px, 24vw, 320px); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; pointer-events: none; user-select: none; }
.strip figcaption { margin-top: .6rem; font-weight: 700; }

/* ---------- Beneficios ---------- */
.perks { background: var(--pink); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.perks__grid { display: grid; gap: 2rem; }
.perks svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perks h3 { margin-top: .8rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.perks p { margin-top: .3rem; color: #4a3f3b; }

/* ---------- Guía de talles ---------- */
.sizes-guide { display: grid; gap: 2rem; align-items: start; }
.table-wrap { overflow-x: auto; border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { padding: 1.1rem 1.3rem; text-align: left; font-weight: 700; caption-side: top; }
th, td { padding: .9rem 1.3rem; text-align: left; border-top: 1px solid var(--tint); }
thead th { background: var(--ink); color: var(--cream); border: 0; font-weight: 700; }
tbody th { font-weight: 800; }
tbody tr:hover { background: var(--cream); }

/* ---------- Opiniones ---------- */
.reviews { display: grid; gap: 1rem; }
.reviews figure { padding: 1.6rem; border-radius: 14px; background: var(--cream); }
.stars { color: var(--olive); letter-spacing: .12em; }
.reviews blockquote { margin-top: .7rem; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.reviews figcaption { margin-top: 1rem; font-weight: 700; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; cursor: pointer; list-style: none; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "↓"; flex: none; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding-bottom: 1.3rem; color: var(--muted); max-width: 40rem; }

/* ---------- Local + formulario ---------- */
.local { display: grid; gap: 3rem; align-items: start; }
.local__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.local dl { display: grid; gap: 1rem; margin: 1.6rem 0; }
.local dt { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.local dd { margin: .2rem 0 0; font-weight: 600; color: var(--cream); }
.local__map { overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; background: var(--olive-2); }
.local__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.7); }
.form { display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); border-radius: 18px; background: var(--cream); color: var(--ink); }
.form__title { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.form__intro { color: var(--muted); }
.field { display: grid; gap: .4rem; }
.field > span { font-weight: 700; font-size: .92rem; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 500 1rem/1.4 var(--font); color: var(--ink); transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); }
.field.is-invalid input, .field.is-invalid select { border-color: #c2412d; background: #fff3f0; }
.form .btn--pink { background: var(--ink); color: var(--cream); }
.form .btn--pink:hover { background: var(--olive); }
.form__status { min-height: 1.3em; font-weight: 700; }
.form__status.is-ok { color: var(--olive); }
.form__status.is-error { color: #c2412d; }

/* ---------- Footer ---------- */
.footer { padding-block: 3rem 2rem; background: var(--ink); color: #b7b0a2; font-size: .92rem; }
.footer__inner { display: grid; gap: 1.4rem; }
.footer__logo { color: var(--cream); }
.footer__logo svg { width: 120px; display: block; }
.footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.footer nav a { color: var(--cream); text-decoration: none; font-weight: 700; }
.footer__demo { font-size: .8rem; }
.footer__demo a { color: var(--cream); }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.08) rotate(-6deg); }
.wa svg { width: 29px; height: 29px; fill: currentColor; }

/* ---------- Aparición ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .products { grid-template-columns: repeat(4, 1fr); }
  .perks__grid { grid-template-columns: repeat(4, 1fr); }
  .sizes-guide { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .local { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer nav { justify-content: center; }
  .footer__demo { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
