/* ============================================================
   J&S CLIMA — sistema de diseño
   Reglas de forma: botones pill (radio total), tarjetas 14px,
   campos 10px. Un solo acento (azul marca); rojo reservado al
   precio de oferta; amarillo solo en la banda de campaña.
   Tema claro bloqueado: la marca vive en fondo blanco (cartel).
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-tint: #f4f8fc;
  --surface: #ffffff;
  --ink: #10233f;
  --muted: #4b5d75;
  --line: #dce6f1;
  --navy: #0a2d6b;
  --blue: #1265b5;
  --blue-bright: #1878d1;
  --red: #d62828;
  --yellow: #ffc629;
  --yellow-soft: #fff6de;
  --cta-bg: #0a2d6b;
  --cta-bg-hover: #12408f;
  --cta-ink: #ffffff;
  --band-bg: #0a2d6b;
  --band-ink: #ffffff;
  --band-muted: #b9cbe6;
  --shadow: 0 18px 44px rgba(10, 45, 107, 0.12);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 14px;
  --radius-field: 10px;
}

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

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

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

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

.container { width: min(1160px, 92%); margin-inline: auto; }
.container--narrow { width: min(780px, 92%); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; }

p { color: var(--muted); }

.section { padding: clamp(60px, 7.5vw, 96px) 0; }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 640px; margin-bottom: clamp(30px, 4vw, 48px); }
.section__head p { margin-top: 12px; }

.label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Botones (pill, una sola familia) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.btn--primary { background: var(--cta-bg); color: var(--cta-ink); }
.btn--primary:hover { background: var(--cta-bg-hover); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--blue); }

.btn--small { padding: 11px 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Barra de campaña ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 0.86rem; }
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  flex-wrap: wrap;
}
.topbar p { color: #dbe7f7; }
.topbar strong { color: var(--yellow); font-weight: 700; }
.topbar__right { display: flex; align-items: center; gap: 8px; }
.topbar__right a:hover { color: var(--yellow); }
.topbar__hours { opacity: 0.7; }
.topbar__hours::before { content: "·"; margin-right: 8px; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.logo { display: flex; align-items: center; gap: 11px; }
.logo__text {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}
.logo__text strong { color: var(--blue); }
.logo__text small {
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 0.94rem; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav .btn { margin-left: 4px; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  margin: 5px 0;
  transition: 0.25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(48px, 6vw, 76px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.hero__lead { font-size: 1.12rem; margin-top: 18px; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Fotos (huecos reales, rotulados) ---------- */
.photo { width: 100%; }
.photo__slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-align: center;
  padding: 24px;
}
.photo__slot i { font-size: 2rem; color: var(--blue-bright); }
.photo__slot-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-top: 6px; }
.photo__slot-note { font-size: 0.8rem; color: var(--muted); }
.photo figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }

.photo--hero .photo__slot { aspect-ratio: 4 / 3; }
.photo--wide .photo__slot { aspect-ratio: 21 / 8; }

/* ---------- Oferta ---------- */
.offer { border-top: 1px solid var(--line); }
.offer__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 40px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.offer__head .label { grid-column: 1 / -1; }
.offer__price { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.offer__price strong {
  font-size: clamp(4.2rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--red);
}
.offer__price strong small { font-size: 0.45em; }
.offer__price span {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.offer__intro { max-width: 44ch; align-self: center; }

.offer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.model {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  display: grid;
  gap: 18px;
}
.model__brand {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.model header h3 { margin-top: 6px; color: var(--ink); }
.model__specs { display: grid; gap: 9px; font-size: 0.93rem; color: var(--muted); }
.model__specs li { display: flex; gap: 9px; align-items: flex-start; }
.model__specs i { color: var(--blue); font-size: 1.05rem; margin-top: 3px; }
.model footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.model__price { font-size: 1.7rem; font-weight: 900; color: var(--red); }

.includes {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
  border-radius: var(--radius-card);
  padding: 26px;
}
.includes h3 { color: var(--ink); margin-bottom: 14px; }
.includes ul { display: grid; gap: 10px; font-size: 0.93rem; }
.includes li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}
.includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}
.includes__note { font-size: 0.8rem; margin-top: 16px; line-height: 1.55; }

/* ---------- Pilares (franja del cartel) ---------- */
.pillars { background: var(--navy); padding: clamp(34px, 4.5vw, 52px) 0; }
.pillars__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.pillars li {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}
.pillars li + li { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 24px; }
.pillars i {
  font-size: 1.9rem;
  color: var(--yellow);
}

/* ---------- Servicios: lista editorial ---------- */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.service-list li {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service-list li:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
.service-list i {
  font-size: 1.7rem;
  color: var(--blue);
  flex: none;
  margin-top: 3px;
}
.service-list h3 { color: var(--ink); margin-bottom: 6px; }
.service-list p { font-size: 0.95rem; }

/* ---------- Foto ancha ---------- */
.band-photo { padding-top: 0; }

/* ---------- Marcas ---------- */
.brand-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 40px;
}
.brand-list li {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.18s ease;
}
.brand-list li:hover { color: var(--navy); }

/* ---------- Proceso: línea de tiempo ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.timeline li { position: relative; padding-top: 58px; }
.timeline__num {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 52px;
  right: -14px;
  border-top: 2px solid var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline h3 { color: var(--ink); margin-bottom: 6px; }
.timeline p { font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 20px 40px 20px 0;
  list-style: none;
  position: relative;
  font-size: 1.02rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
}
.faq__list details[open] summary::after { content: "–"; }
.faq__list details p { padding: 0 40px 22px 0; font-size: 0.97rem; }
.faq__list summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Contacto ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact__info h2 { max-width: 15ch; }
.contact__info > p { margin-top: 14px; max-width: 42ch; }
.contact__list { display: grid; gap: 15px; margin: 28px 0; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.contact__list i { font-size: 1.25rem; color: var(--blue); }
.contact__list a:hover { color: var(--blue); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.5vw, 34px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; gap: 6px; }
.form__row label { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 120, 209, 0.2);
}
.form input.is-invalid { border-color: var(--red); }
.form__help { font-size: 0.8rem; }
.form__check { display: flex; gap: 10px; font-size: 0.85rem; color: var(--muted); align-items: flex-start; }
.form__check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.form__check a { color: var(--blue); text-decoration: underline; }
.form__status { font-size: 0.92rem; font-weight: 700; min-height: 1.2em; }
.form__status.ok { color: #1b8a3c; }
.form__status.err { color: var(--red); }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: #c9d9f0; padding-top: clamp(40px, 5vw, 56px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.logo--footer .logo__text { color: #fff; }
.logo--footer .logo__text strong { color: var(--yellow); }
.footer__tag { margin-top: 14px; color: #c9d9f0; font-size: 0.95rem; }
.footer__slogan { margin-top: 6px; color: #8fa9cd; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.7; }
.footer__nav, .footer__legal { display: grid; gap: 11px; align-content: start; font-size: 0.95rem; }
.footer a:hover { color: var(--yellow); }
.footer__bottom { padding: 20px 0; font-size: 0.85rem; color: #8fa9cd; }

/* ---------- WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Revelado al entrar (solo con JS activo) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .whatsapp-float:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .photo--hero { max-width: 560px; }
  .offer__grid { grid-template-columns: 1fr 1fr; }
  .includes { grid-column: 1 / -1; }
  .pillars__inner { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .pillars li + li { border-left: 0; padding-left: 0; }
  .pillars li:nth-child(4), .pillars li:nth-child(5) { padding-top: 6px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline li::before { display: none; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(10, 45, 107, 0.14);
    display: none;
    padding: 8px 0 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav .btn { margin: 10px auto 0; }
  .burger { display: block; }
  .contact__grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; gap: 0; }
  .service-list li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 26px; }
  .topbar__hours { display: none; }
}

@media (max-width: 640px) {
  .offer__head { grid-template-columns: 1fr; align-items: start; }
  .offer__grid { grid-template-columns: 1fr; }
  .pillars__inner { grid-template-columns: repeat(2, 1fr); }
  .pillars li:nth-child(odd) { border-right: 0; }
  .timeline { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .topbar__inner { justify-content: center; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; }
}
