@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* Cada color de camiseta tiñe toda la página */
:root,
:root[data-tone="salvia"] { --bg: #dbe5d1; --bg2: #cbd9bf; --ink: #1d3328; --accent: #3f7f6b; --shirt: #a9c3a0; }
:root[data-tone="arena"]  { --bg: #eadfc8; --bg2: #dfd0b0; --ink: #3a2e1b; --accent: #8c6a35; --shirt: #d8c7a5; }
:root[data-tone="crema"]  { --bg: #f4eddd; --bg2: #eadfc9; --ink: #2a3441; --accent: #4a7d8b; --shirt: #efe6d3; }
:root[data-tone="blanco"] { --bg: #edf2f1; --bg2: #dce7e5; --ink: #16353b; --accent: #2d7d84; --shirt: #ffffff; }

:root {
  --display: "Young Serif", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(22px, 5vw, 76px);
  --wood: #c9a36a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.8s ease, color 0.8s ease;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 99; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- barra ---------- */
.bar { position: absolute; z-index: 10; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px var(--pad); }
.back { font-size: 15px; text-decoration: none; opacity: 0.7; justify-self: start; }
.back:hover { opacity: 1; }
.wordmark { height: 46px; width: auto; filter: brightness(0); opacity: 0.82; }
.lang { justify-self: end; font: 700 13px var(--sans); letter-spacing: 0.06em; background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 100px; padding: 5px 13px; cursor: pointer; }
.lang:hover { background: var(--ink); color: var(--bg); }

/* ---------- 1 · hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: clamp(20px, 4vw, 70px);
  padding: 130px var(--pad) 80px;
}
.halo { position: absolute; width: min(120vw, 860px); right: -30vw; top: 50%; transform: translateY(-50%); color: var(--accent); opacity: 0.26; pointer-events: none; transition: color 0.8s; }
.halo text { font: 700 17px var(--sans); fill: currentColor; }
.halo-ring { transform-origin: 200px 200px; animation: spin 90s linear infinite; }
.halo-waves .w { animation: drift 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(-120px); } }

.hero-copy { position: relative; z-index: 2; }
.kicker { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 1.4rem; transition: color 0.8s; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 9vw, 138px); line-height: 0.92; letter-spacing: -0.025em; transform-origin: left center; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 45% { transform: scale(1.03); } }
.hero h1 .in, .hero h1 .out { display: block; }
.hero h1 .out { margin-left: clamp(24px, 7vw, 120px); margin-top: 0.12em; color: var(--accent); transition: color 0.8s; }
.lead { margin-top: 2rem; max-width: 30em; font-size: clamp(18px, 1.6vw, 21px); }

.tones { border: 0; margin-top: 2.6rem; }
.tones legend { font-size: 16px; margin-bottom: 14px; padding: 0; }
.tones legend b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.swatches { display: flex; gap: 14px; }
.swatches button {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-checked="true"] { outline: 2px solid var(--ink); outline-offset: 4px; }

.arch-wrap { position: relative; z-index: 2; justify-self: center; width: min(100%, 420px); }
.arch { position: relative; aspect-ratio: 2 / 3; border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--shirt); transition: background-color 0.8s; }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); pointer-events: none; }
.arch-wrap::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 999px 999px 26px 26px; transform: translate(16px, 16px); transition: border-color 0.8s; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.shot.is-on { opacity: 1; }

.tag { position: absolute; left: -34px; bottom: 44px; z-index: 3; background: #fffdf6; color: #26302b; padding: 16px 18px 14px 34px; border-radius: 6px 14px 14px 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16); transform: rotate(-7deg); transform-origin: 14px 50%; display: flex; flex-direction: column; }
.tag.swing { animation: swing 1.1s ease; }
@keyframes swing { 0% { transform: rotate(-7deg); } 25% { transform: rotate(5deg); } 55% { transform: rotate(-11deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(-7deg); } }
.tag i { position: absolute; left: 11px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px #b9b19b; }
.tag-t { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.tag-s { margin-top: 4px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.35; color: #6a6a5d; }

/* ---------- 2 · tendedero ---------- */
.laundry { background: var(--bg2); padding: clamp(70px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); transition: background-color 0.8s; }
.laundry-head { padding: 0 var(--pad); max-width: 900px; }
.laundry h2, .shop h2, .notify h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.laundry h2 { font-size: clamp(38px, 5.6vw, 76px); max-width: 14ch; }
.laundry-head p { margin-top: 1rem; opacity: 0.75; }
.rail { margin-top: 34px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; padding-bottom: 10px; }
.rail ul { list-style: none; display: flex; gap: clamp(24px, 4vw, 56px); padding: 0 var(--pad) 36px; width: max-content; position: relative; }
.rail ul::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2.5px; background: var(--ink); opacity: 0.8; border-radius: 2px; }
.rail li { position: relative; flex: 0 0 clamp(230px, 27vw, 310px); padding-top: 48px; scroll-snap-align: start; transform-origin: 50% 26px; transform: rotate(var(--r)); transition: transform 0.6s cubic-bezier(.3, 1.6, .5, 1); }
.rail li:hover { transform: rotate(calc(var(--r) * -1.6)); }
.peg { position: absolute; top: 16px; width: 12px; height: 34px; background: var(--wood); border-radius: 3px; box-shadow: 0 2px 0 rgba(0,0,0,0.18); z-index: 2; }
.peg::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 10px; margin-left: -1px; background: rgba(0,0,0,0.25); }
.p1 { left: 22%; } .p2 { right: 22%; }
.art { background: rgba(255, 255, 255, 0.6); border-radius: 12px; padding: 22px; aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.3); }
.art img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.art-wave { color: var(--accent); transition: color 0.8s; }
.art-wave svg { width: 100%; }
.art-wave text { font: 700 17px var(--sans); fill: currentColor; }
.art-photo { padding: 0; }
.art-photo img { width: 100%; height: 100%; object-fit: cover; }
.rail figcaption { margin-top: 16px; font-family: var(--display); font-size: 22px; line-height: 1.15; }
.rail figcaption small { display: block; font-family: var(--sans); font-size: 14px; opacity: 0.65; margin-top: 2px; }

/* ---------- 3 · tienda ---------- */
.shop { background: var(--ink); color: var(--bg); padding: clamp(80px, 11vw, 150px) var(--pad); position: relative; transition: background-color 0.8s, color 0.8s; }
.shop-in { max-width: 1000px; position: relative; }
.shop .kicker { color: var(--bg); opacity: 0.6; }
.shop h2 { font-size: clamp(38px, 5.4vw, 72px); max-width: 15ch; }
.shop-list { list-style: none; margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 clamp(24px, 4vw, 56px); max-width: 780px; }
.shop-list li { border-top: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); padding: 18px 0 22px; }
.shop-list b { display: block; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.1; margin-bottom: 4px; }
.shop-list span { opacity: 0.75; font-size: 17px; }
.stack { margin-top: 2.2rem; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.stamp { position: absolute; right: 0; top: -10px; width: 190px; height: 190px; border: 2px dashed var(--bg); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; transform: rotate(-10deg); font-family: var(--display); font-size: 24px; line-height: 1.1; }
.stamp small { font-family: var(--sans); font-size: 12.5px; line-height: 1.3; margin-top: 8px; opacity: 0.75; }

/* ---------- 4 · aviso ---------- */
.notify { text-align: center; padding: clamp(80px, 11vw, 150px) var(--pad); }
.notify h2 { font-size: clamp(42px, 7vw, 100px); }
.notify p { margin: 1.2rem auto 0; max-width: 32em; }
.btn { display: inline-block; margin-top: 2rem; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; padding: 16px 32px; border-radius: 100px; transition: transform 0.2s, background-color 0.8s, color 0.8s; }
.btn:hover { transform: scale(1.04); }
.notify .docs { margin-top: 1.8rem; font-size: 15px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px var(--pad) 34px; font-size: 14px; border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); opacity: 0.8; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 56px; }
  .arch-wrap { width: min(78%, 360px); margin-left: 6%; justify-self: start; }
  .halo { right: -50vw; top: 62%; }
  .stamp { position: static; margin-top: 2.6rem; transform: rotate(-6deg); }
  .wordmark { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo-ring, .halo-waves .w, .hero h1, .tag.swing { animation: none !important; }
  .shot, body, .rail li { transition: none !important; }
}
