/**
 * Validador Público SPF - Estilos Oficiales Modernos y Responsivos
 * Sistema de Producción Forestal (MAG / MAATE) - Etapa 4
 * Incluye seguridad visual anti-falsificación y bloqueo de impresión.
 */

:root {
  --vp-primary: #0a4d26;
  --vp-primary-light: #2e7d32;
  --vp-primary-lighter: #22c55e;
  --vp-primary-soft: #f0fdf4;
  --vp-primary-border: #bbf7d0;

  --vp-bg: #f8fafc;
  --vp-card: #ffffff;
  --vp-text-main: #252525;
  --vp-text-muted: #646464;
  --vp-text-light: #afafaf;
  --vp-border: #c4c4c4;
  --vp-border-light: #f1f5f9;

  /* Semáforo de Carretera */
  --vp-status-green-text: #0a4d26;
  --vp-status-green-bg: #dcfce7;
  --vp-status-green-border: #86efac;
  --vp-status-green-glow: rgba(34, 197, 94, 0.25);

  --vp-status-yellow-text: #78350f;
  --vp-status-yellow-bg: #fef3c7;
  --vp-status-yellow-border: #fcd34d;
  --vp-status-yellow-glow: rgba(245, 158, 11, 0.25);

  --vp-status-red-text: #7f1d1d;
  --vp-status-red-bg: #fee2e2;
  --vp-status-red-border: #fca5a5;
  --vp-status-red-glow: rgba(239, 68, 68, 0.25);

  --vp-radius-sm: 6px;
  --vp-radius-md: 10px;
  --vp-radius-lg: 16px;
  --vp-radius-full: 9999px;

  --vp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --vp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --vp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   SEGURIDAD ANTI-FALSIFICACIÓN Y PROTECCIÓN CONTRA COPIA
   ========================================================================== */
.vp-secure-container {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: relative;
  overflow: hidden;
}

/* Marca de Agua Diagonal Repetitiva en Todo el Contenedor */
.vp-watermark-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  transform: rotate(-25deg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 70px,
    rgba(0, 0, 0, 0.8) 70px,
    rgba(0, 0, 0, 0.8) 72px
  );
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #000;
  text-transform: uppercase;
}

.vp-watermark-text {
  padding: 30px;
  white-space: nowrap;
}

/* Sello Flotante Oficial de Consulta Digital */
.vp-live-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--vp-border);
  color: var(--vp-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--vp-radius-full);
}

.vp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: vpPulse 2s infinite;
}

@keyframes vpPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==========================================================================
   BLOQUEO TOTAL DE IMPRESIÓN (@media print)
   ========================================================================== */
@media print {
  /* Ocultar absolutamente todo el contenido */
  body * {
    display: none !important;
    visibility: hidden !important;
  }

  html, body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }

  /* Mensaje de Alerta y Prohibición de Impresión */
  body::after {
    content: "¡ADVERTENCIA DE SEGURIDAD INSTITUCIONAL!\A\A ESTE VALIDADOR ES EXCLUSIVAMENTE PARA CONSULTA DIGITAL EN LÍNEA.\A\A ESTÁ TERMINANTEMENTE PROHIBIDA SU IMPRESIÓN, FOTOCOPIA O USO COMO DOCUMENTO FÍSICO DE TRANSPORTE O CIRCULACIÓN FORESTAL.\A\A CUALQUIER INTENTO DE CIRCULACIÓN CON IMPRESIONES DE ESTE VALIDADOR SERÁ CONSIDERADO FALSIFICACIÓN Y SERÁ SANCIONADO DE CONFORMIDAD CON LA LEY.\A\A SISTEMA DE PRODUCCIÓN FORESTAL (SPF) - MAG / MAATE";
    white-space: pre-wrap;
    display: block !important;
    visibility: visible !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    font-size: 18pt !important;
    font-weight: bold !important;
    text-align: center !important;
    color: #991b1b !important;
    border: 5px dashed #991b1b !important;
    border-radius: 12px !important;
    padding: 60px 40px !important;
    margin: 40px auto !important;
    max-width: 80% !important;
    line-height: 1.8 !important;
  }
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL Y TIPOGRAFÍA
   ========================================================================== */
.vp-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--vp-text-main);
  background-color: var(--vp-bg);
  padding: 16px;
  min-height: calc(100vh - 120px);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.vp-container {
  max-width: 1060px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER DEL VALIDADOR
   ========================================================================== */
.vp-header {
  background: linear-gradient(135deg, var(--vp-primary) 0%, #0a4d26 100%);
  color: #ffffff;
  padding: 24px 28px;
  border-radius: var(--vp-radius-lg);
  box-shadow: var(--vp-shadow-md);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.vp-header::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.vp-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.vp-header-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vp-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.vp-home-btn svg {
  display: block;
  margin-top: 1px;
}

.vp-home-btn:hover,
.vp-home-btn:focus {
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  text-decoration: none;
  outline: none;
}

.vp-home-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.vp-home-btn:active {
  color: rgba(255, 255, 255, 0.4);
}

.vp-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--vp-radius-full);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.vp-header h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.vp-header p {
  margin: 0;
  color: #bbf7d0;
  font-size: 14px;
}

/* ==========================================================================
   TARJETA DEL BUSCADOR Y PESTAÑAS (SEGMENTED CONTROL)
   ========================================================================== */
.vp-search-card {
  background: var(--vp-card);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius-lg);
  padding: 24px;
  box-shadow: var(--vp-shadow-md);
  margin-bottom: 28px;
}

.vp-search-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--vp-text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pestañas de Criterio */
.vp-tabs {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: var(--vp-radius-md);
  margin-bottom: 20px;
  overflow-x: auto;
}

.vp-tab-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vp-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--vp-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vp-tab-btn:hover {
  color: var(--vp-text-main);
}

.vp-tab-btn.active {
  background: #ffffff;
  color: var(--vp-primary);
  box-shadow: var(--vp-shadow-sm);
  font-weight: 700;
}

/* Input y Botón de Búsqueda */
.vp-search-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vp-input-wrap {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.vp-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vp-text-light);
  pointer-events: none;
}

.vp-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 15px;
  font-weight: 600;
  color: var(--vp-text-main);
  background: #ffffff;
  border: 1.5px solid var(--vp-border);
  border-radius: var(--vp-radius-md);
  outline: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  box-sizing: border-box;
}

.vp-input:focus {
  border-color: var(--vp-primary-light);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

.vp-input::placeholder {
  color: var(--vp-text-light);
  text-transform: none;
  font-weight: 400;
}

.vp-btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--vp-primary) 0%, var(--vp-primary-light) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: var(--vp-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(12, 74, 44, 0.2);
}

.vp-btn-search:hover {
  background: linear-gradient(135deg, #093922 0%, var(--vp-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(12, 74, 44, 0.25);
}

.vp-btn-search:active {
  transform: translateY(0);
}

.vp-search-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--vp-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   ALERTA / MENSAJES FLASH
   ========================================================================== */
.vp-alert {
  padding: 14px 18px;
  border-radius: var(--vp-radius-md);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--vp-shadow-sm);
}

.vp-alert-error {
  background-color: var(--vp-status-red-bg);
  border: 1px solid var(--vp-status-red-border);
  color: var(--vp-status-red-text);
}

.vp-alert-info {
  background-color: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0369a1;
}

/* ==========================================================================
   SEMÁFORO DE CARRETERA (ESTADO DE VIGENCIA)
   ========================================================================== */
.vp-semaforo-banner {
  padding: 20px;
  border-radius: var(--vp-radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border: 2px solid transparent;
  box-shadow: var(--vp-shadow-md);
  position: relative;
}

.vp-semaforo-green {
  background-color: var(--vp-status-green-bg);
  border-color: var(--vp-status-green-border);
  box-shadow: 0 0 20px var(--vp-status-green-glow);
}

.vp-semaforo-yellow {
  background-color: var(--vp-status-yellow-bg);
  border-color: var(--vp-status-yellow-border);
  box-shadow: 0 0 20px var(--vp-status-yellow-glow);
}

.vp-semaforo-red {
  background-color: var(--vp-status-red-bg);
  border-color: var(--vp-status-red-border);
  box-shadow: 0 0 20px var(--vp-status-red-glow);
}

.vp-semaforo-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vp-semaforo-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.vp-semaforo-green .vp-semaforo-icon {
  background-color: #22c55e;
  color: #ffffff;
}

.vp-semaforo-yellow .vp-semaforo-icon {
  background-color: #f59e0b;
  color: #ffffff;
}

.vp-semaforo-red .vp-semaforo-icon {
  background-color: #ef4444;
  color: #ffffff;
}

.vp-semaforo-titles h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.vp-semaforo-green .vp-semaforo-titles h2 { color: var(--vp-status-green-text); }
.vp-semaforo-yellow .vp-semaforo-titles h2 { color: var(--vp-status-yellow-text); }
.vp-semaforo-red .vp-semaforo-titles h2 { color: var(--vp-status-red-text); }

.vp-semaforo-desc {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.vp-semaforo-green .vp-semaforo-desc { color: #166534; }
.vp-semaforo-yellow .vp-semaforo-desc { color: #92400e; }
.vp-semaforo-red .vp-semaforo-desc { color: #991b1b; }

.vp-semaforo-action-badge {
  padding: 8px 18px;
  border-radius: var(--vp-radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vp-semaforo-green .vp-semaforo-action-badge {
  background-color: #166534;
  color: #ffffff;
}

.vp-semaforo-yellow .vp-semaforo-action-badge {
  background-color: #b45309;
  color: #ffffff;
}

.vp-semaforo-red .vp-semaforo-action-badge {
  background-color: #b91c1c;
  color: #ffffff;
}

/* ==========================================================================
   CARDS DE INFORMACIÓN (GRID RESPONSIVO)
   ========================================================================== */
.vp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.vp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.vp-card {
  background: var(--vp-card);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius-lg);
  box-shadow: var(--vp-shadow-sm);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.vp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--vp-border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.vp-card-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vp-primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.vp-data-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.vp-data-row:last-child {
  margin-bottom: 0;
}

.vp-data-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--vp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vp-data-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--vp-text-main);
  word-break: break-word;
}

.vp-data-val-highlight {
  color: var(--vp-primary-light);
  font-size: 15px;
}

/* Badge de Matrícula Vehicular Estilizada */
.vp-plate-badge {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #1e3a8a;
  border-radius: 6px;
  padding: 2px 14px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 110px;
}

.vp-plate-country {
  font-size: 9px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 1px;
  border-bottom: 1px solid #93c5fd;
  margin-bottom: 2px;
  padding-bottom: 1px;
}

.vp-plate-number {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 2px;
}

/* ==========================================================================
   TABLAS DE PRODUCTOS Y GUÍAS ASOCIADAS
   ========================================================================== */
.vp-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--vp-radius-md);
  border: 1px solid var(--vp-border);
  margin-top: 10px;
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  background: #ffffff;
}

.vp-table th {
  background: #f1f5f9;
  color: var(--vp-text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--vp-border);
  white-space: nowrap;
}

.vp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vp-border-light);
  color: var(--vp-text-main);
  vertical-align: middle;
}

.vp-table tbody tr:hover {
  background-color: #f8fafc;
}

.vp-table tfoot td {
  background: #f8fafc;
  font-weight: 800;
  border-top: 2px solid var(--vp-border);
  font-size: 13px;
  padding: 12px;
}

.vp-table-responsive-detalle {
  overflow-x: hidden;
}

.vp-table-detalle {
  width: 100%;
  table-layout: fixed;
  font-size: 10px;
}

.vp-table-detalle th,
.vp-table-detalle td {
  padding: 7px 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.vp-table-detalle th {
  font-size: 9px;
  letter-spacing: 0;
}

.vp-table-detalle-canje th:nth-child(1) { width: 9%; }
.vp-table-detalle-canje th:nth-child(2) { width: 11%; }
.vp-table-detalle-canje th:nth-child(3) { width: 8%; }
.vp-table-detalle-canje th:nth-child(4) { width: 10%; }
.vp-table-detalle-canje th:nth-child(5) { width: 14%; }
.vp-table-detalle-canje th:nth-child(6) { width: 6%; }
.vp-table-detalle-canje th:nth-child(7) { width: 8%; }
.vp-table-detalle-canje th:nth-child(8) { width: 6%; }
.vp-table-detalle-canje th:nth-child(9) { width: 6%; }
.vp-table-detalle-canje th:nth-child(10) { width: 11%; }
.vp-table-detalle-canje th:nth-child(11) { width: 11%; }

.vp-table-detalle-movilizacion th:nth-child(1) { width: 12%; }
.vp-table-detalle-movilizacion th:nth-child(2) { width: 11%; }
.vp-table-detalle-movilizacion th:nth-child(3) { width: 19%; }
.vp-table-detalle-movilizacion th:nth-child(4) { width: 7%; }
.vp-table-detalle-movilizacion th:nth-child(5) { width: 11%; }
.vp-table-detalle-movilizacion th:nth-child(6) { width: 7%; }
.vp-table-detalle-movilizacion th:nth-child(7) { width: 7%; }
.vp-table-detalle-movilizacion th:nth-child(8) { width: 13%; }
.vp-table-detalle-movilizacion th:nth-child(9) { width: 13%; }

@media (max-width: 700px) {
  .vp-table-detalle th,
  .vp-table-detalle td {
    padding: 5px 3px;
    font-size: 8px;
  }

  .vp-table-detalle th {
    font-size: 8px;
  }
}

/* Badges de Estado */
.vp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--vp-radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.vp-pill-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.vp-pill-yellow {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.vp-pill-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.vp-pill-blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

/* ==========================================================================
   FORMATO LICENCIA DE APROVECHAMIENTO FORESTAL
   ========================================================================== */
.vp-licencia-cert {
  background: #ffffff;
  border: 1px solid var(--vp-border);
  border-top: 6px solid var(--vp-primary);
  border-radius: var(--vp-radius-lg);
  padding: 30px;
  box-shadow: var(--vp-shadow-md);
  position: relative;
}

.vp-licencia-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px solid var(--vp-border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.vp-licencia-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vp-licencia-title-block {
  text-align: center;
  flex: 1;
}

.vp-licencia-title-block h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--vp-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.vp-licencia-meta {
  font-size: 12px;
  color: var(--vp-text-muted);
  font-weight: 600;
}

.vp-licencia-body-text {
  font-size: 14px;
  line-height: 1.7;
  color: #1e293b;
  text-align: justify;
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--vp-radius-md);
  border: 1px solid var(--vp-border-light);
  margin-bottom: 24px;
}

.vp-licencia-body-text strong {
  color: var(--vp-primary);
}

.vp-clauses-box {
  background: #ffffff;
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius-md);
  padding: 16px 20px;
  margin-top: 20px;
}

.vp-clauses-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--vp-text-muted);
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.vp-clauses-box ol {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--vp-text-main);
  line-height: 1.6;
}

.vp-clauses-box li {
  margin-bottom: 6px;
}

/* ==========================================================================
   BOTÓN VOLVER / ACCIONES
   ========================================================================== */
.vp-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--vp-border);
}

.vp-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vp-primary-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius-md);
  transition: all 0.2s ease;
}

.vp-btn-back:hover {
  background: #f1f5f9;
  color: var(--vp-primary);
}

/* ==========================================================================
   ADAPTATIVIDAD RESPONSIVA (TABLETS Y MÓVILES)
   ========================================================================== */
@media (max-width: 900px) {
  .vp-grid-2, .vp-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .vp-licencia-top {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .vp-wrapper {
    padding: 10px;
  }

  .vp-header {
    padding: 18px 16px;
    border-radius: var(--vp-radius-md);
  }

  .vp-header h1 {
    font-size: 20px;
  }

  .vp-search-card {
    padding: 16px;
  }

  .vp-tabs {
    flex-direction: column;
    gap: 4px;
  }

  .vp-tab-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .vp-search-box {
    flex-direction: column;
  }

  .vp-btn-search {
    width: 100%;
  }

  .vp-semaforo-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .vp-semaforo-action-badge {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .vp-card {
    padding: 14px;
  }

  .vp-licencia-cert {
    padding: 16px;
  }

  .vp-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-btn-back {
    justify-content: center;
  }
}
