/* ═══════════════════════════════════════════════════════════════════
   LUQEN · MANTENIMIENTO A DOMICILIO
   ═══════════════════════════════════════════════════════════════════
   Ni web sanitaria ni startup de IA: una herramienta para empresas que
   trabajan en la calle. Los grises construyen la interfaz entera; el rojo
   técnico solo aparece donde hay que mirar: botones, estados activos,
   acentos y líneas. Si el rojo lo inunda todo, deja de señalar nada.

   Reparto aproximado: 60 % claro · 25 % grises oscuros · 10 % rojo · 5 % resto.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fafaf9;
  --bg-hueso: #f1f2f2;
  --surface: #ffffff;
  --texto: #242729;
  --texto-tenue: #5b6164;
  --texto-min: #7b8286;
  --borde: #d9dddf;
  --borde-fuerte: #c2c8cb;
  --antracita: #242729;
  --grafito: #43484b;
  --rojo: #c53b32;
  --rojo-oscuro: #8f2d27;
  --rojo-suave: rgba(197, 59, 50, .09);
  --terracota: #e16a60;
  --terracota-suave: rgba(225, 106, 96, .18);
  /* Verde solo para confirmar que algo ha salido bien. En ningún otro sitio. */
  --ok: #2f7a5e;
  --ok-suave: rgba(47, 122, 94, .12);
  --radio: 10px;
  --radio-lg: 14px;
  --sombra: 0 1px 2px rgba(36, 39, 41, .05), 0 8px 24px rgba(36, 39, 41, .07);
  --sombra-alta: 0 2px 4px rgba(36, 39, 41, .06), 0 24px 48px rgba(36, 39, 41, .14);
  --fuente: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía contundente: es una herramienta de trabajo, no una boutique. */
h1, h2, h3, h4 { font-family: var(--fuente); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; font-weight: 700; }
a { color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rojo);
}
section { padding: 84px 0; }
.sec-blanca { background: var(--surface); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.sec-hueso { background: var(--bg-hueso); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.sec-oscura { background: var(--antracita); color: #fff; }
.sec-oscura .eyebrow { color: var(--terracota); }
.sec-oscura h2 { color: #fff; }

.sec-intro { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.sec-intro h2 { margin-top: 12px; }
.sec-intro p { color: var(--texto-tenue); margin-top: 14px; font-size: 17px; }
.sec-oscura .sec-intro p { color: rgba(255,255,255,.82); }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(247,248,249,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--borde); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 24px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 30px; height: 30px; display: block; }
.marca span { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: var(--rojo); }
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: auto; align-items: center; }
.nav-links a { color: var(--texto-tenue); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--rojo); }
.nav-links .btn-1 { color: #fff; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; margin-left: auto; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2.5px; background: var(--texto); margin: 4.5px 0; border-radius: 2px; }

/* ── Botones: sólidos y claros ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radio); padding: 14px 26px;
  font-family: var(--fuente); font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-1 { background: var(--rojo); color: #fff; }
.btn-1:hover { background: var(--rojo-oscuro); }
.btn-2 { background: var(--surface); color: var(--texto); border-color: var(--borde-fuerte); }
.btn-2:hover { border-color: var(--rojo); color: var(--rojo); }
.btn-terracota { background: var(--terracota); color: #3a1512; }
.btn-terracota:hover { background: #d55b51; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.sec-oscura .btn-2 { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.sec-oscura .btn-2:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── HERO: texto | producto ── */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: center; }
.hero h1 { margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--rojo); }
.hero-sub { color: var(--texto-tenue); font-size: 18px; margin-top: 20px; max-width: 520px; }
.hero .acciones { margin-top: 30px; }
.hero-nota { margin-top: 16px; font-size: 13.5px; color: var(--texto-min); }

/* El hueco de la captura, hasta que llegue la de verdad */
.hero-img { position: relative; }

.hueco {
  position: relative;
  border: 2px dashed var(--borde-fuerte);
  border-radius: var(--radio-lg);
  background: var(--surface);
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--texto-min);
  text-align: center;
  padding: 24px;
}
.hueco svg { color: var(--borde-fuerte); }
.hueco b { font-size: 14.5px; font-weight: 700; color: var(--texto-tenue); }
.hueco span { font-size: 13px; max-width: 280px; }

/* La tarjeta de «Hoy». Ahora va debajo del hueco para no taparlo; cuando
   llegue la captura real se puede montar encima de ella. */
.hoy {
  width: 100%; max-width: 330px; margin: 16px 0 0 auto;
  background: var(--surface); border: 1px solid var(--borde);
  border-radius: var(--radio); box-shadow: var(--sombra-alta);
  overflow: hidden;
}
.hoy-cab { display: flex; align-items: baseline; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--borde); }
.hoy-cab b { font-size: 14px; font-weight: 800; }
.hoy-cab span { font-size: 12px; color: var(--texto-min); }
.hoy ul { list-style: none; }
.hoy li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--bg-hueso); }
.hoy li:last-child { border-bottom: none; }
.hoy time { flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: var(--rojo); font-variant-numeric: tabular-nums; }
.hoy p { font-size: 13px; line-height: 1.4; }
.hoy small { display: block; color: var(--texto-min); font-size: 11.5px; margin-top: 1px; }

/* ── Etiquetas de estado ── */
.estado {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  border-radius: 6px; padding: 4px 9px; white-space: nowrap;
}
.estado::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.e-nueva     { color: var(--texto-tenue); background: var(--bg-hueso); }
.e-ruta      { color: var(--grafito); background: var(--bg-hueso); }
.e-curso     { color: var(--rojo); background: var(--rojo-suave); }
.e-espera    { color: #a34a42; background: var(--terracota-suave); }
.e-final     { color: #fff; background: var(--antracita); }
.e-final::before { background: var(--terracota); }

/* El flujo de estados, en fila */
.flujo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.flujo-sep { color: var(--borde-fuerte); font-weight: 800; }

/* ── Tarjeta de técnico ── */
.tecnico {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--borde);
  border-left: 4px solid var(--rojo);
  border-radius: var(--radio); padding: 16px 18px; box-shadow: var(--sombra);
}
.tecnico-foto {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--rojo-suave); color: var(--rojo);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.tecnico-txt { flex: 1; min-width: 0; }
.tecnico-txt b { display: block; font-size: 15px; font-weight: 800; }
.tecnico-txt span { display: block; font-size: 13px; color: var(--texto-tenue); margin-top: 1px; }

/* ── Funcionalidades: distribución asimétrica ── */
.func-destacada {
  display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center;
  background: var(--surface); border: 1px solid var(--borde);
  border-radius: var(--radio-lg); padding: 38px 40px; box-shadow: var(--sombra);
  margin-bottom: 18px;
}
.func-destacada h3 { font-size: 24px; margin-bottom: 10px; }
.func-destacada > div > p { color: var(--texto-tenue); font-size: 15.5px; }
.func-lista { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.func-lista li { position: relative; padding-left: 27px; font-size: 15px; }
.func-lista li::before {
  content: ''; position: absolute; left: 2px; top: 6px;
  width: 11px; height: 7px; border-left: 2.5px solid var(--rojo); border-bottom: 2.5px solid var(--rojo);
  transform: rotate(-45deg);
}
.func-fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.func {
  background: var(--surface); border: 1px solid var(--borde);
  border-radius: var(--radio-lg); padding: 26px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.func:hover { border-color: var(--rojo); box-shadow: var(--sombra); }
.func-ico {
  width: 44px; height: 44px; border-radius: var(--radio); margin-bottom: 16px;
  background: var(--rojo-suave); color: var(--rojo);
  display: flex; align-items: center; justify-content: center;
}
.func h3 { font-size: 17px; margin-bottom: 7px; }
.func p { color: var(--texto-tenue); font-size: 14.5px; }

/* ── Banda de migración ── */
.migracion-seccion { padding: 10px 0 0; }
.migracion {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--borde);
  border-left: 5px solid var(--rojo);
  border-radius: var(--radio-lg); padding: 24px 28px; box-shadow: var(--sombra);
}
.migracion-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: var(--radio); background: var(--rojo-suave); color: var(--rojo); display: flex; align-items: center; justify-content: center; }
.migracion-txt { flex: 1; min-width: 250px; }
.migracion-txt b { display: block; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.migracion-txt span { font-size: 14.5px; color: var(--texto-tenue); line-height: 1.55; }

/* ── Bloque a dos columnas ── */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.dos h2 { margin-top: 12px; }
.dos > div > p { color: var(--texto-tenue); margin-top: 15px; }

/* ── Tabla ── */
.tabla-wrap { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--borde); }
th { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-min); background: var(--bg-hueso); }
tbody tr:last-child td { border-bottom: none; }
.tabla-nota { margin-top: 10px; font-size: 12.5px; color: var(--texto-min); }

.aviso {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; padding: 16px 18px;
  background: var(--rojo-suave); border: 1px solid rgba(23,107,135,.2);
  border-radius: var(--radio); font-size: 14.5px;
}
.aviso svg { flex-shrink: 0; margin-top: 2px; color: var(--rojo); }

/* ── Pasos ── */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.paso { background: var(--surface); border: 1px solid var(--borde); border-radius: var(--radio-lg); padding: 26px 22px; }
.paso-num { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--rojo); border-radius: 6px; padding: 5px 10px; }
.paso h3 { font-size: 16px; margin-bottom: 6px; }
.paso p { font-size: 14px; color: var(--texto-tenue); }

/* ── Preguntas frecuentes ── */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--borde); border-radius: var(--radio); padding: 17px 20px; }
.faq details[open] { border-color: var(--rojo); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex-shrink: 0; width: 9px; height: 9px; margin-right: 4px; border-right: 2.5px solid var(--rojo); border-bottom: 2.5px solid var(--rojo); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { margin-top: 12px; color: var(--texto-tenue); font-size: 14.5px; line-height: 1.7; }

/* ── Planes ── */
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--borde); border-radius: var(--radio-lg); padding: 28px 24px; }
.plan-destacado { border: 2px solid var(--rojo); box-shadow: var(--sombra); }
.plan-etq { position: absolute; top: -12px; left: 24px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--rojo); border-radius: 6px; padding: 5px 12px; }
.plan h3 { font-size: 18px; }
.plan-descr { color: var(--texto-tenue); font-size: 13.5px; margin-top: 7px; min-height: 40px; }
.plan-precio { font-size: 36px; font-weight: 800; letter-spacing: -0.035em; margin-top: 16px; line-height: 1; }
.plan-precio span { font-size: 20px; color: var(--texto-tenue); }
.plan-periodo { font-size: 12.5px; color: var(--texto-min); margin-top: 4px; }
.plan-nota { font-size: 12.5px; color: var(--texto-tenue); line-height: 1.5; background: var(--bg-hueso); border-radius: 8px; padding: 9px 11px; margin-top: 14px; }
.plan-lista { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-lista li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--texto-tenue); line-height: 1.5; }
.plan-lista li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2.5px solid var(--rojo); border-bottom: 2.5px solid var(--rojo); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.planes-nota { text-align: center; max-width: 720px; margin: 30px auto 0; font-size: 14px; color: var(--texto-tenue); }

/* ── Alta y contacto ── */
.alta { background: var(--surface); border: 1px solid var(--borde); border-radius: var(--radio-lg); padding: 40px; max-width: 660px; margin: 0 auto; box-shadow: var(--sombra); }
.alta-cab { text-align: center; margin-bottom: 26px; }
.alta-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--ok); background: var(--ok-suave); border-radius: 20px; padding: 6px 14px; margin-bottom: 14px; }
.alta-cab p { color: var(--texto-tenue); margin-top: 10px; font-size: 15px; }
.campos { display: flex; flex-direction: column; gap: 15px; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.campo label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--texto-tenue); }
.campo input, .campo textarea {
  width: 100%; padding: 13px 14px; resize: vertical;
  background: var(--bg); border: 1.5px solid var(--borde); border-radius: 9px;
  font-family: var(--fuente); font-size: 15px; color: var(--texto);
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-min); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--rojo); background: var(--surface); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--texto-tenue); }
.check input { margin-top: 3px; accent-color: var(--rojo); flex-shrink: 0; }
.check a { color: var(--rojo); }
.ok, .err { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 9px; font-size: 14px; }
.ok { background: var(--ok-suave); border: 1px solid rgba(42,157,143,.35); color: #1c6f65; }
.err { background: rgba(200,60,60,.07); border: 1px solid rgba(200,60,60,.28); color: #8f2b2b; }
.alta-nota { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--texto-min); }

.contacto-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.contacto-datos h2 { font-size: 22px; margin-bottom: 18px; }
.dato { display: flex; align-items: flex-start; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--borde); text-decoration: none; color: var(--texto); }
.dato:last-of-type { border-bottom: none; }
.dato-ico { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; background: var(--rojo-suave); color: var(--rojo); display: flex; align-items: center; justify-content: center; }
.dato span b { display: block; font-size: 12.5px; font-weight: 800; color: var(--texto-min); margin-bottom: 2px; }
.dato > span:last-child { font-size: 15px; }
a.dato:hover > span:last-child { color: var(--rojo); }
.contacto-pie { margin-top: 22px; font-size: 14px; color: var(--texto-tenue); line-height: 1.6; }
.contacto-pie a { color: var(--rojo); }

.hero-corto { padding: 56px 0 30px; }
.hero-corto .sec-intro { margin-bottom: 0; }
.hero-corto h1 { margin-top: 12px; }
.hero-corto p { color: var(--texto-tenue); margin-top: 14px; font-size: 17px; }

.cierre { text-align: center; }
.cierre h2 { max-width: 680px; margin: 12px auto 0; }
.cierre p { max-width: 580px; margin: 16px auto 0; font-size: 17px; }
.cierre .acciones { justify-content: center; margin-top: 28px; }

/* ── Pie ── */
footer { background: var(--surface); border-top: 1px solid var(--borde); padding: 44px 0 32px; }
.pie-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.pie-links { display: flex; flex-wrap: wrap; gap: 20px; }
.pie-links a { color: var(--texto-tenue); text-decoration: none; font-size: 14px; font-weight: 600; }
.pie-links a:hover { color: var(--rojo); }
.pie-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--borde); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; font-size: 12.5px; color: var(--texto-min); }
.pie-legal a { color: var(--texto-min); text-decoration: none; }
.pie-legal a:hover { color: var(--rojo); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .planes { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .func-fila { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  section { padding: 58px 0; }
  .hero { padding: 40px 0 52px; }
  .hero-grid, .dos, .func-destacada, .contacto-grid { grid-template-columns: 1fr; gap: 32px; }
  .func-destacada { padding: 26px 22px; }
  .hoy { max-width: none; margin-top: 14px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--borde); padding: 8px 24px 18px; }
  .nav-links.abierto { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-burger { display: block; }
  .alta { padding: 26px 20px; }
  .fila-2 { grid-template-columns: 1fr; }
  .acciones .btn { width: 100%; }
  .planes, .pasos { grid-template-columns: 1fr; }
}
