/* ── Sistema de diseño de brochures — Intercomm ──────────────────────────
   Marca: Azul Rey #18284d · Rojo #ff2038 · Cian #38b7d5 · Open Sans
   Formato: Carta (21.59 × 27.94 cm). Imprimir desde el navegador:
   Ctrl+P → Destino "Guardar como PDF" → Márgenes: Ninguno → Gráficos de fondo: SÍ
   ───────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap");

:root {
  --navy: #18284d;
  --navy-900: #0c1733;
  --navy-700: #274180;
  --rojo: #ff2038;
  --cian: #38b7d5;
  --gris: #5b6784;
  --gris-claro: #eef2f8;
  --linea: #dbe3ef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: #9aa3b2;
  font-size: 10pt;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Página tamaño Carta ── */
.pagina {
  width: 21.59cm;
  /* Altura fija: garantiza que cada sección ocupe exactamente una hoja Carta
     y nunca se derrame a una página extra al imprimir. */
  height: 27.94cm;
  margin: 0 auto 1cm;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
/* El cuerpo absorbe el espacio sobrante y no empuja al pie fuera de la hoja */
.cuerpo { min-height: 0; }

/* ── Encabezado ── */
.encabezado {
  background: var(--navy);
  color: #fff;
  padding: 1.1cm 1.4cm 0.9cm;
  position: relative;
  overflow: hidden;
}
.encabezado::after {
  content: "";
  position: absolute;
  right: -3cm;
  top: -3cm;
  width: 9cm;
  height: 9cm;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(56, 183, 213, 0.28), transparent 70%);
}
.encabezado .fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cm;
  position: relative;
  z-index: 1;
}
.logo {
  height: 1.15cm;
  filter: brightness(0) invert(1);
}
.encabezado .tag {
  font-size: 7.5pt;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cian);
  font-weight: 600;
}

/* ── Tipografía ── */
h1 {
  font-size: 25pt;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 b { font-weight: 700; }
h2 {
  font-size: 15pt;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
}
h2 b { font-weight: 700; }
h3 {
  font-size: 10.5pt;
  font-weight: 700;
  color: var(--navy);
}
.lead {
  font-size: 10.5pt;
  color: #c9d6ee;
  font-weight: 300;
  line-height: 1.55;
}

/* Etiqueta de sección */
.eyebrow {
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rojo);
  display: block;
  margin-bottom: 0.18cm;
}
.eyebrow.cian { color: var(--cian); }

/* ── Cuerpo ── */
.cuerpo {
  padding: 0.9cm 1.4cm;
  flex: 1;
}
.seccion + .seccion { margin-top: 0.62cm; }

/* ── Cifras ── */
.cifras {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--linea);
  border: 1px solid var(--linea);
}
.cifra {
  background: #fff;
  padding: 0.42cm 0.2cm;
  text-align: center;
}
.cifra .n {
  font-size: 16pt;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.cifra .l {
  font-size: 7pt;
  color: var(--gris);
  margin-top: 0.12cm;
  line-height: 1.3;
}

/* ── Tarjetas de línea de negocio ── */
.lineas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.38cm;
}
.linea {
  border: 1px solid var(--linea);
  border-left: 3px solid var(--rojo);
  padding: 0.4cm 0.45cm;
}
.linea.destacada {
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--cian);
  color: #fff;
}
.linea.destacada h3 { color: #fff; }
.linea.destacada p { color: #c9d6ee; }
.linea h3 { margin-bottom: 0.14cm; font-size: 11pt; }
.linea p { font-size: 8.6pt; color: var(--gris); line-height: 1.45; }
.linea .num {
  font-size: 7pt;
  font-weight: 700;
  color: var(--rojo);
  letter-spacing: 0.1em;
}
.linea.destacada .num { color: var(--cian); }

/* ── Catálogo de servicios ── */
.catalogo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4cm 0.55cm;
}
.catalogo.tres { grid-template-columns: repeat(3, 1fr); }
.grupo { break-inside: avoid; }
.grupo h3 {
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.12cm;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 0.2cm;
}
.grupo ul { list-style: none; }
.grupo li {
  font-size: 8.2pt;
  color: var(--gris);
  padding-left: 0.36cm;
  position: relative;
  line-height: 1.42;
  margin-bottom: 0.06cm;
}
.grupo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.13cm;
  width: 0.13cm;
  height: 0.13cm;
  background: var(--cian);
  border-radius: 50%;
}
.grupo li b { color: var(--navy); font-weight: 600; }

/* ── Banda de cita / claim ── */
.claim {
  background: var(--gris-claro);
  border-left: 3px solid var(--rojo);
  padding: 0.42cm 0.55cm;
  font-size: 10.5pt;
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
}

/* ── Lista con palomita ── */
.check { list-style: none; }
.check li {
  font-size: 9pt;
  color: var(--gris);
  padding-left: 0.55cm;
  position: relative;
  margin-bottom: 0.14cm;
  line-height: 1.45;
}
.check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cian);
  font-size: 9pt;
  font-weight: 700;
}
.check li b { color: var(--navy); font-weight: 600; }

/* ── Pie ── */
.pie {
  margin-top: auto;
  background: var(--navy);
  color: #fff;
  padding: 0.55cm 1.4cm;
  font-size: 7.6pt;
  line-height: 1.6;
}
.pie .fila {
  display: flex;
  justify-content: space-between;
  gap: 0.8cm;
  align-items: flex-start;
}
.pie b { color: var(--cian); font-weight: 600; }
.pie .sitio {
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Portada ── */
.portada {
  background: var(--navy);
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2cm 1.6cm 1.4cm;
  position: relative;
  overflow: hidden;
}
.portada::before {
  content: "";
  position: absolute;
  right: -6cm;
  top: -6cm;
  width: 18cm;
  height: 18cm;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(56, 183, 213, 0.22), transparent 65%);
}
.portada::after {
  content: "";
  position: absolute;
  left: -5cm;
  bottom: -7cm;
  width: 16cm;
  height: 16cm;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 32, 56, 0.18), transparent 68%);
}
.portada > * { position: relative; z-index: 1; }
.portada h1 { font-size: 34pt; }
.portada .logo { height: 1.5cm; }

/* Red de nodos decorativa */
.nodos { position: absolute; inset: 0; opacity: 0.5; z-index: 0; }

/* ── Impresión ── */
@page {
  size: letter;
  margin: 0;
}
@media print {
  body { background: #fff; }
  .pagina {
    margin: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  .pagina:last-child { break-after: auto; page-break-after: auto; }
  .no-imprimir { display: none !important; }
}

/* Aviso en pantalla */
.aviso {
  max-width: 21.59cm;
  margin: 0.8cm auto;
  background: #fff;
  border-left: 4px solid var(--rojo);
  padding: 0.5cm 0.7cm;
  font-size: 9.5pt;
  color: var(--navy);
  border-radius: 3px;
}
.aviso b { color: var(--rojo); }
