/* Forja Club — demo QuickPixel */
:root {
  --black: #0d0e0c;
  --panel: #171915;
  --panel-2: #20231d;
  --line: #2f332b;
  --text: #f2f3ee;
  --muted: #a4a89b;
  --lime: #c9f227;
  --error: #ff8a70;
  --font: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 1.0625rem/1.6 var(--font); overflow-x: clip; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--alt { background: var(--panel); }

/* Títulos: siempre Archivo condensada en mayúsculas */
h1, .title, .row h3, .steps h3, .plan h3, .band__text {
  font-stretch: 68%;
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
  text-wrap: balance;
}
.title { font-size: clamp(2.6rem, 6.5vw, 5.2rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.hl { color: var(--lime); }

.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head .title { margin-bottom: 0; }
.head p { max-width: 38ch; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .8rem 1.6rem; border: 2px solid var(--lime); border-radius: 0; background: var(--lime); color: var(--black); font-weight: 800; font-size: 1rem; text-decoration: none; text-align: center; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: .4rem 1.1rem; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--dark { background: var(--black); border-color: var(--black); color: var(--lime); }
@media (hover: hover) {
  .btn:hover { background: var(--text); border-color: var(--text); color: var(--black); }
  .btn--ghost:hover { background: var(--lime); border-color: var(--lime); }
  .btn--dark:hover { background: var(--panel-2); border-color: var(--panel-2); color: var(--lime); }
}
.link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--lime); }

/* ---------- Aviso y menú ---------- */
.demo { padding: .5rem var(--gutter); background: var(--lime); color: var(--black); font-size: .78rem; font-weight: 500; text-align: center; }
.demo a { font-weight: 800; text-decoration: none; margin-left: .3rem; }

.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; min-height: 68px; padding-inline: var(--gutter); background: var(--black); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.is-scrolled { border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; color: var(--text); font-stretch: 68%; font-weight: 900; font-size: 1.75rem; letter-spacing: .02em; line-height: 1; text-decoration: none; text-transform: uppercase; }
.logo svg { width: 24px; height: 27px; color: var(--lime); }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { padding-block: .4rem; color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero: texto + tres paneles que se expanden ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); min-height: calc(100svh - 68px - 38px); }
.hero__text { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 5vw, 4rem) var(--gutter); }
.hero h1 { font-size: clamp(3rem, min(5.2vw, 10svh), 5.6rem); }
.hero__text > p:first-of-type { max-width: 44ch; color: #d4d6cc; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero__meta { color: var(--muted); font-size: .92rem; }

.panels { display: flex; gap: 4px; min-height: 480px; }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--panel); text-decoration: none; transition: flex-grow .6s var(--ease); animation: panel-in .9s var(--ease) both; }
.panel:nth-child(2) { animation-delay: .12s; }
.panel:nth-child(3) { animation-delay: .24s; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: filter .4s, transform .9s var(--ease); }
.panel__label { position: absolute; left: 0; bottom: 0; display: grid; gap: .1rem; max-width: 100%; padding: .7rem 1rem; background: var(--black); }
.panel__label strong { font-stretch: 68%; font-weight: 800; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.panel__label em { display: block; color: var(--muted); font-style: normal; font-size: .88rem; white-space: nowrap; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s var(--ease), opacity .3s; }
@keyframes panel-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@media (hover: hover) {
  .panels:hover .panel, .panels:focus-within .panel { flex-grow: .8; }
  .panels .panel:hover, .panels .panel:focus-visible { flex-grow: 2.2; }
  .panel:hover img, .panel:focus-visible img { filter: none; transform: scale(1.03); }
  .panel:hover strong, .panel:focus-visible strong { color: var(--lime); }
  .panel:hover em, .panel:focus-visible em { max-height: 1.6em; opacity: 1; }
}

/* ---------- Disciplinas en filas ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 1.2rem clamp(1.5rem, 3vw, 3rem); padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.row img { width: 170px; height: 112px; object-fit: cover; filter: saturate(.75); transition: filter .3s; }
.row h3 { font-size: clamp(2rem, 4vw, 3.3rem); transition: color .2s; }
.row p { color: var(--muted); max-width: 46ch; }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 9px; height: 26px; background: var(--line); }
.meter i.on { background: var(--lime); }
@media (hover: hover) {
  .row:hover img { filter: none; }
  .row:hover h3 { color: var(--lime); }
}

/* ---------- Pasos sobre lima ---------- */
.steps { padding-block: clamp(4rem, 8vw, 6.5rem); background: var(--lime); color: var(--black); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.steps__list li { padding-top: 1.1rem; border-top: 3px solid var(--black); }
.steps h3 { margin-bottom: .7rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Horarios ---------- */
.days { display: flex; gap: 4px; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: 1 0 auto; min-width: 72px; min-height: 52px; padding: .4rem 1rem; border: 0; background: var(--panel); color: var(--muted); font-weight: 700; transition: background-color .2s, color .2s; }
.days button.is-on { background: var(--lime); color: var(--black); }
@media (hover: hover) { .days button:not(.is-on):hover { background: var(--panel-2); color: var(--text); } }
.classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.class { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .9rem 1rem .9rem 1.2rem; background: var(--panel); animation: class-in .35s var(--ease) both; animation-delay: var(--d, 0s); }
.class time { color: var(--lime); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.class strong { display: block; font-weight: 700; line-height: 1.3; }
.class span { color: var(--muted); font-size: .9rem; }
.class button { min-height: 44px; padding: .3rem .9rem; border: 1px solid var(--line); background: none; font-weight: 700; font-size: .9rem; transition: background-color .2s, color .2s, border-color .2s; }
@media (hover: hover) { .class button:hover { background: var(--lime); border-color: var(--lime); color: var(--black); } }
@keyframes class-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Foto a todo el ancho ---------- */
.band { position: relative; }
.band img { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; }
.band__text { position: absolute; left: 0; bottom: 0; max-width: min(92%, 16ch); padding: 1.1rem var(--gutter) 1.1rem var(--gutter); background: var(--black); font-size: clamp(2rem, 5vw, 4.2rem); }

/* ---------- Planes ---------- */
.billing { display: inline-flex; gap: 4px; }
.billing button { min-height: 48px; padding: .4rem 1.1rem; border: 0; background: var(--panel); color: var(--muted); font-weight: 700; transition: background-color .2s, color .2s; }
.billing button.is-on { background: var(--text); color: var(--black); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.3rem; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--panel); }
.plan h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.plan__price strong { font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.plan__price span { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; }
.plan ul { display: grid; gap: .6rem; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 1.25rem; }
.plan li::before { content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 3px; background: var(--lime); }
.plan--main { background: var(--lime); color: var(--black); }
.plan--main .plan__price span { color: #3b4410; }
.plan--main li::before { background: var(--black); }
.plan__tag { align-self: flex-start; padding: .2rem .6rem; background: var(--black); color: var(--lime); font-weight: 700; font-size: .82rem; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.team img { width: 100%; aspect-ratio: 6/7.6; object-fit: cover; filter: saturate(.75); }
.team figcaption { padding: .9rem 1rem 1.1rem; background: var(--black); color: var(--muted); font-size: .92rem; line-height: 1.4; }
.team strong { display: block; color: var(--text); font-size: 1.05rem; }

/* ---------- Opiniones ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.quotes blockquote { padding-top: 1.2rem; border-top: 3px solid var(--lime); display: flex; flex-direction: column; gap: 1.2rem; justify-content: space-between; }
.quotes p { font-size: 1.15rem; line-height: 1.5; }
.quotes footer { color: var(--muted); font-size: .92rem; }
.quotes strong { display: block; color: var(--text); }

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 5vw, 5rem); }
.faq .title { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.2rem 2.6rem 1.2rem 0; font-weight: 700; font-size: 1.12rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 16px; height: 2px; background: var(--lime); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding-bottom: 1.3rem; max-width: 60ch; color: var(--muted); }

/* ---------- Contacto: mapa de fondo y formulario encima ---------- */
.contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) min(100%, 620px); min-height: 760px; }
.contact__map { position: relative; background: var(--panel); min-height: 360px; }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.contact__panel { padding: clamp(3rem, 6vw, 5rem) var(--gutter); background: var(--black); }
.contact .title { font-size: clamp(2.6rem, 5vw, 4.2rem); margin-bottom: 1.2rem; }
.contact__info { margin-bottom: 2rem; color: var(--muted); }
.contact__info a { color: var(--lime); font-weight: 700; text-underline-offset: 4px; }
.form { display: grid; gap: 1.1rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field > span { font-weight: 700; font-size: .92rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 0; background: var(--panel); color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field select option { background: var(--panel); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.form__status { min-height: 1.5em; font-size: .95rem; font-weight: 600; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--lime); }

/* ---------- Pie ---------- */
.footer { padding-block: 2.8rem 5.5rem; border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer__links a:hover { color: var(--text); }
.footer__demo { flex-basis: 100%; color: var(--muted); font-size: .84rem; }
.footer__demo a { color: var(--text); }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; background: var(--lime); color: var(--black); border: 2px solid var(--black); transition: transform .2s var(--ease); }
.wa:hover { transform: translateY(-3px); }
.wa svg { width: 29px; height: 29px; fill: currentColor; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 1.1rem; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 130px minmax(0, 1fr) auto; }
  .row img { width: 130px; height: 96px; grid-row: span 2; }
  .row h3 { grid-column: 2; }
  .row p { grid-column: 2 / -1; grid-row: 2; }
  .meter { grid-column: 3; grid-row: 1; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__map { order: 2; min-height: 380px; }
}

@media (max-width: 900px) {
  .nav { min-height: 62px; gap: .6rem; }
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: .4rem var(--gutter) 1.2rem; background: var(--black); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding-block: .85rem; color: var(--text); font-size: 1.1rem; border-bottom: 1px solid var(--line); }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero h1 { font-size: clamp(3rem, 13vw, 5.4rem); }
  .panels { flex-direction: column; min-height: 0; }
  .panel { flex: none; height: 148px; animation-name: panel-in-x; }
  .panel img { object-position: 50% 30%; }
  .steps__list, .plans, .quotes, .faq { grid-template-columns: minmax(0, 1fr); }
  .classes { grid-template-columns: minmax(0, 1fr); }
  .band__text { position: static; max-width: none; }
}
@keyframes panel-in-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

@media (max-width: 560px) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 96px minmax(0, 1fr) auto; gap: .5rem .9rem; align-items: start; }
  .row img { width: 96px; height: 96px; grid-row: 1 / span 2; }
  .row h3 { font-size: 1.7rem; }
  .row p { font-size: .95rem; grid-column: 2 / -1; }
  .days button { flex: 1 1 0; min-width: 0; padding-inline: .2rem; }
  .class { grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: .7rem; padding-left: .9rem; padding-right: .7rem; }
  .billing { width: 100%; }
  .billing button { flex: 1; padding-inline: .5rem; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
