/* ============================================================
   LANDINGS COMPARTIDAS — dve-tw
   Estilos para page-landing-inversor.php y page-landing-profesional.php
   Prefijo .ld- para evitar colisión con .ll- del home
   ============================================================ */

/* ── Fuentes de Google (Playfair Display + Montserrat se cargan en assets.php) ── */
/* ── Variables de color heredadas de variables.css ──────────────────────────── */
/* #E0A856 = var(--ll-gold) · #121212 = #121212 · #FAFAF7 = var(--ll-bg) */

/* ── Container ──────────────────────────────────────────────────────────────── */
.ld-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.ld-container--narrow {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Sections ────────────────────────────────────────────────────────────────── */
.ld-section {
  padding-block: 8rem;
}

.ld-section--white {
  background: var(--ll-bg-light);
}

.ld-section--cream {
  background: var(--ll-bg);
}

.ld-section--dark {
  background: #121212;
  color: #f9f8f5;
}

/* ── Grid 2 columnas ─────────────────────────────────────────────────────────── */
.ld-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ld-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ── Tipografía ─────────────────────────────────────────────────────────────── */
.ld-eyebrow {
  display: block;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--ll-gold);
  margin-bottom: 1.5rem;
}

.ld-h1 {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.ld-h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.ld-h3 {
  font-family: var(--ff-serif);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ld-gold {
  color: var(--ll-gold);
}

.ld-lead {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 300;
  line-height: 1.75;
}

.ld-text-sm {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Botones ─────────────────────────────────────────────────────────────────── */
.ld-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.5rem;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.ld-btn:hover {
  transform: scale(1.02);
}

.ld-btn--dark {
  background: #121212;
  color: #fff;
}

.ld-btn--dark:hover {
  background: var(--ll-gold);
  color: #121212;
}

.ld-btn--gold {
  background: var(--ll-gold);
  color: #121212;
}

.ld-btn--gold:hover {
  background: var(--ll-gold-dark);
}

.ld-btn--ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.ld-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
}

.ld-btn-link {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ll-text);
  text-decoration: none;
  border-bottom: 2px solid var(--ll-gold);
  padding-bottom: 0.2rem;
  transition: color 0.2s;
}

.ld-btn-link:hover {
  color: var(--ll-gold);
}

.ld-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ── Hero: Landing Inversor ──────────────────────────────────────────────────── */
.ld-hero {
  padding: 7rem 1.5rem 8rem;
  position: relative;
  overflow: hidden;
}

.ld-hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: rgba(224, 168, 86, 0.05);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.ld-hero > .ld-container {
  position: relative;
  z-index: 1;
}

.ld-hero-img-wrap {
  position: relative;
}

.ld-hero-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f3f3f3;
}

.ld-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 1s ease;
}

.ld-hero-img:hover img {
  filter: grayscale(0);
}

.ld-hero-kpi {
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  background: var(--ll-gold);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.ld-hero-kpi-val {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #121212;
  line-height: 1;
  margin: 0 0 0.3rem;
}

.ld-hero-kpi-label {
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(18, 18, 18, 0.6);
  margin: 0;
}

/* Avatares de prueba social */
.ld-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(0,0,0,0.1);
}

.ld-avatars {
  display: flex;
}

.ld-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--ll-bg);
  overflow: hidden;
  margin-left: -0.75rem;
}

.ld-avatar:first-child {
  margin-left: 0;
}

.ld-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-social-proof-text {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  margin: 0;
}

/* ── Feature Cards (trust pillars) ──────────────────────────────────────────── */
.ld-feature-card {
  background: var(--ll-bg-light);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.22s, transform 0.22s;
}

.ld-feature-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.ld-feature-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(224, 168, 86, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.22s;
  color: var(--ll-gold);
}

.ld-feature-card:hover .ld-feature-icon {
  background: var(--ll-gold);
  color: #121212;
}

/* ── Steps numerados (acordeón visual) ──────────────────────────────────────── */
.ld-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ld-step-item {
  padding: 1.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--ll-bg-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
  cursor: default;
}

.ld-step-item:hover {
  border-color: var(--ll-gold);
}

.ld-step-item.is-active {
  border-color: var(--ll-gold);
}

.ld-step-item-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ld-step-num {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--ll-gold);
  background: #f3f3f3;
  flex-shrink: 0;
}

.ld-step-item.is-active .ld-step-num {
  background: var(--ll-gold);
  color: #121212;
}

.ld-step-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ── Dark panel con cita ─────────────────────────────────────────────────────── */
.ld-dark-panel {
  background: #121212;
  padding: 4rem 5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ld-dark-panel-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.ld-dark-panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-dark-panel-inner {
  position: relative;
  z-index: 1;
  color: #f9f8f5;
}

.ld-dark-panel-line {
  width: 5rem;
  height: 0.5rem;
  background: var(--ll-gold);
  margin-bottom: 2.5rem;
}

.ld-dark-panel blockquote {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.35;
  color: #f9f8f5;
  margin: 0 0 2.5rem;
  padding: 0;
  border: none;
}

.ld-dark-panel-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ld-dark-panel-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ll-gold);
  flex-shrink: 0;
}

.ld-dark-panel-info strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f9f8f5;
  margin-bottom: 0.3rem;
}

.ld-dark-panel-info span {
  font-size: 0.5625rem;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ── Simulador de inversión ──────────────────────────────────────────────────── */
.ld-sim {
  background: var(--ll-bg);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.ld-sim-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 5rem;
  height: 5rem;
  background: var(--ll-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ld-sim-title {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.ld-sim-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ld-sim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.75rem;
}

.ld-sim-row.is-highlight {
  color: var(--ll-gold);
}

.ld-sim-lbl {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.ld-sim-row.is-highlight .ld-sim-lbl {
  color: var(--ll-gold);
}

.ld-sim-val {
  font-weight: 700;
  color: var(--ll-text);
}

.ld-sim-row.is-highlight .ld-sim-val {
  color: var(--ll-gold);
}

.ld-sim-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  margin-top: 0.25rem;
}

.ld-sim-total-lbl {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.ld-sim-total-val {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #25d366;
}

.ld-sim-note {
  font-size: 0.625rem;
  color: #9ca3af;
  font-style: italic;
  margin-top: 0.75rem;
}

/* ── Checklist ───────────────────────────────────────────────────────────────── */
.ld-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ld-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ll-text);
}

.ld-checklist li svg {
  color: var(--ll-gold);
  flex-shrink: 0;
}

/* ── CTA Section ─────────────────────────────────────────────────────────────── */
.ld-cta-section {
  padding-block: 8rem;
  padding-inline: 1.5rem;
}

.ld-cta-box {
  background: #121212;
  padding: 6rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ld-cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.ld-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-cta-inner {
  position: relative;
  z-index: 1;
}

.ld-cta-inner .ld-h2 {
  color: #f9f8f5;
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 2.5rem;
}

.ld-cta-note {
  margin-top: 2rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  color: #6b7280;
}

/* ── Trust Badges (profesional) ──────────────────────────────────────────────── */
.ld-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.ld-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.05);
}

.ld-trust-badge svg {
  color: var(--ll-gold);
}

.ld-trust-badge span {
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6b7280;
}

/* ── Hero centrado (profesional) ─────────────────────────────────────────────── */
.ld-hero-pro {
  padding: 7rem 1.5rem 6rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: var(--ll-bg-light);
  text-align: center;
}

.ld-hero-pro .ld-h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

/* ── Mosaico de imágenes (profesional) ───────────────────────────────────────── */
.ld-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ld-mosaic-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ld-mosaic-col--offset {
  padding-top: 2.5rem;
}

.ld-mosaic-kpi {
  padding: 2rem;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ld-mosaic-kpi--dark {
  background: #121212;
}

.ld-mosaic-kpi--gold {
  background: var(--ll-gold);
}

.ld-mosaic-kpi--dark p {
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin: 0;
}

.ld-mosaic-kpi--gold p {
  font-size: 0.5625rem;
  color: rgba(18,18,18,0.6);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin: 0;
}

.ld-mosaic-img {
  overflow: hidden;
  flex: 1;
  min-height: 200px;
}

.ld-mosaic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
  transition: filter 0.4s;
}

.ld-mosaic-img:hover img {
  filter: grayscale(0);
}

/* ── Social proof cards (profesional) ───────────────────────────────────────── */
.ld-sp-card {
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  background: var(--ll-bg);
}

.ld-sp-card-icon {
  color: var(--ll-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.ld-sp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ll-text);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.2s;
}

.ld-sp-link:hover {
  color: var(--ll-gold);
}

.ld-sp-link svg {
  transition: transform 0.2s;
}

.ld-sp-link:hover svg {
  transform: translateX(3px);
}

/* ── Sección transparencia con grid de features ──────────────────────────────── */
.ld-feature-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.ld-feature-row:last-child {
  margin-bottom: 0;
}

.ld-feature-row-icon {
  width: 3rem;
  height: 3rem;
  background: var(--ll-bg-light);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ll-gold);
}

/* ── Legal box (profesional) ─────────────────────────────────────────────────── */
.ld-legal {
  background: #121212;
  color: #f9f8f5;
  padding: 4rem 5rem;
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
}

.ld-legal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0.375rem;
  height: 100%;
  background: var(--ll-gold);
}

.ld-legal h3 {
  font-family: var(--ff-serif);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #f9f8f5;
}

.ld-legal-body {
  color: #9ca3af;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.ld-legal-body strong {
  color: #f9f8f5;
  font-weight: 700;
}

.ld-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2.5rem;
}

.ld-legal-col-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--ll-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.ld-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ld-legal-list li {
  font-size: 0.75rem;
  color: #9ca3af;
}

.ld-legal-list li::before {
  content: '• ';
}

/* ── Gold accent line ────────────────────────────────────────────────────────── */
.ld-gold-line {
  width: 4rem;
  height: 0.25rem;
  background: var(--ll-gold);
  margin-bottom: 2rem;
}

/* ── Separador header sección ────────────────────────────────────────────────── */
.ld-section-head {
  margin-bottom: 5rem;
}

.ld-section-head--center {
  text-align: center;
}

.ld-section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .ld-grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ld-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ld-hero {
    padding: 6rem 1.5rem 5rem;
  }

  .ld-hero-kpi {
    display: none;
  }

  .ld-dark-panel {
    padding: 3rem 2rem;
  }

  .ld-legal {
    padding: 2.5rem 2rem;
  }

  .ld-legal-grid {
    grid-template-columns: 1fr;
  }

  .ld-section {
    padding-block: 5rem;
  }

  .ld-cta-box {
    padding: 5rem 2rem;
  }
}

@media (max-width: 767px) {
  .ld-grid-3 {
    grid-template-columns: 1fr;
  }

  .ld-mosaic {
    grid-template-columns: 1fr;
  }

  .ld-mosaic-col--offset {
    padding-top: 0;
  }

  .ld-trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .ld-section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .ld-btn-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ld-hero-pro {
    text-align: left;
  }

  .ld-trust-badges {
    justify-content: flex-start;
  }

  .ld-hero-pro .ld-trust-badges {
    justify-content: flex-start;
  }
}
