/* ============================================================
   Landing "Ahorra energía en casa"
   Tema a medida: "Cozy eco" (verde pino + terracota, redondeado)
   100% autocontenida. Sin marca, sin BD, sin backend.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #fef9f0;
  --bg2: #f7efe0;
  --panel: #ffffff;
  --ink: #22302a;
  --muted: #6c7a70;
  --line: #ece3d3;
  --pine: #1f6f5c;
  --pine-dark: #17564a;
  --clay: #e07a5f;
  --sun: #f2b705;
  --f-display: "Fredoka", "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: 1100px; margin: 0 auto; padding: 0 2.4rem; }
.is-hidden { display: none !important; }

/* Header */
.site-header { background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: flex-end; max-width: 1100px; margin: 0 auto; padding: 2rem 2.4rem; }
.btn { display: inline-flex; align-items: center; gap: 0.8rem; cursor: pointer; text-decoration: none; border: 0; border-radius: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; padding: 1.3rem 2.6rem; transition: transform 0.12s ease, background 0.15s ease; }
.btn--primary { background: var(--pine); color: #fff; box-shadow: 0 12px 24px -12px rgba(31,111,92,0.7); }
.btn--primary:hover { background: var(--pine-dark); transform: translateY(-2px); }
.btn--lg { font-size: 1.8rem; padding: 1.6rem 3.2rem; }
.btn--clay { background: var(--clay); color: #fff; box-shadow: 0 12px 24px -12px rgba(224,122,95,0.7); }
.btn--clay:hover { background: #cf6a50; }

/* Hero */
.hero { padding: 4rem 0 6rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4.8rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem;
  color: var(--pine); background: #e3f0ea; border-radius: 999px; padding: 0.7rem 1.6rem; margin: 0 0 2rem; }
.hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(3.6rem, 5.4vw, 5.6rem); line-height: 1.02; margin: 0 0 1.8rem; }
.hero__title .wave { color: var(--clay); }
.hero__lead { font-size: 1.95rem; color: var(--muted); margin: 0 0 3rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.hero__meta { font-size: 1.4rem; color: var(--muted); }
.hero__art { display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 42rem; height: auto; }

/* Tips */
.section { padding: 7rem 0; }
.section--warm { background: var(--bg2); border-radius: 40px; margin: 0 1.2rem; }
.section__head { text-align: center; max-width: 58rem; margin: 0 auto 4.4rem; }
.kicker { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay); margin: 0 0 1rem; }
.section__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.8rem, 4vw, 4rem); line-height: 1.05; margin: 0 0 1.2rem; color: var(--ink); }
.section__intro { font-size: 1.8rem; color: var(--muted); margin: 0; }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tip { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 2.8rem 2.4rem; transition: transform 0.15s ease; }
.tip:hover { transform: translateY(-4px); }
.tip__icon { width: 5.2rem; height: 5.2rem; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.6rem; }
.tip__icon svg { width: 2.8rem; height: 2.8rem; }
.tip__icon--pine { background: #e3f0ea; color: var(--pine); }
.tip__icon--clay { background: #fbe7df; color: var(--clay); }
.tip__icon--sun  { background: #fdf1cf; color: #b9860a; }
.tip h3 { font-family: var(--f-display); font-weight: 600; font-size: 2rem; margin: 0 0 0.6rem; }
.tip p { font-size: 1.5rem; color: var(--muted); margin: 0; }

/* Hábitos (lista con checks decorativos) */
.habits__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 3.2rem; max-width: 82rem; margin: 0 auto; }
.habit { display: flex; gap: 1.4rem; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem 2rem; }
.habit__check { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--pine); color: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.habit__check svg { width: 1.6rem; height: 1.6rem; }
.habit p { margin: 0; font-size: 1.55rem; }
.habit strong { font-family: var(--f-display); font-weight: 600; }

/* Formulario */
.form-wrap { background: var(--pine); border-radius: 40px; padding: 5.6rem 4rem; color: #fff; }
.form-wrap .kicker { color: var(--sun); }
.form-wrap .section__title { color: #fff; }
.form-wrap .section__intro { color: #cfe3dc; }
.form-card { max-width: 56rem; margin: 3.2rem auto 0; background: var(--panel); color: var(--ink); border-radius: 28px; padding: 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-family: var(--f-display); font-weight: 600; font-size: 1.4rem; }
.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: 14px; transition: border-color 0.14s ease; }
.field input:focus { outline: none; border-color: var(--pine); background: #fff; }
.field input.invalid { border-color: var(--clay); background: #fbe7df; }
.field__err { color: var(--clay); font-size: 1.25rem; min-height: 1.4rem; font-weight: 600; }
.consent { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: flex-start; font-size: 1.3rem; color: #3c463f; margin-top: 0.4rem; }
.consent input { width: 2rem; height: 2rem; margin-top: 0.2rem; accent-color: var(--pine); flex-shrink: 0; }
.consent a { color: var(--pine); 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; }

.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(--pine); }
.form-success h3 { font-family: var(--f-display); font-weight: 700; 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 { padding: 5.6rem 0 4.8rem; }
.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(--pine); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .hero__art { order: -1; }
  .tips { grid-template-columns: 1fr; }
  .habits__grid { grid-template-columns: 1fr; }
  .section--warm { margin: 0; border-radius: 28px; }
}
@media (max-width: 560px) {
  .form-wrap { padding: 3.2rem 1.8rem; border-radius: 28px; }
  .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; } }
