/* escobar.sv · hoja compartida. Solo tema oscuro. Sin fuentes ni recursos de terceros. */

:root {
  color-scheme: dark;

  --bg: #0A0B0E;
  --surface: #15171C;
  --ink: #F2F3F5;
  --muted: #A3A8B3;
  --line: #24272F;
  --chip: #1C1F26;

  --booky: #6BD3A8;
  --booky-tint: #0E1E18;
  --booky-chip: #15332A;

  --rs: #9AA6FF;
  --rs-tint: #12152B;
  --rs-chip: #1E2550;

  /* Bloque claro sobre fondo oscuro (Pro, privacidad de RoomSync) */
  --inverse: #F2F3F5;
  --inverse-ink: #0D0E11;
  --inverse-muted: #4E535D;

  --device: #0B0B0D;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Acento de la página (Booky por defecto) */
  --accent: var(--booky);
  --accent-tint: var(--booky-tint);
  --accent-chip: var(--booky-chip);
}

.theme-booky { --accent: var(--booky); --accent-tint: var(--booky-tint); --accent-chip: var(--booky-chip); }
.theme-roomsync { --accent: var(--rs); --accent-tint: var(--rs-tint); --accent-chip: var(--rs-chip); }

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
section[id], footer[id] { scroll-margin-top: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.inverse-block :focus-visible { outline-color: var(--inverse-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }

/* ---------- Cabecera ---------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; flex-wrap: wrap; padding: 24px 0;
}

.brand {
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--muted); }

.brand-app { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-app img { width: 36px; height: 36px; flex: none; }
.brand-app strong { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-app small { font-size: 14px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background-color .15s;
}
.nav a:not(.btn):hover { background: var(--chip); }

.lang {
  display: flex; margin-left: 8px; padding: 3px; border-radius: 999px; background: var(--chip);
}
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 40px;
  padding: 0 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--surface); color: var(--ink); }

/* ---------- Botones y etiquetas ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--bg); font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none; transition: background-color .15s;
}
.btn:hover { background: #fff; }
.btn svg { flex: none; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-nav { min-height: 40px; margin-left: 8px; padding: 0 18px; font-size: 15px; }
/* Insignia oficial de Apple (Apple Marketing Tools), sin modificar; mínimo 40 px de alto */
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { display: block; width: auto; height: 52px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--chip); }

.chip {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--chip); color: var(--muted); font-size: 14px; font-weight: 500;
}
.chip-accent { background: var(--accent-chip); color: var(--accent); font-weight: 600; }

.note { font-size: 14px; color: var(--muted); }

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Titulares ---------- */

h1, h2, h3 { font-family: var(--font); }

.title {
  font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.05;
  text-wrap: balance;
}
.title-md { font-size: clamp(30px, 4vw, 44px); }
.title-sm { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; }

.lead { max-width: 520px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--muted); }

/* ---------- Héroe ---------- */

.hero {
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
  padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero h1 {
  max-width: 920px; font-weight: 700; font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.hero .lead { max-width: 640px; }

.checks {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 8px;
  font-size: 15px; font-weight: 500;
}
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { flex: none; }

.hero-split {
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px;
  padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 7vw, 96px);
}
.hero-split h1 { font-size: clamp(38px, 4.6vw, 64px); max-width: none; }
.hero-copy {
  flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.hero-copy > img { width: 96px; height: 96px; }

.hero-media { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }

/* Tres teléfonos superpuestos; todo en cqw para que escale con el contenedor */
.hero-phones {
  container-type: inline-size; flex: none; width: min(620px, calc(100% + 56px));
  display: flex; justify-content: center; align-items: flex-end;
}
.ph { flex: none; background: var(--device); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.ph img { display: block; width: 100%; height: auto; }
.ph-side { width: 37.1cqw; padding: 1.3cqw; border-radius: 6.8cqw; margin-bottom: 4.5cqw; }
.ph-side img { border-radius: 5.5cqw; }
.ph-side:first-child { margin-right: -9cqw; }
.ph-side:last-child { margin-left: -9cqw; }
.ph-main {
  position: relative; width: 43.9cqw; padding: 1.45cqw; border-radius: 7.75cqw;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .45);
}
.ph-main img { border-radius: 6.45cqw; }

/* Teléfono recortado por abajo (tarjetas) */
.crop { margin-top: auto; align-self: center; width: min(300px, 100%); height: 330px; overflow: hidden; }
.crop-phone {
  padding: 10px 10px 0; border-radius: 50px 50px 0 0; background: var(--device);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.crop-phone img { display: block; width: 100%; border-radius: 40px 40px 0 0; }
.crop-lg { width: min(290px, 100%); height: 360px; }
.crop-lg .crop-phone { padding: 9px 9px 0; border-radius: 48px 48px 0 0; }

/* ---------- Tarjetas de apps (portada) ---------- */

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }

.app-card {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) 0; border-radius: 32px;
  background: var(--accent-tint); border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; overflow: hidden; transition: border-color .15s;
}
.app-card:hover { border-color: var(--accent); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-card-top img { width: 84px; height: 84px; }
.app-card-top .chip { font-size: 13px; padding: 6px 12px; }
.app-card-name { display: flex; flex-direction: column; gap: 6px; }
.app-card h2 { font-weight: 700; font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.app-card .tagline { font-size: 20px; line-height: 1.4; }
.app-card-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-card-cta .btn { cursor: pointer; }
.app-card:hover .btn { background: #fff; }

/* ---------- Secciones ---------- */

.section { padding: 24px 0 clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.section-head p { font-size: 19px; color: var(--muted); }

.cards { list-style: none; display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--muted); }
.card-feature { gap: 10px; }
.card-feature h3 { font-size: 19px; }
.card-feature svg { flex: none; }

.num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 999px; background: var(--accent-chip); color: var(--accent); font-weight: 700;
}

.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.showcase-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 40px) 0; border-radius: 32px;
  background: var(--accent-tint); border: 1px solid var(--line); overflow: hidden;
}
.showcase-card h3 { font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.showcase-card p { font-size: 18px; color: var(--muted); }

/* ---------- Bloque claro ---------- */

.inverse-block {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--inverse); color: var(--inverse-ink);
}
.inverse-block .muted { color: var(--inverse-muted); }
.inverse-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.inverse-copy .eyebrow { font-size: 14px; font-weight: 600; color: var(--inverse-muted); }
.inverse-block .check-list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; list-style: none; }
.inverse-block .check-list li { display: flex; align-items: center; gap: 12px; }
.inverse-block .check-list svg { flex: none; }
.inverse-block .btn-outline {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--inverse-muted); color: var(--inverse-ink);
  font-weight: 600; text-decoration: none;
}
.inverse-block .btn-outline:hover { background: rgba(13, 14, 17, .08); }

/* ---------- Privacidad (resumen de Booky) ---------- */

.privacy-note { padding: 0 0 clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.privacy-note .icon-box {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 64px; height: 64px; border-radius: 20px; background: var(--accent-chip);
}
.privacy-note .body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.privacy-note p { max-width: 680px; font-size: 19px; color: var(--muted); }
.link-arrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Precio ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 36px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan-pro { background: var(--accent-tint); border-color: var(--accent-chip); }
.plan .label { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-pro .label { color: var(--accent); }
.plan .big { font-weight: 700; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Preguntas ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; padding: 0 0 clamp(56px, 8vw, 96px); }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { min-height: 28px; font-size: 19px; font-weight: 600; cursor: pointer; line-height: 1.35; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.faq a, .legal a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Banda final ---------- */

.cta-section { padding: 0 0 72px; }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--accent-tint); border: 1px solid var(--line);
}
.cta-who { display: flex; align-items: center; gap: 20px; min-width: 0; }
.cta-who img { width: 72px; height: 72px; flex: none; }
.cta-who div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cta-who strong { font-weight: 700; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.cta-who a { color: var(--muted); text-decoration: none; font-size: 16px; overflow-wrap: anywhere; }
.cta-who a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Ayuda (portada) ---------- */

.help { padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; align-items: start; }
.help-copy { display: flex; flex-direction: column; gap: 12px; }
.help-copy p { font-size: 18px; color: var(--muted); }
.contacts { display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.contact {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 20px;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: background-color .15s;
}
.contact:last-child { border-bottom: 0; }
.contact:hover { background: var(--chip); }
.contact img { width: 44px; height: 44px; flex: none; }
.contact .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact .who strong { font-weight: 600; }
.contact .who span { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.contact svg { flex: none; }

/* ---------- Pie ---------- */

.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.legal-note { padding: 0 0 40px; font-size: 13px; color: var(--muted); max-width: 820px; }
.site-footer + .legal-note { margin-top: -16px; }

/* ---------- Páginas legales (privacidad) ---------- */

.legal-page { max-width: 780px; margin: 0 auto; padding-bottom: 24px; }
.legal {
  margin: 0 0 24px; padding: clamp(22px, 4vw, 40px); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
}
.legal h2 { font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.legal h3 { font-size: 20px; font-weight: 600; margin: 28px 0 6px; }
.legal h4 { font-size: 17px; font-weight: 600; margin: 18px 0 2px; }
.legal .date { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin: 10px 0; }
.legal code { background: var(--chip); padding: 1px 6px; border-radius: 6px; font-size: 15px; overflow-wrap: anywhere; }
.legal strong { font-weight: 600; }
.legal a { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */

.notfound { max-width: 520px; margin: 0; padding: clamp(80px, 20vh, 200px) 0; display: flex; flex-direction: column; gap: 20px; }
.notfound a { color: var(--ink); font-weight: 600; }

/* ---------- Pantallas pequeñas ---------- */

@media (min-width: 720px) {
  .app-card { min-height: 660px; }
  .showcase-card { min-height: 560px; }
}

@media (max-width: 720px) {
  .hero-phones { width: 100%; }
  .hero-split { gap: 32px; }
  .crop-lg { height: 320px; }
}

@media (max-width: 600px) {
  /* En móvil, la cabecera en una fila: marca e idioma. Los enlaces y el botón ya están en la página. */
  .site-header { padding: 16px 0; flex-wrap: nowrap; }
  .nav > a:not(.btn), .btn-nav { display: none; }
  .nav { flex: none; }
  .brand-app { min-width: 0; }
  .lang { margin-left: 4px; }
  .hero-copy > img { display: none; }
  .card { padding: 22px; }
  .legal-note { font-size: 12.5px; }
  .app-card h2 { font-size: 34px; }
}

@media (max-width: 400px) {
  .brand-app small { display: none; }
}
