/* ============================================
   Rueda Directo — Landing Page
   ============================================ */

:root {
  --bg:        #0b0b0c;
  --bg-alt:    #111214;
  --surface:   #17181b;
  --line:      #26282d;
  --text:      #f2f3f5;
  --muted:     #9a9ea6;
  --accent:    #e63946;
  --accent-dk: #c22c38;
  --radius:    14px;
  --max:       1120px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 48px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--block { width: 100%; margin-top: 8px; }

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11, 11, 12, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.header.is-scrolled {
  background: rgba(11, 11, 12, .92);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__logo { width: 42px; height: 42px; object-fit: contain; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.brand__name span { color: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: .92rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease;
}
.header__cta { white-space: nowrap; }
.nav a:hover { color: var(--text); }

/* ---------- Cambio de idioma ---------- */
.lang-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.lang-toggle:hover { color: var(--text); border-color: var(--text); }
.lang-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 168px 0 104px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(230, 57, 70, .16), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.hero__title span { color: var(--accent); }

.hero__sub {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 64px;
}
.hero__badges li {
  flex: 1 1 160px;
  max-width: 220px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero__badges strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.hero__badges span { font-size: .85rem; color: var(--muted); }

/* ============ Secciones ============ */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

/* ---------- Servicios ---------- */
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: #3a3d44; transform: translateY(-3px); }

.card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: .93rem; }

.card--accent { border-color: rgba(230, 57, 70, .45); }
.card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.step {
  padding: 30px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--line);
  margin-bottom: 10px;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Agendar ---------- */
.booking {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.booking .section__title { margin-bottom: 20px; }
.booking__text { color: var(--muted); margin-bottom: 26px; }

.booking__list { display: grid; gap: 12px; margin-bottom: 32px; }
.booking__list li {
  position: relative;
  padding-left: 26px;
  font-size: .94rem;
  color: var(--muted);
}
.booking__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.booking__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.booking__call span { font-size: .9rem; color: var(--muted); }
.booking__call a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color .2s ease;
}
.booking__call a:hover { color: var(--accent); }

/* ---------- Formulario ---------- */
.form {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* Las dos columnas comparten las mismas filas (etiqueta / control / error)
   gracias a subgrid, así los inputs quedan alineados aunque una etiqueta
   ocupe dos líneas y la de al lado solo una. */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 18px;
}
.form__row .field {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
}

.field { margin-bottom: 18px; display: flex; flex-direction: column; }

/* Respaldo para navegadores sin subgrid: se reservan dos líneas de etiqueta
   para que los inputs de la fila arranquen a la misma altura. */
@supports not (grid-template-rows: subgrid) {
  .form__row .field { display: flex; flex-direction: column; }
  .form__row .field > label { min-height: 2.6em; }
}

.field label {
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.field .opt { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder,
.field textarea::placeholder { color: #5f636b; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
/* Iconos nativos de fecha/hora visibles sobre fondo oscuro */
.field input[type="date"],
.field input[type="time"] { color-scheme: dark; }

.field__error {
  min-height: 0;
  font-size: .78rem;
  color: var(--accent);
}
.field.has-error input,
.field.has-error select { border-color: var(--accent); }

.form__note {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}
.form__status {
  margin-top: 10px;
  font-size: .88rem;
  text-align: center;
  color: #6ddf8f;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer__logo { width: 60px; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: .92rem; }

.footer__col h4 {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__col p,
.footer__col a {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 6px;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  padding-block: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__bottom p { color: #6b6f77; font-size: .82rem; }

/* ============ WhatsApp flotante ============ */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #0b0b0c; }

/* ============ Aparición al hacer scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* El hover de las tarjetas sigue funcionando una vez reveladas */
.card.reveal.is-visible:hover { transform: translateY(-3px); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .nav-toggle { display: flex; }
  .header__cta { display: none; }

  .hero { padding: 130px 0 80px; }
  .section { padding: 72px 0; }
  .form { padding: 24px 20px; }
  /* En una sola columna no hay nada que alinear: vuelve al flujo normal */
  .form__row { display: block; }
  .form__row .field { display: flex; flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
