/* ═══════════════════════════════════════════════════════════
   /inmobiliarias — Agente de ventas con IA para inmobiliarias
   Se apoya en styles.css (variables, navbar, footer, botones,
   glass-card, section-*). Aquí solo va lo propio de esta página.
   ═══════════════════════════════════════════════════════════ */

.re-section { padding: 112px 0; position: relative; }
.re-section.alt { background: var(--bg-secondary); border-top: 1px solid rgba(var(--primary-rgb), 0.12); border-bottom: 1px solid rgba(var(--primary-rgb), 0.12); }

/* ── HERO ── */
.re-hero {
  position: relative;
  overflow: hidden;
  padding: 200px 24px 112px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(var(--primary-rgb), 0.35) 0%, rgba(0,0,0,0) 70%),
    var(--bg-primary);
}
.re-hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.re-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--primary-300);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 999px; padding: 8px 18px; margin-bottom: 24px;
}
.re-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-bottom: 28px; }
.re-brand-mark {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.55);
  color: #fff;
}
.re-brand-mark svg { width: 26px; height: 26px; }
.re-brand-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--text-primary); }
.re-brand-by {
  font-size: 0.8rem; font-weight: 500; color: var(--primary-300);
  background: rgba(var(--primary-rgb), 0.1); border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 999px; padding: 5px 12px;
}
.re-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.re-lead { font-size: 1.2rem; color: var(--text-tertiary); line-height: 1.7; max-width: 560px; margin-bottom: 36px; }
.re-lead strong { color: var(--text-secondary); font-weight: 600; }
.re-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.re-note { font-size: 0.875rem; color: var(--text-quaternary); margin-bottom: 40px; }
.re-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(var(--primary-rgb), 0.2); }
.re-stat b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.re-stat span { font-size: 0.85rem; color: var(--text-tertiary); }

/* ── PHONE MOCKUP ── */
.re-phone {
  width: 100%; max-width: 340px; margin: 0 auto;
  background: #0b0b0e; border-radius: 40px; padding: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 40px 80px -30px rgba(var(--primary-rgb), 0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.re-phone-screen { background: #0f1a1f; border-radius: 30px; overflow: hidden; }
.re-phone-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--primary-600); }
.re-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; flex-shrink: 0; }
.re-avatar svg { width: 18px; height: 18px; }
.re-phone-bar b { display: block; font-size: 0.9rem; line-height: 1.2; }
.re-phone-bar span { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.re-chat { padding: 18px 14px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.re-msg { max-width: 86%; padding: 10px 13px; font-size: 0.82rem; line-height: 1.5; border-radius: 14px; }
.re-msg.in { align-self: flex-start; background: #1f2c33; color: #e9edef; border-top-left-radius: 4px; }
.re-msg.out { align-self: flex-end; background: #005c4b; color: #e9edef; border-top-right-radius: 4px; }
.re-doc { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; background: #005c4b; color: #e9edef; font-size: 0.78rem; padding: 9px 12px; border-radius: 12px; }
.re-doc svg { width: 16px; height: 16px; flex-shrink: 0; }
.re-tag { align-self: center; font-size: 0.72rem; color: var(--primary-200); background: rgba(var(--primary-rgb), 0.25); border-radius: 999px; padding: 4px 10px; }

/* ── CARDS / GRIDS ── */
.re-grid { display: grid; gap: 24px; }
.re-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.re-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.re-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.re-card { padding: 32px; }
.re-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.re-card p { font-size: 0.975rem; color: var(--text-tertiary); line-height: 1.65; }
.re-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(var(--primary-rgb), 0.18); border: 1px solid rgba(var(--primary-rgb), 0.35); color: var(--primary-300);
}
.re-icon svg { width: 22px; height: 22px; }
.re-icon.warn { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.re-step-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 800; color: var(--primary-300); letter-spacing: 0.08em; margin-bottom: 14px; }
.re-card.highlight { border-color: rgba(var(--primary-rgb), 0.7); box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 25px 50px -20px rgba(var(--primary-rgb), 0.5); }
.re-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-200); border: 1px solid rgba(var(--primary-rgb), 0.6); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px;
}

/* ── QUIÉN HACE QUÉ ── */
.re-split-head { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.re-split-head.agent { color: var(--primary-200); background: rgba(var(--primary-rgb), 0.25); }
.re-split-head.you { color: var(--text-secondary); background: rgba(255,255,255,0.06); }
.re-list { display: flex; flex-direction: column; gap: 16px; }
.re-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--text-secondary); line-height: 1.55; }
.re-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--primary-300); }
.re-list.muted svg { color: var(--text-quaternary); }

/* ── DEMO BAND ── */
.re-demo {
  max-width: 880px; margin: 0 auto; text-align: center; padding: 72px 40px;
}
.re-demo h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.re-demo p { color: var(--text-tertiary); font-size: 1.1rem; line-height: 1.7; margin: 0 auto 32px; max-width: 640px; }

/* ── PRECIOS ── */
.re-price { display: flex; flex-direction: column; padding: 36px 32px; position: relative; }
.re-price h3 { font-size: 1rem; font-weight: 700; color: var(--text-tertiary); margin-bottom: 12px; }
.re-price.featured h3 { color: var(--primary-300); }
.re-amount { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.re-amount small { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--text-quaternary); }
.re-price-desc { font-size: 0.9rem; color: var(--text-quaternary); margin-bottom: 28px; }
.re-price ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.re-price li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text-secondary); }
.re-price li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--success); }
.re-price .btn-primary, .re-price .btn-outline { justify-content: center; width: 100%; }
.re-badge-top {
  position: absolute; top: -13px; left: 32px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--primary-500); border: 1px solid var(--primary-300); padding: 5px 12px; border-radius: 999px;
}
.re-price-grid { max-width: 960px; margin: 0 auto; }
.re-amount-text { font-size: 1.9rem; line-height: 1.15; }
.re-price-foot { text-align: center; margin-top: 32px; font-size: 0.95rem; color: var(--text-tertiary); }
.re-price-foot a { color: var(--primary-300); font-weight: 600; border-bottom: 1px solid rgba(var(--primary-rgb), 0.5); }

/* ── FAQ (mismo patrón que la home) ── */
.re-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.re-faq details { border-radius: var(--radius-md); padding: 0; }
.re-faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.re-faq summary::-webkit-details-marker { display: none; }
.re-faq summary::after { content: '+'; font-size: 1.4rem; color: var(--primary-300); flex-shrink: 0; transition: transform 0.25s ease; }
.re-faq details[open] summary::after { transform: rotate(45deg); }
.re-faq details p { padding: 0 26px 24px; color: var(--text-tertiary); line-height: 1.7; }

/* ── CTA FINAL ── */
.re-cta { text-align: center; max-width: 760px; margin: 0 auto; }
.re-cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.re-cta > p { color: var(--text-tertiary); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }
.re-cta .re-actions { justify-content: center; }
.re-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.re-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-tertiary); }
.re-trust svg { width: 16px; height: 16px; color: var(--success); }

/* El navbar de la home usa un logo muy alto; en esta página lo bajamos un poco */
.re-page .logo-img { height: 120px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .re-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .re-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .re-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .re-section { padding: 80px 0; }
  .re-hero { padding: 150px 16px 80px; }
  .re-page .logo-img { height: 96px; }
  .re-grid.cols-4, .re-grid.cols-3, .re-grid.cols-2 { grid-template-columns: 1fr; }
  .re-card { padding: 26px; }
  .re-actions .btn-primary, .re-actions .btn-outline { width: 100%; justify-content: center; }
  .re-stats { gap: 28px; }
  .re-demo { padding: 48px 8px; }
  .re-faq summary { padding: 18px 20px; font-size: 1rem; }
  .re-faq details p { padding: 0 20px 20px; }
}
