/* Style Sheet for TUCM PQRS System */
:root {
    --primary: #0e8a4d;        /* Verde Corporativo Elegante */
    --primary-light: #16a35f;
    --primary-dark: #095f34;
    --accent: #facc15;         /* Amarillo Dorado Corporativo */
    --accent-dark: #eab308;
    --text-main: #0f172a;      /* Slate 900 */
    --text-muted: #475569;     /* Slate 600 */
    --bg-gradient: linear-gradient(135deg, #0e8a4d 0%, #1e5236 100%);
    --card-bg: rgba(255, 255, 255, 0.88);
    --border-color: rgba(14, 138, 77, 0.12);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(14, 138, 77, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(14, 138, 77, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: #f1f5f9;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Fondo decorativo */
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 138, 77, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(250, 204, 21, 0.08) 0px, transparent 50%);
}

/* Header */
.main-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(14, 138, 77, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.03);
}

.btn-admin-login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-admin-login:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 138, 77, 0.2);
}

/* Main Layout */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Tarjetas Base con Glassmorphism */
.welcome-card, .wizard-card, .tracking-card, .success-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Pantalla de Bienvenida */
.welcome-card {
    text-align: center;
    padding: 50px 40px;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.slogan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 138, 77, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(14, 138, 77, 0.15);
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.action-btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-action {
    background: var(--bg-gradient);
    color: #ffffff;
}

.primary-action .action-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.primary-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 138, 77, 0.3);
}

.secondary-action {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.secondary-action .action-icon {
    background: rgba(14, 138, 77, 0.08);
    color: var(--primary);
}

.secondary-action:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition);
}

.action-text strong {
    font-size: 1.15rem;
    display: block;
    margin-bottom: 4px;
}

.action-text small {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Wizard Wizard */
.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--primary);
}

.progress-container {
    flex: 1;
    max-width: 250px;
    text-align: right;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

.step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Grupos y Controles de Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.req {
    color: #ef4444;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    transition: var(--transition);
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 40px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 138, 77, 0.15);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Estilo para los Select */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

select {
    appearance: none;
    padding-right: 35px;
}

/* Tarjetas Opción (Paso 1) */
.options-group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: block;
    cursor: pointer;
    width: 100%;
}

.option-card input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--primary);
    background: rgba(14, 138, 77, 0.04);
    box-shadow: var(--shadow-sm);
}

.option-card:hover .option-content {
    border-color: var(--primary-light);
}

.opt-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.option-card input[type="radio"]:checked + .option-content .opt-icon {
    background: var(--primary);
    color: var(--accent);
}

.opt-txt strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.opt-txt small {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* File Upload */
.file-upload-box {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

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

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

.file-name-text {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Consentimiento */
.consent-box {
    background: rgba(14, 138, 77, 0.04);
    border: 1px solid rgba(14, 138, 77, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.consent-shield {
    font-size: 2.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.consent-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.consent-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.consent-option-card {
    cursor: pointer;
}

.consent-option-card input[type="radio"] {
    display: none;
}

.consent-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.consent-option-card input[type="radio"]:checked + .consent-btn-content {
    border-color: var(--primary);
    background: rgba(14, 138, 77, 0.04);
}

.text-success { color: #10b981; }
.text-danger { color: #ef4444; }

/* Resumen del Radicado (Paso 6) */
.summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.sum-label {
    font-weight: 600;
    color: var(--text-muted);
}

.sum-value {
    color: var(--text-main);
    font-weight: 500;
}

.submit-warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Wizard Footer Buttons */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--bg-gradient);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(14, 138, 77, 0.2);
}

.btn-primary:hover {
    opacity: 0.95;
    box-shadow: 0 6px 16px rgba(14, 138, 77, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-muted);
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #cbd5e1;
    color: var(--text-main);
}

/* Consulta / Seguimiento */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.track-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.track-search-box input {
    flex: 1;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Resultado de Consulta */
.track-result-container {
    animation: fadeIn 0.4s ease-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.result-code {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.status-nuevo { background: #dbeafe; color: #1e40af; }
.status-verificado { background: #fef3c7; color: #92400e; }
.status-asignado { background: #e0f2fe; color: #075985; }
.status-en_tratamiento { background: #fef08a; color: #854d0e; }
.status-cerrado { background: #d1fae5; color: #065f46; }
.status-vencido { background: #fee2e2; color: #991b1b; }

.timeline-tracker {
    position: relative;
    padding-left: 24px;
    margin-bottom: 24px;
}

.timeline-tracker::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 2px;
    height: calc(100% - 12px);
    background: #cbd5e1;
}

.timeline-step {
    position: relative;
    padding-bottom: 20px;
}

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

.timeline-step::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px #f1f5f9;
}

.timeline-step.completed::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 138, 77, 0.2);
}

.timeline-step.current::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
}

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

.timeline-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.response-box {
    background: rgba(14, 138, 77, 0.04);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 14px;
}

.response-box h4 {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.response-box p {
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Pantalla de Éxito */
.success-card {
    text-align: center;
    padding: 50px 40px;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: scaleUp 0.5s ease-out;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.success-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.tracking-code-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px;
    max-width: 350px;
    margin: 0 auto 30px;
}

.tracking-code-display small {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.code-box {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 4px;
    margin: 12px 0;
    font-family: monospace;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

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

.email-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Footer */
.main-footer {
    background: #ffffff;
    border-top: 1px solid rgba(14, 138, 77, 0.08);
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-slogan {
    margin-top: 4px;
    font-weight: 600;
    color: var(--primary);
}

/* Utilidades de animación y visualización */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
