@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1e1b2e;
  --muted: #565b70;
  --paper: #ffffff;
  --wash: #f4f6fb;
  --line: #e2e6ef;
  --red: #e23b2e;
  --amber: #ffb800;
  --green: #3ec28f;
  --green-d: #047857;
  --blue: #3e8eff;
  --pink: #ff6fa5;
  --wa: #25d366;
  --head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--wash { background: var(--wash); }
.section--ink { background: var(--ink); color: #fff; }
.section__intro { color: var(--muted); }
.section--ink .section__intro { color: #c9cce0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--head); text-decoration: none; cursor: pointer;
  padding: .95rem 1.4rem; border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: .75rem 1.1rem; font-size: .95rem; }
.btn-wa svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--amber); }
.menu-btn {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 10px;
  padding: .55rem .7rem; cursor: pointer; font: 600 .95rem var(--head); color: var(--ink);
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.lead { font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.2rem; }
.hero__note { color: var(--muted); font-size: .98rem; margin: 0; }

.hero__art { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1 / 1.02; margin-inline: auto; }
.hero__art::before {
  content: ""; position: absolute; inset: 6% 4% 4% 6%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a 0%, #ffc93c 55%, #ffb800 100%);
}
.hero__art img {
  position: absolute; height: auto; transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 10px 10px rgba(30, 27, 46, .22));
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(26px) scale(.88) rotate(var(--r, 0deg)); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); }
}

/* ---------- diferenciador ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.vcard { border-radius: 16px; padding: 1.6rem; }
.vcard h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.vcard ul { list-style: none; display: grid; gap: .7rem; }
.vcard li { position: relative; padding-left: 1.7rem; }
.vcard li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.vcard--yes { background: #fff; color: var(--ink); border: 3px solid var(--amber); }
.vcard--yes li::before { content: "\2713"; color: var(--green-d); }
.vcard--no { background: transparent; border: 2px dashed #5a5878; color: #c9cce0; }
.vcard--no li::before { content: "\2717"; color: #ff8a80; }
.tag { font: 600 .85rem/1 var(--body); padding: .35rem .6rem; border-radius: 999px; }
.vcard--yes .tag { background: var(--amber); color: var(--ink); }
.vcard--no .tag { background: #3a3857; color: #e2e4f3; }

.tempera {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 1.6rem; border-left: 10px solid var(--green);
}
.tempera h3 { margin-bottom: .4rem; }
.tempera p { margin-bottom: .6rem; }
.tempera p:last-child { margin: 0; color: var(--muted); font-size: .98rem; }
.drops { display: grid; grid-template-columns: repeat(3, 1.1rem); gap: .35rem; padding-top: .35rem; }
.drops i { width: 1.1rem; height: 1.1rem; border-radius: 50%; display: block; border: 2px solid var(--ink); }
.drops i:nth-child(1) { background: var(--red); }
.drops i:nth-child(2) { background: var(--amber); }
.drops i:nth-child(3) { background: var(--blue); }
.drops i:nth-child(4) { background: var(--green); }
.drops i:nth-child(5) { background: var(--pink); }
.drops i:nth-child(6) { background: #8b5cf6; }

/* ---------- precios ---------- */
.prices { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin: 2rem 0 1.4rem; }
.swatch { display: flex; flex-direction: column; background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.swatch__top { padding: 1.1rem 1.1rem 1rem; border-bottom: 3px solid var(--ink); }
.swatch__top h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.price { font: 700 2.8rem/1 var(--head); margin: 0; }
.price small { font: 500 .95rem var(--body); margin-right: .25rem; }
.price span { font: 500 .9rem var(--body); margin-left: .3rem; }
.swatch__body { padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.swatch__body p { margin: 0; font-size: 1rem; flex: 1; }
.swatch--amber .swatch__top { background: var(--amber); }
.swatch--green .swatch__top { background: var(--green); }
.swatch--blue .swatch__top { background: var(--blue); }
.swatch--pink .swatch__top { background: var(--pink); }
.prices-note { color: var(--muted); font-size: .98rem; }

/* ---------- kit ---------- */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.photo { border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); max-width: 380px; margin-inline: auto; background: #fff; }
.checks { list-style: none; display: grid; gap: .55rem; margin: 0 0 1.2rem; }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; color: var(--green-d); }
.caption { color: var(--muted); font-size: .95rem; }

/* ---------- galería ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 2rem 0 1.4rem; }
.tile { border-radius: 16px; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.tile__img { position: relative; aspect-ratio: 1 / 1; }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(30, 27, 46, .18)); }
.tile h3 { margin: 0; font-size: 1.1rem; }
.tile p { margin: 0; font-size: .95rem; color: #3f4358; }
.tile--blue { background: #dcebff; }
.tile--green { background: #d4f3e5; }
.tile--amber { background: #ffefbf; }
.tile--pink { background: #ffdfeb; }

/* ---------- pasos ---------- */
.steps { list-style: none; counter-reset: paso; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2rem; }
.steps li { counter-increment: paso; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(paso); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.3rem var(--head); border: 3px solid var(--ink); background: var(--amber);
}
.steps li:nth-child(2)::before { background: var(--green); }
.steps li:nth-child(3)::before { background: var(--pink); }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.cinfo { list-style: none; display: grid; gap: 1rem; margin: 1.4rem 0; }
.cinfo b { display: block; font: 600 1rem var(--head); }
.cinfo a { text-underline-offset: 3px; }
.form { background: var(--wash); border: 2px solid var(--ink); border-radius: 16px; padding: clamp(1.2rem, 3vw, 1.8rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #b9bfd1;
  border-radius: 10px; padding: .75rem .85rem;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(62, 142, 255, .45); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.status { margin: 1rem 0 0; font-weight: 600; }
.status:empty { display: none; }
.status.ok { color: var(--green-d); }
.status.err { color: #b42318; }

/* ---------- pie ---------- */
.footer { background: var(--ink); color: #d7d9ea; padding: 2.6rem 0 2rem; }
.footer__row { display: flex; flex-wrap: wrap; gap: 1.6rem 3rem; align-items: center; justify-content: space-between; }
.footer img { height: 64px; width: auto; background: #fff; border-radius: 12px; padding: 4px 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.footer a { text-underline-offset: 3px; }
.footer p { margin: 1.4rem 0 0; font-size: .92rem; color: #aeb1c9; max-width: none; }
.stripe { height: 6px; background: linear-gradient(90deg, #ff4b3e 0 16.6%, #ffb800 0 33.3%, #3ec28f 0 50%, #3e8eff 0 66.6%, #8b5cf6 0 83.3%, #ff6fa5 0); }

/* ---------- páginas de texto (privacidad) ---------- */
.doc { padding: 3rem 0 4rem; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc p, .doc li { max-width: 70ch; }
.doc ul { padding-left: 1.2rem; margin-bottom: 1em; }

/* ---------- adaptación ---------- */
@media (max-width: 960px) {
  .prices { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column;
    gap: 0; padding: .5rem 1.25rem 1rem; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .header__cta { display: none; }
  .hero__grid, .split, .contact, .versus { grid-template-columns: 1fr; }
  .hero__art { max-width: 330px; }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .photo { max-width: 300px; }
}
@media (max-width: 560px) {
  .prices { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .tile { padding: .7rem; }
  .tempera { grid-template-columns: 1fr; border-left-width: 0; border-top: 10px solid var(--green); }
  .brand img { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
