.reclamos-form-container {
    max-width: 720px;
    min-width: 360px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #dc3545;
    box-sizing: border-box;
}

.reclamos-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

.form-group label,
.form-group input,
.form-group select,
.form-group textarea,
.form-group small,
.form-group button {
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { 
    border-color: #dc3545; 
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
    background-color: #fffcfc;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.button-primary {
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100% !important;
}

.button-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
}

.reclamos-mensaje { 
    width: 100%; 
    box-sizing: border-box; 
}

#btn_consultar_reniec, 
#btn_consultar_sunat { 
    width: 100%; 
}

@media (max-width: 1024px) {
    .reclamos-form-container { 
        width: 100%; 
        max-width: 100%; 
        margin: 20px; 
        padding: 20px; 
    }
    .form-row { 
        flex-direction: column; 
        gap: 16px; 
    }
    #btn_consultar_reniec, 
    #btn_consultar_sunat { 
        width: 100%; 
    }
}

@media (max-width: 768px) {
    .reclamos-form-container { 
        padding: 24px; 
        margin: 20px 15px; 
        border-radius: 8px; 
    }
}

.numero-documento-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
    box-sizing: border-box;
}

.numero-documento-row input[type="text"],
.numero-documento-row input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.numero-documento-row .btn-half {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 12px 10px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .numero-documento-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .numero-documento-row .btn-half {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

#btn_consultar_reniec {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: 0.3s ease !important;
}

#btn_consultar_reniec:hover:not(:disabled) {
    background: #c82333 !important;
}

#btn_consultar_reniec:disabled {
    background: #e57368 !important;
    cursor: not-allowed !important;
}

#btn_consultar_sunat {
    background: #bd2130 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: 0.3s ease !important;
}

#btn_consultar_sunat:hover:not(:disabled) {
    background: #a71d2a !important;
}

#btn_consultar_sunat:disabled {
    background: #d9757f !important;
    cursor: not-allowed !important;
}

.numero-documento-row .btn-half {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    text-align: center;
}

.reclamos-reclamos-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff5f5;
    border-radius: 8px;
}

.reclamos-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dc3545;
}

.reclamos-header h2 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 28px;
}

.reclamos-header p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.reclamos-reclamos-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.reclamos-reclamos-form .form-group {
    margin-bottom: 20px;
}

.reclamos-reclamos-form label {
    display: block;
    margin-bottom: 8px;
    color: #1d2327;
    font-weight: 600;
    font-size: 14px;
}

.reclamos-reclamos-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.reclamos-reclamos-form input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.reclamos-reclamos-form .button {
    width: 100%;
    padding: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reclamos-reclamos-form .button:hover {
    background: #c82333;
}

.reclamos-resultado {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resultado-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.resultado-item {
    display: flex;
    flex-direction: column;
}

.resultado-item .label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.resultado-item .valor {
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

.resultado-solicitante,
.resultado-reclamo,
.resultado-respuestas,
.resultado-documentos {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.resultado-solicitante h3,
.resultado-reclamo h3,
.resultado-respuestas h3,
.resultado-documentos h3 {
    color: #1d2327;
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.info-item .valor {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
}

.descripcion-item {
    margin-top: 15px;
}

.descripcion-item .label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    display: block;
}

.descripcion-item .valor {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.respuestas-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.respuesta-item {
    background: #fff5f5;
    padding: 15px;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

.respuesta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.respuesta-header strong {
    color: #1d2327;
    font-size: 14px;
}

.respuesta-fecha {
    font-size: 12px;
    color: #646970;
}

.respuesta-motivo {
    margin-bottom: 10px;
}

.respuesta-motivo strong {
    display: block;
    color: #1d2327;
    font-size: 13px;
    margin-bottom: 5px;
}

.respuesta-motivo p {
    margin: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.5;
}

.respuesta-archivo {
    margin-top: 10px;
}

.respuesta-archivo .button {
    padding: 8px 15px;
    font-size: 12px;
    background: #dc3545;
}

.respuesta-archivo .button:hover {
    background: #c82333;
}

.documentos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-small {
    padding: 8px 15px;
    font-size: 13px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.button-small:hover {
    background: #c82333;
}

#anexos-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#anexos-section p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #1d2327;
}

#anexos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#anexos-list li {
    margin-bottom: 8px;
}

#anexos-list a {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

#anexos-list a:hover {
    color: #c82333;
    text-decoration: underline;
}

.sin-resultados {
    text-align: center;
    padding: 40px 20px;
    background: #fff5f5;
    border: 2px dashed #dc3545;
    border-radius: 8px;
    margin: 20px 0;
}

.sin-resultados p {
    margin: 0 0 15px 0;
    color: #721c24;
    font-size: 16px;
    font-weight: 600;
}

.sin-resultados .button {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.sin-resultados .button:hover {
    background: #c82333;
}

.reclamos-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.reclamos-error p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.reclamos-error .button {
    background: #721c24;
    margin-top: 10px;
}

.reclamos-error .button:hover {
    background: #5a1218;
}

.estado-pendiente {
    background: #fff3cd;
    color: #856404;
}

.estado-atendido {
    background: #ffeded;
    color: #721c24;
}

.estado-rechazado {
    background: #f8d7da;
    color: #721c24;
}

.estado-respondido {
    background: #d4edda;
    color: #155724;
}

@media (max-width: 768px) {
    .reclamos-reclamos-container {
        padding: 15px;
    }

    .reclamos-reclamos-form,
    .reclamos-resultado {
        padding: 20px;
    }

    .resultado-header {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .reclamos-header h2 {
        font-size: 22px;
    }

    .respuesta-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .respuesta-fecha {
        margin-top: 5px;
    }
}
.button-full-red {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.button-full-red:hover {
    background: #c0392b;
    color: white;
}

.button-full-red:active {
    background: #a93226;
}