/*!
 * ============================================================================
 * Copyright © 2026 Diego Fernando Zapata. Todos los derechos reservados.
 * 
 * Desarrollado por: Diego Fernando Zapata
 * Sitio web: https://diegozapatadz.com
 * WhatsApp: +57 316 371 1641
 * Proyecto: Cea Langelorc - Estilos Sistema PQR
 * Identificador: DZ-CEALANGELORC-2026-B8E29A1F
 * Versión: 1.2.2
 * Fecha: 2026-09-22
 * ============================================================================
 */

:root {
  --pqr-primary: #0284c7;
  --pqr-primary-dark: #0369a1;
  --pqr-emerald: #087e69;
  --pqr-emerald-dark: #066b59;
  --pqr-bg: #f1f5f9;
  --pqr-card-bg: #ffffff;
  --pqr-border: #cbd5e1;
  --pqr-border-focus: #0284c7;
  --pqr-text: #0f172a;
  --pqr-muted: #334155;
  --pqr-radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--pqr-bg);
  color: var(--pqr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.pqr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--pqr-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.pqr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #071d43;
}

.pqr-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.pqr-brand-text {
  display: flex;
  flex-direction: column;
}

.pqr-brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.pqr-brand-text small {
  font-size: 11px;
  color: var(--pqr-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pqr-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 750;
  color: #071d43;
  background: #ffffff;
  border: 1.5px solid var(--pqr-border);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.pqr-nav-back:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0284c7;
}

/* Main Container */
.pqr-main {
  max-width: 900px;
  margin: 94px auto 60px;
  padding: 0 20px;
}

/* Hero Banner */
.pqr-hero {
  text-align: center;
  margin-bottom: 26px;
}

.pqr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pqr-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.8px;
  color: #071d43;
}

.pqr-hero p {
  margin: 0 auto;
  max-width: 680px;
  font-size: 14.5px;
  color: var(--pqr-muted);
  line-height: 1.55;
}

/* Legal Notice Banner */
.pqr-legal-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid var(--pqr-border);
  border-radius: 10px;
  font-size: 12.5px;
  color: #334155;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.pqr-legal-badge svg {
  color: #0284c7;
  flex-shrink: 0;
}

/* Segmented Tabs Navigation (High Contrast & Tactile) */
.pqr-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #e2e8f0;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid var(--pqr-border);
}

.pqr-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 750;
  color: #475569;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.18s ease;
}

.pqr-tab-btn:hover {
  color: #071d43;
  background: rgba(255, 255, 255, 0.6);
}

.pqr-tab-btn.is-active {
  color: #071d43;
  background: #ffffff;
  border-color: var(--pqr-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Card Panel (Defined Border & Depth) */
.pqr-card {
  background: var(--pqr-card-bg);
  border: 1.5px solid var(--pqr-border);
  border-radius: var(--pqr-radius);
  padding: 32px 34px;
  box-shadow: 0 10px 28px -5px rgba(15, 23, 42, 0.07), 0 4px 12px rgba(15, 23, 42, 0.03);
}

.pqr-tab-pane {
  display: none;
}

.pqr-tab-pane.is-active {
  display: block;
  animation: pqrFadeIn 0.22s ease-out;
}

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

/* Section Grouping Card (Crisp Borders & Visual Structure) */
.pqr-section-box {
  border: 1.5px solid var(--pqr-border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 22px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: border-color 0.2s ease;
}

.pqr-section-box:hover {
  border-color: #94a3b8;
}

.pqr-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.pqr-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #071d43;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pqr-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #071d43;
  margin: 0;
  display: block;
}

.pqr-section-sub {
  font-size: 12px;
  color: var(--pqr-muted);
  display: block;
  margin-top: 1px;
}

/* Dropdown Select for Type of Request */
.pqr-select-wrap {
  position: relative;
  width: 100%;
}

.pqr-select-primary {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--pqr-border);
  border-radius: 9px;
  padding: 0 40px 0 14px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pqr-select-primary:hover {
  border-color: #94a3b8;
}

.pqr-select-primary:focus {
  border-color: var(--pqr-primary);
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.18);
  outline: none;
}

/* Dynamic Callout Info Card for Type */
.pqr-type-info-card {
  background: #f8fafc;
  border: 1.5px solid var(--pqr-border);
  border-left: 4px solid var(--pqr-primary);
  border-radius: 9px;
  padding: 14px 18px;
  margin-top: 14px;
  transition: border-left-color 0.2s ease;
}

.pqr-type-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.pqr-term-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pqr-primary);
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.pqr-law-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #071d43;
  background: #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
}

.pqr-type-info-desc {
  margin: 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

/* Form Layout */
.pqr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pqr-form-col-full {
  grid-column: 1 / -1;
}

.pqr-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pqr-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.pqr-label .req {
  color: #e11d48;
}

/* Input Fields (Defined 1.5px Borders & Clean Contrast) */
.pqr-input,
.pqr-select,
.pqr-textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid var(--pqr-border);
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}

.pqr-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.pqr-textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}

.pqr-input:hover,
.pqr-select:hover,
.pqr-textarea:hover {
  border-color: #94a3b8;
}

.pqr-input:focus,
.pqr-select:focus,
.pqr-textarea:focus {
  border-color: var(--pqr-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.pqr-hint {
  font-size: 12.5px;
  font-weight: 550;
  color: #1e293b;
}

/* File Upload Field */
.pqr-file-box {
  border: 1.5px dashed #94a3b8;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pqr-file-box:hover {
  border-color: var(--pqr-primary);
  background: #f0f9ff;
}

.pqr-file-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pqr-file-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pqr-file-inner svg {
  color: #64748b;
}

.pqr-file-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.pqr-file-sub {
  font-size: 12.5px;
  font-weight: 550;
  color: #334155;
}

.pqr-file-selected-name {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--pqr-emerald);
  margin-top: 4px;
  display: none;
}

/* Checkbox Habeas Data Container */
.pqr-check-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px solid var(--pqr-border);
  border-radius: 10px;
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.5;
}

.pqr-check-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pqr-emerald);
  cursor: pointer;
  flex-shrink: 0;
}

.pqr-check-group a {
  color: var(--pqr-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Submit Button */
.pqr-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: var(--pqr-emerald);
  border: 1.5px solid var(--pqr-emerald);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(8, 126, 105, 0.28);
  transition: all 0.2s ease;
}

.pqr-submit-btn:hover {
  background: var(--pqr-emerald-dark);
  border-color: var(--pqr-emerald-dark);
  transform: translateY(-1px);
}

.pqr-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Result / Confirmation Screen */
.pqr-result-wrap {
  display: none;
  animation: pqrFadeIn 0.3s ease-out;
}

.pqr-success-card {
  text-align: center;
  padding: 24px 16px;
}

.pqr-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--pqr-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid #a7f3d0;
}

.pqr-radicado-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1.5px solid var(--pqr-border);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.05em;
  color: #071d43;
  margin: 14px 0 18px;
  font-variant-numeric: tabular-nums;
}

.pqr-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ffffff;
  border: 1.5px solid var(--pqr-border);
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pqr-copy-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.pqr-info-summary {
  background: #f8fafc;
  border: 1.5px solid var(--pqr-border);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px auto 24px;
  max-width: 540px;
  text-align: left;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}

/* Consult Tab Form */
.pqr-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
  background: #f8fafc;
  border: 1.5px solid var(--pqr-border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
}

.pqr-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 750;
  color: #ffffff;
  background: var(--pqr-primary);
  border: 1.5px solid var(--pqr-primary);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}

.pqr-search-btn:hover {
  background: var(--pqr-primary-dark);
  border-color: var(--pqr-primary-dark);
}

/* Tracking Result Card */
.pqr-tracking-result {
  margin-top: 24px;
  display: none;
}

.pqr-track-card {
  border: 1.5px solid var(--pqr-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.pqr-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #071d43;
  color: #ffffff;
}

.pqr-track-radicado {
  font-size: 17px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
}

.pqr-track-body {
  padding: 24px;
}

.pqr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pqr-status-radicado { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.pqr-status-en_tramite { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.pqr-status-respondido { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pqr-status-cerrado { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.pqr-resolution-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-left: 4px solid var(--pqr-emerald);
  padding: 16px 18px;
  border-radius: 8px;
  margin-top: 18px;
}

/* Footer */
.pqr-footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 13.5px;
  color: #1e293b;
  border-top: 1.5px solid var(--pqr-border);
  background: #ffffff;
}

.pqr-footer a {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.pqr-footer a:hover {
  color: #0369a1;
}

/* Responsive Master Guidelines: 17px en Móvil & 100% Fluido */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .pqr-header {
    padding: 14px 16px;
  }

  .pqr-brand-text strong {
    font-size: 17px !important;
  }

  .pqr-nav-back {
    font-size: 15px !important;
    padding: 7px 12px;
  }

  .pqr-main {
    margin: 20px auto 40px;
    padding: 0 14px;
  }

  .pqr-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .pqr-section-box {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .pqr-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pqr-search-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .pqr-hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  /* Diego Zapata Mobile Rule: 17px Estricto en Textos, Párrafos, Controles e Inputs */
  .pqr-hero p,
  .pqr-legal-badge,
  .pqr-legal-badge span,
  .pqr-tab-btn,
  .pqr-tab-btn span,
  .pqr-section-title,
  .pqr-section-sub,
  .pqr-label,
  .pqr-input,
  .pqr-select,
  .pqr-select-primary,
  .pqr-textarea,
  .pqr-hint,
  .pqr-type-info-desc,
  .pqr-term-badge,
  .pqr-law-tag,
  .pqr-file-title,
  .pqr-file-sub,
  .pqr-file-selected-name,
  .pqr-check-group,
  .pqr-check-group label,
  .pqr-submit-btn,
  .pqr-submit-btn span,
  .pqr-search-btn,
  .pqr-search-btn span,
  .pqr-info-summary,
  .pqr-track-card,
  .pqr-track-body div,
  .pqr-track-body span,
  .pqr-track-body strong,
  .pqr-footer,
  .pqr-footer p,
  .pqr-footer a,
  .pqr-footer span {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  .pqr-input,
  .pqr-select,
  .pqr-select-primary {
    height: 48px !important;
  }

  .pqr-textarea {
    height: auto !important;
  }

  .pqr-submit-btn {
    height: 52px !important;
  }
}
