/* ============================================================
   Landing Carlos — Inversión inmobiliaria delegada
   Sistema: porcelana fría + tinta + azul marino + dorado (CTA)
   Tipos:   Spectral (display) · Public Sans (cuerpo/UI)
   ============================================================ */

:root {
  --paper: #f6f7f9;      /* fondo porcelana frío */
  --card: #ffffff;
  --ink: #111111;        /* texto principal */
  --navy: #12233f;       /* detalles, cifras, banda del dossier */
  --navy-soft: #1d3557;
  --gold: #bd9939;       /* SOLO acciones */
  --gold-dark: #a3822c;
  --muted: #5a6472;      /* texto secundario */
  --line: #e2e5ea;       /* filetes */
  --error: #b3261e;
  --radius: 8px;
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Cabecera (sin navegación: cero escapes) ---------- */

.site-header {
  padding: 26px 0 8px;
}

.logo {
  height: 36px;
  width: auto;
  display: block;
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}

.wordmark .dot { color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 21ch;
  max-width: 24ch;
}

.hero h1 strong {
  font-weight: 500;
  color: var(--navy);
}

.hero .subtitle {
  margin-top: 22px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 46ch;
}

/* Firma del ponente — señal de autoridad bajo el hero */
.presenter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.presenter-mark {
  width: 3px;
  height: 40px;
  background: var(--gold);
  border-radius: 2px;
  flex: none;
}

.presenter-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--navy);
  line-height: 1.2;
}

.presenter-text span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Dossier (formulario como term-sheet) ---------- */

.dossier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(18, 35, 63, 0.28);
}

.dossier-head {
  background: var(--navy);
  color: #fff;
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.dossier-head .title {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dossier-head .meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.dossier-rule {
  height: 2px;
  background: var(--gold);
}

.dossier form {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312233f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field input::placeholder { color: #9aa2ad; }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(189, 153, 57, 0.22);
}

.field input:focus-visible,
.field select:focus-visible,
.consent input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* honeypot — invisible para humanos, no display:none (algunos bots lo detectan) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.consent input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
  flex: none;
}

.consent a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-submit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-submit:hover { background: #cba64a; }
.btn-submit:active { transform: translateY(1px); }

.btn-submit[disabled] {
  background: #d8c9a2;
  cursor: wait;
}

.form-note {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  margin-top: -6px;
}

.form-error {
  display: none;
  font-size: 0.85rem;
  color: var(--error);
  background: #fdf1f0;
  border: 1px solid #f2c9c6;
  border-radius: 6px;
  padding: 10px 14px;
}

.form-error.visible { display: block; }

/* ---------- Franja de pilares ---------- */

.pillars {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfbfc;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  padding: 38px 32px;
}

.pillar + .pillar { border-left: 1px solid var(--line); }

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Página de gracias ---------- */

.thanks-main {
  padding: 64px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.seal {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.seal svg { display: block; }

.thanks-main h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.25;
}

.thanks-main h1 strong {
  font-weight: 500;
  color: var(--navy);
}

.thanks-main .lede {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
}

.next-steps {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.next-steps .step {
  display: flex;
  gap: 18px;
  padding: 22px 26px;
  align-items: flex-start;
}

.next-steps .step + .step { border-top: 1px solid var(--line); }

.step-marker {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-dark);
  flex: none;
  width: 26px;
  text-align: center;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.step p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 3px;
}

.scheduler {
  margin-top: 48px;
}

.scheduler h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--navy);
}

.scheduler .hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 20px;
}

.scheduler-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  min-height: 640px;
}

/* ---------- Página de privacidad ---------- */

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-main h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.legal-main h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 8px;
}

.legal-main p, .legal-main li {
  font-size: 0.95rem;
  color: #333a45;
}

.legal-main ul { padding-left: 22px; }

/* ---------- Pie ---------- */

.site-footer {
  padding: 44px 0 52px;
}

.site-footer .disclaimer {
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 82ch;
  line-height: 1.6;
}

.site-footer .legal-line {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.76rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Banner de cookies ---------- */

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 660px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -18px rgba(18, 35, 63, 0.35);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cookie-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-accept {
  background: var(--gold);
  color: var(--ink);
}

.cookie-accept:hover { background: #cba64a; }

.cookie-reject {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.cookie-reject:hover { color: var(--ink); }

@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions { justify-content: flex-end; }
}

/* ---------- Animación de entrada (sobria) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.24s; }

  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar + .pillar {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .pillar { padding: 26px 8px; }
}

@media (max-width: 480px) {
  .dossier form { padding: 20px; }
  .dossier-head { padding: 12px 20px; }
}
