/* ==========================================================================
   SISTEMA DE DISEÑO: PLATAFORMA ÚNICA DE IDENTIDAD (PUI)
   Desarrollo Unificado y Optimizado - 2026
   ========================================================================== */

:root {
  /* --- PALETA DE COLORES NEÓN --- */
  --bg-primary: #0b0c10;
  --bg-surface: #12141c;
  
  --accent-neon: #00ff66;       /* Verde: Interacción / Éxito */
  --accent-secure: #00d2ff;     /* Azul: Cifrado / Infraestructura */
  --accent-warning: #e6ff00;    /* Amarillo: Sanciones / UMAs */
  --accent-danger: #ff3333;     /* Rojo: Alerta Crítica / Multas */
  --accent-cloud: #bd00ff;      /* Morado: Innovación / Nube */
  
  /* --- TIPOGRAFÍAS Y TEXTO --- */
  --font-sora: 'Sora', sans-serif;
  --text-main: #ffffff;
  --text-muted: #a0a5b5;
}

/* ==========================================================================
   01. REGLAS DE REINICIO E HIGIENE (RESET)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sora), sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

/* ==========================================================================
   02. COMPONENTES COMPARTIDOS DE INTERFAZ
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px auto;
}

.section-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-neon);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: inline-block;
  background: rgba(0, 255, 102, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 102, 0.15);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.pui-icon-box {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-neon);
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.pui-icon-box svg {
  width: 24px;
  height: 24px;
  z-index: 2;
}

/* ==========================================================================
   03. BOTONES DE ACCIÓN (CTAs)
   ========================================================================== */
.btn-pui-primary, .btn-pui-danger, .btn-pui-secondary {
  font-family: var(--font-sora), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-pui-primary svg, .btn-pui-danger svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* --- BOTÓN VERDE NEÓN --- */
.btn-pui-primary {
  color: #0b0c10;
  background-color: var(--accent-neon);
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.2);
}
.btn-pui-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 102, 0.45);
}
.btn-pui-primary:hover svg { transform: translateX(4px); }
.btn-pui-primary:active { transform: translateY(1px) scale(0.98); background-color: #00e65c; }

/* --- BOTÓN SECUNDARIO TRANSPARENTE --- */
.btn-pui-secondary {
  font-weight: 600;
  color: var(--text-main);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-pui-secondary:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
  transform: translateY(-3px);
  background: rgba(0, 255, 102, 0.02);
}
.btn-pui-secondary:active { transform: translateY(1px) scale(0.98); }

/* --- BOTÓN PELIGRO ROJO --- */
.btn-pui-danger {
  color: #ffffff;
  background-color: var(--accent-danger);
  box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}
.btn-pui-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 51, 51, 0.55);
  background-color: #ff4d4d;
}
.btn-pui-danger:hover svg { transform: translateX(4px); }
.btn-pui-danger:active { transform: translateY(1px) scale(0.98); }

/* ==========================================================================
   04. SECCIÓN: CUADRÍCULA DE BENEFICIOS (TARJETAS TRICOLOR)
   ========================================================================== */
.pui-features {
  padding: 120px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.pui-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pui-feature-card {
  background-color: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 45px 35px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
}

.pui-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
  transition: all 0.5s ease;
}

.pui-feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 102, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pui-feature-card:hover::before { left: 100%; transition: all 0.8s ease-in-out; }

.pui-feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.pui-feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Modificadores específicos por tarjeta */
.border-secure::before { background: linear-gradient(90deg, transparent, var(--accent-secure), transparent) !important; }
.border-secure:hover { border-color: rgba(0, 210, 255, 0.2) !important; }

.border-cloud::before { background: linear-gradient(90deg, transparent, var(--accent-warning), transparent) !important; }
.border-cloud:hover { border-color: rgba(230, 255, 0, 0.2) !important; }

/* Bloque inferior de botones de la Grid */
.pui-actions-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

/* --- ANIMACIÓN MÁQUINA DE ESCRIBIR (TARJETA 1) --- */
.txt-neon-card {
  color: var(--accent-neon);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
  display: inline-block;
  padding-right: 4px;
  border-right: 2px solid var(--accent-neon);
  animation: parpadeoCursor 0.8s step-end infinite;
}

/* --- CONTADOR DINÁMICO DE UMAs (TARJETA 3) --- */
.counter-container {
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pui-counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-warning);
  text-shadow: 0 0 15px rgba(230, 255, 0, 0.6);
  font-variant-numeric: tabular-nums;
}
.pui-counter-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-warning);
  text-shadow: 0 0 10px rgba(230, 255, 0, 0.4);
}

/* ==========================================================================
   05. SECCIÓN: DEFINICIÓN OFICIAL (CON INTERFAZ INTEGRADA)
   ========================================================================== */
.pui-definition-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.pui-definition-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.section-title-left {
  font-family: var(--font-sora), sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-top: 10px;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.pui-lead-text {
  font-family: var(--font-sora), sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent-neon);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pui-body-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 30px;
}

.pui-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pui-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.pui-spec-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-neon);
  margin-top: 3px;
  flex-shrink: 0;
}

.pui-definition-action {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}

/* --- ANIMACIÓN TARJETA SUBMERGIDA (DERECHA) --- */
.pui-definition-animation-block {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pui-visual-container {
  width: 100%;
  max-width: 400px;
  height: 350px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pui-virtual-card {
  width: 280px;
  height: 190px;
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 2; /* Por detrás de los nodos flotantes */
  animation: floatCard 4s ease-in-out infinite;
}

.card-institution-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.card-skeleton-header { display: flex; gap: 15px; margin-bottom: 20px; }
.skeleton-avatar { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); }
.skeleton-lines { display: flex; flex-direction: column; gap: 8px; justify-content: center; flex-grow: 1; }

.line-short, .line-long, .line-full {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}
.line-short { width: 40%; }
.line-long { width: 75%; }
.line-full { width: 100%; }
.card-skeleton-body { display: flex; flex-direction: column; gap: 8px; }

.card-verified-badge {
  position: absolute;
  bottom: 20px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-neon, #00ff66);
  letter-spacing: 1px;
}
.card-verified-badge svg { width: 12px; height: 12px; }

.card-laser-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
  box-shadow: 0 0 10px var(--accent-neon);
  z-index: 10;
  animation: sweepLaser 3s ease-in-out infinite;
}

.pui-pulse-node {
  position: absolute;
  padding: 8px 16px;
  background: #12141c;
  border: 1px solid rgba(0, 255, 102, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
  z-index: 10; /* Al frente de la tarjeta */
  animation: nodePulse 3s infinite ease-in-out;
}

.node-ine { top: 20%; left: 5%; animation-delay: 0s; }
.node-renapo { bottom: 20%; right: 0%; animation-delay: 1s; }
.node-sat { top: 15%; right: 10%; border-color: rgba(0, 210, 255, 0.3); color: #00d2ff; animation-delay: 2s; }

/* ==========================================================================
   06. SECCIÓN: RIESGO FINANCIERO CRÍTICO (MARCO ROJO)
   ========================================================================== */
.pui-risk-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.pui-risk-card-alert {
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-danger);
  border-radius: 16px;
  padding: 50px;
  position: relative;
  box-shadow: 0 0 25px rgba(255, 51, 51, 0.15), inset 0 0 20px rgba(255, 51, 51, 0.05);
  overflow: hidden;
}

.pui-risk-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

.pui-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 51, 51, 0.08);
  border: 1px solid rgba(255, 51, 51, 0.2);
  color: var(--accent-danger);
  font-family: var(--font-sora), sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.pulse-dot-red {
  width: 7px;
  height: 7px;
  background-color: var(--accent-danger);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-danger);
  animation: dotAlertPulse 1.5s infinite ease-in-out;
}

.risk-title {
  font-family: var(--font-sora), sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.risk-title span { color: var(--accent-danger); font-size: 1.6rem; font-weight: 600; }
.risk-description { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; font-weight: 300; margin-bottom: 35px; }
.risk-description strong { color: #ffffff; font-weight: 600; border-bottom: 1px dashed rgba(255, 51, 51, 0.4); }

.pui-risk-indicator-box {
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 40px;
}

.exposure-radar { text-align: center; }
.warning-triangle { width: 64px; height: 64px; color: var(--accent-danger); filter: drop-shadow(0 0 10px rgba(255, 51, 51, 0.6)); animation: radarGlow 2.5s infinite ease-in-out; margin-bottom: 20px; }
.exposure-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
.exposure-level { font-family: var(--font-sora), sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--accent-danger); letter-spacing: 2px; text-shadow: 0 0 15px rgba(255, 51, 51, 0.7); animation: textEmergency 1.2s infinite step-end; }

/* ==========================================================================
   07. MOTORES DE ANIMACIÓN INTERACTIVA (KEYFRAMES)
   ========================================================================== */
@keyframes parpadeoCursor { from, to { border-color: transparent } 50% { border-color: var(--accent-neon); } }
@keyframes sweepLaser { 0%, 100% { top: 0%; opacity: 0; } 5%, 95% { opacity: 1; } 50% { top: 100%; } }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes nodePulse { 0%, 100% { transform: scale(1); opacity: 0.6; box-shadow: 0 0 0px rgba(255,255,255,0); } 50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 15px rgba(0, 255, 102, 0.15); } }
@keyframes dotAlertPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes radarGlow { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.4)); } 50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.8)); } }
@keyframes textEmergency { from, to { opacity: 1; text-shadow: 0 0 15px rgba(255, 51, 51, 0.7); } 50% { opacity: 0.8; text-shadow: 0 0 5px rgba(255, 51, 51, 0.2); } }

/* --- ANIMACIONES DE ICONOS INTERNOS (GRID DE COMPONENTES) --- */
.box-nodes .anim-path-1, .box-nodes .anim-path-2, .box-nodes .anim-path-3 { stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawLine 3s linear infinite alternate; }
.box-nodes .anim-node { animation: nodeGlow 2s ease-in-out infinite alternate; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes nodeGlow { from { fill: transparent; stroke-width: 2; } to { fill: rgba(0, 255, 102, 0.4); stroke-width: 3; } }

.box-secure { color: var(--accent-secure) !important; animation: securePulseBox 2.5s infinite ease-in-out; }
@keyframes securePulseBox { 0%, 100% { box-shadow: 0 0 0px rgba(0, 210, 255, 0); background: rgba(0, 210, 255, 0.02); } 50% { box-shadow: 0 0 15px rgba(0, 210, 255, 0.25); background: rgba(0, 210, 255, 0.06); } }

/* ==========================================================================
   08. RESPONSIVO INTELIGENTE
   ========================================================================== */
@media (max-width: 991px) {
  .pui-grid { grid-template-columns: repeat(2, 1fr); }
  .pui-definition-wrapper { grid-template-columns: 1fr; gap: 50px; }
  .pui-definition-animation-block { order: -1; }
  .section-title-left { font-size: 2.1rem; }
  .pui-lead-text { font-size: 1.15rem; }
  .pui-risk-grid { grid-template-columns: 1fr; gap: 40px; }
  .pui-risk-indicator-box { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-left: 0; padding-top: 40px; }
  .risk-title { font-size: 1.8rem; }
  .risk-title span { font-size: 1.4rem; }
}

@media (max-width: 768px) {
  .pui-features { padding: 70px 0; }
  .section-title { font-size: 1.9rem; }
  .pui-grid { grid-template-columns: 1fr; gap: 20px; }
  .pui-feature-card { padding: 35px 25px; }
  .pui-actions-footer { flex-direction: column; width: 100%; gap: 15px; padding: 0 5%; }
  .btn-pui-primary, .btn-pui-secondary, .btn-pui-danger { width: 100%; justify-content: center; padding: 16px 24px; font-size: 0.9rem; }
  .pui-definition-action { justify-content: center; }
  .pui-risk-card-alert { padding: 30px 20px; }
}

/* ==========================================================================
   SECCIÓN: FILAS UNIFICADAS (1 COLUMNA / 2 FILAS)
   ========================================================================== */
.pui-rows-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.pui-rows-wrapper {
  display: flex;
  flex-direction: column; /* Apila una encima de otra */
  gap: 40px;              /* Espacio entre las filas */
}

/* --- TARJETA ESTILO FILA ANCHA --- */
.pui-card-row {
  background-color: var(--bg-surface);
  border-radius: 14px;
  padding: 45px;
  display: flex;
  align-items: center;    /* Alinea verticalmente el texto y el botón a los extremos */
  justify-content: space-between;
  gap: 50px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pui-card-row:hover {
  transform: translateY(-4px);
}

.pui-card-row-body {
  flex: 1; /* Toma todo el espacio disponible a la izquierda */
}

/* --- BORDES NEÓN --- */
.border-danger {
  border: 2px solid var(--accent-danger);
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.08);
}
.border-danger:hover { box-shadow: 0 0 30px rgba(255, 51, 51, 0.2); }

.border-success {
  border: 2px solid var(--accent-neon);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.08);
}
.border-success:hover { box-shadow: 0 0 30px rgba(0, 255, 102, 0.2); }

/* --- TITULARES Y TEXTOS DE LAS FILAS --- */
.row-card-title {
  font-family: var(--font-sora), sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 15px;
}
.row-card-title span { color: var(--accent-danger); font-size: 1.4rem; font-weight: 600; display: block; margin-top: 4px; }
.success-title span { color: var(--accent-neon) !important; }

.row-card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 20px;
}
.row-card-text strong { color: #ffffff; }

/* --- BOTÓN Y LINKS (LADO DERECHO) --- */
.row-card-action {
  flex-shrink: 0; /* Impide que el botón se deforme o se achique */
  display: flex;
  justify-content: flex-end;
  min-width: 240px;
}

/* --- BARRA DE PROGRESO DE ADVERTENCIA --- */
.pui-radar-inline {
  max-width: 450px; /* Limitamos el ancho para que no se estire feo a lo largo */
  margin-top: 15px;
}

/* ==========================================================================
   RESPONSIVO PARA FILAS (PASAN A COLUMNAS EN MÓVIL)
   ========================================================================== */
@media (max-width: 991px) {
  .pui-card-row {
    flex-direction: column; /* En tablets y móviles se vuelve a ordenar hacia abajo */
    align-items: flex-start;
    gap: 30px;
    padding: 35px;
  }
  
  .row-card-action {
    width: 100%;
    justify-content: flex-start;
    min-width: auto;
  }
  
  .row-card-title { font-size: 1.5rem; }
  .row-card-title span { font-size: 1.2rem; }
  .pui-radar-inline { max-width: 100%; }
}
/* --- BARRA DE PROGRESO DE RIESGO --- */
.pui-progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 51, 51, 0.1); /* Fondo oscuro con tinte rojo */
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 51, 51, 0.15);
}

.pui-progress-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,  #ff6666,#ff3333);
  box-shadow: 0 0 10px var(--accent-danger);
  border-radius: 3px;
  transform-origin: left;
  animation: loadProgressRisk 3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* --- ANIMACIÓN DE CARGA CONTINUA --- */
@keyframes loadProgressRisk {
  0% {
    transform: scaleX(0);
    opacity: 0.8;
  }
  80%, 100% {
    transform: scaleX(1);
    opacity: 1;
  }
}
/* --- CONTENEDOR DE ACCIÓN INFERIOR --- */
.pui-row-action-bottom {
  margin-top: 25px;
  display: flex;
  justify-content: flex-start;
}

/* --- BOTÓN SECUNDARIO ESTILO COMANDO --- */
.btn-pui-secondary-tech {
  font-family: var(--font-sora), sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-neon);
  background: rgba(0, 255, 102, 0.03);
  border: 1px solid rgba(0, 255, 102, 0.2);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-pui-secondary-tech:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: var(--accent-neon);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
  transform: translateY(-2px);
}

.btn-pui-secondary-tech:active {
  transform: translateY(0);
}

.icon-tech-btn {
  width: 16px;
  height: 16px;
  color: var(--accent-neon);
}

/* --- AJUSTE COMPLEMENTARIO PARA QUE LA TARJETA SE EXPANDA CORRECTAMENTE --- */
.pui-card-row-full {
  background-color: var(--bg-surface);
  border-radius: 14px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pui-card-row-full:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   SECCIÓN: LÍNEA DE TIEMPO REGULATORIA (TIMELINE)
   ========================================================================== */
.pui-timeline-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.pui-timeline-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Eje o línea vertical central */
.pui-timeline-axis {
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 255, 102, 0.4) 70%, rgba(0, 210, 255, 0.2) 100%);
}

/* Contenedor de cada fila/hito */
.pui-timeline-item {
  position: relative;
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
}
.pui-timeline-item:last-child { margin-bottom: 0; }

/* Nodos/Puntos de la línea */
.pui-timeline-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  margin-left: 20px;
  flex-shrink: 0;
}

.node-past { border: 2px solid var(--accent-neon); box-shadow: 0 0 10px rgba(0, 255, 102, 0.3); }
.node-past .badge-core { width: 8px; height: 8px; background-color: var(--accent-neon); border-radius: 50%; }

/* Nodo pendiente con pulso dinámico azul */
.node-future { border: 2px solid var(--accent-secure); box-shadow: 0 0 12px rgba(0, 210, 255, 0.4); }
.node-future .badge-core-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secure);
  border-radius: 50%;
  animation: nodeSecurePulse 1.8s infinite ease-in-out;
}

/* Tarjetas de contenido */
.pui-timeline-content {
  background-color: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 10px;
  flex-grow: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pui-timeline-item:hover .pui-timeline-content {
  transform: translateX(5px);
  border-color: rgba(0, 255, 102, 0.15);
}

/* Fechas y títulos */
.timeline-date {
  font-family: var(--font-sora), sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-neon);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}
.timeline-desc strong { color: #ffffff; font-weight: 500; }

/* --- ENFOQUE ESPECÍFICO PARA EL ESTADO PENDIENTE --- */
.pui-timeline-item.is-pending:hover .pui-timeline-content {
  border-color: rgba(0, 210, 255, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.08);
}

.pending-card {
  border: 1px dashed rgba(0, 210, 255, 0.25);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(0, 210, 255, 0.01) 100%);
}

.badge-pending-tag {
  color: var(--accent-secure) !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 210, 255, 0.2);
  background: rgba(0, 210, 255, 0.04);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Animación de respiración del hito pendiente */
@keyframes nodeSecurePulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--accent-secure); }
}

/* ==========================================================================
   RESPONSIVO TIMELINE
   ========================================================================== */
@media (max-width: 768px) {
  .pui-timeline-axis { left: 11px; }
  .pui-timeline-badge { margin-left: 0; }
  .pui-timeline-item { gap: 15px; }
  .pui-timeline-content { padding: 20px; }
  .timeline-title { font-size: 1.05rem; }
  .timeline-desc { font-size: 0.85rem; }
}

/* ==========================================================================
   SECCIÓN: FORMULARIO DE CONVERSIÓN DIGITAL (CONTACTO)
   ========================================================================== */
.pui-contact-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
}

.pui-contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* División equilibrada */
  gap: 70px;
  align-items: center;
}

/* --- LADO IZQUIERDO --- */
.pui-contact-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.c-feat-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.c-feat-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-neon);
  flex-shrink: 0;
}
.c-feat-icon svg { width: 18px; height: 18px; }

.c-feat-item h5 {
  font-family: var(--font-sora), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.c-feat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* --- LADO DERECHO: FORMULARIO --- */
.pui-contact-form-box {
  background-color: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 45px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pui-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pui-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pui-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pui-form-group label {
  font-family: var(--font-sora), sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

/* Inputs y Textareas con Estilo Cibernético */
.pui-form-group input,
.pui-form-group textarea {
  background-color: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-sora), sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pui-form-group input::placeholder,
.pui-form-group textarea::placeholder {
  color: #555966;
}

/* Efecto Foco Neón al interactuar */
.pui-form-group input:focus,
.pui-form-group textarea:focus {
  border-color: var(--accent-neon);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.15);
}

/* Modificación de tamaño del botón para el formulario */
.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  cursor: pointer;
  border: none;
}

/* ==========================================================================
   RESPONSIVO FORMULARIO
   ========================================================================== */
@media (max-width: 991px) {
  .pui-contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .pui-contact-form-box { padding: 35px; }
}

@media (max-width: 575px) {
  .pui-form-grid-2 {
    grid-template-columns: 1fr; /* Inputs pasan a fila única en móvil */
    gap: 20px;
  }
  .pui-contact-form-box { padding: 25px 20px; }
}

/* --- CONTROL DE LA IMAGEN DEL LOGO SISVER --- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 5px 0;
}

.logo-sisver-img {
  height: 38px; /* Altura ideal estándar para barras de navegación ejecutivas */
  width: auto;  /* Evita que el logo se distorsione manteniendo su proporción original */
  display: block;
  transition: transform 0.2s ease-in-out;
}

/* Micro-interacción: un sutil escalado cuando el cliente pasa el mouse */
.logo:hover .logo-sisver-img {
  transform: scale(1.03);
}

/* Ajuste rápido para pantallas móviles si el logo necesita más espacio */
@media (max-width: 768px) {
  .logo-sisver-img {
    height: 32px; /* Se hace un poco más pequeño en teléfonos para no apretar los elementos */
  }
}