/* Loadwell · load-well.com
   Estilo "clínico-calmado": crema, verde de marca, mucho aire.
   El terracota (--accent) se reserva para un único detalle (la racha). */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/PlusJakartaSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #14302A;
  --text: #1E2E29;
  --muted: #5B6863;
  --primary: #2F6F5E;
  --primary-tint: #E6EFEA;
  --divider: #E4E1D9;
  --accent: #E2864F;
  --brand-from: #3A8571;
  --brand-to: #1F4B3F;
  --on-brand: #FFFFFF;
  --on-brand-muted: #D3E5DE;
  --radius: 22px;
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111715;
    --surface: #18201D;
    --ink: #EEF2F0;
    --text: #DDE3E0;
    --muted: #A3ADA9;
    --primary: #8FC7B4;
    --primary-tint: #1F342D;
    --divider: #29332F;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--divider); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 72px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }

.lw-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
}
.lw-tile img { width: 72%; height: auto; }

.site-nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.975rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
@media (max-width: 359px) {
  .brand { font-size: 1.05rem; gap: 10px; }
  .lw-tile { width: 34px; height: 34px; border-radius: 10px; }
  .site-nav { gap: 14px; }
}

/* Secciones */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--divider); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 14px; color: var(--muted); }

.eyebrow { display: block; margin-bottom: 14px; color: var(--primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); line-height: 1.6; }

/* Portada */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(56px, 9vw, 112px); }
.hero .container { display: grid; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 24px; max-width: 34rem; }
.hero-mark {
  justify-self: center; display: grid; place-items: center;
  width: min(100%, 320px); aspect-ratio: 1; border-radius: 30%;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
}
.hero-mark img { width: 66%; }
@media (min-width: 820px) {
  .hero .container { grid-template-columns: 1.4fr 1fr; }
  .hero-mark { justify-self: end; }
}
@media (max-width: 819px) {
  .hero-mark { display: none; }
}

.principles { display: grid; gap: 32px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.principles li { border-top: 2px solid var(--primary); padding-top: 20px; }
.principles h3 { margin-bottom: 10px; }
.principles p { color: var(--muted); }

/* Tarjetas */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px);
}
.card p { color: var(--muted); }

.app-card { display: flex; flex-direction: column; gap: 20px; }
.app-card .app-icon { width: 88px; height: 88px; border-radius: 22px; }
.app-card h3 { font-size: 1.4rem; }
.app-card h3 a { color: var(--ink); text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.app-card:hover { border-color: var(--primary); }
.app-card:focus-within { outline: 3px solid var(--primary); outline-offset: 3px; }
.app-card h3 a:focus-visible { outline: none; }
.app-card .more { margin-top: auto; color: var(--primary); font-weight: 700; }

.card-soon { border-style: dashed; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary);
  font-size: 0.85rem; font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: 0.9; }

/* Contacto */
.contact-mail { display: inline-block; margin-top: 20px; font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* Página de Mobility */
.app-hero { padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 8vw, 96px); }
.app-hero .app-icon { width: 112px; height: 112px; border-radius: 28px; margin-bottom: 32px; }
.app-hero .lead { margin-top: 20px; max-width: 36rem; }
.app-hero .intro { margin-top: 16px; max-width: 36rem; color: var(--muted); }
.store { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.features { display: grid; gap: 20px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features .card h3 { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.streak-dot { width: 10px; height: 10px; margin-top: 0.45em; border-radius: 50%; background: var(--accent); flex: none; }

.plans { display: grid; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plans ul { margin: 16px 0 0; padding: 0; list-style: none; }
.plans li { padding: 10px 0 10px 28px; border-top: 1px solid var(--divider); position: relative; }
.plans li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 6px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}
.plans .note { margin-top: 16px; font-size: 0.95rem; }

.band {
  border-radius: var(--radius); padding: clamp(32px, 6vw, 64px);
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); color: var(--on-brand);
}
.band h2 { color: var(--on-brand); }
.band p { color: var(--on-brand-muted); margin-top: 14px; max-width: 40rem; }
.band a { color: var(--on-brand); font-weight: 700; }
.band :focus-visible { outline-color: var(--on-brand); }

.disclaimer { color: var(--muted); font-size: 0.95rem; }

/* Textos legales (generados por tool/export_legal.dart) */
.prose { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 96px); }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem); }
.prose .app { margin: 10px 0 40px; color: var(--primary); font-weight: 700; }
.prose h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin: 40px 0 10px; }
.prose p { color: var(--muted); margin: 0 0 14px; overflow-wrap: anywhere; }
.prose .back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); }

/* Pie */
.site-footer { border-top: 1px solid var(--divider); padding: 40px 0 48px; color: var(--muted); font-size: 0.925rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

.mt-s { margin-top: 14px; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 32px; }
