/* ===============================
   CONFIGURACIÓN GLOBAL PDF
================================ */

@page {
  size: Letter;
  margin: 0;
}

html, body {
    height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pdf-body {
  width: 215.9mm;
  margin: 0 auto;
}

/* ===============================
   CONTENEDOR DE CADA PÁGINA
================================ */

.pdf-page {
  width: 215.9mm;
  height: 279.4mm;

  min-height: 279.4mm;
  max-height: 279.4mm;

  margin: 0;
  padding: 0;

  position: relative;
  overflow: hidden;

  page-break-after: always;

  box-sizing: border-box;
}

/* ===============================
   HERO PAGE
================================ */

.pdf-hero {
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 1in;
}

.pdf-hero img {
  width: 280px;
  margin-bottom: 20px;
}

.pdf-hero h1 {
  font-size: 42px;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
}

.pdf-hero p {
  font-size: 18px;
  max-width: 5.5in;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===============================
   SECCIÓN FEATURES
================================ */

.pdf-section {
  padding: 0.8in;
}

.pdf-title {
  font-size: 30px;
  margin-bottom: 30px;
  border-left: 6px solid #ff1a1a;
  padding-left: 15px;
}

.pdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}

.pdf-card {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 20px;
  min-height: 80px;
}

.pdf-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
}

/* ===============================
   SECCIÓN FULL BACKGROUND
================================ */

.pdf-bg-section {
  background-size: cover;
  background-position: center;
  padding: 1in;
  text-align: left;
}

.pdf-bg-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.pdf-bg-section p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 5.8in;
}

/* ===============================
   ROI SECTION
================================ */

.pdf-roi {
  padding: 1in;
}

.pdf-roi h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.pdf-roi p {
  font-size: 15px;
  line-height: 1.6;
}

.pdf-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.pdf-metric {
  text-align: center;
}

.pdf-metric span:first-child {
  font-size: 32px;
  color: #ff1a1a;
  display: block;
}

/* ===============================
   FOOTER CLEAN (OPCIONAL)
================================ */

.pdf-footer {
  position: absolute;
  bottom: 0.5in;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* ===============================
   EVITAR CORTES RAROS
================================ */

img, table, tr, td, section, div {
  page-break-inside: avoid;
  break-inside: avoid;
}






















/* ===============================
   HERO ESTRUCTURA CORRECTA
================================ */

.pdf-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100%;
  color: #fff;
}

/* Overlay */

.pdf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.8) 100%
  );
  z-index: 0;
}

/* BLOQUE INFERIOR PEGADO ABAJO REAL */

/* ===============================
   HERO TEXT FIX
================================ */

.pdf-hero-text {
  position: absolute;
  bottom: 110px; /* espacio antes del nav */
  left: 0;
  right: 0;

  text-align: center;
  padding: 0 40px;

  color: #fff;
}

/* TÍTULO */
.pdf-hero-text h1 {
  font-size: 44px;
  margin: 0 0 20px 0;

  text-transform: uppercase;
  letter-spacing: 4px;

  width: 100%;
  max-width: 100%;

  white-space: nowrap; /* evita que lo corte en 2 líneas */
}

/* DESCRIPCIÓN */
.pdf-hero-text p {
  font-size: 17px;
  line-height: 1.6;

  max-width: 600px;
  margin: 0 auto;
}

/* LOGO ROMPIENDO EXACTO */

.pdf-hero-logo {
  position: absolute;
  left: 50%;
  bottom: 2.6in; /* Ajusta fino aquí */
  transform: translateX(-50%);
  z-index: 3;
}

.pdf-hero-logo img {
  width: 520px;

  filter:
    drop-shadow(0 0 15px rgba(255,0,0,0.9))
    drop-shadow(0 0 40px rgba(255,0,0,0.35));
}










/* ===============================
   HERO BOTTOM NAV
================================ */

.pdf-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* NAV inferior */
.pdf-hero-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: rgba(0,0,0,0.85);
  padding: 18px 0 22px 0;
}

/* Línea naranja superior */
.pdf-hero-nav-line {
  height: 3px;
  width: 100%;
  background: #ff6a00;
  margin-bottom: 15px;
}

/* Contenedor items */
.pdf-hero-nav-items {
  display: flex;
  justify-content: center;
  gap: 60px;
}

/* Items */
.pdf-hero-nav-items span {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Activo */
.pdf-hero-nav-items span.active {
  color: #ffffff;
  font-weight: bold;
}




























/* ===============================
   MODULES PRO – COMPACT VERSION
================================ */

.pdf-modules {
  background: #000;
  color: #fff;
  padding: 0.8in; /* antes 1in */
}

.pdf-modules-title {
  font-size: 28px; /* antes 34px */
  margin-bottom: 25px; /* antes 40px */
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: 5px solid #ff1a1a;
  padding-left: 15px;
}

.pdf-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px; /* antes 30px 40px */
}

.pdf-module-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,0,0,0.5);
  padding: 18px; /* antes 25px */
  min-height: 110px; /* antes 140px */
}

.pdf-module-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px; /* antes 18px */
  letter-spacing: 1px;
}

.pdf-module-card p {
  margin: 0;
  font-size: 13px; /* antes 14px */
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}

.pdf-module-icon {
  width: 36px; /* antes 46px */
  height: 36px;
  margin-bottom: 10px;
  color: #ff1a1a;
}

.pdf-module-icon svg {
  width: 100%;
  height: 100%;
}

















/* ===============================
   MODULES BOTTOM IMAGE – CLEAR BASE
================================ */

.pdf-modules {
  position: relative;
  overflow: hidden;
}

/* Imagen base más grande */
.pdf-modules-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  height: 45%; /* 👈 más espacio */

  background-image: url('/assets/pdf/cls-modulos.jpg');
  background-size: cover;
  background-position: center bottom; /* clave */
  background-repeat: no-repeat;

  z-index: 0;
}

/* Degradado SOLO arriba */
.pdf-modules-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.95) 25%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0.2) 65%,
    rgba(0,0,0,0) 80%
  );
}

/* Contenido arriba */
.pdf-modules-inner {
  position: relative;
  z-index: 2;
}
































/* ===============================
   PAGE 3 – MEDICIÓN FISCAL PRO
================================ */

.pdf-fiscal {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* ===== GLASS BOX SUPERIOR ===== */

/* ===== GLASS BOX COMPATIBLE PDF ===== */

.pdf-fiscal-box {
  position: absolute;
  top: 1.2in;
  left: 1in;
  right: 1in;

  padding: 45px;

  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.65)
  );

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 0 40px rgba(0,0,0,0.6),
    inset 0 0 60px rgba(255,255,255,0.03);
}

.pdf-fiscal-box h2 {
  margin: 0 0 20px 0;

  font-size: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: #ffffff;
}

.pdf-fiscal-box h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff6a00;
  margin-top: 12px;
}

.pdf-fiscal-box p {
  margin: 0 0 14px 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

/* ===== HINTS INFERIORES DERECHA ===== */

.pdf-fiscal-hints {
  position: absolute;
  bottom: 1.2in;
  right: 1in;

  width: 3.5in;
}

.pdf-fiscal-hints ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdf-fiscal-hints li {
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.85);

  position: relative;
  padding-left: 20px;
}

.pdf-fiscal-hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;

  width: 8px;
  height: 8px;
  background: #ff6a00;
}

























/* ===============================
   PAGE 4 – ROI PRO
================================ */

.pdf-roi-page {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* Overlay oscuro elegante */
.pdf-roi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.85)
  );
}

/* Contenido */
.pdf-roi-content {
  position: relative;
  z-index: 2;
  padding: 1.2in;
}

/* Título */
.pdf-roi-content h2 {
  font-size: 34px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pdf-roi-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff6a00;
  margin-top: 10px;
}

/* Intro */
.pdf-roi-intro {
  max-width: 5in;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 60px;
}

/* Grid KPIs */
.pdf-roi-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* Card KPI */
.pdf-roi-card {
  flex: 1;
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}

/* Icono */
.pdf-roi-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 15px auto;
  color: #ff6a00;
}

.pdf-roi-icon svg {
  width: 100%;
  height: 100%;
}

/* Número */
.pdf-roi-number {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Label */
.pdf-roi-label {
  font-size: 14px;
  letter-spacing: 1px;
}


















/* ===============================
   ROI QUOTE SECTION
================================ */

.pdf-roi-quote {
  margin-top: 70px;
  padding: 40px 50px;

  position: relative;

  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.6)
  );

  box-shadow:
    0 0 40px rgba(0,0,0,0.6),
    inset 0 0 60px rgba(255,255,255,0.03);
}

/* Comillas grandes */

.pdf-quote-mark {
  position: absolute;
  font-size: 120px;
  font-weight: bold;
  color: rgba(255,106,0,0.2);
  line-height: 1;
}

.pdf-quote-mark.left {
  top: -20px;
  left: 20px;
}

.pdf-quote-mark.right {
  bottom: -60px;
  right: 25px;
}

/* Texto principal de la cita */

.pdf-quote-text {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

/* Descripción módulo */

.pdf-quote-module {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}



























/* ===============================
   PAGE 5 – COMPARATIVO PRO
================================ */

.pdf-compare-page {
  background: #000;
  color: #fff;
  padding: 0.8in;
}

.pdf-compare-title {
  font-size: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.pdf-compare-sub {
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.7);
}

.pdf-compare-table {
  width: 100%;
}

.pdf-compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pdf-compare-header {
  font-weight: bold;
  background: rgba(255,255,255,0.03);
}

.pdf-compare-cell {
  padding: 18px 15px;
  font-size: 14px;
}

.pdf-compare-cell.feature strong {
  display: block;
  margin-bottom: 4px;
}

.pdf-compare-cell.feature span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* Highlight cloudLOGGER column */

.pdf-compare-cell.highlight {
  background: rgba(0,255,100,0.05);
  box-shadow: inset 0 0 0 1px rgba(0,255,120,0.25);
}

/* Badges */

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  border: 1px solid;
}

.badge.ok {
  border-color: #00aa55;
  color: #00cc66;
}

.badge.warn {
  border-color: #cc8800;
  color: #ffaa00;
}

.badge.no {
  border-color: #aa0000;
  color: #ff4444;
}

.badge.best {
  border-color: #00ff88;
  color: #00ff88;
  font-weight: bold;
}

.pdf-compare-note {
  margin-top: 25px;
  font-size: 11px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}












/* ===============================
   COMPARE TITLE – CONSISTENTE
================================ */

.pdf-compare-head {
  text-align: left;
  margin-bottom: 40px;
}

.pdf-compare-head h2 {
  font-size: 34px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
}

.pdf-compare-line {
  width: 70px;
  height: 3px;
  background: #ff6a00;
  margin: 12px 0 18px 0;
}

.pdf-compare-head p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}























/* ===============================
   PAGE 7 – IA ELITE
================================ */

.pdf-ia-page {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* Overlay MUY ligero para no tapar el celular */

.pdf-ia-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.55)
  );
}

/* Contenido */

.pdf-ia-content {
  position: relative;
  z-index: 2;
  padding: 1.2in;
}

/* TÍTULO */

.pdf-ia-title-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

/* ORB GRANDE */

.pdf-ia-orb img {
  width: 130px;

  filter:
    drop-shadow(0 0 25px rgba(0,255,120,0.8))
    drop-shadow(0 0 60px rgba(0,255,120,0.4));
}

/* TÍTULO PRINCIPAL */

.pdf-ia-title-wrap h2 {
  font-size: 46px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.pdf-ia-title-wrap h2 span {
  display: block;
  font-size: 28px;
  letter-spacing: 4px;
  color: #00ff99;
}

/* BLOQUE DESTACADO */

.pdf-ia-highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 5.5in;
  margin-bottom: 30px;
}

.pdf-ia-line {
  width: 5px;
  background: #00ff99;
  min-height: 80px;
}

.pdf-ia-highlight p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
}

/* DESCRIPCIÓN */

.pdf-ia-description {
  max-width: 5in;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 60px;
}

/* CHAT AREA */
/* CHAT AREA REALMENTE ESQUINA INFERIOR */

.pdf-ia-chat {
  position: absolute;
  right: 0.9in;
  bottom: 0.9in;

  width: 3.2in;
  z-index: 3;
}

.pdf-ia-chat-image img {
  width: 100%;
  border: none;
}

.pdf-ia-chat-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}























/* ===============================
   PAGE 6 – ARQUITECTURA PRO
================================ */

.pdf-arch-page{
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.pdf-arch-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.75)
  );
}

.pdf-arch-content{
  position:relative;
  z-index:2;
  padding:1in;
}

.pdf-arch-head{
  text-align:center;
  margin-bottom:40px;
}

.pdf-arch-redline{
  width:80px;
  height:4px;
  background:#ff2b2b;
  margin:0 auto 15px auto;
}

.pdf-arch-head h2{
  font-size:34px;
  letter-spacing:2px;
  margin-bottom:10px;
}

.pdf-arch-head p{
  font-size:16px;
  color:rgba(255,255,255,0.85);
}

.pdf-arch-grid{
  display:flex;
  justify-content:space-between;
  gap:60px;
}

/* STACK */

.pdf-arch-stack{
  width:45%;
}

.pdf-arch-stack h3{
  margin-bottom:20px;
  font-size:18px;
  text-transform:uppercase;
  letter-spacing:2px;
}

.pdf-arch-layer{
  background:rgba(255,255,255,0.05);
  padding:14px;
  margin-bottom:10px;
  border-radius:6px;
  text-align:center;
}

.pdf-arch-arrow{
  height:20px;
  border-left:2px solid rgba(255,255,255,0.4);
  margin:0 auto 10px auto;
}

.pdf-arch-opc{
  text-align:center;
  font-size:12px;
  margin-bottom:10px;
  color:#ff4c4c;
}

.pdf-arch-highlight{
  background:rgba(255,0,0,0.15);
  border:1px solid rgba(255,0,0,0.4);
}

/* SEGURIDAD */

.pdf-arch-security{
  width:45%;
}

.pdf-arch-security h3{
  margin-bottom:20px;
  font-size:18px;
  text-transform:uppercase;
  letter-spacing:2px;
}

.pdf-sec-item{
  margin-bottom:16px;
}

.pdf-sec-item strong{
  display:block;
  font-size:14px;
}

.pdf-sec-item span{
  font-size:12px;
  color:rgba(255,255,255,0.75);
}

.pdf-sec-highlight strong{
  color:#ff4c4c;
}