/* =========================================================
   MULLIGANS · Hoja de estilos
   Colores, tipografías y espaciados en un solo sitio:
   cambia una variable aquí y cambia en toda la web.
   ========================================================= */
:root {
  --ink: #141413;          /* negro del logo */
  --ink-soft: #3d3d3a;
  --muted: #6b6a64;
  --paper: #f6f4ee;        /* fondo cálido */
  --white: #ffffff;
  --line: #e4e1d8;
  --blue: #2340c8;         /* azul del producto */
  --blue-dark: #182d93;
  --green: #4f8f4b;        /* calle del logo */
  --green-soft: #e7f0e3;
  --red: #b5413a;          /* bandera del logo */
  --sand: #d9c79a;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(20, 20, 19, .08);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  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(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--paper); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section--ink .eyebrow { color: #8fa4ff; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.section--ink .lead { color: #c9c7bf; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(35, 64, 200, .28); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Cabecera ---------- */
.topbar { background: var(--ink); color: var(--paper); font-size: .85rem; text-align: center; padding: 8px 16px; }
.topbar strong { color: #fff; }
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 238, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.header__logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.header .btn { padding: 11px 20px; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero / ficha de producto ---------- */
.hero { padding: 40px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.gallery__main {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1;
  display: grid; place-items: center; box-shadow: var(--shadow); position: relative;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.badge-sale {
  position: absolute; top: 18px; left: 18px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery__thumbs button {
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius); padding: 0;
  aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--blue); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }

.buy { position: sticky; top: 96px; }
.rating-note { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.buy h1 { margin-bottom: 12px; }
.h1-sub { display: block; font-size: .5em; font-weight: 600; color: var(--blue); margin-top: 10px; letter-spacing: -.01em; }
.buy__sub { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 22px; }
.price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.price__now { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; }
.price__old { color: var(--muted); text-decoration: line-through; font-size: 1.15rem; }
.price__save { background: var(--green-soft); color: var(--green); font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.price__tax { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.buy__bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.buy__bullets li { display: flex; gap: 10px; align-items: flex-start; }
.buy__bullets svg { flex: none; margin-top: 4px; color: var(--green); }
.pay-methods { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.pay-methods span { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 3px 9px; font-weight: 600; color: var(--ink-soft); }
.buy__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.trust-item { display: flex; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.3; background: var(--white); border-radius: var(--radius); padding: 12px 14px; }
.trust-item svg { flex: none; color: var(--blue); }

/* ---------- Franja de garantías ---------- */
.strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 26px 20px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); }
.strip__item:last-child { border-right: 0; }
.strip__item svg { flex: none; color: var(--blue); }
.strip__item strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.strip__item span { font-size: .88rem; color: var(--muted); }

/* ---------- Problema ---------- */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.problem__quote { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 600; }
.problem__quote em { font-style: normal; color: #8fa4ff; }

/* ---------- Ventajas ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: var(--paper); border-radius: var(--radius-lg); padding: 28px 24px; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: #fff; margin-bottom: 18px; }
.feature p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- Errores que corrige ---------- */
.faults { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.fault { background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px; border: 1px solid var(--line); }
.fault__tag { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.fault h3 { margin-top: 8px; }
.fault p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 32px 26px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.step__n { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #8fa4ff; line-height: 1; margin-bottom: 16px; }
.step p { color: #c9c7bf; margin: 0; }
.steps-cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section--ink .btn--ghost { border-color: var(--paper); color: var(--paper); }

/* ---------- Qué incluye / specs ---------- */
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.included__img { background: var(--white); border-radius: var(--radius-lg); padding: 6%; box-shadow: var(--shadow); max-width: 480px; justify-self: center; }
.specs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .97rem; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; font-weight: 600; color: var(--muted); padding-right: 16px; }

/* ---------- Tienda física ---------- */
.shop { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--green-soft); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); }
.shop .included__img { max-width: 320px; justify-self: center; width: 100%; }
@media (max-width: 980px) { .shop .included__img { max-width: 200px; } }
.shop address { font-style: normal; font-weight: 600; margin-bottom: 16px; }
.shop__map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--white); }
.shop__map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-family: var(--font-head);
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- Envío ---------- */
.shipping { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.ship { background: var(--paper); border-radius: var(--radius-lg); padding: 26px 22px; }
.ship svg { color: var(--blue); margin-bottom: 12px; }
.ship p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- CTA final ---------- */
.final { text-align: center; }
.final .price { justify-content: center; }
.final .btn { margin-top: 18px; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #c9c7bf; padding: 64px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 40px; width: auto; filter: invert(1) brightness(1.2); margin-bottom: 16px; }
.footer h4 { font-family: var(--font-head); color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: #c9c7bf; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #2c2c2a; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Barra de compra móvil ---------- */
.mobile-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 14px;
  transform: translateY(110%); transition: transform .25s;
}
.mobile-buy.is-visible { transform: translateY(0); }
.mobile-buy__price { line-height: 1.2; }
.mobile-buy__price strong { font-family: var(--font-head); font-size: 1.25rem; display: block; }
.mobile-buy__price s { color: var(--muted); font-size: .85rem; }
.mobile-buy .btn { flex: 1; padding: 14px 18px; }

/* ---------- Páginas legales / contacto ---------- */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.2rem; margin-top: 2em; }
.page p, .page li { color: var(--ink-soft); }
.page .updated { color: var(--muted); font-size: .9rem; }
.pending { background: #fff3cd; color: #7a5a00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 48px; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--line); text-decoration: none; }
.contact-card svg { color: var(--blue); margin-bottom: 10px; }
.contact-card strong { display: block; font-family: var(--font-head); margin-bottom: 4px; color: var(--ink); }
.contact-card span { color: var(--ink-soft); font-size: .95rem; word-break: break-word; }
.form { display: grid; gap: 16px; background: var(--white); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__legal { font-size: .85rem; color: var(--muted); font-weight: 400; display: flex !important; gap: 10px; align-items: flex-start; grid-template-columns: none !important; }
.form__legal input { margin-top: 4px; }

/* ---------- Opiniones ---------- */
.reviews { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 48px; }
.review { flex: 1 1 280px; max-width: 360px; background: var(--paper); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.review__stars { color: #e0a200; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; color: var(--ink); }
.review__name { font-weight: 700; color: var(--ink); margin-bottom: -8px; }
.review__meta { margin: auto 0 0; font-size: .9rem; color: var(--muted); }
.review__tag { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--green); }
.reviews__note { text-align: center; color: var(--muted); font-size: .85rem; max-width: 640px; margin: 28px auto 0; }
.reviews__cta { text-align: center; margin-top: 20px; }

.rating { border: 0; padding: 0; margin: 0; }
.rating legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.rating__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating__stars label { font-size: 2.2rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s; }
.rating__stars input:checked ~ label,
.rating__stars label:hover, .rating__stars label:hover ~ label { color: #e0a200; }
.rating__stars input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .problem, .included, .shop { grid-template-columns: 1fr; gap: 36px; }
  .buy { position: static; }
  .features, .shipping { grid-template-columns: 1fr 1fr; }
  .faults, .steps, .reviews { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(2) { border-right: 0; }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .header .btn { display: none; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .header__logo img { height: 32px; }
  .hero { padding-top: 20px; }
  .mobile-buy { display: flex; }
  .footer { padding-bottom: 110px; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .features, .shipping, .strip__grid, .buy__trust { grid-template-columns: 1fr; }
  .strip__item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
