/* That's My Biz · presentación. Mismos colores que la app (src/constants/theme.ts):
   fondo porcelana, azul de marca #1F5FA8, tarjetas blancas. Texto sobre cada fondo ≥ 4,5:1 (WCAG AA). */

:root {
  --text: #0f1b2d;
  --text-2: #5c6b82;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --muted: #e8edf5;
  --border: #dce4ee;
  --primary: #1f5fa8;
  --primary-press: #184c87;
  --accent-soft: #e4ecf6;
  --shadow: 0 10px 30px rgba(37, 99, 201, 0.12);
  --radius: 22px;
  --max: 1040px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 12px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff;
  padding: 12px 16px; border-radius: 12px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 5; background: rgba(247, 249, 252, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.2px; }
.brand img { border-radius: 9px; }

/* Botones (táctil ≥ 48 px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 16px;
  background: linear-gradient(180deg, #2a6cb8, var(--primary));
  color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(31, 95, 168, 0.28);
}
.btn:hover { background: var(--primary-press); }
.btn-small { min-height: 48px; padding: 0 20px; font-size: 16px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-light { background: #fff; color: var(--primary); box-shadow: none; }
.btn-light:hover { background: var(--accent-soft); }
.btn-outline { background: transparent; color: #fff; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center-row { justify-content: center; }

/* Portada */
.hero { padding: 56px 0 40px; background: radial-gradient(900px 420px at 80% -10%, #dbe7f7 0%, transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--primary); }
h1 { margin: 0; font-size: clamp(34px, 6vw, 54px); line-height: 1.06; letter-spacing: -1.2px; }
h2 { margin: 0 0 24px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.7px; }
h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.2px; }
.lead { margin: 18px 0 0; font-size: 19px; color: var(--text-2); }
.note { margin: 16px 0 0; font-size: 16px; color: var(--text-2); }

/* Maqueta del móvil */
.phone {
  width: min(320px, 100%); margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 34px; box-shadow: var(--shadow); overflow: hidden;
}
.phone-head { background: var(--primary); color: #fff; padding: 26px 20px 20px; display: grid; gap: 2px; }
.phone-logo {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.22);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 8px;
}
.phone-sub { font-size: 14px; color: #e8f0fb; }
.phone-body { padding: 16px 18px 20px; }
.phone-cap { margin: 12px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--text-2); }
.phone-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.phone-row span:last-child { color: var(--text-2); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots span { text-align: center; padding: 10px 0; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.slots span.on { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.phone-btn { margin-top: 16px; text-align: center; background: var(--primary); color: #fff; padding: 14px; border-radius: 14px; font-weight: 700; }

/* Secciones */
.section { padding: 64px 0; }
.alt { background: var(--muted); }
.body { font-size: 18px; color: var(--text-2); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps p, .features p { margin: 0; color: var(--text-2); }
.num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--primary); font-weight: 800; margin-bottom: 12px;
}

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }

/* Preguntas */
.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px; }
summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 700; list-style-position: outside; }
details[open] summary { color: var(--primary); }
details p { margin: 0 0 18px; color: var(--text-2); }

/* Cierre */
.closing { background: var(--primary); color: #fff; padding: 64px 0; }
.closing h2 { margin-bottom: 12px; }
.closing .lead { color: #e8f0fb; margin-top: 0; }

.foot { padding: 28px 0; font-size: 15px; color: var(--text-2); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 48px; }

/* Tablet y ordenador */
@media (min-width: 760px) {
  .hero { padding: 88px 0 64px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
  .phone { margin: 0 0 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 88px 0; }
  .closing { padding: 88px 0; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
