/* ==========================================================================
   SLEP TALAGANTE - CONOCE TU NUEVA LIQUIDACIÓN DE SUELDO (WEB INTERACTIVA)
   Diseño fiel a la infografía institucional (Páginas 1 y 2 del PDF)
   Tipografía: Inter (Familia oficial unificada)
   ========================================================================== */

:root {
  /* Paleta Institucional */
  --color-brand-blue-header: #003775;
  --color-brand-blue-header-dark: #00234B;
  --color-brand-ribbon-cyan: #008CD6;
  --color-brand-blue: #084C8D;
  --color-brand-blue-dark: #003262;
  --color-gov-red: #E53935;
  --color-gov-red-dark: #C62828;

  /* Fondo y Superficies del PDF */
  --bg-page-pdf: #E8F3FA;
  --bg-card-info: #EBF4FC;
  --bg-card-info-hover: #E1EFFB;
  --bg-card-white: #FFFFFF;

  /* Textos */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-white: #FFFFFF;

  /* Bordes y Sombras */
  --border-payslip: #9EC3E6;
  --border-payslip-inner: #000000;
  --border-card: #C7DFF3;
  --shadow-payslip: 0 10px 30px rgba(8, 76, 141, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-popover: 0 20px 45px rgba(0, 55, 117, 0.25), 0 8px 18px rgba(15, 23, 42, 0.1);
  --shadow-badge: 0 4px 12px rgba(0, 59, 115, 0.22);

  /* Insignias Numeradas (Estilo exacto al PDF) */
  --badge-bg: #A8D5F2;
  --badge-bg-active: #0284C7;
  --badge-border: #2B7BB9;
  --badge-text: #003B73;
  --badge-text-active: #FFFFFF;
  --highlight-fill: rgba(2, 132, 199, 0.14);
  --highlight-border: #0284C7;

  /* Tipografía */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;

  /* Transiciones & Radios */
  --radius-badge: 50%;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page-pdf);
  color: var(--text-primary);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   1. ENCABEZADO INSTITUCIONAL SUPERIOR (Fiel al PDF)
   ========================================================================== */
.site-header {
  width: 100%;
  background-color: var(--color-brand-blue-header);
  color: var(--text-white);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-logo-dep-link,
.header-logo-slep-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.header-logo-dep-link:hover,
.header-logo-slep-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.header-logo-dep {
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.header-logo-slep {
  height: 48px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
  display: block;
}

/* Cinta decorativa escalonada inferior del header (azul cielo) */
.header-ribbon {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-brand-ribbon-cyan) 0%, #38BDF8 60%, var(--color-brand-ribbon-cyan) 100%);
  position: relative;
}

/* Botón flotante para volver al hub */
.nav-back-bar {
  max-width: 1180px;
  margin: 0.75rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand-blue);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  background: rgba(8, 76, 141, 0.08);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-back-link:hover {
  background: var(--color-brand-blue);
  color: #FFFFFF;
}

/* ==========================================================================
   2. CONTENIDO PRINCIPAL & TITULAR
   ========================================================================== */
.main-wrapper {
  flex-grow: 1;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-area {
  text-align: center;
  max-width: 860px;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-instruction {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.hero-instruction-icon {
  width: 20px;
  height: 20px;
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

/* Barra rápida de números en móvil */
.mobile-quick-nav {
  display: none;
  width: 100%;
  max-width: 580px;
  margin-bottom: 1.25rem;
  background: #FFFFFF;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-quick-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.mobile-quick-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brand-blue-dark);
}

.mobile-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.zoom-btn {
  background: var(--bg-card-info);
  border: 1px solid var(--border-payslip);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  cursor: pointer;
  touch-action: manipulation;
}

.zoom-btn:active {
  background: var(--color-brand-blue);
  color: #FFFFFF;
}

.mobile-quick-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.quick-pill {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 2px solid var(--badge-border);
  color: var(--badge-text);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.quick-pill.is-active,
.quick-pill:hover {
  background: var(--badge-bg-active);
  color: var(--badge-text-active);
  transform: scale(1.1);
}

/* ==========================================================================
   3. CONTENEDOR Y ESCENARIO DE LA LIQUIDACIÓN (Página 1 del PDF)
   ========================================================================== */
.payslip-stage-container {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 2rem;
  padding: 0 45px; /* Espacio para que las insignias respiren en los bordes */
}

.payslip-outer-card {
  background-color: var(--bg-card-white);
  border: 1.5px solid var(--border-payslip);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-payslip);
  padding: 1.75rem 2rem 1.5rem;
  width: 100%;
  max-width: 960px;
  position: relative;
  transition: var(--transition);
}

/* ==========================================================================
   4. ANCLAJE DIRECTO Y POSICIONAMIENTO PRECISO DE LAS INSIGNIAS (1 A 7)
   Garantiza alineación matemática vertical perfecta con cada apartado
   ========================================================================== */
.payslip-zone-wrapper {
  position: relative;
  width: 100%;
}

.interactive-badge {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-badge);
  background-color: var(--badge-bg);
  border: 2.5px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-badge);
  transition: var(--transition);
  z-index: 35;
  user-select: none;
  outline: none;
  top: 50%;
  transform: translateY(-50%);
}

/* Insignias del lado izquierdo (1, 2, 3, 4) */
.badge-left {
  left: -52px;
}

/* Insignias del lado derecho (5, 6, 7) */
.badge-right {
  right: -52px;
}

/* Conector sutil tipo flecha hacia el apartado */
.badge-left::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--badge-border);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transition: var(--transition);
}

.badge-right::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 8px solid var(--badge-border);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transition: var(--transition);
}

/* Aro de pulsación en reposo */
.interactive-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-badge);
  border: 2px solid var(--badge-border);
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition);
}

.interactive-badge:hover,
.interactive-badge:focus-visible,
.interactive-badge.is-active {
  background-color: var(--badge-bg-active);
  color: var(--badge-text-active);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.interactive-badge:hover.badge-left,
.interactive-badge:focus-visible.badge-left,
.interactive-badge.is-active.badge-left {
  transform: translateY(-50%) scale(1.15) translateX(3px);
}

.interactive-badge:hover.badge-right,
.interactive-badge:focus-visible.badge-right,
.interactive-badge.is-active.badge-right {
  transform: translateY(-50%) scale(1.15) translateX(-3px);
}

.interactive-badge:hover::before,
.interactive-badge.is-active::before {
  border-left-color: var(--badge-bg-active);
  border-right-color: var(--badge-bg-active);
}

.interactive-badge:hover::after,
.interactive-badge:focus-visible::after,
.interactive-badge.is-active::after {
  opacity: 1;
  animation: badgePulse 1.8s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1.05); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0.2; }
  100% { transform: scale(1.05); opacity: 0.8; }
}

/* ==========================================================================
   5. MAQUETA INTERIOR DE LA LIQUIDACIÓN (Fidelidad 1:1)
   ========================================================================== */
.payslip-document {
  width: 100%;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  border-collapse: collapse;
}

/* Encabezado del documento */
.payslip-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #E2E8F0;
  gap: 1rem;
}

.doc-date-box {
  border: 1px solid #000000;
  display: flex;
  flex-shrink: 0;
}

.doc-date-col {
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.doc-date-col + .doc-date-col {
  border-left: 1px solid #000000;
}

.doc-title-centered {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #000000;
}

.doc-brand-emblem-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.doc-official-logo {
  height: 56px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  border-radius: 1px;
}

/* ==========================================================================
   BLOQUES RESALTABLES DE LA LIQUIDACIÓN (Zonas 1 a 7)
   ========================================================================== */
.payslip-zone {
  position: relative;
  transition: background-color 0.22s ease, box-shadow 0.22s ease, outline 0.22s ease, transform 0.22s ease;
  border-radius: 4px;
  cursor: pointer;
}

.payslip-zone.is-highlighted {
  background-color: var(--highlight-fill) !important;
  outline: 3px solid var(--highlight-border);
  outline-offset: 3px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
  z-index: 20;
}

/* Pastilla identificadora interna en cada sección */
.subhead-pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1.5px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 10px;
  font-weight: 800;
  margin-right: 5px;
  vertical-align: middle;
}

.payslip-zone.is-highlighted .subhead-pill-tag {
  background: var(--badge-bg-active);
  color: var(--badge-text-active);
}

/* Tablas con bordes internos negros fieles a la liquidación */
.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}

.meta-table td, 
.meta-table th {
  border: 1px solid #000000;
  padding: 3px 5px;
  vertical-align: middle;
}

.meta-cell-label {
  font-size: 8.5px;
  color: #333333;
  display: block;
  text-transform: uppercase;
}

.meta-cell-val {
  font-size: 10.5px;
  font-weight: 700;
  color: #000000;
  display: block;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Cuerpo de dos columnas: Haberes vs Descuentos */
.columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #000000;
  margin-bottom: 6px;
}

.col-haberes {
  border-right: 1px solid #000000;
  display: flex;
  flex-direction: column;
}

.col-descuentos {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.section-subhead {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 6px;
  border-bottom: 1px solid #000000;
  background-color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-list-table {
  width: 100%;
  border-collapse: collapse;
}

.item-list-table td {
  padding: 2.5px 6px;
  font-size: 9px;
  line-height: 1.25;
}

.item-name {
  color: #000000;
}

.item-amount {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.subtotal-row td {
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  font-weight: 800;
  padding: 3px 6px;
}

.total-main-row td {
  border-top: 1.5px solid #000000;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 6px;
}

/* Recuadros de Resumen al pie (Zona 7) */
.summary-boxes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid #000000;
  margin-bottom: 1.25rem;
}

.summary-col {
  border-right: 1px solid #000000;
  padding: 4px 5px;
}

.summary-col:last-child {
  border-right: none;
}

.summary-value-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #000000;
  padding-bottom: 3px;
  margin-bottom: 3px;
}

.summary-currency {
  font-size: 10px;
  font-weight: 700;
}

.summary-amount {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.summary-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}

.summary-footnotes {
  font-size: 7.5px;
  color: #222222;
  line-height: 1.35;
}

.summary-footnotes span {
  display: block;
}

/* Firmas */
.signatures-area {
  display: flex;
  justify-content: space-around;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}

.sig-box {
  width: 200px;
  border-top: 1px solid #000000;
  text-align: center;
  padding-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
}

/* ==========================================================================
   6. POPOVER / TOOLTIP FLOTANTE ENRIQUECIDO (Desktop)
   ========================================================================== */
.floating-popover {
  position: absolute;
  width: 330px;
  background-color: var(--bg-card-info);
  border: 2px solid var(--border-payslip);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-popover);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.popover-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.popover-badge-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 2px solid var(--badge-border);
  color: var(--badge-text);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popover-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.popover-body {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.popover-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
}

.popover-close-btn:hover {
  color: var(--color-brand-blue);
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   7. PANEL INFERIOR / BOTTOM SHEET (Móvil)
   ========================================================================== */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.bottom-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  z-index: 210;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.bottom-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0 0.35rem;
}

.sheet-drag-pill {
  width: 44px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: #CBD5E1;
}

.sheet-content {
  padding: 0.75rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.sheet-badge-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sheet-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 2px solid var(--badge-border);
  color: var(--badge-text);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.sheet-close-btn {
  background: var(--bg-card-info);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.sheet-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.sheet-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-card);
  gap: 0.75rem;
}

.sheet-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-payslip);
  background: var(--bg-card-info);
  color: var(--color-brand-blue);
  cursor: pointer;
  transition: var(--transition);
}

.sheet-nav-btn:hover,
.sheet-nav-btn:active {
  background: var(--color-brand-blue);
  color: #FFFFFF;
}

.sheet-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   8. CANALES DE CONSULTA Y CIERRE (Páginas 1 y 2 del PDF)
   ========================================================================== */
.contact-banner-container {
  width: 100%;
  max-width: 860px;
  margin: 1rem auto 1.5rem;
}

.contact-card-special {
  background: #FFFFFF;
  border: 2px solid #38BDF8;
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 14px rgba(8, 76, 141, 0.06);
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card-info);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand-blue);
}

.contact-content {
  flex-grow: 1;
}

.contact-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.contact-email-link {
  display: inline-block;
  font-weight: 700;
  color: var(--color-brand-blue);
  word-break: break-all;
  text-decoration: underline;
  transition: var(--transition);
}

.contact-email-link:hover {
  color: #0284C7;
}

.closing-statement-box {
  width: 100%;
  max-width: 860px;
  text-align: center;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.closing-para-main {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.closing-para-bold {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand-blue-dark);
}

/* Barra Roja Inferior Gobierno de Chile */
.gov-footer-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--color-gov-red) 0%, var(--color-gov-red-dark) 100%);
  color: #FFFFFF;
  padding: 0.85rem 1.5rem;
  margin-top: auto;
}

.gov-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.gov-brand-text {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gov-slogan-text {
  font-style: italic;
  font-weight: 500;
  opacity: 0.95;
}

/* ==========================================================================
   9. RESPONSIVE & ADAPTACIONES MÓVILES
   ========================================================================== */
@media (max-width: 1060px) {
  .interactive-badge {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
  .badge-left { left: -46px; }
  .badge-right { right: -46px; }
  .payslip-stage-container { padding: 0 35px; }
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .header-logo-dep { height: 42px; }
  .header-logo-slep { height: 38px; }

  .page-title { font-size: 1.6rem; }
  .mobile-quick-nav { display: block; }

  .hero-instruction {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  /* El contenedor de la liquidación se hace desplazable horizontalmente */
  .payslip-stage-container {
    overflow-x: auto;
    padding: 0 1rem 1rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .payslip-outer-card {
    min-width: 780px;
    margin: 0 auto;
    padding: 1.25rem 3.5rem;
  }

  .floating-popover {
    display: none !important; /* En móviles se usa exclusivamente el Bottom Sheet */
  }

  .contact-card-special {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .gov-footer-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .page-title { font-size: 1.35rem; }
  .header-logo-dep { height: 36px; }
  .header-logo-slep { height: 32px; }
}
