/* ==========================================================================
   ALCALDÍA DE GIRARDOTA - IDENTIDAD VISUAL EMPRINN 2026
   Subsecretaría de Tecnología e Innovación
   Diseño limpio, moderno, institucional y responsive
   ========================================================================== */

:root {
  --color-primary: #006837;       /* Verde Institucional Girardota */
  --color-primary-dark: #004d28;  /* Verde Oscuro */
  --color-primary-light: #e8f5e9; /* Verde Fondo Suave */
  --color-accent: #f59e0b;        /* Dorado / Acento Innovación */
  --color-accent-dark: #d97706;
  --color-secondary: #0f172a;     /* Texto Primario */
  --color-muted: #64748b;         /* Texto Secundario */
  --color-bg: #f8fafc;            /* Fondo Base */
  --color-card: #ffffff;          /* Fondo Tarjeta */
  --color-border: #e2e8f0;        /* Bordes */
  --color-danger: #dc2626;        /* Errores */
  --color-success: #16a34a;       /* Éxito */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-secondary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Encabezado Institucional Limpio */
.brand-logos-section {
  background: #ffffff;
  border-bottom: 3px solid var(--color-primary);
  padding: 24px 0 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.brand-logos-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.brand-logo-img {
  height: 95px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.subsecretaria-header-title {
  margin-top: 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .brand-logo-img { height: 75px; }
  .subsecretaria-header-title { font-size: 0.95rem; }
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(0, 104, 55, 0.95), rgba(0, 60, 30, 0.95)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0l30 30-30 30L0 30z" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1.5"/></svg>');
  color: #ffffff;
  padding: 44px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent), #ffd166, var(--color-accent));
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #d1fae5;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1rem;
  color: #f1f5f9;
  line-height: 1.6;
  max-width: 740px;
  margin: 0 auto 24px;
}

/* Insignia de 15 cupos */
.cupos-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: var(--color-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.cupos-number {
  background: var(--color-accent);
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
}

/* Contenedor Principal */
.main-wrapper {
  max-width: 900px;
  margin: -24px auto 40px;
  padding: 0 16px;
  width: 100%;
  position: relative;
  z-index: 10;
  flex: 1;
}

/* Tarjeta de Avisos Importantes */
.notice-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--color-primary);
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.92rem;
}

.notice-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Stepper / Wizard de Progreso */
.stepper-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stepper-progress-bar {
  position: absolute;
  top: 36px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.stepper-progress-fill {
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.35s ease;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  cursor: pointer;
  flex: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 8px;
  transition: all 0.25s ease;
}

.step-item.active .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 104, 55, 0.2);
}

.step-item.completed .step-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  display: block;
}

.step-item.active .step-label {
  color: var(--color-primary);
  font-weight: 700;
}

/* Tarjeta del Formulario */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.form-step-content {
  display: none;
  padding: 32px 36px;
}

.form-step-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.step-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.step-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.step-subheading {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Campos del Formulario */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.form-label .req {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 4px;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio buttons & Checkboxes estilizados */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  margin-top: 4px;
  margin-right: 12px;
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.option-card.selected {
  background: #f0fdf4;
  border-color: var(--color-primary);
}

.option-text {
  font-size: 0.92rem;
  color: #334155;
  font-weight: 500;
}

/* Drag and Drop File Upload */
.file-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.file-upload-box:hover, .file-upload-box.dragover {
  border-color: var(--color-primary);
  background: #f0fdf4;
}

.file-upload-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.file-upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.file-upload-hint {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 4px;
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-selected-name {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  display: none;
  word-break: break-all;
}

/* Cuadro de Tratamiento de Datos */
.legal-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: 160px;
  overflow-y: auto;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
}

.legal-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 600;
  cursor: pointer;
}

.legal-consent-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* Botones de Navegación */
.form-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(0, 104, 55, 0.25);
}

.btn-secondary {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Alertas de error / éxito */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Footer Institucional */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 20px 24px;
  font-size: 0.88rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid #334155;
  padding-bottom: 24px;
}

.footer-copy {
  max-width: 1100px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .stepper-nav { display: none; } /* En móvil simplificamos el stepper */
  .mobile-step-indicator { display: block !important; }
  .form-step-content { padding: 22px 18px; }
  .form-step-actions { padding: 18px; flex-direction: column-reverse; gap: 10px; }
  .form-step-actions .btn { width: 100%; }
}

.mobile-step-indicator {
  display: none;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  border-left: 4px solid var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}
