/* ============================================================
   FORMULARIO DE EVALUACIÓN DE DAÑOS — Seguros Bolívar
   Estilo onboarding: formas suavizadas, colores corporativos,
   fuente Bolívar, tarjetas con iconos/imágenes.
   ============================================================ */

/* --- Fuente Bolívar --- */
@font-face {
  font-family: 'Bolivar';
  src: url('/formulario/static/fonts/Bolivar-Regular.woff2') format('woff2'),
       url('/formulario/static/fonts/Bolivar-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bolivar';
  src: url('/formulario/static/fonts/Bolivar-SemiBold.woff2') format('woff2'),
       url('/formulario/static/fonts/Bolivar-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bolivar';
  src: url('/formulario/static/fonts/Bolivar-Bold.woff2') format('woff2'),
       url('/formulario/static/fonts/Bolivar-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bolivar';
  src: url('/formulario/static/fonts/Bolivar-ExtraBold.woff2') format('woff2'),
       url('/formulario/static/fonts/Bolivar-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bolivar';
  src: url('/formulario/static/fonts/Bolivar-Light.woff2') format('woff2'),
       url('/formulario/static/fonts/Bolivar-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- Variables CSS (Paleta Seguros Bolívar) --- */
:root {
  --sb-green-dark: #016d38;
  --sb-green-medium: #228b22;
  --sb-green-light: #4caf50;
  --sb-green-pale: #e8f5e9;
  --sb-yellow: #f5c518;
  --sb-yellow-light: #fff8e1;
  --sb-orange: #f39c12;
  --sb-red: #e74c3c;
  --sb-red-light: #fdecea;
  --sb-gray-100: #f8f9fa;
  --sb-gray-200: #e9ecef;
  --sb-gray-300: #dee2e6;
  --sb-gray-500: #6c757d;
  --sb-gray-700: #495057;
  --sb-gray-900: #212529;
  --sb-white: #ffffff;
  --sb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --sb-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --sb-radius-sm: 8px;
  --sb-radius-md: 16px;
  --sb-radius-lg: 24px;
  --sb-radius-full: 50px;
  --sb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset y Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  height: -webkit-fill-available;
  overflow: hidden;
}

body {
  font-family: 'Bolivar', 'Roboto Condensed', 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--sb-gray-900);
  background-color: var(--sb-gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Contenedor Principal --- */
.form-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--sb-white);
  box-shadow: var(--sb-shadow-md);
  position: relative;
  overflow: hidden;
}

/* --- Header con progreso --- */
.form-header {
  flex-shrink: 0;
  padding: 16px 24px 12px;
  background-color: var(--sb-white);
  border-bottom: 1px solid var(--sb-gray-200);
}

.form-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: var(--sb-gray-100);
  color: var(--sb-gray-700);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--sb-transition);
}

.btn-back:hover {
  background-color: var(--sb-gray-200);
}

.btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Botón de Ayuda (logo bar, esquina superior derecha) --- */
.btn-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--sb-radius-full);
  border: 1.5px solid var(--sb-orange);
  background-color: var(--sb-yellow-light);
  color: var(--sb-orange);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--sb-transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-help i {
  font-size: 16px;
}

.btn-help:hover {
  background-color: var(--sb-orange);
  color: var(--sb-white);
  border-color: var(--sb-orange);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.btn-help-text {
  pointer-events: none;
}

/* Responsive: en pantallas muy pequeñas ocultar texto, dejar solo icono */
@media (max-width: 340px) {
  .btn-help-text {
    display: none;
  }
  .btn-help {
    padding: 8px 10px;
  }
}

.progress-indicator {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-track {
  flex: 1;
  height: 4px;
  background-color: var(--sb-gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sb-green-dark), var(--sb-green-light));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-gray-500);
  white-space: nowrap;
}

/* --- Contenido principal (scroll) --- */
.form-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.form-body::-webkit-scrollbar {
  width: 4px;
}

.form-body::-webkit-scrollbar-thumb {
  background-color: var(--sb-gray-300);
  border-radius: 4px;
}

/* --- Sección de paso (animación) --- */
.step-section {
  display: none;
  flex-direction: column;
  animation: fadeSlideIn 0.35s ease forwards;
}

.step-section.active {
  display: flex;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Títulos y descripciones --- */
.step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--sb-gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-title i {
  margin-right: 10px;
}

.step-subtitle {
  font-size: 14px;
  color: var(--sb-gray-500);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* --- Campos de formulario --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--sb-gray-900);
  background-color: var(--sb-white);
  transition: var(--sb-transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.12);
}

.form-input.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-input::placeholder {
  color: var(--sb-gray-500);
  font-weight: 400;
}

/* --- Textarea de estimación --- */
.estimation-box {
  background-color: var(--sb-gray-100, #f5f5f5);
  border-radius: var(--sb-radius-sm);
  padding: 16px;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--sb-gray-900);
  background-color: var(--sb-white);
  transition: var(--sb-transition);
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.12);
}

.form-textarea::placeholder {
  color: var(--sb-gray-500);
  font-weight: 400;
  white-space: pre-line;
}

.form-textarea.textarea-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--sb-gray-900);
  background-color: var(--sb-white);
  transition: var(--sb-transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.12);
}

/* --- Tarjetas de opción Sí/No --- */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-md);
  cursor: pointer;
  transition: var(--sb-transition);
  background-color: var(--sb-white);
  text-align: center;
  min-height: 120px;
  user-select: none;
}

.option-card:hover {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
  transform: translateY(-2px);
  box-shadow: var(--sb-shadow-sm);
}

.option-card.selected {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.15);
}

.option-card-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.option-card-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--sb-gray-900);
}

/* --- Tarjetas de opción con imagen --- */
.option-card--image {
  padding: 12px;
  height: 300px;
}

.option-card--image .option-card-img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  border-radius: var(--sb-radius-sm);
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .option-card--image {
    padding: 10px;
    height: 300px;
  }
}

/* --- Opciones tipo triple (Sí / No / No sé) --- */
.options-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

/* --- Footer con botón --- */
.form-footer {
  flex-shrink: 0;
  padding: 16px 24px;
  background-color: var(--sb-white);
  border-top: 1px solid var(--sb-gray-200);
}

.btn-primary-sb {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--sb-radius-full);
  background-color: var(--sb-green-dark);
  color: var(--sb-white);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--sb-transition);
}

.btn-primary-sb:hover {
  background-color: #015a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 109, 56, 0.3);
}

.btn-primary-sb:active {
  transform: translateY(0);
}

.btn-primary-sb:disabled {
  background-color: var(--sb-gray-300);
  color: var(--sb-gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Botón Consultar Estado (amarillo, pequeño) --- */
.btn-consultar-estado {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--sb-radius-full);
  background-color: #f0ad4e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--sb-transition);
  text-align: center;
}
.btn-consultar-estado:hover {
  background-color: #ec971f;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(240, 173, 78, 0.35);
}
.btn-consultar-estado:active {
  transform: translateY(0);
}
.btn-consultar-estado:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-consultar-estado i {
  margin-right: 6px;
}

/* --- Pantalla de Estado (rastreo) --- */
.estado-tracker {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  padding-left: 8px;
}
.estado-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 24px;
}
.estado-step:last-child {
  padding-bottom: 0;
}
.estado-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background-color: var(--sb-gray-200);
}
.estado-step:last-child::before {
  display: none;
}
.estado-step.completed::before {
  background-color: var(--sb-green-dark);
}
.estado-dot {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--sb-gray-300);
  background-color: var(--sb-white);
  color: var(--sb-gray-400);
  z-index: 1;
}
.estado-step.completed .estado-dot {
  background-color: var(--sb-green-dark);
  border-color: var(--sb-green-dark);
  color: #fff;
}
.estado-step.active .estado-dot {
  border-color: var(--sb-green-dark);
  background-color: #e8f5e9;
  color: var(--sb-green-dark);
  box-shadow: 0 0 0 4px rgba(1, 109, 56, 0.15);
}
.estado-step.rejected .estado-dot {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
.estado-info {
  padding-top: 4px;
}
.estado-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sb-gray-800);
}
.estado-step.completed .estado-label,
.estado-step.active .estado-label {
  color: var(--sb-green-dark);
}
.estado-step.rejected .estado-label {
  color: #dc3545;
}
.estado-desc {
  font-size: 12px;
  color: var(--sb-gray-500);
  margin-top: 2px;
}

/* Lista de evaluaciones */
.evaluacion-list-card {
  border: 1px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--sb-transition);
  background-color: var(--sb-white);
}
.evaluacion-list-card:hover {
  border-color: var(--sb-green-dark);
  box-shadow: 0 2px 8px rgba(1, 109, 56, 0.12);
}
.evaluacion-list-card .ev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.evaluacion-list-card .ev-id {
  font-size: 12px;
  font-weight: 700;
  color: var(--sb-green-dark);
}
.evaluacion-list-card .ev-estado-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.ev-estado-badge.creado { background: #e3f2fd; color: #1565c0; }
.ev-estado-badge.en-gestion { background: #fff8e1; color: #f57f17; }
.ev-estado-badge.rechazado { background: #fdecea; color: #c0392b; }
.ev-estado-badge.aceptado { background: #e8f5e9; color: #2e7d32; }
.ev-estado-badge.siniestro-avisado { background: #e3f2fd; color: #1565c0; }
.ev-estado-badge.gestor-asignado { background: #e8f5e9; color: #2e7d32; }
.ev-estado-badge.en-evaluacion { background: #fff8e1; color: #f57f17; }
.ev-estado-badge.visita-programada { background: #f3e5f5; color: #6a1b9a; }
.ev-estado-badge.evaluacion-tecnica { background: #e0f7fa; color: #00695c; }
.ev-estado-badge.documentacion-pendiente { background: #fff3e0; color: #e65100; }
.ev-estado-badge.cobertura-definida { background: #e8eaf6; color: #283593; }
.ev-estado-badge.solucion-en-proceso { background: #f1f8e9; color: #33691e; }
.ev-estado-badge.reparacion-indemnizacion { background: #e0f2f1; color: #004d40; }
.ev-estado-badge.siniestro-cerrado { background: #eceff1; color: #37474f; }
.evaluacion-list-card .ev-detail {
  font-size: 11px;
  color: var(--sb-gray-600);
  margin-top: 3px;
}

/* Botón "Volver" full-width con fuente Bolívar */
.btn-back-full {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-full);
  background-color: var(--sb-white);
  color: var(--sb-gray-700);
  font-family: 'Bolivar', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--sb-transition);
  text-align: center;
}

.btn-back-full:hover {
  background-color: var(--sb-gray-100);
  border-color: var(--sb-green-dark);
  color: var(--sb-green-dark);
}

/* --- Pantalla de bienvenida --- */
.app-logo-bar {
  flex-shrink: 0;
  padding: 14px 24px 8px;
  background-color: var(--sb-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-logo {
  width: 110px;
  height: auto;
  display: block;
}

.welcome-banner {
  background: linear-gradient(135deg, var(--sb-green-dark) 0%, #02854a 50%, var(--sb-green-light) 100%);
  border-radius: var(--sb-radius-md);
  padding: 28px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.welcome-banner-content {
  position: relative;
  z-index: 1;
}

.welcome-logo {
  width: 160px;
  margin: 0 auto 24px;
  display: block;
}

.welcome-illustration {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 24px;
  display: block;
}

.welcome-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--sb-white);
  text-align: left;
  margin-bottom: 10px;
  line-height: 1.2;
}

.welcome-description {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Resultado final --- */
.result-container {
  text-align: center;
  padding: 24px 0;
}

.result-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.result-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-description {
  font-size: 14px;
  color: var(--sb-gray-500);
  margin-bottom: 24px;
  line-height: 1.5;
}

.result-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--sb-radius-full);
  font-size: 14px;
  font-weight: 600;
}

.result-badge.severo {
  background-color: var(--sb-red-light);
  color: var(--sb-red);
  border: 1px solid var(--sb-red);
}

.result-badge.fuerte {
  background-color: #fff3e0;
  color: var(--sb-orange);
  border: 1px solid var(--sb-orange);
}

.result-badge.moderado {
  background-color: var(--sb-yellow-light);
  color: #f57f17;
  border: 1px solid var(--sb-yellow);
}

.result-badge.leve {
  background-color: var(--sb-green-pale);
  color: var(--sb-green-dark);
  border: 1px solid var(--sb-green-dark);
}

/* --- Checklist de daños --- */
.checklist-container {
  margin-top: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--sb-transition);
}

.checklist-item:hover {
  background-color: var(--sb-gray-100);
}

.checklist-item.checked {
  background-color: var(--sb-green-pale);
  border-color: var(--sb-green-dark);
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--sb-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--sb-transition);
}

.checklist-item.checked .checklist-checkbox {
  background-color: var(--sb-green-dark);
  border-color: var(--sb-green-dark);
}

.checklist-checkbox-icon {
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: var(--sb-transition);
}

.checklist-item.checked .checklist-checkbox-icon {
  opacity: 1;
}

.checklist-label {
  font-size: 14px;
  color: var(--sb-gray-700);
}

/* --- Responsive --- */
@media (max-width: 520px) {
  .form-app {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    height: -webkit-fill-available;
    box-shadow: none;
    border-radius: 0;
  }
  
  .step-title {
    font-size: 20px;
  }
  
  .option-card {
    padding: 18px 12px;
    min-height: 100px;
  }
  
  .option-card-icon {
    font-size: 28px;
  }

  .form-body {
    padding: 24px 20px;
    min-height: 0;
  }
}

/* --- Info alert (suave) --- */
.info-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--sb-green-pale);
  border-radius: var(--sb-radius-sm);
  border: none;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(1, 109, 56, 0.08);
}

.info-alert-icon {
  font-size: 18px;
  color: var(--sb-green-dark);
  flex-shrink: 0;
}

.info-alert-text {
  font-size: 12.5px;
  color: var(--sb-gray-700);
  line-height: 1.5;
}

.info-alert-text a {
  color: var(--sb-green-dark);
  text-decoration: underline;
  font-weight: 600;
}

.info-alert-text a:hover {
  color: var(--sb-green-medium);
}

/* --- Info alert variante recomendación (fondo azul claro) --- */
.info-alert--recomendacion {
  background-color: #e8f4fd;
  border: 1px solid rgba(13, 110, 253, 0.15);
  box-shadow: 0 1px 4px rgba(13, 110, 253, 0.08);
}

.info-alert--recomendacion .info-alert-text {
  font-size: 13px;
  color: var(--sb-gray-800, #333);
}

.info-alert--recomendacion .info-alert-text strong {
  color: #0d6efd;
}

/* --- Info foto card (paso informativo antes de foto fachada) --- */
.info-foto-card {
  background-color: #f8fcf9;
  border: 1px solid #d4edda;
  border-left: 4px solid var(--sb-green-dark);
  border-radius: var(--sb-radius-sm);
  padding: 20px 22px;
  margin-top: 16px;
}

.info-foto-intro {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sb-gray-700);
  margin-bottom: 14px;
  line-height: 1.5;
}

.info-foto-intro i {
  margin-right: 8px;
}

.info-foto-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-foto-tips li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--sb-gray-700);
  line-height: 1.55;
}

.info-foto-tips li i {
  font-size: 16px;
  color: var(--sb-green-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Slide-to-skip (deslizar para omitir foto) --- */
.slide-to-skip-container {
  margin-top: 24px;
  padding: 0 4px;
}

.slide-to-skip-track {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 26px;
  border: 1.5px solid #dee2e6;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slide-to-skip-track.slide-active {
  border-color: #adb5bd;
  background: linear-gradient(135deg, #f1f3f5 0%, #dee2e6 100%);
}

.slide-to-skip-thumb {
  position: absolute;
  left: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6c757d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: grab;
  z-index: 2;
  transition: background-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slide-to-skip-thumb:active {
  cursor: grabbing;
  background: #495057;
}

.slide-to-skip-thumb.slide-confirmed {
  background: #28a745;
  cursor: default;
}

.slide-to-skip-label {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.3px;
}


/* --- Categorías del checklist edificio --- */
.category-group {
  margin-bottom: 20px;
  border: 1px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-md);
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--sb-green-pale);
  border-bottom: 1px solid var(--sb-gray-200);
}

.category-icon {
  font-size: 18px;
  color: var(--sb-green-dark);
}

.category-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sb-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.category-group .checklist-container {
  padding: 8px 12px;
}

.category-group .checklist-item {
  border-radius: 6px;
  margin-bottom: 4px;
}

/* --- Sub-lista de zonas afectadas (expandible) --- */
.zones-sublist {
  display: none;
  padding: 8px 12px 8px 44px;
  background-color: var(--sb-gray-100);
  border-radius: 6px;
  margin-bottom: 6px;
  animation: fadeSlideIn 0.25s ease forwards;
}

.zones-sublist.visible {
  display: block;
}

.zones-sublist-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.zone-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1.5px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--sb-gray-700);
  background-color: var(--sb-white);
  cursor: pointer;
  transition: var(--sb-transition);
  user-select: none;
}

.zone-chip:hover {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
}

.zone-chip.selected {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-dark);
  color: var(--sb-white);
}

/* Error: sub-opciones obligatorias no seleccionadas */
.tasacion-zonas-wrapper.zona-required-error,
.tasacion-zonas-cantidad-wrapper.zona-required-error {
  border: 1.5px solid #dc3545;
  border-radius: 8px;
  padding: 8px;
  background-color: rgba(220, 53, 69, 0.04);
}

.tasacion-zona-error {
  color: #dc3545;
  font-size: 12px;
  margin: 6px 0 0 0;
  font-weight: 500;
}

/* Indicador visual de que el item tiene sub-zonas */
.checklist-item.has-zones .checklist-label::after,
.checklist-item.has-zones-cubiertas .checklist-label::after {
  content: " ▸";
  font-size: 11px;
  color: var(--sb-gray-500);
}

.checklist-item.has-zones.checked .checklist-label::after,
.checklist-item.has-zones-cubiertas.checked .checklist-label::after {
  content: " ▾";
  color: var(--sb-green-dark);
}


/* --- Campo de cantidad en items de contenidos --- */
.checklist-item.has-quantity {
  display: flex;
  align-items: center;
}

.quantity-input {
  display: none;
  width: 48px;
  height: 30px;
  margin-left: auto;
  padding: 2px 6px;
  border: 1.5px solid var(--sb-gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  color: var(--sb-green-dark);
  background-color: var(--sb-white);
  outline: none;
  transition: var(--sb-transition);
  flex-shrink: 0;
}

.quantity-input:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 2px rgba(1, 109, 56, 0.12);
}

.checklist-item.has-quantity.checked .quantity-input {
  display: block;
}

/* Ocultar flechas del input number en webkit */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input {
  -moz-appearance: textfield;
}

/* --- Campo de descripción en items de contenidos PYMES --- */
.description-input-wrapper {
  padding: 4px 12px 8px 44px;
}

.description-input {
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  border: 1.5px solid var(--sb-gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--sb-text);
  background-color: var(--sb-white);
  outline: none;
  transition: var(--sb-transition);
}

.description-input:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 2px rgba(1, 109, 56, 0.12);
}

.description-input::placeholder {
  color: var(--sb-gray-400);
  font-style: italic;
}

.description-input.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* --- Mensaje de error de validación de documento --- */
.validation-error {
  display: none;
  padding: 12px 16px;
  margin-top: 16px;
  background-color: var(--sb-red-light);
  border: 1px solid var(--sb-red);
  border-radius: var(--sb-radius-sm);
  color: var(--sb-red);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  animation: fadeSlideIn 0.3s ease forwards;
}

/* --- Cajitas de verificación de identidad (mismo tamaño) --- */
.identity-method-card {
  min-height: 130px;
  justify-content: center;
  align-items: center;
}

.identity-method-card .option-card-label {
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
  text-align: center;
}

/* --- Caja unificada de destinos de verificación (email/celular) --- */
.destinos-verificacion-box {
  margin-top: 0px;
  margin-bottom: 28px;
  padding: 0;
  background: var(--sb-green-pale, #f0faf5);
  border: 1px solid rgba(1, 109, 56, 0.15);
  border-radius: var(--sb-radius-md, 12px);
  overflow: hidden;
}

.destino-verificacion-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.destino-verificacion-divider {
  height: 1px;
  background: rgba(1, 109, 56, 0.12);
  margin: 0 18px;
}

.destino-verificacion-icon {
  font-size: 20px;
  color: var(--sb-green-dark, #016d38);
  flex-shrink: 0;
}

.destino-verificacion-text {
  font-size: 13.5px;
  color: var(--sb-gray-800, #333);
  line-height: 1.4;
  word-break: break-word;
}

/* --- Inputs con icono --- */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--sb-green-dark);
  pointer-events: none;
  z-index: 1;
}

.form-input-icon {
  padding-left: 42px;
}

.form-select-icon {
  padding-left: 42px;
}

/* --- Botón comenzar con flechita --- */
.btn-primary-sb i {
  margin-left: 6px;
  font-size: 14px;
  vertical-align: middle;
}

/* --- OTP Boxes (cuadraditos de código) --- */
.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.otp-box {
  width: 44px;
  height: 52px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-sm);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: inherit;
  color: var(--sb-gray-900);
  background-color: var(--sb-white);
  outline: none;
  transition: var(--sb-transition);
  caret-color: var(--sb-green-dark);
}

.otp-box:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.12);
}

.otp-box:not(:placeholder-shown) {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
}

/* ============================================================
   PREGUNTAS DE SEGURIDAD (Validación identidad Experian)
   ============================================================ */

.question-block {
  animation: fadeInUp 0.3s ease-out;
}

.question-option-label {
  display: block;
  padding: 10px 14px;
  margin-bottom: 6px;
  border: 1px solid var(--sb-gray-200, #e9ecef);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sb-font-body, 'Roboto Condensed', sans-serif);
}

.question-option-label:hover {
  border-color: var(--sb-green-dark, #016d38);
  background-color: rgba(1, 109, 56, 0.03);
}

.question-option-label:has(input:checked) {
  border-color: var(--sb-green-dark, #016d38);
  background-color: rgba(1, 109, 56, 0.06);
}

#questionsContainer::-webkit-scrollbar {
  width: 4px;
}

#questionsContainer::-webkit-scrollbar-thumb {
  background-color: var(--sb-gray-300, #dee2e6);
  border-radius: 4px;
}

/* ============================================================
   TARJETAS DE SELECCIÓN DE RIESGO
   ============================================================ */

.risk-cards-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.risk-selection-card {
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--sb-transition);
  background-color: var(--sb-white);
  user-select: none;
}

.risk-selection-card:hover {
  border-color: var(--sb-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--sb-shadow-sm);
}

.risk-selection-card.selected {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.15);
}

.risk-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--sb-gray-100);
  border-bottom: 1px solid var(--sb-gray-200);
}

.risk-selection-card.selected .risk-card-header {
  background-color: rgba(1, 109, 56, 0.08);
  border-bottom-color: rgba(1, 109, 56, 0.2);
}

.risk-card-type-icon {
  font-size: 18px;
  color: var(--sb-green-dark);
}

.risk-card-type-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sb-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-card-riesgo-num {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--sb-gray-500);
  background-color: var(--sb-white);
  padding: 2px 8px;
  border-radius: var(--sb-radius-full);
  border: 1px solid var(--sb-gray-300);
}

.risk-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-card-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--sb-gray-700);
  line-height: 1.4;
}

.risk-card-detail i {
  font-size: 14px;
  color: var(--sb-green-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.risk-card-detail strong {
  font-weight: 600;
  color: var(--sb-gray-900);
}

@media (max-width: 520px) {
  .risk-selection-card {
    border-radius: var(--sb-radius-sm);
  }
  
  .risk-card-body {
    padding: 12px 14px;
  }
}


/* ============================================================
   FOTO FACHADA — Upload Step
   ============================================================ */

.foto-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.foto-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  border: 2px dashed #c4c4c4;
  border-radius: 16px;
  background: #f9f9fb;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  padding: 32px 16px;
}

.foto-dropzone:hover,
.foto-dropzone:focus {
  border-color: #005a30;
  background: #eef7f2;
}

.foto-dropzone-icon {
  font-size: 48px;
  color: #005a30;
  margin-bottom: 12px;
}

.foto-dropzone-text {
  font-family: 'Bolivar', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.foto-dropzone-hint {
  font-family: 'Bolivar', sans-serif;
  font-size: 13px;
  color: #777;
  margin: 4px 0 0 0;
}

/* Preview */
.foto-preview-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.foto-preview-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.foto-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: #d32f2f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.foto-remove-btn:hover {
  transform: scale(1.1);
}

/* Actions */
.foto-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.btn-foto-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid #005a30;
  border-radius: 12px;
  background: #fff;
  color: #005a30;
  font-family: 'Bolivar', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-foto-action:hover {
  background: #005a30;
  color: #fff;
}

.btn-foto-action i {
  font-size: 18px;
}

/* Uploading indicator */
.foto-uploading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #eef7f2;
  border-radius: 12px;
  margin-top: 12px;
}

.foto-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #c4c4c4;
  border-top-color: #005a30;
  border-radius: 50%;
  animation: foto-spin 0.8s linear infinite;
}

@keyframes foto-spin {
  to { transform: rotate(360deg); }
}

.foto-uploading-text {
  font-family: 'Bolivar', sans-serif;
  font-size: 14px;
  color: #005a30;
  font-weight: 600;
}

/* Error */
.foto-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fdecea;
  border-radius: 10px;
  color: #d32f2f;
  font-family: 'Bolivar', sans-serif;
  font-size: 13px;
  margin-top: 12px;
}

.foto-error i {
  font-size: 16px;
}


/* ============================================================
   CHECKLIST EDIFICIO PYMES — Rediseño con % y cantidad
   ============================================================ */

/* Descripción dentro del category-group (debajo del header) */
.category-description {
  font-size: 13px;
  color: var(--sb-gray-500);
  line-height: 1.5;
  padding: 10px 16px 0;
  margin: 0;
}

/* Item PYMES con extras: mostrar cantidad al estilo contenidos eléctricos Hogar */
.checklist-item.has-pymes-extras {
  display: flex;
  align-items: center;
}

/* ============================================================
   PYMES — Bloque de extras (cantidad + % + imagen) para checklist edificio
   ============================================================ */

/* Bloque desplegable debajo del checkbox */
.pymes-extras-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 16px 44px;
  margin-bottom: 6px;
  border-left: 3px solid var(--sb-green-dark);
  animation: fadeSlideIn 0.25s ease forwards;
}

/* Grupo de input (label + input) */
.pymes-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pymes-input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-gray-500);
}

/* Input numérico amplio para cantidad y porcentaje PYMES */
.pymes-qty-input,
.pymes-pct-input {
  width: 100%;
  max-width: 200px;
  height: 38px;
  padding: 6px 12px;
  border: 1.5px solid var(--sb-gray-300);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--sb-green-dark);
  background-color: var(--sb-white);
  outline: none;
  transition: var(--sb-transition);
}

.pymes-qty-input:focus,
.pymes-pct-input:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 2px rgba(1, 109, 56, 0.12);
}

.pymes-qty-input.input-error,
.pymes-pct-input.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}

/* Ocultar flechas del input number */
.pymes-qty-input::-webkit-inner-spin-button,
.pymes-qty-input::-webkit-outer-spin-button,
.pymes-pct-input::-webkit-inner-spin-button,
.pymes-pct-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pymes-qty-input,
.pymes-pct-input {
  -moz-appearance: textfield;
}

/* Imagen de referencia dentro del bloque extras */
.pymes-extras-block .checklist-ref-img {
  width: 70%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  margin: 4px 0 0;
  display: block;
  border: 1px solid var(--sb-gray-200);
}


/* ============================================================
   MÓDULO DE AYUDA (PQR / Solicitud de Revisión)
   ============================================================ */

/* --- Textarea de detalle --- */
.help-textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
  line-height: 1.5;
}

/* --- Contador de caracteres --- */
.help-char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--sb-gray-500);
  margin-top: 4px;
}

/* --- Grupo de radio buttons --- */
.help-radio-group {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.help-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--sb-gray-700);
  cursor: pointer;
  padding: 10px 16px;
  border: 2px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-sm);
  transition: var(--sb-transition);
  flex: 1;
  justify-content: center;
}

.help-radio-option:hover {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
}

.help-radio-option input[type="radio"] {
  accent-color: var(--sb-green-dark);
  width: 18px;
  height: 18px;
}

.help-radio-option:has(input:checked) {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
  font-weight: 600;
}

/* --- Grupo teléfono con código de país --- */
.help-phone-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.help-country-code {
  width: 72px;
  flex-shrink: 0;
  padding: 12px 8px;
  font-size: 15px;
  text-align: center;
}

.help-phone-input {
  flex: 1;
}

/* --- Botón enviar solicitud --- */
.help-submit-btn {
  margin-top: 24px;
}

.help-submit-btn:disabled {
  background-color: var(--sb-gray-300);
  color: var(--sb-gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Error inline del formulario de ayuda --- */
.help-form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--sb-red-light);
  border-radius: var(--sb-radius-sm);
  color: var(--sb-red);
  font-size: 14px;
  margin-top: 12px;
}

.help-form-error i {
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Pantalla de éxito --- */
.help-success-container {
  text-align: center;
  padding: 40px 24px;
}

.help-id-display {
  margin-top: 24px;
  padding: 16px 20px;
  background-color: var(--sb-green-pale);
  border-radius: var(--sb-radius-sm);
  border: 1px solid var(--sb-green-light);
}

.help-id-label {
  display: block;
  font-size: 13px;
  color: var(--sb-gray-500);
  margin-bottom: 4px;
}

.help-id-value {
  font-size: 18px;
  color: var(--sb-green-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Marca de campo obligatorio --- */
.required-mark {
  color: var(--sb-red);
  font-weight: 600;
}

/* ============================================================
   SEPARADOR VISUAL EN LISTA DE RIESGOS
   (entre disponibles y ya evaluados)
   ============================================================ */

.risk-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}

.risk-section-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--sb-gray-300);
}

.risk-section-divider-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ============================================================
   TARJETA DE RIESGO YA EVALUADO
   ============================================================ */

.risk-card--evaluated {
  cursor: default;
}

.risk-card--evaluated .risk-card-header {
  opacity: 0.7;
}

/* ============================================================
   BOTÓN "VER ESTADO DE EVALUACIÓN" (dentro de tarjeta evaluada)
   ============================================================ */

.btn-ver-seguimiento {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--sb-green-dark);
  border-radius: var(--sb-radius-full);
  background-color: var(--sb-green-pale);
  color: var(--sb-green-dark);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--sb-transition);
  white-space: nowrap;
}

.btn-ver-seguimiento:hover {
  background-color: var(--sb-green-dark);
  color: var(--sb-white);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(1, 109, 56, 0.2);
}

.btn-ver-seguimiento:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-ver-seguimiento i {
  font-size: 14px;
}

/* ============================================================
   MODAL DE CONFIRMACIÓN DE SALIDA
   ============================================================ */

.exit-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.exit-confirm-dialog {
  background-color: var(--sb-white);
  border-radius: var(--sb-radius-md);
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.exit-confirm-icon {
  font-size: 40px;
  color: var(--sb-orange);
  margin-bottom: 16px;
}

.exit-confirm-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sb-gray-900);
  margin-bottom: 8px;
}

.exit-confirm-text {
  font-size: 13px;
  color: var(--sb-gray-500);
  line-height: 1.5;
  margin-bottom: 24px;
}

.exit-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exit-confirm-actions .btn-primary-sb {
  font-size: 14px;
  padding: 12px 20px;
}

.exit-confirm-actions .btn-back-full {
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 13px;
  border: none;
  color: var(--sb-gray-500);
}

.exit-confirm-actions .btn-back-full:hover {
  color: var(--sb-red);
  background-color: var(--sb-red-light);
}

/* ============================================================
   SPINNER DE CARGA (corporativo)
   ============================================================ */

.loading-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid var(--sb-gray-200);
  border-top-color: var(--sb-green-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   ICONO DE RESULTADO CIRCULAR (éxito / eliminado)
   ============================================================ */

.result-icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.result-icon-circle--success {
  background-color: var(--sb-green-pale);
  color: var(--sb-green-dark);
  border: 2px solid var(--sb-green-dark);
}

/* ============================================================
   TASACIÓN — Flujo de Continuación de Reclamación (Hogar)
   ============================================================ */

/* --- Botón "Continuar con mi reclamación" --- */
.btn-continuar-reclamacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--sb-radius-full);
  background-color: var(--sb-green-dark);
  color: var(--sb-white);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Bolivar', sans-serif;
  cursor: pointer;
  transition: var(--sb-transition);
}

.btn-continuar-reclamacion:hover {
  background-color: #015a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 109, 56, 0.3);
}

.btn-continuar-reclamacion:disabled {
  background-color: var(--sb-gray-300);
  color: var(--sb-gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-continuar-reclamacion:active:not(:disabled) {
  transform: translateY(0);
}

/* --- Nota informativa del video (Pantalla 1) --- */
.tasacion-nota-video {
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: var(--sb-radius-sm);
}

/* --- Descripción de item en checklist de tasación --- */
.tasacion-item-descripcion {
  font-size: 12px;
  color: var(--sb-gray-500);
  margin: -4px 0 8px 0;
  padding-left: 34px;
  line-height: 1.4;
}

/* --- Wrapper de cantidad para items tipo "cantidad" --- */
.tasacion-cantidad-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px 34px;
}

.tasacion-cantidad-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-gray-700);
}

.tasacion-cantidad-input {
  width: 72px;
  padding: 8px 12px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--sb-gray-900);
  text-align: center;
  transition: var(--sb-transition);
}

.tasacion-cantidad-input:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.12);
  outline: none;
}

/* --- Wrapper de zonas para items tipo "zonas" --- */
.tasacion-zonas-wrapper {
  padding: 8px 16px 12px 34px;
}

/* --- Wrapper de zonas + cantidad para PAREDES --- */
.tasacion-zonas-cantidad-wrapper {
  padding: 8px 16px 12px 16px;
}

.zone-chip-qty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zone-chip-qty-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.zone-chip-qty-item .zone-chip {
  min-width: auto;
}

.zone-qty-input-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.zone-qty-input {
  width: 64px;
  padding: 6px 8px;
  border: 2px solid var(--sb-gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--sb-gray-900);
  text-align: center;
  transition: var(--sb-transition);
}

.zone-qty-input:focus {
  border-color: var(--sb-green-dark);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.12);
  outline: none;
}

.zone-qty-input::placeholder {
  color: var(--sb-gray-500);
  font-size: 11px;
}

/* --- Imagen de referencia en items de PAREDES --- */
.checklist-ref-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 4px auto 12px auto;
  border-radius: var(--sb-radius-sm);
  border: 1px solid var(--sb-gray-200);
  object-fit: contain;
}

/* --- Items precargados (indicador visual sutil) --- */
.tasacion-item.precargado {
  background-color: #e8f5e9;
  border-color: #a5d6a7;
}

/* --- Botón volver (top-left) en pantallas de tasación --- */
.tasacion-top-nav {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

/* --- Opción "Otros" en checklist de contenidos (tasación) --- */
.tasacion-otros-toggle {
  border-style: dashed !important;
  border-color: #90caf9 !important;
}
.tasacion-otros-toggle.checked {
  border-color: #016d38 !important;
  border-style: solid !important;
  background-color: #e8f5e9;
}

.otros-dynamic-container {
  padding: 12px 0 8px 0;
}

.otros-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.otros-nombre-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.otros-nombre-input:focus {
  border-color: #016d38;
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 109, 56, 0.12);
}
.otros-nombre-input.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}

.otros-cantidad-input {
  width: 64px;
  padding: 8px 8px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.2s;
}
.otros-cantidad-input:focus {
  border-color: #016d38;
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 109, 56, 0.12);
}

.otros-remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.otros-remove-btn:hover {
  background-color: #fdecea;
}

.otros-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed #016d38;
  color: #016d38;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.otros-add-btn:hover {
  background-color: #e8f5e9;
  border-color: #014a27;
}



/* --- Responsive: Mobile (max 480px) --- */
@media (max-width: 480px) {
  .btn-continuar-reclamacion {
    font-size: 15px;
    padding: 13px 20px;
  }

  .tasacion-cantidad-wrapper {
    padding-left: 16px;
  }

  .tasacion-zonas-wrapper {
    padding-left: 16px;
  }

  .tasacion-zonas-cantidad-wrapper {
    padding-left: 8px;
  }

  .zone-chip-qty-grid {
    gap: 8px;
  }

  .zone-chip-qty-item .zone-chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  .zone-qty-input {
    width: 56px;
    font-size: 12px;
    padding: 5px 6px;
  }

  .checklist-ref-image {
    max-width: 100%;
  }

  .tasacion-item-descripcion {
    padding-left: 16px;
  }

  .otros-entry {
    flex-wrap: wrap;
  }
  .otros-nombre-input {
    flex: 1 1 100%;
  }
  .otros-cantidad-input {
    width: 56px;
    font-size: 12px;
  }
}

/* --- Pantalla 3: Radio buttons de estimación de costo --- */
.tasacion-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasacion-radio-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-sm);
  cursor: pointer;
  transition: var(--sb-transition);
  user-select: none;
}

.tasacion-radio-option:hover {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
}

.tasacion-radio-option.selected {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.12);
}

.tasacion-radio-dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid var(--sb-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--sb-transition);
}

.tasacion-radio-option.selected .tasacion-radio-dot {
  border-color: var(--sb-green-dark);
}

.tasacion-radio-option.selected .tasacion-radio-dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--sb-green-dark);
}

.tasacion-radio-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--sb-gray-900);
  line-height: 1.3;
}

.tasacion-radio-option.selected .tasacion-radio-label {
  font-weight: 600;
  color: var(--sb-green-dark);
}

@media (max-width: 480px) {
  .tasacion-radio-option {
    padding: 12px 14px;
    gap: 12px;
  }

  .tasacion-radio-label {
    font-size: 14px;
  }

  .tasacion-radio-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .tasacion-radio-option.selected .tasacion-radio-dot::after {
    width: 10px;
    height: 10px;
  }
}

/* --- Pantalla 2B: Cards de contenidos editables --- */
.tasacion-contenidos-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasacion-contenido-card {
  border: 1px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-sm);
  padding: 14px 16px;
  background-color: var(--sb-white);
  transition: var(--sb-transition);
}

.tasacion-contenido-card:hover {
  border-color: var(--sb-green-dark);
  box-shadow: var(--sb-shadow-sm);
}

.tasacion-contenido-card.excluido {
  opacity: 0.5;
  background-color: var(--sb-gray-100);
  border-color: var(--sb-gray-300);
  border-style: dashed;
}

.tasacion-contenido-card.excluido .tasacion-contenido-card-body {
  pointer-events: none;
}

.tasacion-contenido-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tasacion-contenido-icon {
  font-size: 18px;
  color: var(--sb-green-dark);
  flex-shrink: 0;
}

.tasacion-contenido-card.excluido .tasacion-contenido-icon {
  color: var(--sb-gray-500);
}

.tasacion-contenido-nombre {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--sb-gray-900);
}

.tasacion-contenido-card.excluido .tasacion-contenido-nombre {
  text-decoration: line-through;
  color: var(--sb-gray-500);
}

.tasacion-contenido-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--sb-gray-300);
  background: var(--sb-white);
  color: var(--sb-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: var(--sb-transition);
  flex-shrink: 0;
}

.tasacion-contenido-toggle:hover {
  border-color: var(--sb-red);
  color: var(--sb-red);
  background-color: var(--sb-red-light);
}

.tasacion-contenido-card.excluido .tasacion-contenido-toggle {
  border-color: var(--sb-green-dark);
  color: var(--sb-green-dark);
}

.tasacion-contenido-card.excluido .tasacion-contenido-toggle:hover {
  background-color: var(--sb-green-pale);
}

.tasacion-contenido-card-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sb-gray-200);
}

.tasacion-contenido-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tasacion-contenido-qty-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sb-gray-700);
}

.tasacion-contenido-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--sb-gray-300);
  border-radius: 8px;
  overflow: hidden;
}

.tasacion-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--sb-gray-100);
  color: var(--sb-gray-700);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  user-select: none;
}

.tasacion-qty-btn:hover {
  background-color: var(--sb-green-pale);
  color: var(--sb-green-dark);
}

.tasacion-qty-btn:active {
  background-color: var(--sb-green-dark);
  color: var(--sb-white);
}

.tasacion-contenido-qty-input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--sb-gray-300);
  border-right: 1px solid var(--sb-gray-300);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--sb-gray-900);
  background: var(--sb-white);
  outline: none;
}

.tasacion-contenido-qty-input:focus {
  background-color: var(--sb-green-pale);
}

@media (max-width: 480px) {
  .tasacion-contenido-card {
    padding: 12px 14px;
  }

  .tasacion-contenido-nombre {
    font-size: 13px;
  }

  .tasacion-qty-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .tasacion-contenido-qty-input {
    width: 42px;
    height: 34px;
    font-size: 14px;
  }

  .tasacion-contenido-toggle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

/* ============================================================
   PANTALLA 6: GRABACIÓN Y CARGA DE VIDEO
   ============================================================ */

/* --- Status bar --- */
.p6-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--sb-gray-100);
  border-radius: var(--sb-radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--sb-gray-700);
}

.p6-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sb-gray-300);
  flex-shrink: 0;
}

.p6-status-dot.ready { background: #28a745; }
.p6-status-dot.recording { background: #dc3545; animation: p6Pulse 1s infinite; }
.p6-status-dot.uploading { background: #ffc107; }
.p6-status-dot.done { background: var(--sb-green-dark); }
.p6-status-dot.error { background: #dc3545; }

@keyframes p6Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* --- Upload progress bar --- */
.p6-upload-progress {
  display: none;
  height: 6px;
  background: var(--sb-gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.p6-upload-progress.active { display: block; }

.p6-upload-progress-fill {
  height: 100%;
  background: var(--sb-green-dark);
  border-radius: 3px;
  transition: width 0.3s;
}

/* --- Video container --- */
.p6-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.p6-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p6-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #adb5bd;
  gap: 8px;
}

.p6-video-placeholder i { font-size: 48px; }
.p6-video-placeholder span { font-size: 13px; }

/* --- REC indicator --- */
.p6-rec-indicator {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  gap: 5px;
}

.p6-rec-indicator.active {
  display: flex;
  animation: p6Pulse 1s infinite;
}

/* --- Timer --- */
.p6-timer {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Roboto Mono', monospace;
}

.p6-timer.active { display: block; }

/* --- Button group --- */
.p6-btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.p6-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.p6-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.p6-btn-record { background: #dc3545; color: #fff; }
.p6-btn-record:hover:not(:disabled) { background: #b02a37; }

.p6-btn-stop { background: #495057; color: #fff; }
.p6-btn-stop:hover:not(:disabled) { background: #343a40; }

.p6-btn-upload { background: var(--sb-green-dark); color: #fff; }
.p6-btn-upload:hover:not(:disabled) { background: #015a2e; }

.p6-btn-reset { background: var(--sb-gray-200); color: var(--sb-gray-700); }
.p6-btn-reset:hover:not(:disabled) { background: var(--sb-gray-300); }

/* --- Responsive --- */
@media (max-width: 480px) {
  .p6-video-container {
    border-radius: 10px;
  }

  .p6-btn {
    padding: 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .p6-status-bar {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* --- Botón "Continuar con mi reclamación" en card de Mis bienes asegurados --- */
.tasacion-card-action {
  border-left: 3px solid var(--sb-green-dark);
  margin-left: 20px;
  padding: 10px 0 10px 16px;
  margin-top: -4px;
  margin-bottom: 12px;
}

.btn-tasacion-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--sb-green-dark);
  border-radius: var(--sb-radius-full);
  background: var(--sb-white);
  color: var(--sb-green-dark);
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Bolivar', sans-serif;
  cursor: pointer;
  transition: var(--sb-transition);
}

.btn-tasacion-card:hover {
  background: var(--sb-green-pale);
  border-color: #015a2e;
  color: #015a2e;
}

.btn-tasacion-card:active {
  background: var(--sb-green-dark);
  color: var(--sb-white);
}

@media (max-width: 480px) {
  .tasacion-card-action {
    margin-left: 14px;
    padding-left: 12px;
  }

  .btn-tasacion-card {
    font-size: 12px;
    padding: 7px 14px;
  }
}


/* ============================================================
   MODAL: SESIÓN EXPIRADA
   ============================================================ */
.session-expired-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.session-expired-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.session-expired-icon {
  font-size: 48px;
  color: var(--sb-primary, #003DA5);
  display: block;
  margin-bottom: 16px;
}

.session-expired-title {
  font-family: 'Bolivar', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--sb-dark, #1a1a2e);
  margin: 0 0 12px;
}

.session-expired-text {
  font-size: 14px;
  color: var(--sb-gray-500, #6b7280);
  line-height: 1.5;
  margin: 0 0 28px;
}

.session-expired-modal .btn-primary-sb {
  width: 100%;
}

/* --- Pantalla final de éxito - Tasación (Formulario 2) --- */
.tasacion-result-container {
  padding: 32px 16px;
}

.tasacion-result-container .result-icon {
  display: block;
  margin-bottom: 20px;
}

.tasacion-result-container .result-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.tasacion-result-container .result-description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .tasacion-result-container {
    padding: 24px 12px;
  }

  .tasacion-result-container .result-title {
    font-size: 18px;
  }
}

/* --- Indicador "Tiene una acción pendiente" en tarjeta principal --- */
.accion-pendiente-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #b71c1c;
  background-color: #ffebee;
  border: 1.5px solid #ef9a9a;
  border-radius: 20px;
  font-family: 'Bolivar', sans-serif;
  animation: pulse-pendiente 2s ease-in-out infinite;
}

.accion-pendiente-indicator i {
  font-size: 14px;
  color: #d32f2f;
}

@keyframes pulse-pendiente {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(211, 47, 47, 0); }
}

/* --- Indicador "Tiene una notificación" en tarjeta principal --- */
/* Mismo patrón visual que .accion-pendiente-indicator, pero en tono informativo
   (azul) para diferenciar un aviso de una acción pendiente. */
.notificacion-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0d47a1;
  background-color: #e3f2fd;
  border: 1.5px solid #90caf9;
  border-radius: 20px;
  font-family: 'Bolivar', sans-serif;
  animation: pulse-notificacion 2s ease-in-out infinite;
}

.notificacion-indicator i {
  font-size: 14px;
  color: #1976d2;
}

@keyframes pulse-notificacion {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(25, 118, 210, 0); }
}

/* --- Aviso de notificación de tiempo dentro del tracker (bajo "En evaluación") --- */
.notificacion-tiempo-aviso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  color: #0d47a1;
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 10px;
  font-family: 'Bolivar', sans-serif;
}

.notificacion-tiempo-aviso i {
  font-size: 15px;
  color: #1976d2;
  margin-top: 1px;
  flex-shrink: 0;
}

/* --- Conector: botón tasación/acreditación entre paso 1 y 2 (branch-node) --- */
.tasacion-btn-connector {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 0 14px 48px;
  overflow: visible;
}

/* Línea vertical continua VERDE — desde arriba hasta el nodo (50%) */
.tasacion-btn-connector::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -40px;
  height: 100%;
  width: 2.5px;
  background-color: #016d38;
  border-radius: 2px;
}

/* Línea vertical GRIS PUNTEADA — desde el nodo (50%) hasta abajo */
.tasacion-btn-connector::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  bottom: 0;
  width: 2.5px;
  background: repeating-linear-gradient(
    to bottom,
    #bfc5cc 0px,
    #bfc5cc 5px,
    transparent 5px,
    transparent 10px
  );
  border-radius: 2px;
}

/* --- Branch node: nodo circular + línea horizontal --- */
.branch-node {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

/* Nodo circular de bifurcación (sobre la línea vertical) */
.branch-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #016d38;
  border: 2px solid #e8f5e9;
  box-shadow: 0 0 0 2px #016d38;
  flex-shrink: 0;
  position: relative;
  left: 9px;
}

/* Línea horizontal que conecta el nodo con el botón */
.branch-node-line {
  width: 28px;
  height: 3px;
  background-color: #016d38;
  border-radius: 2px;
  margin-left: 9px;
}

/* Barra gruesa difuminada verde — fondo de energía desde paso 1 hasta el nodo */
.tasacion-btn-connector .branch-glow {
  position: absolute;
  left: 6.6px;
  top: -50px;
  height: calc(127% + 10px);
  width: 20px;
  background: linear-gradient(to bottom, rgba(1, 109, 56, 0.25), rgba(1, 109, 56, 0.08));
  border-radius: 10px;
  pointer-events: none;
  z-index: 0;
}

/* Botón */
.tasacion-btn-connector .btn-continuar-reclamacion {
  width: auto;
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(1, 109, 56, 0.12);
}

/* Paso 1: su línea normal se oculta cuando hay branch-node connector */
.estado-step--dashed::before {
  display: none !important;
}
.estado-step--dashed {
  padding-bottom: 0 !important;
}

@media (max-width: 480px) {
  .tasacion-btn-connector {
    padding-left: 44px;
  }
  .tasacion-btn-connector .btn-continuar-reclamacion {
    font-size: 12px;
    padding: 9px 16px;
  }
  .branch-node-dot {
    width: 8px;
    height: 8px;
    left: 8px;
  }
  .branch-node-line {
    width: 12px;
    margin-left: 8px;
  }
}


/* --- Bloque "Descargar finiquito aceptado" (tracker, caso finalizado) --- */
/* No usa el conector del tracker (sin línea/nodo): va al final del caminito,
   como acción de cierre. Separador superior sutil para despegarlo del último
   paso y botón centrado a ancho completo, coherente con el resto del detalle. */
.finiquito-download-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
}
.finiquito-download-block .btn-continuar-reclamacion {
  width: 100%;
}


/* ============================================================
   EVIDENCIA SUPLEMENTARIA: Botón, instrucciones y bullets
   ============================================================ */

/* Botón "Subir información adicional" — mismo estilo que "Continuar con mi reclamación" (verde) */

/* Conector específico de evidencia (hereda de tasacion-btn-connector, mismos colores) */

/* Bullets de instrucciones dinámicas */
.evidencia-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evidencia-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f7f4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sb-gray-800);
}

.evidencia-bullet-item i {
  color: #016d38;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .evidencia-bullet-item {
    font-size: 13px;
    padding: 10px 12px;
  }
}


/* ============================================================
   PANTALLA 5: Alerta destacada "un solo video continuo"
   ============================================================ */
.p5-video-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff3cd;
  border: 1.5px solid #ffc107;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.p5-video-alert-icon {
  flex-shrink: 0;
  font-size: 22px;
  color: #856404;
  margin-top: 1px;
}

.p5-video-alert-content {
  font-size: 12.5px;
  line-height: 1.5;
  color: #664d03;
}

.p5-video-alert-content strong {
  color: #533f03;
}

/* ============================================================
   PANTALLA 6: Modal recordatorio antes de grabar
   ============================================================ */
.p6-reminder-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: p6FadeIn 0.25s ease;
}

.p6-reminder-overlay--closing {
  animation: p6FadeOut 0.25s ease forwards;
}

@keyframes p6FadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes p6FadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.p6-reminder-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: p6SlideUp 0.3s ease;
}

@keyframes p6SlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.p6-reminder-modal-icon {
  font-size: 36px;
  color: var(--sb-green-dark, #016d38);
  margin-bottom: 12px;
}

.p6-reminder-modal-title {
  font-family: 'Bolivar', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sb-gray-900, #1a1a1a);
  margin: 0 0 16px 0;
}

.p6-reminder-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.p6-reminder-modal-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--sb-gray-700, #495057);
}

.p6-reminder-modal-rule i {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--sb-green-dark, #016d38);
  margin-top: 1px;
}

.p6-reminder-modal-rule strong {
  color: var(--sb-gray-900, #1a1a1a);
}

.p6-reminder-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  background: var(--sb-green-dark, #016d38);
  color: #fff;
  font-family: 'Bolivar', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.p6-reminder-modal-btn:hover {
  background: var(--sb-green-medium, #01894a);
}

.p6-reminder-modal-btn:active {
  transform: scale(0.97);
}

/* Responsive: modal en pantallas pequeñas */
@media (max-width: 480px) {
  .p6-reminder-modal {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .p6-reminder-modal-title {
    font-size: 16px;
  }

  .p6-reminder-modal-rule {
    font-size: 13px;
  }

  .p5-video-alert {
    padding: 12px;
    gap: 10px;
  }

  .p5-video-alert-content {
    font-size: 12.5px;
  }
}


/* ============================================================
   ACREDITACIÓN PYMES — Estilos específicos
   ============================================================ */

/* --- Indicador de progreso por pasos --- */
.acreditacion-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.acreditacion-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 8px;
  transition: background 0.2s;
}

.acreditacion-progress-step i {
  font-size: 18px;
  color: var(--sb-gray-400);
  flex-shrink: 0;
}

.acreditacion-progress-label {
  font-size: 10px;
  color: var(--sb-gray-500);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.acreditacion-progress-step.active {
  background: #e8f5e9;
}

.acreditacion-progress-step.active i {
  color: #016e38;
}

.acreditacion-progress-step.active .acreditacion-progress-label {
  color: #016e38;
  font-weight: 600;
}

.acreditacion-progress-step.completed i {
  color: #198754;
}

.acreditacion-progress-step.completed .acreditacion-progress-label {
  color: #198754;
}

/* --- Resumen P0 --- */
.acreditacion-p0-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.acreditacion-p0-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.acreditacion-p0-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-gray-800);
  margin-bottom: 6px;
}

.acreditacion-p0-card-header i {
  font-size: 20px;
  color: #016e38;
}

.acreditacion-p0-card-intro {
  font-size: 12px;
  color: var(--sb-gray-600);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.acreditacion-p0-doc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  margin-top: 8px;
}

.acreditacion-p0-doc-badge {
  flex-shrink: 0;
  background: #016e38;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.acreditacion-p0-doc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acreditacion-p0-doc-info strong {
  font-size: 13px;
  color: var(--sb-gray-800);
}

.acreditacion-p0-doc-info span {
  font-size: 11px;
  color: var(--sb-gray-600);
  line-height: 1.5;
}

/* --- Badges de categorías agrupadas en P0 --- */
.acreditacion-p0-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.acreditacion-p0-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #016e38;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 6px;
  padding: 4px 10px;
}

.acreditacion-p0-cat-badge i {
  font-size: 13px;
}

/* --- Hint entre cards en P0 --- */
.acreditacion-p0-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sb-gray-500);
  margin: 0;
  padding: 4px 0;
}

.acreditacion-p0-hint i {
  font-size: 14px;
  color: var(--sb-gray-400);
  flex-shrink: 0;
}

/* --- Cards de documentos --- */
.acreditacion-doc-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 16px 16px 8px 16px;
  margin-top: 16px;
}

.acreditacion-doc-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--sb-gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.acreditacion-doc-header i {
  font-size: 18px;
  color: #016e38;
}

.acreditacion-doc-desc {
  font-size: 13px;
  color: var(--sb-gray-600);
  margin-top: 6px;
  line-height: 1.5;
}

/* --- Zona de upload --- */
.acreditacion-upload-zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px dashed #ced4da;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 10px;
}

.acreditacion-upload-zone:hover {
  border-color: #016e38;
  background: #f0fdf4;
}

.acreditacion-upload-zone i {
  font-size: 20px;
  color: var(--sb-gray-400);
  flex-shrink: 0;
}

.acreditacion-upload-zone:hover i {
  color: #016e38;
}

.acreditacion-upload-zone span {
  font-size: 13px;
  color: var(--sb-gray-600);
}

/* --- Estado del archivo subido --- */
.acreditacion-file-attached {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #d1e7dd;
  border-radius: 6px;
  margin-top: 8px;
  margin-bottom: 5px;
  font-size: 12px;
  color: #0f5132;
}

.acreditacion-file-attached span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acreditacion-file-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #dc3545;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
}

.acreditacion-file-remove:hover {
  background: #b02a37;
  transform: scale(1.1);
}

/* --- Card con archivo subido: borde verde + check esquina --- */
.acreditacion-doc-card.has-file {
  border-color: #198754;
  position: relative;
}

.acreditacion-doc-card.has-file::after {
  content: "\f26b";
  font-family: "bootstrap-icons";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  background: #198754;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* --- Link de descarga plantilla --- */
.acreditacion-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #016e38;
  text-decoration: none;
  margin-top: 10px;
  padding: 8px 16px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.acreditacion-download-btn:hover {
  background: #c8e6c9;
  border-color: #66bb6a;
}

/* --- Hint "un solo archivo" --- */
.acreditacion-upload-hint {
  font-size: 10px;
  color: var(--sb-gray-400);
  margin: 8px 0 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.acreditacion-upload-hint i {
  font-size: 11px;
  color: var(--sb-gray-400);
}

/* --- Botón "No tengo daño en esta categoría" (outline verde, sobre continuar) --- */
.acreditacion-btn-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 28px;
  background: #fff;
  border: 2px solid #016e38;
  border-radius: var(--sb-radius-full);
  color: #016e38;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Bolivar', sans-serif;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.1s;
}

.acreditacion-btn-skip:hover:not(:disabled) {
  background: #f0fdf4;
  transform: translateY(-1px);
}

.acreditacion-btn-skip:active:not(:disabled) {
  transform: translateY(0);
}

.acreditacion-btn-skip:disabled {
  background-color: var(--sb-gray-300);
  color: var(--sb-gray-500);
  border-color: var(--sb-gray-300);
  cursor: default;
  transform: none;
}

.acreditacion-btn-skip i {
  font-size: 16px;
}

/* --- Radio group propietario --- */
.acreditacion-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.acreditacion-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--sb-gray-700);
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.acreditacion-radio:has(input:checked) {
  border-color: #016e38;
  background: #f0fdf4;
}

.acreditacion-radio input[type="radio"] {
  accent-color: #016e38;
  width: 16px;
  height: 16px;
}

/* --- Responsive mobile --- */
@media (max-width: 480px) {
  .acreditacion-progress {
    gap: 2px;
    padding: 8px 0 16px 0;
  }
  .acreditacion-progress-step {
    min-width: 48px;
    padding: 4px 4px;
  }
  .acreditacion-progress-step i {
    font-size: 15px;
  }
  .acreditacion-progress-label {
    font-size: 9px;
  }
  .acreditacion-doc-card {
    padding: 12px;
  }
  .acreditacion-upload-zone {
    padding: 18px 12px;
  }
}


/* --- Bloque enfoque dinámico en instrucciones de video acreditación --- */
.acred-video-enfoque {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 20px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.acred-video-enfoque-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #016e38;
  font-size: 22px;
}

.acred-video-enfoque-icons span {
  font-size: 12px;
  color: var(--sb-gray-400);
}

.acred-video-enfoque-text {
  font-size: 12.5px;
  color: #1b5e20;
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
}

/* ============================================================
   ACREDITACIÓN VIDEO — Bloqueo por documentos faltantes
   ============================================================ */

.acred-video-bloqueo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  margin-top: 20px;
  background: #fafbfc;
  border: 1.5px dashed #f87171;
  border-radius: 16px;
}

.acred-bloqueo-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  border-radius: 50%;
  margin-bottom: 16px;
}

.acred-bloqueo-icon-wrap i {
  font-size: 26px;
  color: #dc2626;
}

.acred-bloqueo-titulo {
  font-size: 16px;
  font-weight: 700;
  color: var(--sb-gray-800);
  margin: 0 0 8px 0;
}

.acred-bloqueo-desc {
  font-size: 13px;
  color: var(--sb-gray-500);
  line-height: 1.6;
  margin: 0 0 18px 0;
  max-width: 320px;
}

.acred-bloqueo-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.acred-bloqueo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sb-gray-700);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.acred-bloqueo-badge i {
  font-size: 14px;
  color: #016e38;
}

/* --- Responsive mobile --- */
@media (max-width: 480px) {
  .acred-video-bloqueo {
    padding: 24px 16px;
  }
  .acred-bloqueo-titulo {
    font-size: 15px;
  }
  .acred-bloqueo-badge {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ============================================================
   ZONA VIDEO POR TERCEROS (tracker de estado)
   ============================================================ */
.vt-zona {
  margin-top: 20px;
  border-radius: var(--sb-radius-md);
  border: 1px solid #cfe8db;
  background-color: #f0f7f3;
  box-shadow: var(--sb-shadow-sm);
  overflow: hidden;
  text-align: left;
}

/* Encabezado con banda de color e ícono */
.vt-zona-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #cfe8db;
}

.vt-zona-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sb-green-dark), var(--sb-green-light));
}

.vt-zona-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sb-gray-900);
  line-height: 1.25;
}

.vt-zona-body {
  padding: 16px;
  background-color: var(--sb-white);
}

.vt-zona-desc {
  font-size: 12.5px;
  color: var(--sb-gray-500);
  line-height: 1.5;
  margin: 0 0 14px 0;
}

/* Chip de vigencia */
.vt-chip-vigencia {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--sb-radius-full);
  background-color: var(--sb-yellow-light);
  color: #a86e00;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Campo copiable (enlace / código) */
.vt-field { margin-bottom: 12px; }
.vt-field:last-of-type { margin-bottom: 0; }

.vt-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sb-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  display: block;
}

.vt-field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.vt-field-input {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  padding: 10px 12px;
  border: 1.5px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-sm);
  background-color: var(--sb-gray-100);
  color: var(--sb-gray-700);
  font-family: 'Roboto Mono', ui-monospace, monospace;
  outline: none;
  text-overflow: ellipsis;
}

.vt-field-input:focus {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-white);
}

/* Campo del código (OTP): más protagonismo */
.vt-field-input--otp {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  color: var(--sb-green-dark);
}

.vt-copy-btn {
  flex-shrink: 0;
  width: 44px;
  border: none;
  border-radius: var(--sb-radius-sm);
  background-color: var(--sb-green-dark);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: var(--sb-transition);
}

.vt-copy-btn:hover { background-color: #015a2e; }
.vt-copy-btn.copied { background-color: var(--sb-green-light); }

/* Botón secundario (regenerar) */
.vt-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--sb-green-dark);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}
.vt-btn-link:hover { text-decoration: underline; }

/* Estado COMPLETADO: banda de éxito */
.vt-zona--done .vt-zona-icon {
  background: var(--sb-green-dark);
}

/* Estado NEUTRO (ninguna/expirado): CTA de generar */
.vt-zona-body .btn-continuar-reclamacion {
  margin-top: 4px;
}

@media (max-width: 480px) {
  .vt-field-input { font-size: 12px; }
  .vt-field-input--otp { font-size: 18px; letter-spacing: 3px; }
}

/* ============================================================
   FLUJO EvaluacionModerados — P1 (habitabilidad) y P2 (zonas)
   ============================================================ */

/* --- P1: grupo condicional de motivos (no habitable) --- */
.evalmod-motivos-group {
  animation: fadeSlideIn 0.25s ease forwards;
}

/* Tarjetas de motivo/habitabilidad: reutilizan .option-card; aquí solo se
   ajusta el alto mínimo para el layout en fila del grupo de motivos. */
.evalmod-motivo-card {
  min-height: auto;
}

/* --- Issue 1: la tarjeta de habitabilidad ("Sí"/"No") mantiene su selección
   de forma PERMANENTE, con prioridad sobre el hover de las tarjetas de motivo.
   El estado seleccionado no depende del hover y refuerza el borde/fondo verde
   para que "No" no pierda el destacado al interactuar con los motivos. --- */
.evalmod-habitable-card.selected {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.15);
}

/* --- Issue 2: radio dinámico de los motivos ---
   Por defecto (no seleccionado): fondo neutro/blanco y SIN círculo visible. */
.evalmod-motivo-card {
  background-color: var(--sb-white);
}

/* Anular el hover heredado de .option-card en los motivos: las opciones no
   seleccionadas deben verse limpias (sin fondo verde ni realce al pasar). */
.evalmod-motivo-card:hover {
  border-color: var(--sb-gray-300);
  background-color: var(--sb-white);
  transform: none;
  box-shadow: none;
}

/* Marcador de radio: círculo hueco tenue por defecto, sin punto interior. */
.evalmod-motivo-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--sb-gray-300);
  background-color: var(--sb-white);
  position: relative;
  transition: var(--sb-transition);
}

/* Seleccionado: la tarjeta recupera su realce verde y el hover no la degrada. */
.evalmod-motivo-card.selected,
.evalmod-motivo-card.selected:hover {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
  box-shadow: 0 0 0 3px rgba(1, 109, 56, 0.15);
}

/* Seleccionado: el círculo se pinta de verde y muestra el punto interior. */
.evalmod-motivo-card.selected .evalmod-motivo-radio {
  border-color: var(--sb-green-dark);
}

.evalmod-motivo-card.selected .evalmod-motivo-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--sb-green-dark);
}

/* --- P1: textarea condicional del motivo "Otra razón" --- */
.evalmod-otra-razon-wrapper {
  margin-top: 10px;
  animation: fadeSlideIn 0.25s ease forwards;
}

.evalmod-otra-razon-desc {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  padding: 10px 12px;
  border: 2px solid var(--sb-gray-300);
  border-radius: var(--sb-radius-md);
  box-sizing: border-box;
}

.evalmod-otra-razon-desc:focus {
  outline: none;
  border-color: var(--sb-green-dark);
}

.evalmod-otra-razon-desc.input-error {
  border-color: #c0392b;
}

.evalmod-otra-razon-contador {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sb-gray-500);
}

.evalmod-otra-razon-contador--ok {
  color: var(--sb-green-dark);
}

/* --- P1: subidor de PDF de soporte (opción 1 y 2, opcional) --- */
.evalmod-soporte-wrapper {
  margin-top: 10px;
  animation: fadeSlideIn 0.25s ease forwards;
}

.evalmod-soporte-msg {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--sb-gray-700);
}

.evalmod-soporte-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  border: 2px dashed var(--sb-gray-300);
  border-radius: var(--sb-radius-md);
  background-color: var(--sb-white);
  color: var(--sb-green-dark);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--sb-transition);
}

.evalmod-soporte-zone i {
  font-size: 20px;
}

.evalmod-soporte-zone:hover {
  border-color: var(--sb-green-dark);
  background-color: var(--sb-green-pale);
}

.evalmod-soporte-status {
  margin-top: 8px;
}

.evalmod-soporte-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--sb-radius-md);
  background-color: var(--sb-green-pale);
  font-size: 13px;
  color: var(--sb-gray-900);
}

.evalmod-soporte-file span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evalmod-soporte-remove {
  border: none;
  background: transparent;
  color: #c0392b;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
}

.evalmod-soporte-remove:hover {
  color: #a5281b;
}

/* --- P2: wrapper del textarea por zona (desplegable) --- */
.evalmod-zona-desc-wrapper {
  padding: 4px 16px 12px 34px;
  animation: fadeSlideIn 0.25s ease forwards;
}

.evalmod-zona-desc {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

/* Contador de caracteres por zona */
.evalmod-zona-contador {
  font-size: 12px;
  color: var(--sb-gray-500);
  margin-top: 6px;
  font-weight: 500;
}

.evalmod-zona-contador.evalmod-contador-error {
  color: #dc3545;
}

/* ===================================================================== */
/* ACREDITACIÓN PYMES — Galería de fotos y videos (cargue local)         */
/* Reemplaza la grabación en vivo. Hasta 10 fotos y 3 videos.            */
/* ===================================================================== */

/* --- Tips breves de captura --- */
.acred-media-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 20px;
}

.acred-media-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--sb-gray-700);
  line-height: 1.5;
}

.acred-media-tip i {
  color: var(--sb-green-dark);
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* --- Grupo (zona de fotos / zona de videos) --- */
.acred-media-group {
  background: var(--sb-white);
  border: 1px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--sb-shadow-sm);
}

.acred-media-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.acred-media-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-gray-900);
}

.acred-media-group-title i {
  color: var(--sb-green-dark);
  font-size: 18px;
}

.acred-media-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--sb-green-dark);
  background: var(--sb-green-pale);
  border-radius: var(--sb-radius-full);
  padding: 3px 10px;
}

.acred-media-group-hint {
  font-size: 11.5px;
  color: var(--sb-gray-500);
  margin: 0 0 12px;
  line-height: 1.4;
}

/* --- Grilla de miniaturas --- */
.acred-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.acred-media-grid:empty {
  display: none;
}

/* --- Tarjeta de un archivo --- */
.acred-media-card {
  position: relative;
  border-radius: var(--sb-radius-sm);
  overflow: hidden;
  background: var(--sb-gray-100);
  border: 1px solid var(--sb-gray-200);
  animation: acredMediaIn 0.25s ease;
}

@keyframes acredMediaIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.acred-media-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.acred-media-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sb-gray-200), var(--sb-gray-100));
  color: var(--sb-green-dark);
  font-size: 30px;
}

/* --- Overlay de progreso / error --- */
.acred-media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
}

.acred-media-overlay--error {
  background: rgba(192, 57, 43, 0.78);
  cursor: pointer;
}

.acred-media-overlay--error i {
  font-size: 22px;
}

.acred-media-overlay-txt {
  font-size: 11px;
  font-weight: 600;
}

.acred-media-progress {
  width: 80%;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.acred-media-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sb-green-light), var(--sb-yellow));
  border-radius: 4px;
  transition: width 0.25s ease;
}

/* --- Check verde de confirmado --- */
.acred-media-ok {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sb-green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Botón eliminar (esquina) --- */
.acred-media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--sb-transition);
  z-index: 2;
}

.acred-media-remove:hover {
  background: var(--sb-red);
  transform: scale(1.08);
}

/* --- Metadatos (nombre + peso) --- */
.acred-media-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px;
  background: var(--sb-white);
}

.acred-media-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--sb-gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acred-media-size {
  font-size: 10px;
  color: var(--sb-gray-500);
}

/* --- Botón "Agregar fotos/videos" --- */
.acred-media-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 2px dashed var(--sb-green-light);
  border-radius: var(--sb-radius-sm);
  background: var(--sb-green-pale);
  color: var(--sb-green-dark);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--sb-transition);
}

.acred-media-add:hover:not(:disabled) {
  background: #d7eddb;
  border-color: var(--sb-green-dark);
}

.acred-media-add:disabled {
  border-color: var(--sb-gray-300);
  background: var(--sb-gray-100);
  color: var(--sb-gray-500);
  cursor: not-allowed;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .acred-media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .acred-media-group {
    padding: 14px;
  }
}


/* =====================================================================
   FLUJO: Seguimiento de Obra Moderado (P1 información + P2 cargue)
   Prefijo de clases: segobra-
   ===================================================================== */

.segobra-screen {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
}

.segobra-screen--fin {
  padding-top: 40px;
}

.segobra-info-icon {
  font-size: 48px;
  color: #016d38;
  margin-bottom: 12px;
}

.segobra-info-icon--ok {
  color: #01a54e;
}

.segobra-title {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #1a1a1a;
}

.segobra-message {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 24px;
}

.segobra-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  text-align: left;
}

.segobra-btn {
  margin-top: 8px;
  width: 100%;
}

/* Tarjetas de cargue (video / documento), ambas visibles a la vez. */
.segobra-upload-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
  background: #fafafa;
}

.segobra-upload-head {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.segobra-upload-head i {
  color: #016d38;
  margin-right: 6px;
}

/* Área de selección estilo "tarjeta/drop" (reusa el look del flujo de
   cotización Hogar leves): label que dispara el input oculto, borde punteado,
   ícono de nube verde y textos de título + ayuda. */
.segobra-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #ced4da;
  border-radius: 12px;
  padding: 24px 16px;
  cursor: pointer;
  color: var(--sb-gray-700, #333);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.segobra-drop:hover {
  border-color: #016d38;
  background: #f0f8f3;
}

.segobra-drop-icon {
  font-size: 32px;
  color: #016d38;
}

.segobra-drop-title {
  font-weight: 600;
}

.segobra-drop-hint {
  font-size: 12px;
  color: var(--sb-gray-500, #888);
}

/* Estado de cada cargue (info / ok / error). */
.segobra-estado {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
}

.segobra-estado--info {
  color: #555;
}

.segobra-estado--ok {
  color: #016d38;
  font-weight: 600;
}

.segobra-estado--error {
  color: #c62828;
  font-weight: 600;
}

/* Conector del botón de entrada en el tracker (reusa el patrón de tasación). */
.seguimiento-obra-btn-connector {
  /* Hereda la maquetación de .tasacion-btn-connector; sin overrides por ahora. */
}
