/* =====================================================================
   Cortinas Montes — página pública (embudo de ventas)
   Marca tomada de las fotos: azul marino + verde lima, logo en píldora negra.
   ===================================================================== */
:root {
  --navy-950: #071629;
  --navy-900: #0c2340;
  --navy-800: #12335c;
  --navy-600: #1a4a85;
  --lime: #b8f25c;
  --lime-600: #9be03a;
  --lime-ink: #10200a;
  --ink: #0e1726;
  --muted: #5b6676;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f2f5f9;
  --danger: #c62828;
  --r-lg: 24px;
  --r-md: 16px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(7, 22, 41, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.lp { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.lp img { max-width: 100%; display: block; }
.lp a { color: inherit; }
/* :where() = especificidad cero, para no anular los márgenes de cada componente */
:where(.lp) h1, :where(.lp) h2, :where(.lp) h3 { margin: 0; line-height: 1.1; }
:where(.lp) p { margin: 0; }
.lp-wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.lp-btn-lime { background: var(--lime); color: var(--lime-ink); }
.lp-btn-lime:hover { background: var(--lime-600); }
.lp-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.lp-btn-ghost:hover { border-color: var(--ink); }
.lp-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.lp-btn-outline:hover { border-color: #fff; }
.lp-btn-wa { background: #25d366; color: #06301a; }
.lp-btn-block { width: 100%; }
.lp-btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- Logo (recreado de la marca) ---------- */
.lp-logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; gap: 3px; }
.lp-logo-small { font-size: 11px; letter-spacing: .04em; color: #fff; opacity: .9; padding-left: 10px; }
.lp-logo-pill { background: #0b0b0b; color: #fff; border: 2px solid var(--lime); border-radius: 6px; padding: 4px 14px; font-weight: 600; letter-spacing: .18em; font-size: 15px; }

/* ---------- Navegación ---------- */
.lp-nav { position: sticky; top: 0; z-index: 30; background: rgba(7, 22, 41, .92); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.lp-links { display: none; gap: 24px; margin-left: auto; }
.lp-links a { text-decoration: none; font-weight: 600; font-size: 14px; opacity: .85; }
.lp-links a:hover { opacity: 1; color: var(--lime); }
.lp-staff { font-size: 13px; opacity: .7; text-decoration: none; }
.lp-nav-cta { margin-left: auto; min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; color: #fff; padding: 36px 0 56px; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 24px),
    radial-gradient(900px 500px at 85% 10%, rgba(26, 74, 133, .9), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.lp-hero-grid { display: grid; gap: 28px; grid-template-areas: "copy" "form" "side"; }
.lp-hero-copy { grid-area: copy; }
.lp-form-card { grid-area: form; }
.lp-hero-side { grid-area: side; display: grid; gap: 20px; }
.lp-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.lp-kicker-dark { color: var(--navy-600); }
.lp-hero h1 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(44px, 9vw, 76px); text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.lp-hero h1 em { color: var(--lime); font-style: italic; }
.lp-lead { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 34em; }

.lp-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-proof li { display: flex; gap: 12px; align-items: flex-start; }
.lp-proof i { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-style: normal; font-weight: 800; display: grid; place-items: center; }
.lp-proof b { display: block; font-size: 16px; }
.lp-proof span { font-size: 14px; color: rgba(255, 255, 255, .72); }
.lp-hero-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2 / 1; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .12); }
/* Encuadre de las tres cortinas: deja fuera el título y el sello que trae la foto */
.lp-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-photo img.is-brand { object-position: 50% 52%; }

/* ---------- Página del vendedor ---------- */
.lp-preview { background: #ffb547; color: #2a1a00; text-align: center; padding: 10px 16px; font-size: 14px; }
.lp-preview a { font-weight: 800; }
.lp-agent { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); text-decoration: none; }
.lp-agent img, .lp-agent-initials { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); flex: none; }
.lp-agent-initials { display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 20px; }
.lp-agent small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.lp-agent b { display: block; font-size: 16px; }
.lp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lp-gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.lp-gallery img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.lp-gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.lp-about { display: grid; gap: 28px; align-items: center; }
.lp-about-photo img, .lp-agent-initials-lg { width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: var(--r-lg); object-fit: cover; height: auto; }
.lp-agent-initials-lg { display: grid; place-items: center; background: var(--navy-900); color: var(--lime); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 96px; border: 0; }
.lp-about-name { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(34px, 6vw, 48px); text-transform: uppercase; color: var(--navy-900); }
.lp-about-zone { margin-top: 6px; color: var(--muted); font-weight: 600; }
.lp-about-text { margin: 16px 0 22px; font-size: 17px; color: var(--ink); max-width: 60ch; }

/* ---------- Tarjeta del formulario ---------- */
.lp-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.lp-form-card { padding: 22px; align-self: start; }
.lp-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lp-steps li span { height: 6px; border-radius: 4px; background: var(--line); font-size: 0; }
.lp-steps li.is-active, .lp-steps li.is-done { color: var(--ink); }
.lp-steps li.is-active span, .lp-steps li.is-done span { background: var(--lime-600); }

.lp-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.lp-step legend { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; text-transform: uppercase; color: var(--navy-900); padding: 0; margin-bottom: 2px; }
.lp-help { font-size: 14px; color: var(--muted); margin-top: -8px; }
.lp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lp-field > span { font-size: 13px; font-weight: 700; }
.lp-field small { font-weight: 500; color: var(--muted); }
.lp input[type=text], .lp input[type=tel], .lp input[type=email], .lp input[type=number], .lp select, .lp textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.lp textarea { padding: 12px 16px; min-height: 0; resize: vertical; }
.lp select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6676' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.lp input:focus, .lp select:focus, .lp textarea:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(26, 74, 133, .12); }
.lp input:disabled { background: var(--bg-alt); color: var(--muted); }
.lp .is-invalid { border-color: var(--danger) !important; }

.lp-m2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-top: -4px; }
#lp-m2 { font-weight: 800; color: var(--navy-600); }
.lp-check-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.lp-check-inline input, .lp-consent input { width: 18px; height: 18px; accent-color: var(--navy-600); }

.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips label { cursor: pointer; }
.lp-chips input { position: absolute; opacity: 0; pointer-events: none; }
.lp-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; }
.lp-chips input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.lp-chips input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.lp-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-upload { position: relative; display: block; cursor: pointer; }
.lp-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lp-upload-box {
  display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; min-height: 76px; padding: 12px 14px;
  border: 1.5px dashed #c5cfdb; border-radius: 14px; background: var(--bg-alt); font: inherit; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer;
}
.lp-upload-box small { color: var(--muted); font-size: 12px; }
.lp-upload-box.is-done { border-style: solid; border-color: var(--lime-600); background: #f3fde6; }
.lp-upload:focus-within .lp-upload-box, .lp-geo:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; }

.lp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.lp-consent input { margin-top: 2px; flex: none; }
.lp-consent a { color: var(--navy-600); font-weight: 700; }
.lp-error { background: #fdecec; color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.lp-row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-row-btns .lp-btn-lime { flex: 1; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Resultado */
.lp-result { text-align: left; }
.lp-result h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 34px; text-transform: uppercase; color: var(--navy-900); }
.lp-result .lp-from { background: var(--navy-900); color: #fff; border-radius: var(--r-md); padding: 16px 18px; }
.lp-result .lp-from span { font-size: 13px; opacity: .75; display: block; }
.lp-result .lp-from b { font-size: 34px; color: var(--lime); letter-spacing: -.01em; }
.lp-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-options li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.lp-options li b { white-space: nowrap; }
.lp-note { font-size: 13px; color: var(--muted); }
.lp-ok-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--lime); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--lime-ink); }

/* ---------- Secciones ---------- */
.lp-section { padding: 72px 0; }
.lp-section-alt { background: var(--bg-alt); }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.lp-head-left { text-align: left; margin: 0 0 24px; }
.lp-head h2, .lp-final h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(34px, 6vw, 52px); text-transform: uppercase; color: var(--navy-900); line-height: 1; }
.lp-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.lp-benefits { display: grid; gap: 20px; }
.lp-benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lp-benefit img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.lp-benefit h3 { font-size: 20px; padding: 18px 20px 6px; color: var(--navy-900); }
.lp-benefit p { padding: 0 20px 22px; color: var(--muted); }

.lp-models { display: grid; gap: 16px; }
.lp-model { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px; }
.lp-model h3 { font-size: 20px; margin-top: 16px; color: var(--navy-900); }
.lp-model p { color: var(--muted); margin-top: 4px; }
.lp-swatch { height: 150px; border-radius: 14px; border: 1px solid #d4dbe4; }
.lp-swatch-plana { background: repeating-linear-gradient(180deg, #f4f6f8 0 13px, #c8d0d9 13px 15px, #fbfcfd 15px 16px); }
.lp-swatch-europea { background: repeating-linear-gradient(180deg, #f6f7f9 0 7px, #dfe5eb 7px 13px, #f6f7f9 13px 18px, #b9c3ce 18px 20px); }
.lp-swatch-zintro { background: repeating-linear-gradient(180deg, #d9dee3 0 7px, #b8c0c8 7px 13px, #d4d9de 13px 18px, #98a2ad 18px 20px); }
.lp-systems { display: grid; gap: 16px; margin-top: 16px; }
.lp-systems article { background: var(--navy-900); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.lp-systems b { font-size: 18px; color: var(--lime); }
.lp-systems p { margin-top: 6px; color: rgba(255, 255, 255, .78); }

.lp-process { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.lp-process li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; }
.lp-process span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--navy-900); color: var(--lime); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; margin-bottom: 14px; }
.lp-process h3 { font-size: 19px; color: var(--navy-900); }
.lp-process p { margin-top: 6px; color: var(--muted); }

.lp-faq { display: grid; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.lp-faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--navy-600); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { padding: 0 0 18px; color: var(--muted); }

.lp-final { color: #fff; text-align: center; padding: 72px 0; background:
  repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 24px),
  linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.lp-final h2 { color: #fff; }
.lp-final p { margin: 12px 0 24px; color: rgba(255, 255, 255, .8); font-size: 17px; }
.lp-center { justify-content: center; }
.lp-final .lp-btn-lime { flex: 0 0 auto; }

.lp-footer { background: var(--navy-950); color: rgba(255, 255, 255, .75); padding: 36px 0 96px; font-size: 14px; }
.lp-footer-in { display: grid; gap: 18px; }
.lp-privacy summary { cursor: pointer; font-weight: 700; color: #fff; }
.lp-privacy p { margin-top: 10px; max-width: 760px; }
.lp-copy a { color: rgba(255, 255, 255, .75); }

/* Barra fija en móvil */
.lp-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; transition: transform .25s, opacity .25s; }
.lp-sticky .lp-btn { flex: 1; box-shadow: 0 10px 30px rgba(7, 22, 41, .35); }
.lp-sticky .lp-btn-wa { flex: 0 0 auto; }
.lp-sticky.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Escritorio ---------- */
@media (min-width: 720px) {
  .lp-benefits, .lp-models { grid-template-columns: repeat(3, 1fr); }
  .lp-systems { grid-template-columns: 1fr 1fr; }
  .lp-process { grid-template-columns: repeat(2, 1fr); }
  .lp-form-card { padding: 28px; }
  .lp-gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .lp-about { grid-template-columns: 320px 1fr; gap: 48px; }
}
@media (min-width: 980px) {
  .lp-links { display: flex; }
  .lp-nav-cta { margin-left: 0; }
  .lp-hero { padding: 64px 0 80px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); grid-template-areas: "copy form" "side form"; column-gap: 48px; row-gap: 28px; }
  .lp-process { grid-template-columns: repeat(4, 1fr); }
  .lp-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
  .lp-sticky { display: none; }
  .lp-footer { padding-bottom: 36px; }
  .lp-footer-in { grid-template-columns: auto 1fr; align-items: start; column-gap: 48px; }
  .lp-copy { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .lp-row2, .lp-extras { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-sticky { transition: none; }
}
