/* Portada de FLIT Verify. Misma identidad que el Centro de Soporte FLIT: colores, radios y
   degradados de la plataforma; tipografía Geist self-hosted (tokens.css). Fija en claro. */
:root {
  --flit-navy: #162744;
  --flit-blue: #4f74c9;
  --flit-cyan: #4fd4cc;
  --flit-title: #526fb8;
  --flit-text: #162744;
  --flit-text-2: #59677d;
  --flit-muted: #7d8798;
  --flit-bg: #eaf2ff;
  --flit-bg-soft: #eef5ff;
  --flit-card: #ffffff;
  --flit-line: #dde5f0;
  --flit-input: #d9dee8;
  --flit-gradient: linear-gradient(90deg, #4fd4cc 0%, #4f74c9 100%);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 10px 30px rgba(22, 39, 68, 0.08);
  --shadow-soft: 0 4px 14px rgba(22, 39, 68, 0.06);
  --content: 1240px;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-width: 320px; background: var(--flit-bg); color: var(--flit-text); font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--flit-blue); outline-offset: 3px; }

.page { padding: 16px max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }

/* Barra superior */
.topbar { position: sticky; top: 16px; z-index: 20; width: min(var(--content), 100%); margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--flit-card); border: 1px solid var(--flit-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.topbar__brand { display: flex; align-items: center; gap: 14px; }
.topbar__brand img { display: block; height: 34px; width: auto; }
.topbar__brand span { padding-left: 14px; border-left: 1px solid var(--flit-line); font-size: 15px; font-weight: 600; color: var(--flit-title); white-space: nowrap; }
.topbar__nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: var(--flit-text-2); }
.topbar__nav > a:not(.button) { white-space: nowrap; }
.topbar__nav a:not(.button):hover { color: var(--flit-blue); }
.topbar__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--flit-line); border-radius: 50%; background: var(--flit-card); color: var(--flit-navy); align-items: center; justify-content: center; }

/* Botones */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--flit-gradient); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(22, 39, 68, 0.28); box-shadow: 0 10px 22px rgba(79, 116, 201, 0.28); }
.button--navy { background: var(--flit-navy); color: #fff; }
.button--ghost { background: var(--flit-card); color: var(--flit-navy); border: 1.5px solid var(--flit-input); }
.button--small { min-height: 42px; padding: 0 20px; font-size: 14px; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flit-blue); }

/* Portada */
.hero { width: min(var(--content), 100%); margin: 28px auto 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 24px; align-items: stretch; }
/* Azul a azul oscuro (no cian): el texto blanco conserva contraste AA también donde la foto se funde. */
.hero__panel { position: relative; overflow: hidden; min-height: 700px; border-radius: var(--radius-xl); background: linear-gradient(180deg, #4f74c9 0%, #2f4f9e 100%); color: #fff; box-shadow: var(--shadow-card); }
.hero__image { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44%; object-fit: cover; object-position: 50% 18%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
.hero__copy { text-shadow: 0 1px 2px rgba(22, 39, 68, 0.25); }
.hero__copy { position: relative; z-index: 1; padding: 48px 48px 0; max-width: 620px; }
.hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0.92; }
.hero h1 { margin-top: 16px; font-size: clamp(2.1rem, 3.5vw, 3.1rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.hero__lead { margin-top: 18px; font-size: 17px; line-height: 1.55; color: #fff; }
.hero__points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; font-weight: 500; }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; position: relative; }
.tick::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid var(--flit-blue); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Guía para quien recibió un enlace */
.guide { display: flex; flex-direction: column; padding: 32px; background: var(--flit-card); border: 1px solid var(--flit-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.guide h2 { margin-top: 6px; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; font-weight: 700; color: var(--flit-title); }
.guide__steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 14px; }
.guide__steps li { position: relative; padding-left: 46px; font-size: 15px; line-height: 1.55; color: var(--flit-text-2); counter-increment: paso; }
.guide__steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--flit-gradient); color: #fff; font-size: 14px; font-weight: 700; }
.guide__steps strong { color: var(--flit-navy); font-weight: 700; }
.guide__note { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--flit-text-2); }
.guide__icon { flex: none; margin-top: 2px; color: var(--flit-blue); }

/* Secciones */
.section { width: min(var(--content), 100%); margin: 72px auto 0; }
.section__title { display: inline-block; padding: 18px 26px; background: var(--flit-card); border: 1px solid var(--flit-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.section__title h2, .scope__copy h2, .empresas h2 { margin-top: 6px; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--flit-title); }
.grid { display: grid; gap: 20px; margin-top: 22px; }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--flit-card); border: 1px solid var(--flit-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.card h3 { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--flit-navy); }
.card p { font-size: 15px; line-height: 1.55; color: var(--flit-text-2); }
.card > a { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--flit-blue); }
.card--step { padding-top: 32px; }
.step-number { position: absolute; top: -14px; left: 28px; min-width: 32px; height: 32px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; background: var(--flit-gradient); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-soft); }
.icon-chip { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--flit-bg-soft); color: var(--flit-blue); }
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip--plain { background: var(--flit-card); }

/* Comprobar un certificado */
.scope { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 36px; padding: 40px; background: var(--flit-card); border: 1px solid var(--flit-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.scope__copy p:not(.eyebrow) { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--flit-text-2); }
.scope__copy .scope__small { font-size: 14px; }
.check { margin-top: 20px; display: grid; gap: 12px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--flit-navy); }
.field input { min-height: 50px; padding: 0 16px; border: 1.5px solid var(--flit-input); border-radius: 999px; background: var(--flit-card); font-size: 15px; }
.field input:focus-visible { outline: 3px solid var(--flit-blue); outline-offset: 2px; border-color: var(--flit-blue); }
.scope__list { display: grid; gap: 12px; align-content: start; }
.scope__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--flit-bg-soft); border-radius: var(--radius-md); }
.scope__item strong { display: block; font-size: 16px; font-weight: 700; color: var(--flit-navy); }
.scope__item span:not(.icon-chip) { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--flit-text-2); }
.scope__item .icon-chip { flex: none; width: 46px; height: 46px; }

/* Preguntas */
.faq { margin-top: 22px; display: grid; gap: 12px; }
.faq details { background: var(--flit-card); border: 1px solid var(--flit-line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--flit-navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--flit-blue); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 24px 22px; font-size: 15px; line-height: 1.6; color: var(--flit-text-2); max-width: 880px; }
.faq details a { color: var(--flit-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Empresas */
.empresas { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; padding: 40px; background: var(--flit-navy); color: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.empresas .eyebrow { color: var(--flit-cyan); }
.empresas h2 { color: #fff; }
.empresas p:not(.eyebrow) { margin-top: 14px; font-size: 16px; line-height: 1.6; color: #c9d4e8; }
.empresas__actions { display: flex; flex-direction: column; gap: 12px; }
.empresas .button--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* Pie */
.footer { margin: 80px calc(-1 * max(var(--gutter), env(safe-area-inset-right))) 0 calc(-1 * max(var(--gutter), env(safe-area-inset-left))); padding: 40px max(20px, env(safe-area-inset-right)) calc(44px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); display: grid; justify-items: center; gap: 8px; background: var(--flit-navy); color: #c9d4e8; text-align: center; font-size: 14px; line-height: 1.5; }
.footer img { height: 36px; width: auto; margin-bottom: 8px; }
.footer__cert { margin-top: 6px; font-size: 13px; }
.footer__cert a, .footer__links a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 10px; }
.footer__links a:hover, .footer__cert a:hover { text-decoration-color: #fff; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  /* Sin espacio horizontal, la foto va debajo del texto: nada se superpone. */
  .hero__panel { min-height: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #4f74c9 0%, #2f4f9e 100%); }
  .hero__copy { padding-bottom: 28px; }
  .hero__image { position: static; height: 300px; object-position: 50% 22%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); margin-top: -40px; }
  .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope { grid-template-columns: 1fr; }
  .empresas { grid-template-columns: 1fr; }
  .empresas__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; }
  .topbar__toggle { display: inline-flex; }
  .topbar__nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 14px; border-top: 1px solid var(--flit-line); }
  .topbar__nav.is-open { display: flex; }
}
@media (max-width: 820px) {
  .grid--three, .grid--four { grid-template-columns: 1fr; }
  .hero__copy { padding: 32px 26px 24px; }
  .hero__image { height: 240px; }
  .guide, .scope, .empresas { padding: 26px; }
}
