/* Céfiro - estilos
   Paleta: ultramar (cielo de tarde), noche (tinta), lino (fondo) y pinzas de colores */
:root {
  --ultra: #2336C8;
  --noche: #0B1340;
  --lino: #F4F6FB;
  --blanco: #FFFFFF;
  --rosa: #FF7AA8;
  --menta: #7FDDB5;
  --mandarina: #FF9F43;
  --cielo: #9CCBFF;
  --muted: #3B4574;
  --display: 'Unbounded', 'Arial Black', Arial, sans-serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--noche); background: var(--lino); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); }
p { max-width: 58ch; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--noche); outline-offset: 3px; }
.hero :focus-visible, .order :focus-visible, .site-footer :focus-visible { outline-color: var(--blanco); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--noche); color: var(--blanco); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
main > section { padding-block: clamp(4rem, 9vw, 7rem); }

/* Botones */
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1.02rem; text-decoration: none; border-radius: 8px; padding: .8rem 1.4rem; border: 2px solid var(--noche); cursor: pointer; box-shadow: 4px 4px 0 var(--noche); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--noche); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--noche); }
.btn-solid { background: var(--ultra); color: var(--blanco); }
.btn-light { background: var(--blanco); color: var(--ultra); }
.btn-ghost { background: transparent; color: var(--blanco); border-color: var(--blanco); box-shadow: 4px 4px 0 var(--noche); }

/* Hero */
.hero { background: var(--ultra); color: var(--blanco); overflow: hidden; }
.top { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-weight: 600; }
.nav a { text-decoration: none; padding-block: .25rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .2s; }
.nav a:hover { background-size: 100% 2px; }
.menu-btn { display: none; }
.hero-copy { padding-top: clamp(3rem, 8vw, 6rem); }
.hero h1 { font-size: clamp(2.3rem, 6.6vw, 5.4rem); max-width: 14ch; margin-bottom: 1.5rem; line-height: 1.02; letter-spacing: -0.03em; }
.lead { font-size: 1.2rem; max-width: 46ch; margin-bottom: 2rem; color: #E6EBFF; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.line-wrap { margin-top: clamp(1rem, 3vw, 2rem); overflow: hidden; }
#line { width: max(100%, 900px); height: auto; margin-left: 50%; transform: translateX(-50%); overflow: visible; }
.garment { cursor: pointer; }
.swing { animation: sway 2.4s ease-in-out both; }
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(7deg); }
  45% { transform: rotate(-5deg); }
  70% { transform: rotate(3deg); }
  85% { transform: rotate(-1.5deg); }
}

/* Cabeceras de seccion */
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { max-width: 18ch; margin-bottom: 1rem; }
.section-head p { color: var(--muted); }

/* Calculadora */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 2px dashed rgba(11, 19, 64, .3); }
.row:first-child { border-top: 2px dashed rgba(11, 19, 64, .3); }
.row label { font-family: var(--display); font-weight: 500; font-size: 1.05rem; display: grid; gap: .15rem; }
.row small { font-family: var(--body); font-weight: 400; font-size: .88rem; color: var(--muted); }
.stepper { display: flex; align-items: center; }
.stepper button { width: 44px; height: 44px; font-size: 1.4rem; font-weight: 700; line-height: 1; background: var(--blanco); border: 2px solid var(--noche); cursor: pointer; color: var(--noche); }
.stepper .minus { border-radius: 8px 0 0 8px; }
.stepper .plus { border-radius: 0 8px 8px 0; background: var(--menta); }
.stepper button:hover { background: var(--cielo); }
.stepper input { width: 64px; height: 44px; text-align: center; font: 700 1.15rem var(--body); color: var(--noche); background: var(--lino); border: 2px solid var(--noche); border-inline: 0; border-radius: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.result { position: sticky; top: 1.5rem; }
.meters { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin-bottom: .75rem; }
.meters strong { font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; display: block; color: var(--ultra); }
.reco { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.5rem; min-height: 3.5rem; }
.bars { list-style: none; padding: 0; display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.bar-top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin-bottom: .3rem; }
.bar-top span:first-child { font-family: var(--display); font-weight: 500; }
.track { height: 18px; background: var(--blanco); border: 2px solid var(--noche); border-radius: 6px; overflow: hidden; }
.fill { height: 100%; width: 0; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.bars li[data-model="riel"] .fill { background: var(--rosa); }
.bars li[data-model="ala"] .fill { background: var(--menta); }
.bars li[data-model="giro"] .fill { background: var(--mandarina); }
.bars li.over .fill { background: repeating-linear-gradient(45deg, var(--noche) 0 6px, var(--cielo) 6px 12px); }
.bars li.best .track { box-shadow: 4px 4px 0 var(--noche); }
.bars li.best .bar-top span:first-child::after { content: ' (te conviene)'; font-family: var(--body); font-weight: 700; color: var(--ultra); }
.fine { font-size: .9rem; color: var(--muted); }

/* Modelos */
.models { background: var(--blanco); }
.rows { list-style: none; padding: 0; }
.model { display: grid; grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding-block: 2rem; border-top: 3px solid var(--noche); transition: background .2s; }
.model:last-child { border-bottom: 3px solid var(--noche); }
.model:hover { background: var(--lino); }
.model:nth-child(1) .picto { color: var(--rosa); }
.model:nth-child(2) .picto { color: #1FA871; }
.model:nth-child(3) .picto { color: var(--mandarina); }
.picto { width: 120px; height: auto; }
.m-name h3 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; }
.m-name p { color: var(--muted); font-weight: 600; }
.specs { display: grid; gap: .5rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(11, 19, 64, .35); padding-bottom: .4rem; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 700; text-align: right; }
.m-buy { display: grid; gap: .75rem; justify-items: end; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }

/* Hechos */
.why { background: var(--menta); }
.why h2 { max-width: 16ch; margin-bottom: 1rem; }
.why-lead { font-size: 1.2rem; margin-bottom: 3rem; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); }
.facts li { position: relative; border-top: 4px solid var(--noche); padding-top: 2.4rem; }
.facts li::before { content: ''; position: absolute; top: -13px; left: 0; width: 14px; height: 38px; border: 3px solid var(--noche); border-radius: 4px; background: var(--rosa); }
.facts li:nth-child(2)::before { background: var(--blanco); }
.facts li:nth-child(3)::before { background: var(--mandarina); }
.facts h3 { font-size: 1.2rem; margin-bottom: .6rem; letter-spacing: -0.01em; }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.faq h2 { max-width: 10ch; }
.faq details { border-top: 2px dashed rgba(11, 19, 64, .35); padding-block: 1.1rem; }
.faq details:last-child { border-bottom: 2px dashed rgba(11, 19, 64, .35); }
.faq summary { font-family: var(--display); font-weight: 500; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--noche); border-radius: 50%; background: var(--cielo); font-family: var(--body); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; color: var(--muted); }

/* Pedido */
.order { background: var(--ultra); color: var(--blanco); }
.order-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.order h2 { margin-bottom: 1rem; max-width: 10ch; }
.order-grid > div p { color: #E6EBFF; }
form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--noche); background: var(--blanco); border: 2px solid var(--noche); border-radius: 8px; padding: .75rem 1rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #FFD2A0; box-shadow: 0 0 0 3px #FF9F43; }
.err { background: var(--noche); color: #FFE2BF; font-weight: 700; font-size: .92rem; padding: .35rem .7rem; border-radius: 6px; margin-top: .4rem; }
form .btn { justify-self: start; }
.sent { grid-column: 1 / -1; font-family: var(--display); font-weight: 500; font-size: 1.15rem; padding: 1.25rem; background: var(--blanco); color: var(--noche); border-left: 8px solid var(--menta); border-radius: 8px; }

/* Footer */
.site-footer { background: var(--noche); color: var(--blanco); padding-block: 2.5rem; }
.foot { display: grid; gap: .6rem; }
.foot p { font-size: .92rem; color: #B9C3F5; }

/* Responsive */
@media (max-width: 900px) {
  .calc-grid, .faq-grid, .order-grid { grid-template-columns: 1fr; }
  .result { position: static; }
  .model { grid-template-columns: 90px minmax(0, 1fr); }
  .picto { width: 90px; }
  .specs, .m-buy { grid-column: 1 / -1; }
  .m-buy { grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .facts { grid-template-columns: 1fr; gap: 2rem; }
  .menu-btn { display: inline-block; margin-left: auto; font: 700 .95rem var(--body); background: transparent; color: var(--blanco); border: 2px solid var(--blanco); border-radius: 8px; padding: .45rem .9rem; cursor: pointer; }
  .nav { display: none; position: absolute; top: 4.5rem; left: 1.25rem; right: 1.25rem; z-index: 10; flex-direction: column; gap: 0; margin: 0; background: var(--noche); border-radius: 12px; padding: .5rem 1.25rem; }
  .nav.is-open { display: flex; }
  .nav a { padding-block: .8rem; }
  .top { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
