/* ===========================================================================
   IJOB · Landing
   Paleta de la guía de estilo (apps/ijob_app/lib/theme/ijob_theme.dart).
   Mobile-first; a partir de 760px y 1040px aprovecha el ancho de escritorio.
   =========================================================================== */

:root {
  --navy: #1B2A4A;
  --navy-700: #22345a;
  --marca: #0F7C7C;
  --marca-texto: #0B6E6E;
  --marca-clara: #E6F2F2;
  --gold: #C9A24C;
  --success: #2E7D32;
  --surface: #FFFFFF;
  --bg: #F6F7F9;
  --text: #1B2A4A;
  --text-soft: #5B6473;
  --border: #E1E5EA;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 42, 74, .08);
  --shadow-lg: 0 24px 60px rgba(27, 42, 74, .16);
  --wrap: 1160px;
}

/*
  Segunda identidad visual, en pruebas. Se activa poniendo data-marca="2" en
  <html>, lo que basta para repintar la página entera: todo el CSS ya tira de
  estas variables. Los colores salen del propio logotipo 2, no inventados.
  Es temporal: cuando el cliente elija, sobra este bloque.
*/
:root[data-marca="2"] {
  --navy: #1C2536;
  --navy-700: #26314A;
  --marca: #176DF4;
  --marca-texto: #1257C9;
  --marca-clara: #E8F0FE;
  --text: #1C2536;
  --shadow: 0 10px 30px rgba(28, 37, 54, .08);
  --shadow-lg: 0 24px 60px rgba(28, 37, 54, .16);
}

:root[data-marca="3"] {
  --navy: #35393A;
  --navy-700: #44484A;
  --marca: #13507C;
  /* Ya es bastante oscuro para usarse de letra tal cual: 8,5:1 sobre blanco. */
  --marca-texto: #13507C;
  --marca-clara: #E7EEF5;
  --gold: #C7970F;
  --text: #35393A;
  --shadow: 0 10px 30px rgba(53, 57, 58, .10);
  --shadow-lg: 0 24px 60px rgba(53, 57, 58, .18);
}

/* Interruptor para comparar las vistas. Flota abajo a la derecha para no
   alterar la estructura de la página, que es justo lo que hay que comparar. */
.marca-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow);
}
.marca-switch:hover { border-color: var(--marca); color: var(--marca-texto); }
.marca-switch span { width: 14px; height: 14px; border-radius: 50%; background: var(--marca); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--marca-texto); text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  font-size: 1rem;
  padding: .7em 1.4em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 1.08rem; padding: .85em 1.7em; }
.btn-primary { background: var(--marca); color: #fff; box-shadow: 0 8px 20px rgba(15,124,124,.28); }
.btn-primary:hover { background: #0c6a6a; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(201,162,76,.3); }
.btn-gold:hover { background: #bd9540; }
.btn-outline { background: transparent; color: var(--marca-texto); border-color: var(--marca); }
.btn-outline:hover { background: var(--marca-clara); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--marca); color: var(--marca-texto); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand-logo { height: 32px; width: auto; }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { color: var(--navy); font-weight: 700; }
.nav a:hover { color: var(--marca-texto); }
.nav .btn { color: var(--navy); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile { display: flex; flex-direction: column; gap: 4px; padding: 10px 20px 18px; border-bottom: 1px solid var(--border); background: #fff; }
/* `display` de autor gana al `display:none` que el navegador aplica a
   [hidden], así que sin esto el menú salía siempre desplegado. */
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 12px 8px; color: var(--navy); font-weight: 700; border-radius: 8px; }
.nav-mobile a:hover { background: var(--bg); }
.nav-mobile .btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(15,124,124,.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #15233f 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #cfe9e9;
  font-weight: 700;
  font-size: .82rem;
  padding: .35em .9em;
  border-radius: 999px;
  margin-bottom: 18px;
}
.badge-gold { background: rgba(201,162,76,.16); border-color: rgba(201,162,76,.4); color: #e7cd90; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.3rem); margin-bottom: .4em; }
.hero .hl { color: #4fd1c5; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #d6def0; margin: 0 0 1.6em; max-width: 36ch; }
.lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 0; margin: 28px 0 0; color: #bcd0d0; font-weight: 700; font-size: .95rem;
}
.hero-points li::before { content: "✓ "; color: #4fd1c5; font-weight: 900; }

.hero-art { display: flex; justify-content: center; }
.hero-card {
  background: #fff; color: var(--text); border-radius: 20px;
  padding: 26px; width: 100%; max-width: 340px; box-shadow: var(--shadow-lg);
}
.hero-isotipo { height: 70px; width: auto; margin: 0 auto 18px; }
.hero-card-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; border-top: 1px solid var(--border); }
.hero-card-row:first-of-type { border-top: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-green { background: var(--success); }
.dot-teal { background: var(--marca); }
.dot-gold { background: var(--gold); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); text-align: center; }
.section-sub { text-align: center; color: var(--text-soft); max-width: 60ch; margin: 0 auto 40px; font-size: 1.1rem; }

/* ---------- Tarjetas de valor ---------- */
.grid-3 { display: grid; gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--text-soft); margin: 0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 18px; color: #fff; font-weight: 900;
}
.icon-navy { background: var(--navy); }
.icon-teal { background: var(--marca); }
.icon-gold { background: var(--gold); color: var(--navy); }

/* ---------- Pasos ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 26px 72px; position: relative; box-shadow: var(--shadow);
}
.step-num {
  position: absolute; left: 22px; top: 26px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--marca); color: #fff; font-weight: 900;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.2rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--text-soft); }

/* ---------- Chips de servicios ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: var(--marca-clara); color: var(--marca-texto); font-weight: 700;
  padding: .6em 1.2em; border-radius: 999px; font-size: 1.02rem;
}

/* ---------- Proveedores ---------- */
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, #15233f 100%); color: #fff; }
.prov-grid { display: grid; gap: 40px; align-items: center; }
.prov-copy h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.lead-dark { color: #d6def0; font-size: 1.15rem; max-width: 46ch; }
.prov-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 16px; }
.prov-list li { padding-left: 32px; position: relative; color: #cdd6ea; }
.prov-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 900; font-size: 1.1rem; }
.prov-list strong { color: #fff; }
.prov-art { display: flex; justify-content: center; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 30px; display: grid; gap: 24px; width: 100%; max-width: 320px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2.6rem; font-weight: 900; color: #4fd1c5; line-height: 1; }
.stat-label { color: #bcd0d0; font-weight: 700; }

/* ---------- Zonas ---------- */
.zonas-inner { text-align: center; }
.zonas-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.zona { padding: .7em 1.3em; border-radius: 999px; font-weight: 700; border: 2px solid var(--border); }
.zona.activa { background: var(--success); color: #fff; border-color: var(--success); }
.zona.pronto { color: var(--text-soft); }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    radial-gradient(800px 300px at 50% 120%, rgba(15,124,124,.3), transparent 60%),
    var(--navy);
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-final h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.cta-final p { color: #d6def0; font-size: 1.15rem; max-width: 50ch; margin: 0 auto 2em; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- Pie ---------- */
.site-footer { background: #11203b; color: #aeb9cf; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 34px; }
/* Sin filtro: hay una versión en negativo de verdad (tools/generar_negativos.py).
   `brightness(0) invert(1)` aplanaba el logotipo a un solo blanco y fundía el
   casco del isotipo con la cara, que es como se perdía. */
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.footer-col a { color: #aeb9cf; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .9rem; color: #7f8ba6; }

/* ===========================================================================
   Escritorio
   =========================================================================== */
@media (min-width: 760px) {
  .nav { display: flex; }
  .nav-toggle, .nav-mobile { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 84px 0 92px; }
  .section { padding: 88px 0; }
}

@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .prov-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Respeta quién pidió menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
