/* ===================================
   REVISOR DOCUMENTACIÃ“N Y NOMBRE - ESTILOS
   =================================== */

.revisor-doc-nombre {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Placeholder */
.doc-nombre-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 50px 20px;
    color: #999;
    font-size: 16px;
}

.doc-nombre-placeholder i {
    font-size: 24px;
    color: #bdbdbd;
}

/* Contenido activo */
.doc-nombre-activo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ===================================
   PANEL IZQUIERDO - DOCUMENTOS
   =================================== */

.panel-documentos {
    border-right: 2px solid #f0f0f0;
    padding-right: 30px;
}

.panel-documentos h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-documentos h3 i {
    color: #e53935;
}

.lista-documentos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item de documento */
.documento-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.documento-item:hover {
    background: #f5f5f5;
}

/* Contenedor de controles (botón eliminar + toggle) */
.documento-controles {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botón eliminar documento */
.btn-eliminar-documento {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-eliminar-documento:hover {
    background: #ef5350;
    color: #ffffff;
    border-color: #ef5350;
    transform: scale(1.1);
}

.btn-eliminar-documento i {
    font-size: 14px;
}

/* Enlace al documento */
.documento-link {
    text-decoration: none;
    color: #1e88e5;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.documento-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Enlace en rojo si el archivo no existe */
.documento-link.no-existe {
    color: #e53935;
}

.documento-link.no-existe:hover {
    color: #c62828;
}

/* Toggle switch para validaciÃ³n */
.toggle-validacion {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-validacion input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4caf50;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   PANEL DERECHO - VALIDACIÃ“N DE DATOS
   =================================== */

.panel-validacion-datos {
    padding-left: 30px;
}

.panel-validacion-datos h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-validacion-datos h3 i {
    color: #4caf50;
}

/* Campos de solo lectura (ya validados) */
.datos-ya-validados .campo-lectura {
    margin-bottom: 15px;
}

.campo-lectura label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.campo-lectura input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    background: #f5f5f5;
    color: #666;
    font-family: 'Courier New', monospace;
}

/* Mensaje de ya validado */
.mensaje-validado {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2e7d32;
    font-weight: 600;
}

.mensaje-validado i {
    font-size: 20px;
}

/* Campos editables (para validar) */
.datos-edicion .campo-editable {
    margin-bottom: 15px;
}

.campo-editable label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.campo-editable input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.campo-editable input:focus {
    outline: none;
    border-color: #1e88e5;
}

.campo-editable input#curp-editable {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

/* BotÃ³n guardar cambios */
.btn-guardar-validacion {
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-guardar-validacion:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.btn-guardar-validacion:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================================
   RESPONSIVE - MÃ“VIL
   =================================== */

@media (max-width: 768px) {
    .doc-nombre-activo {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .panel-documentos {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .panel-validacion-datos {
        padding-left: 0;
    }
}
