/* ==============================================================================
   SEGMIN — RECLUTAMIENTO MINERO 2026
   Design System: Clean Light Swiss Modern 2026
   Primary Palette: Cobalt Blue (#1e3a8a), Pure White (#ffffff), Slate Slate (#f8fafc / #e2e8f0)
   ============================================================================== */

:root {
  --color-primary: #1e3a8a;
  --color-primary-hover: #1e40af;
  --color-primary-light: #eff6ff;
  --color-accent: #d97706;
  --color-accent-light: #fef3c7;
  --color-success: #059669;
  --color-success-light: #ecfdf5;
  --color-danger: #dc2626;
  --color-danger-light: #fef2f2;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ea952;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Announcement Top Bar */
.announcement-bar {
  background: var(--color-primary-light);
  border-bottom: 1px solid #dbeafe;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Navbar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  font-size: 1.8rem;
  line-height: 1;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1.1;
}

.badge-convocatoria {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
}

.pulse-point {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e3a8a;
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}

.btn-secondary-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary-nav:hover {
  background: #dcfce7;
  border-color: #86efac;
}

/* Main Content */
.main-wrapper {
  padding-bottom: 4rem;
}

/* Compact Hero Strip & Sliding Ticker (Optimización Móvil) */
.compact-hero-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 0.45rem 0;
}

.compact-strip-container {
  display: flex;
  flex-direction: column;
}

/* Sliding Ticker Marquee Continuo */
.ticker-box {
  width: 100%;
  overflow: hidden;
  background: var(--color-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0.85rem;
  animation: tickerSlide 28s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-pill {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.ticker-dot {
  color: #93c5fd;
  font-size: 0.8rem;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stepper Section Compacto */
.stepper-section {
  padding: 1rem 0 0.5rem;
}

.stepper-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-label-box {
  display: flex;
  flex-direction: column;
}

.step-number {
  font-size: 0.675rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.step-name {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-item.active .step-name {
  color: var(--color-primary);
}

.step-item.completed .step-name {
  color: var(--color-success);
}

/* Form Container & Card */
.form-section {
  margin-top: 1rem;
}

.form-container {
  max-width: 680px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

/* Stepper Indicator */
.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-indicator.active .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
}

.step-indicator.completed .step-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #ffffff;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.step-indicator.active .step-label {
  color: var(--color-primary);
}

.step-indicator.completed .step-label {
  color: var(--color-success);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 0.5rem -1rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-connector.completed {
  background: var(--color-success);
}

/* Step Content */
.form-step {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: block;
}

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

.step-title-box {
  margin-bottom: 1.5rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: var(--color-danger);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  font-size: 1.1rem;
  pointer-events: none;
  color: var(--text-muted);
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-select {
  padding-left: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.2rem;
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input.error, .form-select.error {
  border-color: var(--color-danger);
  background-color: var(--color-danger-light);
}

.error-msg {
  display: none;
  font-size: 0.775rem;
  color: var(--color-danger);
  font-weight: 500;
  margin-top: 0.35rem;
}

.error-msg.visible {
  display: block;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* WhatsApp Prefix Input */
.prefix-wrapper {
  position: relative;
  display: flex;
}

.input-prefix {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input.with-prefix {
  padding-left: 5rem;
}

/* Role Cards Grid (Paso 2) */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.role-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card-inner {
  padding: 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
}

.role-card:hover .role-card-inner {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.role-card input[type="radio"]:checked + .role-card-inner {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.role-icon {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.role-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.role-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Radio Pill Group */
.radio-pill-group {
  display: flex;
  gap: 0.75rem;
}

.radio-pill {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: block;
  text-align: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
}

.radio-pill input[type="radio"]:checked + span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* Dropzone (Paso 3) */
.file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.25rem;
  position: relative;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.file-input-hidden {
  display: none;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.dropzone-link {
  color: var(--color-primary);
  text-decoration: underline;
}

.dropzone-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* File Preview Inside Dropzone */
.file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.file-preview-icon {
  font-size: 1.5rem;
}

.file-preview-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
}

.file-preview-size {
  font-size: 0.75rem;
  color: var(--text-light);
}

.btn-remove-file {
  background: none;
  border: none;
  color: var(--color-danger);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: var(--transition);
}

.btn-remove-file:hover {
  background: var(--color-danger-light);
}

/* Info Alert */
.info-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  color: #166534;
  margin-bottom: 1.25rem;
}

.info-alert .alert-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Summary Box */
.summary-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Buttons & Step Actions */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.25);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-submit {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* SUCCESS CARD */
.success-card {
  text-align: center;
  padding: 1.5rem 0.5rem;
  animation: fadeIn 0.4s ease;
}

.success-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--color-success);
  border: 3px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.success-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.interview-callout {
  background: var(--color-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.callout-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.time-slots-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slot-badge {
  background: var(--bg-card);
  border: 1px solid #93c5fd;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.whatsapp-prompt-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-whatsapp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  padding: 0.95rem 1.5rem;
  background: var(--color-whatsapp);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.btn-whatsapp-action:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

.btn-text-restart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 0;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-webhook-config {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.webhook-drawer {
  background: #f1f5f9;
  border-top: 1px solid var(--border-light);
  padding: 0.85rem 0;
  margin-top: 1rem;
}

.drawer-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ==============================================================================
   NUEVOS COMPONENTES: MODALIDADES, LOGO SEGMIN, CARTA PASE & CHECKLIST EXPEDIENTE
   ============================================================================== */

/* Brand Logo */
.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-whatsapp-header:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.text-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

.input-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Modalidad Grid & Cards */
.modalidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 0.5rem;
}

.modalidad-card {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: var(--transition);
  overflow: hidden;
}

.modalidad-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modalidad-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.modalidad-card.active,
.modalidad-card:has(input:checked) {
  border-color: var(--color-primary);
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.modalidad-card-inner {
  padding: 1.25rem;
}

.modalidad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.modalidad-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-formal {
  background: #dbeafe;
  color: #1e40af;
}

.badge-artesanal {
  background: #fef3c7;
  color: #92400e;
}

.modalidad-icon {
  font-size: 1.75rem;
}

.modalidad-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.modalidad-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.modalidad-features {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.85rem;
}

.modalidad-features li strong {
  color: var(--color-primary);
}

/* Carta Pase Card */
.carta-pase-card {
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.carta-pase-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.carta-pase-icon {
  font-size: 1.6rem;
}

.carta-pase-title {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.2rem;
}

.carta-pase-subtitle {
  font-size: 0.825rem;
  color: #b45309;
}

.carta-pase-conditional {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #fde68a;
  animation: fadeIn 0.3s ease;
}

.alert-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

/* Docs Grid & Upload Cards */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.doc-upload-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.doc-upload-card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
}

.doc-upload-header {
  margin-bottom: 0.85rem;
}

.doc-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.45rem;
}

.doc-badge.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.doc-badge.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

.doc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.doc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Summary Details Card */
.summary-details-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.summary-details-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.summary-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.item-val {
  font-size: 0.925rem;
  color: var(--text-main);
}

.item-val.text-primary {
  color: var(--color-primary);
}

.item-val.text-accent {
  color: var(--color-accent);
}

/* Checklist Card */
.checklist-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.checklist-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.checklist-subtitle {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  transition: var(--transition);
}

.checklist-row.status-ready {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.checklist-row.status-pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.chk-status-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.chk-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chk-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.chk-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chk-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-ready {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-optional {
  background: #f1f5f9;
  color: #64748b;
}

/* Footer Brand Box */
.footer-brand-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Responsiveness */
@media (max-width: 640px) {
  .modalidad-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .summary-details-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .form-card {
    padding: 1.5rem 1rem;
  }
  
  .grid-2-cols {
    grid-template-columns: 1fr;
  }
  
  .role-grid {
    grid-template-columns: 1fr;
  }
  
  .stepper-header {
    margin-bottom: 1.5rem;
  }
  
  .step-label {
    display: none;
  }
  
  .nav-actions {
    display: none;
  }
}

/* ==============================================================================
   NUEVOS ESTILOS: BOTONES DE INCÓGNITA (?), MODALES, DNI DUAL Y CALENDARIO
   ============================================================================== */

/* Contenedor de label con botón de ayuda (?) */
.label-with-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.label-with-hint .form-label {
  margin-bottom: 0;
}

/* Botón interactivo de incógnita (?) */
.hint-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(30, 58, 138, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.hint-trigger-btn:hover,
.hint-trigger-btn:focus {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: scale(1.12);
  outline: none;
}

/* Badge de puesto único */
.badge-single-post {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fde68a;
}

/* Badges de obligatoriedad para dropzones */
.badge-obligatorio {
  background: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 700 !important;
  border: 1px solid #fecaca;
}

.badge-recomendado {
  background: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 600 !important;
  border: 1px solid #fde68a;
}

.badge-condicional {
  background: #e0e7ff !important;
  color: #3730a3 !important;
  font-weight: 600 !important;
  border: 1px solid #c7d2fe;
}

/* Selector de Modo de DNI (PDF vs Fotos) */
.dni-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  background: var(--bg-surface-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.dni-tab-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.dni-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .dni-dual-grid {
    grid-template-columns: 1fr;
  }
}

.dni-photo-subcard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.subcard-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.mini-dropzone {
  min-height: 120px !important;
  padding: 1rem 0.5rem !important;
}

.mini-dropzone .dropzone-icon {
  font-size: 1.5rem !important;
}

.mini-dropzone .dropzone-text {
  font-size: 0.8rem !important;
}

/* Desplegable de fecha en calendario */
.fecha-viaje-box {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed #cbd5e1;
  animation: fadeIn 0.25s ease;
}

/* Modal de Ayuda Contextual (?) */
.hint-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.hint-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hint-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}

.hint-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hint-modal-icon {
  font-size: 1.35rem;
}

.hint-modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.hint-modal-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hint-modal-close:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.hint-modal-body {
  padding: 1.35rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.6;
  max-height: 65vh;
  overflow-y: auto;
}

.hint-modal-body p {
  margin-bottom: 0.75rem;
}

.hint-modal-body ol,
.hint-modal-body ul {
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
}

.hint-modal-body li {
  margin-bottom: 0.4rem;
}

.hint-modal-footer {
  padding: 0.9rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Botón de contingencia para WhatsApp */
.btn-whatsapp-contingency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-whatsapp);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-contingency:hover {
  background: var(--color-whatsapp-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

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

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

/* Box de cuenta regresiva y redirección a WhatsApp IA */
.redirect-countdown-box {
  background: var(--color-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin: 0.85rem auto 0;
  max-width: 420px;
}

.redirect-countdown-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

#countdownSecs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  animation: pulseCountdown 1s infinite alternate;
}

@keyframes pulseCountdown {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* ==============================================================================
   FICHA DE RESUMEN DEL EXPEDIENTE Y DOBLE ACCIÓN DE ENVÍO
   ============================================================================== */

.summary-receipt-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0 1.25rem;
  text-align: left;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.receipt-badge {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.receipt-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}

@media (max-width: 640px) {
  .receipt-grid {
    grid-template-columns: 1fr;
  }
}

.receipt-item {
  display: flex;
  flex-direction: column;
}

.receipt-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.receipt-value {
  font-size: 0.9rem;
  color: var(--text-main);
  word-break: break-word;
}

/* Pre-mensaje Formateado */
.preview-msg-card {
  background: #ffffff;
  border: 1px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.preview-msg-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.preview-msg-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #334155;
  white-space: pre-wrap;
  user-select: all;
}

/* Acciones de Doble Botón */
.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-copy-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-preview:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-copy-preview.copied {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.screenshot-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  text-align: center;
}

/* ==============================================================================
   BANNER INSTITUCIONAL: CONFIANZA, CERO COBROS, ANTI-DUPLICADOS Y FACEBOOK OFICIAL
   ============================================================================== */

/* Header Botón Facebook */
.btn-facebook-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-facebook-header:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

/* Banner de Confianza y Anti-Duplicados */
.institutional-trust-banner {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trust-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.trust-badge-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.03em;
}

.trust-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .trust-banner-grid {
    grid-template-columns: 1fr;
  }
}

.trust-card-item {
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
}

.trust-card-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.trust-card-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.trust-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.trust-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.trust-card-warning .trust-item-title {
  color: #92400e;
}

.trust-card-success .trust-item-title {
  color: #166534;
}

.trust-item-text {
  font-size: 0.825rem;
  line-height: 1.5;
  color: #334155;
  margin: 0;
}

.trust-social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.social-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.social-btn-facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.835rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn-facebook:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

/* Footer Facebook Badge */
.footer-fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.footer-fb-badge:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}


