/* OpenSMTP Server · landing (borrador)
   Paleta y escala: Manual de marca OpenSMTP Server v1.1 (6-oct-2026).
   Fuentes locales: Inter (sustituto documentado de F Grotesk) y JetBrains Mono. Sin CDN. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --azul: #0B1D65;
  --cian: #0DADF7;
  --naranja: #FE6613;
  --naranja-claro: #FF8039;
  --blanco: #FFFFFF;
  /* UI (solo pantalla) */
  --cian-texto: #0077A8;
  --gris: #5B6478;
  --suave: #F4F6FB;
  --verde: #1B7F5A;
  --ambar: #9A6700;
  --rojo: #B42318;
  /* Derivados neutros */
  --linea: #DDE2EE;
  --azul-2: #13277A;

  --font: "F Grotesk", "Inter", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, Menlo, monospace;
  --wrap: 1160px;
  --gutter: 20px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--azul);
  background: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--cian-texto); text-underline-offset: 3px; }
a:hover { color: var(--azul); }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--suave); border: 1px solid var(--linea); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--azul); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  border-radius: 8px; font-weight: 600; font-size: 16px; line-height: 20px;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn--orange { background: var(--naranja); color: var(--azul); }
.btn--orange:hover { background: var(--naranja-claro); color: var(--azul); }
.btn--blue { background: var(--azul); color: #fff; }
.btn--blue:hover { background: var(--azul-2); color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linea);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brandline { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brandline__logo img, .brandline__logo-img { width: 150px; }
.brandline__rule { width: 1px; height: 28px; background: var(--linea); flex: none; }
.brandline__firma img { height: 22px; width: auto; }
.site-nav { display: none; margin-left: auto; gap: 22px; }
.site-nav a { color: var(--azul); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--cian-texto); text-decoration: underline; }
.site-header__cta { margin-left: auto; }
@media (min-width: 1080px) {
  .site-nav { display: flex; }
  .site-header__cta { margin-left: 8px; }
}
@media (max-width: 599px) {
  .site-header__cta { display: none; }   /* el hero tiene la misma CTA, sin competir por espacio */
  .site-header__inner { min-height: 64px; }
  .brandline { gap: 10px; }
  .brandline__logo img { width: 130px; }
  .brandline__firma img { height: 19px; }
}

/* ---------- Tipos auxiliares ---------- */
.eyebrow {
  font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .02em;
  color: var(--cian-texto); margin-bottom: 12px;
}
.eyebrow--onDark { color: var(--cian); }
.caption { font-size: 13px; line-height: 20px; color: var(--gris); margin: 12px 0 0; }
.caption--onDark { color: #C9D2EC; }
.note {
  margin-top: 20px; padding: 12px 16px; border-left: 3px solid var(--cian);
  background: rgba(255,255,255,.08); color: #fff; font-weight: 600; border-radius: 0 6px 6px 0;
}
.note--light { background: var(--suave); color: var(--azul); }

/* Chevron de la familia Openb como viñeta */
.chev { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.chev li { position: relative; padding-left: 22px; }
.chev li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  border-top: 2px solid var(--cian); border-right: 2px solid var(--cian); transform: rotate(45deg);
}
.chev--onDark li { color: #E7ECF8; }

/* Estados: siempre texto + color */
.st {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; line-height: 18px; font-weight: 600;
  padding: 3px 9px 3px 8px; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid currentColor;
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st.mono { font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.st--ok { color: var(--verde); }
.st--queue { color: var(--cian-texto); }
.st--retry { color: var(--ambar); }
.st--fail { color: var(--rojo); }
.st--muted { color: var(--gris); }

/* Íconos de línea: 24 px, trazo 1,5 */
.icon { width: 32px; height: 32px; fill: none; stroke: var(--azul); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--azul); color: #fff;
  padding: 56px 0 0; overflow: hidden;
}
.hero__grid { display: grid; gap: 40px; padding-bottom: 64px; }
.hero__title { font-size: 34px; line-height: 40px; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero__title span { display: block; }
.w-bold { font-weight: 700; }
.w-light { font-weight: 300; color: var(--cian); }
.hero__lead { font-size: 18px; line-height: 28px; color: #E7ECF8; max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.link-onDark { color: #fff; font-weight: 600; }
.link-onDark:hover { color: var(--cian); }
.claim { margin-top: 36px; font-size: 22px; line-height: 28px; letter-spacing: .01em; }
.claim__a { font-weight: 300; color: #fff; }
.claim__b { font-weight: 700; color: var(--naranja); }

.hero__visual { margin: 0; }
.ficha {
  background: #fff; color: var(--azul); border-radius: 14px; padding: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.ficha__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ficha__label { font-weight: 700; font-size: 18px; }
.ficha__meta { margin: 0 0 18px; padding: 12px 14px; background: var(--suave); border-radius: 8px; display: grid; gap: 4px; font-size: 13px; line-height: 20px; }
.ficha__meta div { display: grid; grid-template-columns: 1fr; gap: 0; min-width: 0; }
@media (min-width: 480px) { .ficha__meta div { grid-template-columns: 9.5em 1fr; gap: 8px; } }
.ficha__meta dt { color: var(--gris); }
.ficha__meta dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--linea); }
.timeline li { position: relative; display: grid; grid-template-columns: 14px 1fr; column-gap: 14px; padding: 7px 0; }
.timeline__dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--cian-texto); margin-top: 3px; grid-row: span 2; z-index: 1; }
.timeline__dot--ok { border-color: var(--verde); background: var(--verde); }
.timeline__ev { font-size: 13px; font-weight: 500; color: var(--cian-texto); }
.timeline li:last-child .timeline__ev { color: var(--verde); }
.timeline__tx { font-size: 14px; line-height: 20px; color: var(--gris); }

/* Bandas planas del isotipo como separador */
.bands {
  display: grid; grid-template-columns: 1fr repeat(3, 10px); column-gap: 8px;
  height: 40px; align-items: end;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.bands span { grid-column: 1; height: 6px; background: var(--cian); align-self: end; }
.bands span:nth-child(1) { grid-row: 1; margin-bottom: 28px; width: 60%; }
.bands span:nth-child(2) { grid-row: 1; margin-bottom: 14px; width: 80%; }
.bands span:nth-child(3) { grid-row: 1; margin-bottom: 0; }
.bands i { grid-row: 1; display: block; height: 40px; background: var(--naranja-claro); }

@media (min-width: 900px) {
  .hero { padding-top: 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-bottom: 96px; }
  .hero__title { font-size: 52px; line-height: 60px; }
  .ficha { padding: 24px; }
}

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--suave); }
.section--blue { background: var(--azul); color: #fff; }
.section--blue p { color: #E7ECF8; }
.section--blue .eyebrow--onDark { color: var(--cian); }
.section__head { max-width: 760px; margin-bottom: 36px; }
.section__head h2 { margin-bottom: 12px; }
.section__lead { font-size: 18px; line-height: 26px; color: var(--gris); }
.split__text h2 { margin-bottom: 16px; }
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section--tight { padding: 72px 0; }
  h2 { font-size: 32px; line-height: 40px; }
}

.split { display: grid; gap: 40px; }
.split__visual { margin: 0; min-width: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .split--rev .split__text { order: 2; }
  .split--rev .split__visual { order: 1; }
}

/* Tarjetas */
.cards4, .cards3 { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards4, .cards3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards4 { grid-template-columns: repeat(4, 1fr); } .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radius);
  padding: 24px; border-top: 3px solid var(--cian);
}
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--gris); }
.card--flat { border-top-width: 1px; }
.card--flat h3 { margin-top: 0; }
.cards3 { margin-top: 32px; }

/* Bloques de código (azul sobre fondo suave) */
.code { margin: 0; background: #fff; border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden; }
.code__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--linea); }
.code__tab { font-weight: 700; font-size: 14px; }
.code__note { font-size: 13px; color: var(--gris); }
.code pre {
  margin: 0; padding: 16px; background: var(--suave); color: var(--azul);
  font-size: 13px; line-height: 20px; overflow-x: auto; white-space: pre;
}
.code .k { color: var(--cian-texto); font-weight: 500; }
.code .h { color: var(--azul); font-weight: 500; }
.code .c { color: var(--gris); }
.code .ok { color: var(--verde); font-weight: 500; }

/* Paneles ilustrativos */
.panel { background: #fff; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--linea); }
.panel__title { font-weight: 700; }
.panel__foot { margin: 0; padding: 12px 20px; font-size: 13px; line-height: 20px; color: var(--gris); background: var(--suave); }
.dns, .rules, .logs { width: 100%; border-collapse: collapse; font-size: 14px; }
.dns th, .rules th, .logs th { text-align: left; font-size: 13px; font-weight: 600; color: var(--gris); padding: 10px 20px; border-bottom: 1px solid var(--linea); }
.dns td, .rules td, .logs td { padding: 12px 20px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.dns tr:last-child td, .rules tr:last-child td, .logs tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12.5px; line-height: 18px; padding: 2px 8px; border-radius: 6px; background: var(--azul); color: #fff; }
.tag--line { background: #fff; color: var(--azul); border: 1px solid var(--azul); }
@media (max-width: 480px) {
  .dns th, .rules th, .dns td, .rules td { padding-left: 14px; padding-right: 14px; }
}

/* Flujo de cola */
.flow { margin: 0; display: grid; gap: 24px; }
.flow__pipe, .flow__out { list-style: none; margin: 0; padding: 0; }
.flow__pipe { display: grid; gap: 12px; }
.flow__pipe li, .flow__out li {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.flow__tx { font-size: 14px; line-height: 20px; color: var(--gris); }
.flow__out { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .flow { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 48px; }
  .flow__pipe li { position: relative; }
  .flow__pipe li:not(:last-child)::after {
    content: ""; position: absolute; left: 28px; bottom: -13px; width: 2px; height: 14px; background: var(--cian);
  }
  .flow__pipe { position: relative; }
  .flow__pipe::after {
    content: ""; position: absolute; right: -36px; top: 50%; width: 22px; height: 22px;
    border-top: 2px solid var(--cian); border-right: 2px solid var(--cian); transform: translateY(-50%) rotate(45deg);
  }
  .flow__out { grid-template-columns: 1fr 1fr; }
  .flow__out li { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 100%; }
}

/* Eventos */
.events { background: #fff; color: var(--azul); border-radius: 14px; padding: 20px; }
.events__title { font-size: 18px; margin-bottom: 12px; }
.events__list { margin: 0; display: grid; }
.events__list div { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.events__list div:last-child { border-bottom: 0; }
.events__list dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--gris); }
.events__sep { border-top: 2px solid var(--linea); margin-top: 6px; }
@media (min-width: 560px) {
  .events { padding: 24px; }
  .events__list div { grid-template-columns: 200px 1fr; gap: 14px; align-items: baseline; }
}
.sig {
  margin-top: 24px; display: grid; gap: 4px; padding: 14px 16px; border-radius: 8px;
  background: var(--azul-2); border: 1px solid rgba(255,255,255,.14); font-size: 13px; line-height: 20px; color: #E7ECF8;
}
.sig__h { color: var(--cian); font-weight: 500; }
.sig__v { color: #fff; }

/* Consola (maqueta esquemática) */
.console { margin: 0; }
.console__frame { background: #fff; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.console__top { background: var(--azul); padding: 0 12px; display: flex; align-items: center; }
.console__top img { width: 120px; }
.console__body { display: grid; }
.console__nav { list-style: none; margin: 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--linea); font-size: 14px; }
.console__nav li { padding: 6px 10px; border-radius: 6px; white-space: nowrap; color: var(--gris); }
.console__nav li.is-on { background: var(--suave); color: var(--azul); font-weight: 600; box-shadow: inset 0 -2px 0 var(--cian); }
@media (min-width: 900px) { .console__nav li.is-on { box-shadow: inset 3px 0 0 var(--cian); } }
.console__main { min-width: 0; padding: 16px; overflow-x: auto; }
.console__filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fld { font-size: 13px; line-height: 18px; padding: 6px 12px; border: 1px solid var(--linea); border-radius: 6px; color: var(--gris); }
.fld::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 10px; border-right: 1.5px solid var(--gris); border-bottom: 1.5px solid var(--gris); transform: translateY(-3px) rotate(45deg); }
.logs { width: 100%; }
@media (max-width: 599px) { .logs th:nth-child(2), .logs td:nth-child(2) { display: none; } .logs td.mono { font-size: 12px; } }
.logs th, .logs td { padding-left: 12px; padding-right: 12px; }
@media (min-width: 900px) {
  .console__body { grid-template-columns: 200px 1fr; }
  .console__nav { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--linea); padding: 16px 12px; }
  .console__main { padding: 20px 24px; }
}

/* Qué no es */
.noes { display: grid; gap: 28px; }
.noes h2 { margin-bottom: 12px; }
.noes > div p { color: var(--gris); }
.noes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.noes__list li {
  position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--linea); border-radius: var(--radius);
}
.noes__list li::before, .noes__list li::after {
  content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 2px; background: var(--gris);
}
.noes__list li::before { transform: translateY(-50%) rotate(45deg); }
.noes__list li::after { transform: translateY(-50%) rotate(-45deg); }
@media (min-width: 900px) { .noes { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* Un producto de Openb */
.openb__inner { display: grid; gap: 28px; align-items: center; }
.openb__logo { display: block; width: 200px; }
.openb__text h2 { margin-bottom: 12px; }
.openb__text p { max-width: 36em; color: var(--gris); }
.openb__text .btn { margin-top: 12px; }
@media (min-width: 900px) {
  .openb__inner { grid-template-columns: 300px 1fr; gap: 64px; }
  .openb__logo { width: 260px; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--azul); color: #C9D2EC; padding: 40px 0; }
.site-footer__inner { display: grid; gap: 24px; }
.brandline--footer .brandline__rule { background: rgba(255,255,255,.24); }
.site-footer__legal p { margin: 0; font-size: 13px; line-height: 20px; }
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer__legal { text-align: right; }
}
