/* ─────────────────────────────────────────────────────────────
   Pasifae Arquitech — Landing de conversión: Rehabilitación en
   Vilanova i la Geltrú. SIN navbar ni footer de sitio: embudo
   sellado, todo conduce al CTA (patrón "Landing Page CRO").
   ───────────────────────────────────────────────────────────── */

:root {
  --cream: #faf6ef;
  --cream-deep: #f3ede2;
  --ink: #1c1917;
  --ink-soft: #4a4440;
  --terra: #b75c4c;
  --terra-dark: #71362e;
  --terra-soft: #ead3cb;
  --radius: 24px;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--terra); color: var(--cream); }

em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }

.label-caps { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; }

/* ── Hero ───────────────────────────────────────────────────── */
.lp-hero {
  padding: clamp(40px, 7vh, 88px) 40px clamp(48px, 8vh, 88px);
  max-width: 1100px;
  margin-inline: auto;
}
.lp-brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: clamp(40px, 8vh, 80px); }
.lp-brand span:first-child { font-size: 22px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.lp-brand-tag { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.6; }
.lp-hero .label-caps { color: var(--terra); margin-bottom: 24px; }
.lp-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 500; line-height: 1.0; letter-spacing: -0.045em; max-width: 18ch;
}
.lp-aeo {
  margin-top: clamp(28px, 4vh, 40px);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--ink-soft);
  max-width: 60ch; border-left: 2px solid var(--terra); padding-left: 24px; text-wrap: pretty;
}
.lp-hero-cta { margin-top: clamp(32px, 5vh, 48px); display: flex; flex-wrap: wrap; gap: 14px; }

.lp-btn { display: inline-block; text-decoration: none; font-size: 15px; font-weight: 500; padding: 15px 30px; border-radius: 999px; transition: background 0.3s, color 0.3s; }
.lp-btn-primary { background: var(--terra); color: var(--cream); }
.lp-btn-primary:hover { background: var(--terra-dark); }
.lp-btn-cream { background: var(--cream); color: var(--ink); }
.lp-btn-cream:hover { background: var(--ink); color: var(--cream); }

/* ── Secciones ──────────────────────────────────────────────── */
.lp-section { max-width: 1100px; margin-inline: auto; padding: clamp(40px, 7vh, 80px) 40px; }
.lp-num { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.2rem; color: var(--terra); display: block; margin-bottom: 14px; }
.lp-h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 24px; max-width: 22ch; }
.lp-lead { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 26ch; text-wrap: pretty; }
.lp-body { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }

/* Beneficios */
.lp-benefits { display: grid; gap: 1px; background: rgb(28 25 23 / 0.12); border-radius: var(--radius); overflow: hidden; }
.lp-benefit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; padding: 22px 28px; background: var(--cream); }
.lp-benefit-do { font-weight: 500; }
.lp-benefit-win { color: var(--ink-soft); }

/* Imagen de impacto bajo el hero */
.lp-hero-img {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 40px;
}
.lp-hero-img img {
  width: 100%;
  height: clamp(360px, 72vh, 760px);
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: var(--cream-deep);
}
.lp-hero-img-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.lp-cap-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: var(--terra);
  margin-right: 6px;
}

/* Obra real: piezas editoriales full-width (el trabajo es el testimonio) */
.lp-showcase { padding-bottom: 0; }
.lp-work {
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(28px, 4vh, 48px) 40px 0;
  display: grid;
  gap: clamp(32px, 6vh, 64px);
}
.lp-work-item { margin: 0; }
.lp-work-item img {
  width: 100%;
  height: clamp(320px, 62vh, 660px);
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: var(--cream-deep);
}
.lp-work-item figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}
.lp-work-item figcaption em {
  font-size: 1.25rem;
  color: var(--ink);
  margin-right: 4px;
}
.lp-proof-coac { font-size: 13px; color: var(--ink-soft); }

/* Franja CTA */
.lp-cta-band {
  width: min(1020px, calc(100% - 80px));
  margin: clamp(24px, 4vh, 48px) auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: var(--terra); color: var(--cream); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
}
.lp-cta-band p { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; max-width: 22ch; }

/* Pasos */
.lp-steps { list-style: none; counter-reset: step; display: grid; gap: 2px; }
.lp-steps li { counter-increment: step; position: relative; padding: 22px 0 22px 64px; border-top: 1px solid rgb(28 25 23 / 0.12); font-size: 1.1rem; line-height: 1.5; color: var(--ink-soft); }
.lp-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.4rem; color: var(--terra); }
.lp-steps strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.lp-faq { border-top: 1px solid rgb(28 25 23 / 0.12); }
.lp-faq dt { font-size: 1.15rem; font-weight: 600; padding: 22px 0 8px; letter-spacing: -0.01em; }
.lp-faq dd { padding-bottom: 22px; border-bottom: 1px solid rgb(28 25 23 / 0.12); color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }

/* Formulario + CTA final */
.lp-form-section {
  background: var(--ink); color: var(--cream);
  padding: clamp(56px, 10vh, 128px) 40px;
  margin-top: clamp(48px, 8vh, 96px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.lp-form-section > * { max-width: 540px; }
.lp-form-intro { justify-self: end; width: 100%; }
.lp-form-intro .label-caps { color: var(--terra-soft); margin-bottom: 20px; }
.lp-form-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; }
.lp-form-sub { margin-top: 18px; color: rgb(250 246 239 / 0.7); font-size: 1.05rem; line-height: 1.5; max-width: 40ch; }
.lp-form-data { margin-top: clamp(28px, 4vh, 40px); display: grid; gap: 18px; }
.lp-form-data .label-caps { color: rgb(250 246 239 / 0.5); margin-bottom: 4px; }
.lp-form-data dd { color: var(--cream); }
.lp-form-data a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

.lp-form { display: grid; gap: 22px; width: 100%; }
.lp-field { display: grid; gap: 6px; }
.lp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lp-field label { font-size: 13px; font-weight: 500; color: rgb(250 246 239 / 0.7); }
.lp-field input, .lp-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgb(250 246 239 / 0.3); background: transparent;
  padding: 12px 0; font: inherit; font-size: 16px; color: var(--cream); outline: none; border-radius: 0; transition: border-color 0.3s;
}
.lp-field textarea { resize: none; }
.lp-field input::placeholder, .lp-field textarea::placeholder { color: rgb(250 246 239 / 0.35); }
.lp-field input:focus, .lp-field textarea:focus { border-bottom-color: var(--terra-soft); }
.lp-field input.is-invalid, .lp-field textarea.is-invalid { border-bottom-color: #e0776a; }
.lp-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgb(250 246 239 / 0.7); cursor: pointer; }
.lp-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--terra); flex: none; }
.lp-consent a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.lp-submit { border: 0; cursor: pointer; background: var(--cream); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; padding: 17px 34px; border-radius: 999px; transition: background 0.3s, color 0.3s; justify-self: start; }
.lp-submit:hover { background: var(--terra); color: var(--cream); }

.lp-sent { grid-column: 1 / -1; max-width: none; border: 1px solid rgb(250 246 239 / 0.25); background: rgb(250 246 239 / 0.05); border-radius: var(--radius); padding: 32px; }
.lp-sent-title { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.5rem; margin-bottom: 12px; }
.lp-sent p { color: rgb(250 246 239 / 0.8); line-height: 1.6; }
.lp-sent a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA pegajoso (única acción) ────────────────────────────── */
.lp-sticky {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  z-index: 40; background: var(--terra); color: var(--cream); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 15px 32px; border-radius: 999px;
  box-shadow: 0 10px 30px rgb(28 25 23 / 0.25); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.94, 0.6, 1), opacity 0.4s;
  pointer-events: none;
}
.lp-sticky.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.lp-sticky:hover { background: var(--terra-dark); }

/* ── Aviso legal mínimo ─────────────────────────────────────── */
.lp-legal { background: var(--ink); padding: 0 40px 40px; text-align: center; }
.lp-legal p { font-size: 12px; color: rgb(250 246 239 / 0.45); line-height: 1.8; }
.lp-legal a { color: rgb(250 246 239 / 0.6); text-decoration: none; }
.lp-legal a:hover { color: var(--cream); }

/* ── Reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.32, 0.94, 0.6, 1), transform 0.7s cubic-bezier(0.32, 0.94, 0.6, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero, .lp-section, .lp-hero-img, .lp-work { padding-inline: 20px; }
  .lp-hero-img img { height: clamp(280px, 52vh, 480px); }
  .lp-work-item img { height: clamp(260px, 48vh, 440px); }
  .lp-benefit { grid-template-columns: 1fr; gap: 4px; }
  .lp-cta-band { width: calc(100% - 40px); }
  .lp-form-section { grid-template-columns: 1fr; padding-inline: 20px; }
  .lp-form-intro { justify-self: stretch; }
  .lp-form-section > * { max-width: none; }
  .lp-field-row { grid-template-columns: 1fr; }
  .lp-legal { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Señal verde: propuesta nuestra, a validar */
.authored-star {
  color: #4f8a5b;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
}
