/* ============================================================
   MODULINE HOME — Estilos
   ------------------------------------------------------------
   Paleta (cámbiala aquí si quieres otros colores):
   --teal: confianza / limpieza
   --amber: calidez / acción (botones)
   --cream: fondo cálido
   ============================================================ */

:root {
  --teal: #0f766e;
  --teal-dark: #0b5a54;
  --teal-soft: #e6f3f1;
  --amber: #f97316;
  --amber-dark: #ea580c;
  --cream: #fbf8f3;
  --ink: #1f2a37;
  --ink-soft: #51606f;
  --line: #e7e2d8;
  --white: #ffffff;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 42, 55, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 42, 55, 0.14);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 720px; }

.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}
.btn--primary:hover { background: var(--amber-dark); }

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn--ghost:hover { background: var(--teal-soft); }

.btn--big { padding: 17px 34px; font-size: 1.08rem; }
.btn--small { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 100% 0%, var(--teal-soft) 0%, transparent 55%),
    var(--cream);
  padding: 40px 0 56px;
}
.hero__inner { display: grid; gap: 32px; }
.tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero .hl { color: var(--teal); }
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
}

/* ---------- Placeholders de imagen ---------- */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: repeating-linear-gradient(
    45deg, #eef1f0, #eef1f0 12px, #e7ebe9 12px, #e7ebe9 24px);
  border: 2px dashed #b9c4c1;
  border-radius: var(--radius);
  color: #6b7a77;
  font-weight: 700;
  padding: 24px;
}
.placeholder small { font-weight: 500; color: #8a9794; }
.placeholder--hero { aspect-ratio: 4 / 3; }
.placeholder--ba { aspect-ratio: 4 / 3; }
.ba__before { border-color: #d8a9a0; background: repeating-linear-gradient(45deg,#f6ece9,#f6ece9 12px,#f0ddd8 12px,#f0ddd8 24px); }
.ba__after  { border-color: #93c7bf; background: repeating-linear-gradient(45deg,#e7f3f1,#e7f3f1 12px,#d6ebe7 12px,#d6ebe7 24px); }

/* ---------- Imágenes reales ---------- */
.hero__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.ba__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Acabados / colores ---------- */
.finishes { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.finish { margin: 0; }
.finish img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.finish figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--white); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section__head h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Antes y después ---------- */
.ba {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.ba__item { margin: 0; }
.ba__item figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .95rem;
}
.ba__arrow {
  display: none;
  align-self: center;
  font-size: 2rem;
  color: var(--teal);
  font-weight: 800;
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 18px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.section--alt .step { background: var(--cream); }
.step__num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 12px;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- Features ---------- */
.features { display: grid; gap: 16px; }
.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section--alt .feature { background: var(--white); }
.feature__icon { font-size: 2rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Precios ---------- */
.pricing {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto 24px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card--featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card__label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: 8px;
}
.price-card__amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.price-card p { color: var(--ink-soft); font-size: .96rem; }
.price-note {
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .98rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  box-shadow: var(--shadow);
}
.section--alt .faq details { background: var(--cream); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 16px; color: var(--ink-soft); }

/* ---------- Formulario / CTA final ---------- */
.cta-final {
  background:
    radial-gradient(120% 100% at 0% 0%, var(--teal-soft) 0%, transparent 50%),
    var(--cream);
}
.lead-form {
  display: grid;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}
.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: .95rem;
}
.lead-form .opt { font-weight: 500; color: var(--ink-soft); }
.lead-form input,
.lead-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.lead-form input.invalid,
.lead-form textarea.invalid { border-color: #e0564b; background: #fdecea; }
.form-hint {
  text-align: center;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: -2px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-dark);
  color: #d8ece9;
  padding: 26px 0;
  font-size: .95rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer a { color: #fff; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* ---------- Botón flotante WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform .12s ease;
}
.float-wa:hover { transform: translateY(-2px); }
.float-wa svg { flex-shrink: 0; }

/* ============================================================
   ESCRITORIO / TABLET (mobile-first: estas reglas son para
   pantallas más grandes)
   ============================================================ */
@media (min-width: 760px) {
  .hero { padding: 64px 0 72px; }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .hero h1 { font-size: 3rem; }

  .ba {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 22px;
  }
  .ba__arrow { display: flex; margin-top: 22%; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .finishes { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .pricing { grid-template-columns: repeat(2, 1fr); align-items: center; }

  .section__head h2 { font-size: 2.1rem; }
  .section { padding: 72px 0; }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* Respeta a quien prefiere menos animación */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .float-wa { transition: none; }
}
