/* =========================================================================
   landing.css — Landing Bienes Raíces · "Prepara tu sitio para la IA"
   Black n Orange · es-MX

   Imports el design system compartido desde public/assets/grader.css
   (que a su vez importa brand/colors_and_type.css).
   Todos los tokens BnO vienen de ahí; aquí solo viven los componentes
   exclusivos de esta landing.
   ========================================================================= */

/* Ruta relativa: esta landing está en landings/bienes-raices/assets/
   Los assets de marca están en public/assets/                          */
@import "../../assets/grader.css";

/* =========================================================================
   EYEBROW OVERRIDE — accent por industria (naranja de marca BnO)
   ========================================================================= */
.eyebrow.ind-accent,
[data-ind="bienes-raices"] .eyebrow.ind-accent {
  color: var(--bno-fiery-orange);
}
.eyebrow.ind-accent::before {
  background: var(--bno-fiery-orange);
}
/* Quita la franja de color que pone grader.css al eyebrow de BR
   (queda solo el guion naranja + el texto, igual que las otras landings) */
.hero[data-ind="bienes-raices"] .ind-accent {
  background: none;
  padding: 0;
}

/* =========================================================================
   HERO — variante landing (sin form card; con visual de foto)
   ========================================================================= */
.hero {
  background:
    linear-gradient(180deg, var(--bno-paper) 0%, var(--bno-cool-gray) 100%);
  padding-top: 56px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.0;
}

.hero-sub {
  margin: 0 0 32px;
  color: var(--color-fg-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  max-width: 52ch;
}

.hero-micro {
  font-size: 13px;
  color: var(--color-fg-subtle);
  font-weight: 600;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

/* Large CTA button */
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-hero-cta {
  font-size: 17px;
  min-height: 56px;
  padding: 0 32px;
  letter-spacing: 0.01em;
}

/* =========================================================================
   HERO VISUAL (placeholder de foto + badge de score)
   ========================================================================= */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.photo-slot {
  border-radius: 12px;
  overflow: hidden;
  border: 2px dashed var(--color-border);
  background: var(--bno-cool-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-fg-subtle);
  font: 600 13px/1.4 var(--font-sans);
}

.photo-slot--hero {
  min-height: 320px;
}

.photo-slot--filled {
  border: none;
  background: none;
  display: block;
  box-shadow: 0 18px 40px rgba(21, 17, 13, 0.16);
}

.photo-slot--filled img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot--inline {
  min-height: 180px;
  margin-top: 24px;
}

.photo-label {
  max-width: 28ch;
  padding: 16px;
}

/* Score badge flotante sobre la foto */
.hero-badge {
  position: absolute;
  bottom: -20px;
  right: -12px;
  background: var(--bno-slack-black);
  color: var(--bno-paper);
  border-radius: 12px;
  padding: 14px 20px;
  display: grid;
  gap: 2px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.badge-score {
  font: 450 48px/0.9 var(--font-display);
  color: var(--grade-fair);
}

.badge-label {
  font: 700 12px/1.3 var(--font-sans);
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
}

/* =========================================================================
   SECCIÓN DOLOR — fondo negro, escena de chat
   ========================================================================= */
.bg-ink {
  background: var(--bno-slack-black);
  color: var(--bno-paper);
}

.text-light {
  color: var(--bno-paper);
}

.text-muted-light {
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  line-height: 1.6;
  max-width: 58ch;
}

.eyebrow--light {
  color: rgba(255,255,255,0.54);
}
.eyebrow--light::before {
  background: rgba(255,255,255,0.38);
}

.section-head h2.text-light {
  color: var(--bno-paper);
}

/* Chat demo */
.chat-demo {
  display: grid;
  gap: 14px;
  max-width: 660px;
  margin: 0 0 36px;
}

.chat-bubble {
  padding: 18px 22px;
  border-radius: 14px;
  display: grid;
  gap: 8px;
}

.chat-bubble--user {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px 14px 14px 4px;
}

.chat-bubble--ai {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px 14px 4px 14px;
  margin-left: 24px;
}

.chat-role {
  font: 800 11px/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.44);
}

.chat-bubble p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 100%;
}

.chat-bubble--ai p strong {
  color: var(--bno-fiery-orange);
}

.dolor-copy {
  margin-top: 8px;
}

.dolor-copy .lede {
  font-size: clamp(22px, 3vw, 32px);
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* =========================================================================
   STATS GRID
   ========================================================================= */
.section-sub {
  margin: 12px 0 0;
  color: var(--color-fg-muted);
  font-size: 16px;
  max-width: 52ch;
}

.section-head.center .section-sub {
  margin-inline: auto;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bno-paper);
  border: 1.5px solid var(--bno-slack-black);
  border-radius: 12px;
  padding: 28px 24px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: var(--en-shadow);
}

.stat-card--accent {
  background: var(--bno-slack-black);
  color: var(--bno-paper);
}

.stat-num {
  font: 450 clamp(52px, 7vw, 80px)/0.9 var(--font-display);
  color: var(--bno-fiery-orange);
  letter-spacing: -0.01em;
}

.stat-pct {
  font-size: 0.5em;
  vertical-align: super;
  color: inherit;
}

.stat-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  max-width: 100%;
}

.stat-card--accent .stat-desc {
  color: rgba(255,255,255,0.88);
}

.stat-source {
  display: block;
  font: 500 11.5px/1.4 var(--font-sans);
  color: var(--color-fg-subtle);
  font-style: normal;
}

.stat-card--accent .stat-source {
  color: rgba(255,255,255,0.38);
}

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: rgba(0,0,0,0.07);
  padding: 1px 5px;
  border-radius: 4px;
}

.stats-disclaimer {
  margin: 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-fg-muted);
  padding: 16px 20px;
  border-left: 3px solid var(--bno-fiery-orange);
  background: rgba(254,131,1,0.06);
  border-radius: 0 8px 8px 0;
}

/* =========================================================================
   PASOS (steps) — reusan .step, .step-num, .steps-grid del sistema base
   ========================================================================= */
.steps-cta {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

/* =========================================================================
   RESULT SHOWCASE — mockup + bullets
   ========================================================================= */
.result-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.result-mockup-wrap {
  /* Leve efecto de profundidad sin peso extra */
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.14));
}

.result-mockup {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--bno-slack-black);
}

.result-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--color-fg-subtle);
  text-align: center;
}

.result-bullets-col {
  display: grid;
  gap: 20px;
  align-content: start;
}

.result-bullets-head {
  margin: 0;
  font: 800 13px/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-fg-muted);
}

/* =========================================================================
   CTA GRID — BOOMS + Agenda (reutiliza .cta-card, .cta-grid del base)
   ========================================================================= */

/* CTA section override */
.report-cta__sub {
  color: rgba(255,255,255,0.80);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  margin: 0 0 8px;
  max-width: 58ch;
}

.report-cta__legal {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  max-width: none;
}

/* =========================================================================
   LEDE — párrafo de cuerpo grande
   ========================================================================= */
.lede {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1; /* foto arriba en móvil */
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-badge {
    bottom: -16px;
    right: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .result-showcase {
    grid-template-columns: 1fr;
    max-width: 660px;
    margin-inline: auto;
  }

  .result-bullets-col {
    order: -1; /* bullets arriba del mockup en tablet/móvil */
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .photo-slot--hero {
    min-height: 220px;
  }

  .hero-badge {
    position: static;
    display: inline-flex;
    gap: 12px;
    align-items: baseline;
    background: var(--bno-slack-black);
    border-radius: 10px;
    padding: 10px 16px;
    margin-top: 12px;
    width: fit-content;
  }

  .badge-score {
    font-size: 32px;
  }

  .chat-bubble--ai {
    margin-left: 0;
  }

  .dolor-copy .lede {
    font-size: clamp(20px, 5vw, 28px);
  }

  .steps-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-hero-cta,
  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .stat-num {
    font-size: clamp(44px, 12vw, 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    transition-delay: 0ms !important;
  }
}
