/* ============================================================
   WEB CORPORATIVA REAL STATE MASTER — Sistema de diseño
   Paleta: verdes de la VSL (los mismos que webs/real-state-master-funnel/)
   Estructura heredada de web-nueva/ (web de EMS), 2026-09-30
   ============================================================ */

:root {
  --g-950: #061410;        /* fondo base, casi negro verdoso */
  --g-900: #0a1f17;        /* secciones oscuras */
  --g-800: #10311f;
  --g-700: #16482c;
  --green: #1f8f52;        /* primario */
  --green-bright: #35d07f; /* acento */
  --mint: #8ff7be;         /* resaltado sobre oscuro */
  --paper: #f4f8f5;        /* fondo claro / texto sobre oscuro */
  --paper-card: #ffffff;
  --ink: #0d2419;          /* texto sobre claro */
  --ink-soft: #4a5f55;
  --line-light: #dce7e0;
  --muted: rgba(244, 248, 245, .78);
  --card: rgba(255, 255, 255, .05);
  --line: rgba(143, 247, 190, .18);

  --airbnb: #ff385c;
  --booking: #003b95;

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(6, 20, 16, .10);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 22px; }
section { padding: 88px 0; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(6, 20, 16, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.wordmark {
  font-family: var(--font-head);
  font-weight: 300; letter-spacing: .14em; font-size: 17px;
  color: var(--paper); text-decoration: none; white-space: nowrap;
}
.wordmark strong { font-weight: 800; color: var(--green-bright); }
.wordmark span { font-weight: 600; margin-left: .45em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--paper); }
.nav a.btn { color: #04120b; padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); font-size: 26px; cursor: pointer; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #04120b; font-family: var(--font-head); font-weight: 700;
  padding: 14px 28px; border-radius: 999px; letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(53, 208, 127, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(53, 208, 127, .4); }
.btn.big { font-size: 19px; padding: 18px 40px; }
.btn-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; opacity: .8; margin-top: 2px; }
.btn.ghost {
  background: transparent; color: var(--paper); box-shadow: none;
  border: 1.5px solid var(--line); padding: 17px 34px;
}
.btn.ghost:hover { border-color: var(--green-bright); }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(53, 208, 127, .28); }
  50% { box-shadow: 0 8px 40px rgba(53, 208, 127, .55); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(53, 208, 127, .18), transparent 70%),
    linear-gradient(180deg, var(--g-950), var(--g-900));
  color: var(--paper); text-align: center; padding: 96px 0 104px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mint); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.01em; }
.hl { color: var(--green-bright); }
.hero .sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 22px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }

.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; }
.plat-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plat {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px 7px 7px; font-family: var(--font-head); font-weight: 700; color: var(--paper);
}
.app-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.app-icon svg { width: 20px; height: 20px; }
.plat.airbnb .app-icon { background: var(--airbnb); }
.plat.booking .app-icon { background: var(--booking); }
.plat.booking .app-icon svg { width: 26px; height: 26px; }

/* ---------- Secciones ---------- */
.section-title { font-size: clamp(27px, 3.8vw, 40px); font-weight: 800; text-align: center; }
.section-lead { text-align: center; color: var(--ink-soft); font-size: 18px; max-width: 680px; margin: 16px auto 0; }
.divider-line { width: 64px; height: 4px; border-radius: 4px; background: var(--green-bright); margin: 26px auto 44px; }

.dark-section { background: var(--g-900); color: var(--paper); }
.dark-section .section-lead { color: var(--muted); }

/* Tarjetas de 3 columnas */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(53, 208, 127, .14); color: var(--green); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* Pasos numerados */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; position: relative;
}
.step::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--green-bright);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Para quién (dos columnas) */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fit-card { border-radius: var(--radius); padding: 32px 30px; border: 1px solid var(--line-light); background: var(--paper-card); }
.fit-card h3 { font-size: 20px; margin-bottom: 16px; }
.fit-card ul { list-style: none; }
.fit-card li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
.fit-card li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.fit-card.yes li::before { content: "✓"; color: var(--green); }
.fit-card.no li::before { content: "✕"; color: #b4483c; }

/* Temario */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; counter-reset: mod; }
.module {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper-card); border: 1px solid var(--line-light); border-radius: 14px; padding: 18px 20px;
}
.module::before {
  counter-increment: mod; content: counter(mod);
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--g-900); color: var(--green-bright); font-family: var(--font-head); font-weight: 800;
}
.module h3 { font-size: 16px; margin-bottom: 3px; }
.module p { font-size: 14.5px; color: var(--ink-soft); }

.includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.includes span {
  background: rgba(53, 208, 127, .12); color: var(--g-700); border-radius: 999px;
  padding: 8px 16px; font-size: 14.5px; font-weight: 600;
}

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-bright); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--g-950); color: var(--muted); padding: 60px 0 40px; font-size: 14.5px; text-align: center; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; margin-bottom: 44px; }
.footer-cols h4 { color: var(--paper); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.footer-cols p { line-height: 1.7; }
.footer-cols a, .site-footer .legal a { color: var(--muted); }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 18px; }
.site-footer .legal a:hover { color: var(--paper); }

/* ---------- Páginas legales ---------- */
.legal-page { padding: 64px 0 88px; }
.legal-kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.legal-page h1 { font-size: clamp(30px, 4.4vw, 42px); margin: 8px 0 14px; }
.legal-intro { color: var(--ink-soft); padding-bottom: 26px; border-bottom: 1px solid var(--line-light); margin-bottom: 10px; }
.legal-page h2 { font-size: 21px; margin: 38px 0 12px; }
.legal-page p, .legal-page li { color: #2c3f36; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }
.legal-id {
  font-style: normal; background: var(--paper-card); border: 1px solid var(--line-light);
  border-left: 4px solid var(--green-bright); border-radius: 12px; padding: 18px 22px; margin: 14px 0; line-height: 1.8;
}
.legal-page table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14.5px; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.legal-page th { background: #e9f1ec; font-family: var(--font-head); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .container, .container-narrow { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 18px;
    background: var(--g-950); padding: 24px 16px 28px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .legal-nav { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; }
  .fit-grid, .modules, .steps, .footer-cols { grid-template-columns: 1fr; }
  .btn.big { font-size: 17px; padding: 16px 28px; width: 100%; }
  .legal-page table { display: block; overflow-x: auto; }
}
