/* ============================================================
   Landing "Estudio gratuito de tu factura de luz"
   Tema a medida: "Confident daylight" (cobalto + mantequilla)
   100% autocontenida. Sin marca, sin BD, sin backend.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #f7f6f2;
  --panel: #ffffff;
  --ink: #16151a;
  --muted: #615f6b;
  --line: #e7e4dc;
  --cobalt: #2f4bff;
  --cobalt-dark: #1f38d6;
  --butter: #ffcf4d;
  --f-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--f-body); font-size: 1.6rem; line-height: 1.6;
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 2.4rem; }
.is-hidden { display: none !important; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: flex-end; max-width: 1080px; margin: 0 auto; padding: 1.4rem 2.4rem; }
.btn { display: inline-flex; align-items: center; gap: 0.8rem; cursor: pointer; text-decoration: none; border: 0; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; padding: 1.2rem 2.4rem; transition: transform 0.12s ease, background 0.15s ease; }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-dark); transform: translateY(-2px); }
.btn--lg { font-size: 1.75rem; padding: 1.6rem 3rem; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 8rem 0 6rem; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--f-body); font-weight: 600; font-size: 1.3rem;
  color: var(--cobalt); background: #eaecff; border-radius: 999px; padding: 0.6rem 1.4rem; margin: 0 0 2.4rem; }
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 7vw, 7.6rem); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 2.4rem; max-width: 15ch; }
.mark { background: linear-gradient(180deg, transparent 62%, var(--butter) 62%); padding: 0 0.2rem; }
.hero__lead { font-size: 2rem; color: var(--muted); max-width: 52ch; margin: 0 0 3.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.hero__meta { font-size: 1.35rem; color: var(--muted); }

/* Franja de "logos"/confianza neutra */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 2rem 4rem; justify-content: space-between; padding: 2.8rem 0; }
.trust__item { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.5rem; }
.trust__item svg { width: 2.2rem; height: 2.2rem; color: var(--cobalt); flex-shrink: 0; }

/* Secciones */
.section { padding: 8rem 0; }
.section__head { max-width: 56rem; margin: 0 0 4.8rem; }
.kicker { font-family: var(--f-body); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 1.4rem; }
.section__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.4rem; }
.section__intro { font-size: 1.8rem; color: var(--muted); margin: 0; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 3rem 2.6rem; }
.step__n { font-family: var(--f-display); font-weight: 800; font-size: 4.4rem; line-height: 1; color: var(--cobalt); margin: 0 0 1.6rem; -webkit-text-stroke: 0; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 2.1rem; margin: 0 0 0.6rem; }
.step p { font-size: 1.55rem; color: var(--muted); margin: 0; }

/* Lista "qué revisamos" */
.review { background: var(--ink); color: #fff; border-radius: 28px; padding: 5.6rem; }
.review .section__title { color: #fff; }
.review__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 3.2rem; margin-top: 3.2rem; }
.review__item { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.4rem 0; border-top: 1px solid #2c2b33; }
.review__item svg { width: 2.4rem; height: 2.4rem; color: var(--butter); flex-shrink: 0; margin-top: 0.2rem; }
.review__item h4 { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; margin: 0 0 0.2rem; }
.review__item p { font-size: 1.4rem; color: #b3b1bd; margin: 0; }

/* Formulario */
.form-section { background: var(--panel); border-top: 1px solid var(--line); }
.form-card { max-width: 60rem; margin: 0 auto; }
.form-card__head { text-align: center; margin-bottom: 3.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1.35rem; }
.field input { font-family: var(--f-body); font-size: 1.6rem; color: var(--ink); padding: 1.5rem 1.6rem; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color 0.14s ease; }
.field input:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.field input.invalid { border-color: #d8402c; background: #fdeeeb; }
.field__err { color: #d8402c; font-size: 1.25rem; min-height: 1.4rem; }
.consent { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: flex-start; font-size: 1.3rem; color: var(--muted); margin-top: 0.6rem; }
.consent input { width: 2rem; height: 2rem; margin-top: 0.2rem; accent-color: var(--cobalt); flex-shrink: 0; }
.consent a { color: var(--ink); text-decoration: underline; }
.form-actions { grid-column: 1 / -1; margin-top: 1rem; }
.form-actions .btn { width: 100%; justify-content: center; }
.form-note { grid-column: 1 / -1; text-align: center; font-size: 1.25rem; color: var(--muted); margin-top: 1.2rem; }

/* Éxito en cliente */
.form-success { text-align: center; padding: 2rem 0; animation: rise 0.4s ease both; }
.form-success__badge { width: 8rem; height: 8rem; margin: 0 auto 2rem; color: var(--cobalt); }
.form-success h3 { font-family: var(--f-display); font-weight: 800; font-size: 2.8rem; margin: 0 0 1rem; }
.form-success p { font-size: 1.7rem; color: var(--muted); margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 4.8rem 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
.site-footer small { color: var(--muted); font-size: 1.3rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.site-footer__links a { color: var(--muted); text-decoration: none; font-size: 1.3rem; }
.site-footer__links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .review { padding: 3.6rem 2.4rem; }
  .review__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 5.6rem 0 4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }
