/* ==========================================================================
   Área Personal - Frits Mundial 26
   Hereda variables y fuentes de styles.css (:root, @font-face)
   ========================================================================== */

/* ---------- Variables locales (alias de styles.css) ---------- */
.area-personal-header,
.ticket-qr-card,
.area-personal-card {
  --ap-primary: var(--tph-rojo);
  --ap-primary-hover: #b51d14;
  --ap-accent: var(--tph-verde);
  --ap-dark: var(--tph-negro);
  --ap-gray: #666666;
  --ap-gray-light: #999999;
  --ap-white: var(--tph-blanco);
  --ap-secondary: var(--tph-azul);
  --ap-radius: 1rem;
  --ap-transition: all 0.2s ease;
}

/* ---------- Utilidades ---------- */
.font-medium {
  font-family: var(--tph-font-museo700), Arial, sans-serif;
}

.badge-estado {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* ---------- Botones ---------- */
.btn-promo {
  background-color: var(--tph-rojo);
  color: var(--tph-blanco);
  border-radius: 5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  font-family: var(--tph-font-museo700), Arial, sans-serif;
  transition: all 0.2s ease;
  border: none;
  box-shadow: none;
}

.btn-promo:hover {
  background-color: #b51d14;
  color: white;
}

.btn-outline-promo {
  color: var(--tph-rojo);
  border: 1px solid var(--tph-rojo);
  background-color: transparent;
  border-radius: 5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  font-family: var(--tph-font-museo700), Arial, sans-serif;
  transition: all 0.2s ease;
}

.btn-outline-promo:hover {
  background-color: var(--tph-rojo);
  color: white;
}

/* Botón Logout */
.btn-logout {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  font-family: var(--tph-font-museo700), Arial, sans-serif;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-logout:hover {
  background-color: #dc3545;
  color: white;
}

.btn-logout:focus,
.btn-logout:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.35);
  background-color: transparent;
  color: #dc3545;
}

.btn-logout:active,
.btn-logout.active {
  background-color: #bd2130;
  border-color: #b21f2d;
  color: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-logout:disabled,
.btn-logout.disabled {
  background-color: transparent;
  color: rgba(220, 53, 69, 0.5);
  border-color: rgba(220, 53, 69, 0.5);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.65;
}

/* ==========================================================================
   HEADER PÁGINA – area-personal-header (resumenParticipacion.php)
   ========================================================================== */
.area-personal-header {
  background: linear-gradient(145deg, var(--tph-negro), var(--tph-gris-oscuro));
  padding: 2.5rem 1.5rem;
  border-radius: var(--ap-radius);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.area-personal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.7;
}

.area-personal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  color: var(--tph-rojo);
}

.area-personal-title {
  font-family: var(--tph-font-burbank-bold), Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  color: var(--tph-negro);
}

.area-personal-subtitle {
  font-family: var(--tph-font-roboto-condensed), Arial, sans-serif;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: var(--tph-negro);
}

/* ==========================================================================
   TARJETAS DE SECCIÓN – area-personal-card (datos, regalo, contacto)
   ========================================================================== */
.area-personal-card {
  border-radius: var(--ap-radius);
  border: none;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.area-personal-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.area-personal-card-header {
  background-color: var(--tph-negro);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
}

.area-personal-card-header h2 {
  font-family: var(--tph-font-museo700), Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tph-blanco);
  margin-bottom: 0;
}

.area-personal-card-header i {
  color: var(--tph-rojo);
  font-size: 1.25rem;
}

.area-personal-card .card-body {
  padding: 1.5rem;
}

.area-personal-card .card-subtitle {
  color: var(--tph-gris-claro);
  font-size: 0.95rem;
}

/* ==========================================================================
   TARJETA TICKET / QR – ticket-qr-card (ticketQR, ticketDesktop, ticketEstados)
   ========================================================================== */
.ticket-qr-card {
  border-radius: var(--ap-radius);
  border: none;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.ticket-qr-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* Header de la tarjeta QR */
.ticket-qr-header {
  background: linear-gradient(145deg, var(--tph-negro), var(--tph-gris-oscuro));
  padding: 2rem 1.5rem;
  text-align: center;
  color: white;
  position: relative;
}

.ticket-qr-icon {
  font-size: 2.25rem;
  color: var(--tph-rojo);
  margin-bottom: 0.75rem;
}

.ticket-qr-title {
  font-family: var(--tph-font-burbank-bold), Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.4rem;
}

.ticket-qr-subtitle {
  font-family: var(--tph-font-roboto-condensed), Arial, sans-serif;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Separador */
.ticket-qr-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tph-rojo), transparent);
  margin: 0;
  opacity: 0.3;
}

/* Footer / alertas */
.ticket-qr-footer {
  padding: 1.25rem 1.5rem;
}

.ticket-qr-alert {
  border-radius: 0.75rem;
  border: none;
  background-color: rgba(227, 35, 24, 0.08);
  margin-bottom: 0;
}

.ticket-qr-alert i {
  color: var(--tph-rojo);
}

/* ==========================================================================
   PASOS – step-card (usado dentro de ticket-qr-steps)
   ========================================================================== */
.ticket-qr-steps {
  padding: 1.5rem;
}

.step-card {
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  border-color: var(--tph-rojo);
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--tph-rojo);
  color: white;
  border-radius: 50%;
  font-family: var(--tph-font-museo700), Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 auto 0.75rem;
  box-shadow: 0 3px 8px rgba(227, 35, 24, 0.3);
}

.step-card .step-icon {
  font-size: 1.75rem;
  color: var(--tph-rojo);
  margin-bottom: 0.75rem;
}

.step-card .step-title {
  font-family: var(--tph-font-museo700), Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tph-negro);
  margin-bottom: 0.4rem;
}

.step-card .step-description {
  font-size: 0.8rem;
  color: var(--tph-gris-claro);
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   SECCIÓN QR – ticket-qr-code-section (ticketQR.php)
   ========================================================================== */
.ticket-qr-code-section {
  padding: 2rem 1.5rem;
  background-color: #fafbfc;
}

.qr-code-wrapper {
  background: white;
  border-radius: var(--ap-radius);
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed rgba(227, 35, 24, 0.25);
  transition: all 0.3s ease;
}

.qr-code-wrapper:hover {
  border-color: var(--tph-rojo);
  box-shadow: 0 0.5rem 1.5rem rgba(227, 35, 24, 0.12);
  transform: translateY(-3px);
}

.qr-code-image {
  max-width: 240px;
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 1rem;
}

.qr-code-wrapper:hover .qr-code-image {
  transform: scale(1.03);
}

.qr-code-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--tph-negro);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-family: var(--tph-font-roboto-condensed), Arial, sans-serif;
  font-size: 0.8rem;
}

.qr-code-label i {
  color: var(--tph-rojo);
}

/* ==========================================================================
   SECCIÓN SUBIDA ARCHIVO – ticket-qr-upload-section (ticketDesktop, ticketMovil)
   ========================================================================== */
.ticket-qr-upload-section {
  padding: 1.5rem;
}

/* ==========================================================================
   ESTADOS DE TICKETS
   ========================================================================== */
.estado-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.estado-pendiente {
  background-color: rgba(255, 193, 7, 0.2);
  color: #9a7403;
}

.estado-aceptado {
  background-color: rgba(40, 167, 69, 0.2);
  color: #156637;
}

.estado-rechazado {
  background-color: rgba(220, 53, 69, 0.2);
  color: #a71d2a;
}

.estado-revisar {
  background-color: rgba(23, 162, 184, 0.2);
  color: #117a8b;
}

/* ==========================================================================
   ALERTAS PERSONALIZADAS
   ========================================================================== */
.ap-alert {
  border-radius: 0.75rem;
  border: none;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ap-alert:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.ap-alert::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 5px;
}

.ap-alert.alert-info {
  background-color: rgba(227, 35, 24, 0.08);
}

.ap-alert.alert-info::after {
  background-color: var(--tph-rojo);
}

.ap-alert.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
}

.ap-alert.alert-success::after {
  background-color: #28a745;
}

.ap-alert.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
}

.ap-alert.alert-warning::after {
  background-color: #ffc107;
}

.ap-alert.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
}

.ap-alert.alert-danger::after {
  background-color: #dc3545;
}

.ap-alert .alert-icon {
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.ap-alert.alert-info .alert-icon {
  color: var(--tph-rojo);
}

.ap-alert.alert-success .alert-icon {
  color: #28a745;
}

.ap-alert.alert-warning .alert-icon {
  color: #d39e00;
}

.ap-alert.alert-danger .alert-icon {
  color: #bd2130;
}

.ap-alert .alert-content {
  flex: 1;
}

.ap-alert .alert-content h4 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.ap-alert .alert-content .alert-message {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.ap-alert .alert-content .alert-timestamp {
  display: block;
  color: var(--tph-gris-claro);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.ap-alert .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.ap-alert .btn-close:hover {
  opacity: 1;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.pulse-icon {
  animation: pulse 2s infinite;
}

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

/* ==========================================================================
   PASOS EN LISTA VERTICAL
   ========================================================================== */
.steps-list {
  position: relative;
}

.steps-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 18px;
  width: 2px;
  background: var(--tph-rojo);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--tph-rojo);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(227, 35, 24, 0.25);
}

.step-content {
  flex: 1;
  padding-top: 3px;
}

/* Pasos horizontales */
.horizontal-steps {
  position: relative;
  margin-bottom: 2rem;
}

.horizontal-steps .step-item {
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.horizontal-steps .step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--tph-rojo);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(227, 35, 24, 0.25);
}

.horizontal-steps .step-content {
  flex: 1;
}

/* ==========================================================================
   TIMELINE DE ESTADO
   ========================================================================== */
.estado-timeline {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.estado-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e9ecef;
  z-index: 1;
}

.estado-timeline .timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.estado-timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.estado-timeline .timeline-dot {
  position: absolute;
  left: -2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--tph-gris-claro);
  z-index: 2;
}

.estado-timeline .timeline-item.active .timeline-dot {
  background-color: var(--tph-rojo);
  box-shadow: 0 0 0 4px rgba(227, 35, 24, 0.2);
}

.estado-timeline .timeline-item.completed .timeline-dot {
  background-color: #28a745;
}

.estado-timeline .timeline-content {
  padding: 0.5rem 0;
}

.estado-timeline .timeline-content h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.estado-timeline .timeline-content p {
  color: var(--tph-gris-claro);
  margin-bottom: 0;
}

.estado-timeline .timeline-date {
  font-size: 0.75rem;
  color: var(--tph-gris-claro);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   LOADER COMPROBACIÓN TICKET
   ========================================================================== */
.loader-ticket {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(227, 35, 24, 0.3);
  border-radius: 50%;
  border-top-color: var(--tph-rojo);
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

.checking-ticket {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--tph-gris-claro);
  margin-top: 1rem;
}

/* Indicador de estado de subida (polling) */
.upload-status-indicator {
  background-color: rgba(227, 35, 24, 0.08);
  border: 1px solid rgba(227, 35, 24, 0.2);
  color: var(--tph-negro);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  text-align: center;
  margin: 1rem auto;
  max-width: 500px;
  font-size: 0.9rem;
}

.upload-status-indicator.status-success {
  background-color: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.upload-status-indicator.status-warning {
  background-color: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.2);
  color: #856404;
}

/* =========================
   Upload area (componente uploadArea.php)
   ========================= */
.upload-area-wrapper {
  position: relative;
  width: 100%;
  min-height: 320px;
}

.upload-placeholder {
  display: block;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border: 3px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.upload-placeholder:hover {
  border-color: rgba(255, 193, 7, 0.6);
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.upload-placeholder:active {
  transform: translateY(0);
}

.upload-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.upload-icon-container {
  position: relative;
  display: inline-block;
}

.upload-cloud-icon {
  width: 80px;
  height: 80px;
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  animation: float 3s ease-in-out infinite;
}

.upload-arrow {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 2rem;
  color: #ffc107;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.upload-title {
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.upload-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.upload-hint {
  font-size: 0.85rem;
}

.upload-preview {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f9fa;
  position: relative;
}

.preview-container {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
}

.btn-remove-preview {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #dc3545;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.btn-remove-preview:hover {
  color: #bb2d3b;
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.upload-placeholder.drag-over {
  border-color: #ffc107;
  background: linear-gradient(135deg, #3d5266 0%, #4a5f7a 100%);
  transform: scale(1.02);
}

@media (max-width: 576px) {
  .upload-placeholder {
    padding: 1.5rem 1rem;
    min-height: 280px;
  }

  .upload-cloud-icon {
    width: 60px;
    height: 60px;
  }

  .upload-title {
    font-size: 1.25rem;
  }

  .upload-subtitle {
    font-size: 1rem;
  }
}

/* ==========================================================================
   SEGUIMIENTO DE ENVÍO
   ========================================================================== */
.seguimiento-envio {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.seguimiento-envio .card {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.seguimiento-envio .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.seguimiento-envio i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seguimiento-envio .btn-outline-primary {
  border-color: var(--tph-rojo);
  color: var(--tph-rojo);
  transition: all 0.2s ease;
}

.seguimiento-envio .btn-outline-primary:hover {
  background-color: var(--tph-rojo);
  color: white;
}

.seguimiento-envio .btn-outline-success {
  border-color: #28a745;
  color: #28a745;
  transition: all 0.2s ease;
}

.seguimiento-envio .btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}

.seguimiento-envio .d-flex.gap-2 {
  gap: 0.5rem !important;
}

/* Timeline de seguimiento */
.timeline-seguimiento {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline-seguimiento::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e9ecef;
  z-index: 1;
}

.timeline-seguimiento .timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-seguimiento .timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-seguimiento .timeline-marker {
  position: absolute;
  left: -2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--tph-rojo);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(227, 35, 24, 0.1);
}

.timeline-seguimiento .timeline-item:first-child .timeline-marker {
  background-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.timeline-seguimiento .timeline-content {
  background-color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.timeline-seguimiento .timeline-content:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.timeline-seguimiento .timeline-item:nth-child(odd) .timeline-content {
  border-left: 3px solid var(--tph-rojo);
}

.timeline-seguimiento .timeline-item:nth-child(even) .timeline-content {
  border-left: 3px solid var(--tph-verde);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 767.98px) {
  .area-personal-header {
    padding: 1.75rem 1rem;
  }

  .area-personal-title {
    font-size: 1.35rem;
  }

  .ticket-qr-header {
    padding: 1.5rem 1rem;
  }

  .ticket-qr-title {
    font-size: 1.25rem;
  }

  .ticket-qr-steps {
    padding: 1rem;
  }

  .step-card {
    padding: 1rem 0.75rem;
  }

  .ticket-qr-code-section {
    padding: 1.25rem 1rem;
  }

  .qr-code-image {
    max-width: 180px;
  }

  .horizontal-steps .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .horizontal-steps .step-content h6 {
    font-size: 0.95rem;
  }
}
