/* ============================================
   SISTEMA DOCUMENTAL DE QUEJAS - ESTILOS GLOBALES
   Archivo compartido para todas las vistas públicas
   ============================================ */

/* === BODY & CONTAINER === */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    padding: 40px 0;
}

.container {
    max-width: 900px;
}

/* === CARDS === */
.form-card,
.result-card,
.track-card,
.success-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 54, 118, 0.15);
    margin-bottom: 30px;
}

.success-card {
    padding: 50px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.track-card {
    padding: 50px 40px;
    max-width: 550px;
    width: 100%;
}

.complaint-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 54, 118, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.complaint-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 54, 118, 0.2);
    border-color: #003676;
}

.complaint-card.identified {
    border-left: 5px solid #28a745;
}

.complaint-card.identified .complaint-icon {
    color: #28a745;
}

.complaint-card.anonymous {
    border-left: 5px solid #6c757d;
}

.complaint-card.anonymous .complaint-icon {
    color: #6c757d;
}

/* === HEADERS === */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #003676;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.page-header .subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-header .icon {
    font-size: 4rem;
    color: #003676;
    margin-bottom: 20px;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.complaint-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* === BADGES === */
.badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    font-weight: 500;
}

.anonymous-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.status-badge {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.status-recibida {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.status-en_revision {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.status-en_investigacion {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
    color: white;
}

.status-resuelta {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-cerrada {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.priority-badge {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.priority-urgente {
    background: #dc3545;
    color: white;
}

.priority-alta {
    background: #dc3545;
    color: white;
}

.priority-media {
    background: #ffc107;
    color: #000;
}

.priority-baja {
    background: #28a745;
    color: white;
}

/* === ALERTS & INFO BOXES === */
.info-alert {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.security-alert {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-box {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

.info-box.light {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 20px;
    color: #495057;
}

.info-box h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.info-box p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
}

.info-box.light h5 {
    color: #003676;
}

/* === FORMS === */
.form-label {
    font-weight: 600;
    color: #003676;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #003676;
    box-shadow: 0 0 0 0.2rem rgba(0, 54, 118, 0.15);
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.required-mark {
    color: #dc3545;
}

/* === TRACKING CODE === */
.tracking-code {
    font-size: 2rem;
    font-weight: 700;
    color: #003676;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.code-box {
    background: linear-gradient(135deg, #003676 0%, #1a4480 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0, 54, 118, 0.3);
}

.code-box h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tracking-code-wrapper {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.code-box .tracking-code {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    user-select: all;
    word-break: break-all;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.track-card .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
}

.track-card .form-control:focus {
    border-color: #003676;
    box-shadow: 0 0 0 0.2rem rgba(0, 54, 118, 0.15);
    transform: translateY(-2px);
}

.track-card .form-control::placeholder {
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
}

.example-code {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #495057;
    letter-spacing: 2px;
}

/* === BUTTONS === */
.btn-submit,
.btn-track {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.btn-submit:hover,
.btn-track:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
}

.btn-track {
    width: 100%;
    background: linear-gradient(135deg, #003676 0%, #1a4480 100%);
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 20px;
}

.btn-track:hover {
    box-shadow: 0 10px 30px rgba(0, 54, 118, 0.4);
}

.btn-back {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-complaint {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-identified {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

.btn-identified:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-anonymous {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
}

.btn-anonymous:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #003676 0%, #1a4480 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 54, 118, 0.3);
    margin: 0 5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 54, 118, 0.4);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.copy-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.copy-button:hover {
    background: white;
    color: #003676;
}

/* === FILE UPLOAD === */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #003676;
    background: #f8f9fa;
}

.file-upload-area.dragover {
    border-color: #003676;
    background: #e7f3ff;
}

/* === FEATURES LIST === */
.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features li {
    padding: 8px 0;
    color: #495057;
}

.features li i {
    color: #003676;
    margin-right: 10px;
    width: 20px;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #003676;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #003676;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* === INFO ROWS === */
.info-row {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #003676;
    margin-bottom: 5px;
}

.info-value {
    color: #495057;
}

/* === RESPONSE BOX === */
.response-box {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.response-box h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* === NEXT STEPS === */
.next-steps {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin: 25px 0;
}

.next-steps h5 {
    color: #003676;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.next-steps ol {
    margin-bottom: 0;
    padding-left: 20px;
    color: #495057;
}

.next-steps li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.identified-info {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
}

.identified-info h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* === MISC === */
.category-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.char-counter {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.error {
    color: #dc3545;
}

.help-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 10px;
}

.track-link {
    text-align: center;
    margin-top: 30px;
}

.track-link a {
    color: #003676;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.track-link a:hover {
    color: #1a4480;
    text-decoration: underline;
}

.action-buttons {
    margin-top: 30px;
}

/* === SUCCESS ICON ANIMATION === */
.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 576px) {
    body {
        padding: 20px 0;
    }
    
    .form-card,
    .result-card,
    .track-card,
    .success-card {
        padding: 25px 20px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .tracking-code {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .code-box .tracking-code {
        font-size: 1.5rem;
        letter-spacing: 4px;
        padding: 15px 8px;
    }
    
    .complaint-card {
        padding: 20px;
    }
    
    .btn-submit,
    .btn-track {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

/* === DISPLAY FLEX FOR CENTERING === */
body.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
