/* WebGo Enterprise · Orden WGE-FRONT-DOOR-001 · Front Door. Azul y dorado WebGo. Sin estilos en línea (CSP del gateway). */
:root { --barh: 58px; --navy: #0b1f4b; --navy2: #0f2a63; --ink: #0a1430; --gold: #d4a537; --gold2: #f3d27a; --text: #e9eefb; --muted: #aab6d6; --card: #12306f; --line: rgba(212,165,55,.35); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* el atributo hidden siempre gana (botones Instalar y Atrás) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body.fd { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--ink); }
a { color: var(--gold2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }

/* ---------- HERO: imagen aprobada íntegra ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-fig { position: relative; margin: 0 auto; width: 100%; line-height: 0; }
.hero-img { display: block; width: 100%; height: auto; }
.hero-lang { position: absolute; left: 85.4%; top: 2.7%; width: 12.4%; height: 3.6%; border: 0; border-radius: 999px; background: transparent; cursor: pointer; padding: 0; }
.hero-lang:focus-visible { outline: 3px solid var(--gold2); }
.hero-bg { display: none; }
.hero-down { display: block; text-align: center; padding: 12px; background: var(--navy); color: var(--gold2); text-decoration: none; font-weight: 600; letter-spacing: .02em; }

/* computadora: la escena llena TODA la pantalla; la imagen se ve completa (alto de la ventana) y a los lados se extiende un fondo
   difuminado de la misma imagen. La imagen original no se recorta ni se modifica. */
/* WGE-WEB-001: la imagen aprobada ocupa el 100 % del ancho en todos los tamaños, sin márgenes laterales ni fondo difuminado;
   la altura se calcula sola con la proporción original (1212 × 1297): sin deformación ni recorte de los personajes. */
@media (min-width: 900px) {
  .hero-down { height: 48px; line-height: 24px; }
}

/* ---------- barra de acceso ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 18px; background: rgba(11,31,75,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 18px; }
.brand img { border-radius: 8px; }
.brand b { color: var(--gold2); }
.links { display: flex; gap: 16px; flex-wrap: wrap; }
.links a { color: var(--text); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--gold2); }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.langsel { background: var(--navy2); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; }
.back { background: none; border: 0; color: var(--gold2); font: inherit; cursor: pointer; }
.btn { display: inline-block; border-radius: 999px; padding: 9px 18px; font-weight: 700; text-decoration: none; border: 1px solid var(--gold); cursor: pointer; font: inherit; font-weight: 700; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--gold2); }
.btn.big { padding: 13px 26px; font-size: 17px; }
.btn:hover { filter: brightness(1.08); }

/* ---------- secciones ---------- */
section[id], header[id] { scroll-margin-top: calc(var(--barh) + 8px); }
.sec { max-width: 1180px; margin: 0 auto; padding: 56px 20px; }
.sec h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); color: #fff; }
.kick { display: block; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold2); margin-bottom: 4px; }
.lead { color: var(--muted); max-width: 820px; margin: 0 0 24px; font-size: 18px; }
.hint { color: var(--muted); font-size: 14px; }
.state, .pay { color: var(--gold2); font-weight: 600; }

/* carrusel internacional */
.langs { text-align: center; }
.langs .lead { margin-left: auto; margin-right: auto; }
.car { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; }
.car-track { display: flex; gap: 16px; overflow: hidden; width: min(100%, 980px); justify-content: center; }
.slide { flex: 0 0 auto; width: 220px; padding: 22px 16px; border-radius: 18px; background: linear-gradient(160deg, var(--navy2), var(--card)); border: 1px solid var(--line); cursor: pointer; color: var(--text); font: inherit; opacity: .55; transform: scale(.94); transition: transform .35s, opacity .35s; }
.slide.on { opacity: 1; transform: scale(1); box-shadow: 0 10px 30px rgba(212,165,55,.18); }
.slide .flag { font-size: 34px; display: block; }
.slide .hello { font-size: 24px; font-weight: 800; color: #fff; display: block; margin: 6px 0 2px; }
.slide .lname { color: var(--gold2); font-size: 15px; }
.slide .use { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.slide.cur { border-color: var(--gold2); }
.car-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--navy); color: var(--gold2); font-size: 26px; cursor: pointer; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 4px; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #3b4f86; cursor: pointer; padding: 0; }
.car-dots button[aria-selected="true"] { background: var(--gold); }

/* plataformas */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app { background: linear-gradient(170deg, var(--navy2), #0b2357); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.app .ico { font-size: 30px; }
.app h3 { margin: 8px 0 6px; color: #fff; font-size: 20px; }
.app p { color: var(--muted); margin: 0 0 12px; flex: 1; }
.app ul { margin: 0 0 14px; padding-left: 18px; color: var(--text); font-size: 14px; }
.app .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.app .acts .btn { padding: 7px 14px; font-size: 14px; }

/* acceso (modelo WebGo Phone adaptado) */
.access { background: linear-gradient(180deg, transparent, rgba(15,42,99,.45)); border-radius: 24px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--gold); }
.panel { background: var(--navy2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-width: 760px; }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
.rn { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px 12px; align-items: end; }
.rn label { grid-row: 1; color: var(--muted); font-size: 14px; }
.rn input { grid-row: 2; background: #0a1a40; color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.rn button { grid-row: 2; }
.msg { min-height: 1.4em; color: var(--gold2); }
.msg.err { color: #ffb4a8; }

/* modalidades */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { background: var(--navy2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.plan h3 { margin: 0 0 8px; color: var(--gold2); }
.plan ul { margin: 0; padding-left: 18px; font-size: 14px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* pie */
.foot { border-top: 1px solid var(--line); padding: 28px 20px 40px; text-align: center; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.foot .small { font-size: 12px; }

/* modal de demostración y menú de idiomas */
.modal { position: fixed; inset: 0; background: rgba(5,10,25,.72); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 16px; }
.modal[hidden], .langpop[hidden] { display: none; }
.modal .card { position: relative; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; background: var(--navy); border: 1px solid var(--gold); border-radius: 20px; padding: 26px; }
.modal h3 { margin-top: 0; color: #fff; }
.modal .x { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--gold2); font-size: 30px; cursor: pointer; }
.ticks { padding-left: 20px; }
.langpop { position: fixed; z-index: 45; background: var(--navy); border: 1px solid var(--gold); border-radius: 14px; padding: 6px; min-width: 180px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.langpop button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 12px; border-radius: 8px; font: inherit; cursor: pointer; }
.langpop button:hover, .langpop button[aria-selected="true"] { background: var(--navy2); color: var(--gold2); }

/* ---------- teléfono ---------- */
@media (max-width: 1080px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) {
  .bar { padding: 8px 12px; gap: 8px; }
  .links { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-bottom: 2px; }
  .links a { white-space: nowrap; font-size: 14px; }
  .tools { gap: 6px; }
  .tools .btn { padding: 7px 12px; font-size: 14px; }
  .sec { padding: 36px 16px; }
  .lead { font-size: 16px; }
  .apps, .plans { grid-template-columns: 1fr; }
  .slide { width: 170px; padding: 16px 10px; }
  .slide .hello { font-size: 20px; }
  .car-track { gap: 10px; }
  .car-nav { width: 36px; height: 36px; font-size: 22px; }
  .rn { grid-template-columns: 1fr; }
  .rn label, .rn input, .rn button { grid-row: auto; }
  .btn.big { width: 100%; text-align: center; }
}
/* teléfono: logotipo + idioma arriba; Activar y Entrar lado a lado, siempre visibles; secciones al desplazarse */
@media (max-width: 599px) {
  .links { display: none; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .tabs button { text-align: center; padding: 10px 6px; font-size: 14px; }
  .brand { flex: 1; }
  .tools { display: contents; }
  .langsel { padding: 6px 10px; }
  .tools .btn[href] { flex: 1 1 40%; text-align: center; padding: 9px 10px; font-size: 15px; }
  .tools .btn.ghost[href] { order: 4; }
  .tools .btn.gold[href] { order: 5; }
  .back, #install { order: 6; }
}
@media (max-width: 380px) { .brand span { font-size: 15px; } }

/* WGE-FRONT-DOOR-002: recuperacion por correo */
.recf { display: grid; grid-template-columns: 1fr; gap: 6px; max-width: 520px; margin: 10px 0; }
.recf label { color: var(--muted); font-size: 14px; margin-top: 6px; }
.recf input { background: #0a1a40; color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; width: 100%; box-sizing: border-box; }
.recf button.btn { margin-top: 10px; justify-self: start; }
.recf .ok { color: var(--gold2); margin: 0 0 4px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 6px; }
.pw-eye[aria-pressed="true"] { color: var(--gold2); }
details.alt { margin-top: 10px; } details.alt summary { cursor: pointer; color: var(--gold2); }
.msg.ok { color: #7fe0a6; }

/* WGE-FRONT-DOOR-002: demostraciones ampliadas */
.modal .card { max-width: 820px; }
.dmods { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.dmods button { background: var(--navy2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }
.dmods button[aria-selected="true"] { background: var(--gold); color: #10183a; border-color: var(--gold); font-weight: 700; }
.dmod { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(10,26,64,.6); }
.dlab { color: var(--gold2); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 10px 0 6px; }
.dtable { overflow-x: auto; }
.dtable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.dex { margin: 10px 0 0; color: #dfe6ff; }
.app .nmods { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ============ WGE-WEB-001: encabezado compacto en una sola línea (≤ 72 px) ============ */
.bar { flex-wrap: nowrap; gap: 12px; padding: 8px 18px; min-height: 0; max-height: 72px; box-sizing: border-box; }
.brand { flex: 0 0 auto; white-space: nowrap; }
.links { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: center; overflow-x: auto; scrollbar-width: none; gap: 18px; }
.links::-webkit-scrollbar { display: none; }
.links a { white-space: nowrap; }
.tools { flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; }
.tools .btn { padding: 8px 16px; }
.langsel { max-width: 150px; }
@media (max-width: 1180px) {
  .bar { gap: 10px; padding: 8px 14px; }
  .links { gap: 14px; justify-content: flex-start; }
  .links a { font-size: 14px; }
  .tools .btn { padding: 7px 12px; font-size: 14px; }
}
@media (max-width: 899px) {                /* tableta: todo en una línea; los enlaces se desplazan de lado si no caben */
  .bar { padding: 6px 10px; gap: 8px; }
  .links { order: 0; width: auto; gap: 12px; padding-bottom: 0; }
  .brand span { font-size: 15px; }
  .langsel { max-width: 120px; padding: 6px 8px; }
}
@media (max-width: 599px) {                /* teléfono: emblema + idioma + Activar + Entrar en una línea */
  .bar { padding: 6px 8px; gap: 6px; }
  .brand span { display: none; }
  .brand img { width: 30px; height: 30px; }
  .tools { display: flex; gap: 6px; flex: 1 1 auto; justify-content: flex-end; }
  .langsel { max-width: 96px; padding: 6px 6px; font-size: 14px; }
  .tools .btn[href] { flex: 0 1 auto; padding: 7px 12px; font-size: 14px; }
  .tools .btn.ghost[href], .tools .btn.gold[href] { order: 0; }
}
@media (max-width: 360px) { .langsel { max-width: 78px; } .tools .btn[href] { padding: 7px 9px; } }

/* ============ WGE-WEB-001: sellos corporativos en el pie ============ */
.seals { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 32px; padding: 6px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.seal { display: inline-flex; align-items: center; text-decoration: none; border-radius: 12px; }
.seal:focus-visible { outline: 3px solid var(--gold2); outline-offset: 4px; }
.seal-webgo img { display: block; height: 72px; width: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.seal-bbb { gap: 10px; height: 60px; padding: 0 16px 0 10px; background: #fff; color: #10224a; border: 1px solid #c9d3e6; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.bbb-k { font: 800 22px/1 Georgia, 'Times New Roman', serif; letter-spacing: .02em; color: #10224a; border-right: 1px solid #c9d3e6; padding-right: 10px; }
.bbb-t { display: grid; text-align: left; line-height: 1.2; }
.bbb-t b { font-size: 14px; } .bbb-t small { font-size: 12px; color: #43557d; }
@media (max-width: 599px) { .seal-webgo img { height: 56px; } .seal-bbb { height: 52px; } .bbb-k { font-size: 19px; } }
/* WGE-WEB-001 ajustes finos tras la revisión visual */
@media (max-width: 899px) { .links { gap: 10px; } .links a { font-size: 13px; } .tools .btn { padding: 6px 10px; font-size: 13px; } .brand span { font-size: 14px; } }
@media (max-width: 599px) { .langsel { max-width: 128px; } .tools .btn[href] { font-size: 14px; padding: 7px 11px; } }
@media (max-width: 360px) { .langsel { max-width: 100px; } }
.seal-webgo img { height: 84px; }
.seal-bbb { height: 64px; }
@media (max-width: 599px) { .seal-webgo img { height: 64px; } .seal-bbb { height: 54px; } }
@media (max-width: 899px) { .brand span { display: none; } .links { justify-content: center; } }

/* WGE-WEB-001: sello oficial BBB (imagen del servidor de BBB, tamaño nativo 293 × 61) */
.seal-bbb { height: auto; padding: 8px 10px; background: #fff; border-radius: 12px; }
.seal-bbb .bbb-img { display: block; width: 293px; height: 61px; }
.seal-bbb .bbb-fb { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 0; }
.seal-bbb .bbb-fb[hidden] { display: none; }
@media (max-width: 599px) { .seal-bbb { height: auto; } .seal-bbb .bbb-img { width: 240px; height: auto; } }

/* WGE-WEB-001: respaldo sin acreditación ni calificación fijas, solo el enlace al perfil oficial */
.seal-bbb .bbb-fb { display: inline-flex; align-items: center; height: 44px; padding: 0 8px; color: #10224a; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.seal-bbb .bbb-fb[hidden] { display: none; }
