/* =========================================
   ESTILOS GENERALES
========================================= */

body {
    margin: 0;
    padding: 0;
    background:#f5f7fb;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color:#333;
}

.contenedor-principal {
    width: 95%;
    max-width: 1100px;
    margin: 30px auto 60px auto;
}

/* =========================================
   ENCABEZADO
========================================= */

.encabezado {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.encabezado h2 {
    color:#007bff;
    margin:0;
}

.btn-volver {
    padding:8px 12px;
    background:#007bff;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
}

.btn-volver:hover {
    background:#005dc1;
}

/* =========================================
   TARJETAS
========================================= */

.card {
    background:white;
    padding:20px;
    border-radius:12px;
    margin-bottom:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.card-title {
    margin-top:0;
    margin-bottom:15px;
    color:#007bff;
    font-size:20px;
    font-weight:600;
}

.subtitulo {
    color:#444;
    font-size:16px;
    margin-top:20px;
    margin-bottom:10px;
    font-weight:600;
}

/* =========================================
   INFO ROW
========================================= */

.info-row {
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #eee;
}

.info-row span {
    color:#555;
}

.info-row strong {
    color:#222;
}

/* =========================================
   TEXTOS
========================================= */

.texto-suave {
    color:#777;
    font-size:14px;
}

.texto-error {
    color:#d00000;
    font-weight:bold;
}

/* =========================================
   HISTORIAL TELEFONOS
========================================= */

.historial-lista {
    background:#f6f8fc;
    padding:15px;
    border-radius:8px;
}

.historial-lista li {
    padding:4px 0;
}

/* =========================================
   BADGES
========================================= */

.badge-warning {
    background:#ff9800;
    color:white;
    padding:3px 7px;
    border-radius:5px;
    margin-left:6px;
    font-size:12px;
}

.badge-danger {
    background:#d9534f;
    color:white;
    padding:3px 7px;
    border-radius:5px;
    margin-left:6px;
    font-size:12px;
}

/* =========================================
   ESTADOS
========================================= */

.estado {
    padding:4px 8px;
    color:white;
    border-radius:6px;
    font-size:13px;
}

.estado-Pendiente {
    background:#ff9800;
}

.estado-En-reparacion {
    background:#007bff;
}

.estado-Listo {
    background:#28a745;
}

.estado-Listo-pero-no-retirado {
    background:#dc3545;
}

.estado-Entregado {
    background:#6c757d;
}

/* =========================================
   PERIFÉRICOS LISTA
========================================= */

.lista-perifericos {
    margin:0;
    padding-left:18px;
}

.lista-perifericos li {
    padding:3px 0;
}

/* =========================================
   FOTOS
========================================= */

.foto-principal {
    max-width:250px;
    border-radius:8px;
    margin-bottom:15px;
    display:block;
}

.galeria-fotos {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.foto-mini {
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #ccc;
    cursor:pointer;
}

/* =========================================
   TABLA DE LOGS
========================================= */

.tabla-logs {
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

.tabla-logs th {
    background:#007bff;
    color:white;
    padding:10px;
    text-align:left;
}

.tabla-logs td {
    border-bottom:1px solid #eee;
    padding:10px;
    vertical-align:top;
}

.tabla-logs tr:hover {
    background:#f1f5ff;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width:700px){

    .info-row {
        flex-direction:column;
        align-items:flex-start;
    }

    .info-row strong {
        margin-top:5px;
    }

    .galeria-fotos {
        justify-content:center;
    }
}
