/* ============================================================
   PALETA TECH AZUL PREMIUM
   ============================================================ */

:root {
    --azul-primario: #1E88E5;
    --azul-oscuro: #0D47A1;
    --celeste-fondo: #E8F0FE;
    --gris-base: #4e97c7;
    --gris-texto: #37474F;
    --blanco: #FFFFFF;
}

/* ============================================================
   ESTILOS GENERALES
============================================================ */

body {
    font-family: "Segoe UI", sans-serif;
    background-color: #aad4fd;
    margin: 0;
    padding-top: 10px;
    color: #2c3e50;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--azul-oscuro);
}

/* ============================================================
   FORMULARIOS GENERALES (excepto wizard)
============================================================ */

form:not(#formulario) {
    background: var(--blanco);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
    max-width: 620px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    margin-top: 12px;
    color: var(--azul-oscuro);
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 15px;
    background: #ffffff;
}

textarea {
    resize: vertical;
}

button {
    margin-top: 22px;
    padding: 12px 22px;
    background-color: var(--azul-primario);
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.25s;
}

button:hover {
    background-color: var(--azul-oscuro);
}

/* ============================================================
   TABLAS (lista.php)
============================================================ */

table {
    border-collapse: collapse;
    width: 100%;
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

th {
    background: var(--azul-oscuro);
    color: white;
    padding: 12px;
    font-weight: 600;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* ESTADOS */
.estado-Pendiente { color: #FB8C00; font-weight: bold; }
.estado-En_reparacion { color: #1976D2; font-weight: bold; }
.estado-Listo { color: #43A047; font-weight: bold; }
.estado-Entregado { color: #78909C; font-weight: bold; }
.estado-Listo_pero_no_retirado { color: #E53935; font-weight: bold; }
.estado-Diagnostico { color: #8E24AA; font-weight: bold; }

/* ============================================================
   WIZARD
============================================================ */

.wizard-container {
    max-width: 700px;
    margin: 20px auto;
    background: var(--blanco);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.step {
    width: 33%;
    text-align: center;
    padding: 10px 0;
    color: var(--gris-texto);
    cursor: pointer;
}

.step.active {
    color: var(--azul-primario);
}

.progress-wrapper {
    width: 100%;
    height: 6px;
    background: #dfe8f5;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-inner {
    height: 100%;
    width: 0%;
    background: var(--azul-primario);
    transition: width 0.3s;
}

.paso {
    display: none;
}

.paso.visible {
    display: block;
}

/* ============================================================
   CHECKLIST — DOS COLUMNAS
============================================================ */

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 25px;
    margin-top: 10px;
}

.checklist-grid label {
    font-weight: 500;
    color: var(--gris-texto);
}
/* ============================================================
   🔥 MODO APP — RESPONSIVE PARA CELULAR Y TABLET
   ============================================================ */

/* ========================
   AJUSTES GENERALES
======================== */

@media (max-width: 768px) {
    body {
        padding: 0;
        background: #E9F3FF;
    }

    h1, h2, h3 {
        font-size: 20px;
        text-align: center;
    }

    form:not(#formulario) {
        max-width: 100%!important;
        margin: 10px;
        padding: 18px;
        border-radius: 12px;
    }

    input, select, textarea {
        font-size: 16px!important;
        padding: 14px!important;
    }

    button {
        width: 100%;
        padding: 14px!important;
        font-size: 17px!important;
        border-radius: 10px!important;
    }
}

/* ============================
   TABLAS → TARJETAS EN MÓVIL
============================ */

@media (max-width: 768px) {
    table {
        display: none;
    }

    .tabla-mobile {
        display: flex!important;
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }

    .card-equipo {
        background: white;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-left: 6px solid var(--azul-primario);
    }

    .card-equipo h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: var(--azul-oscuro);
    }

    .card-equipo p {
        margin: 4px 0;
        font-size: 14px;
        color: var(--gris-texto);
    }

    .card-equipo .estado {
        font-size: 15px;
        font-weight: bold;
    }
}

/* ======================================
   WIZARD — VERSIÓN LIGERA PARA MÓVIL
====================================== */

@media (max-width: 768px) {
    .wizard-container {
        margin: 10px;
        padding: 20px;
        border-radius: 16px;
    }

    .wizard-steps {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .progress-wrapper {
        height: 8px;
        border-radius: 5px;
    }

    .step {
        font-size: 15px;
        padding: 8px;
        border-radius: 8px;
        background: #f4f6fc;
    }

    .step.active {
        background: var(--azul-primario);
        color: white;
    }
}

/* =======================================
   CHECKLIST — UNA COLUMNA EN CELULAR
======================================= */

@media (max-width: 768px) {
    .checklist-grid {
        grid-template-columns: 1fr!important;
        gap: 6px!important;
    }

    .checklist-grid label {
        font-size: 15px;
        padding: 8px 0;
    }
}

/* ======================================================
   FOTOGRAFÍAS — BOTONES GRANDES Y TÁCTILES
====================================================== */

@media (max-width: 768px) {
    .btn-foto {
        width: 100%!important;
        padding: 16px;
        font-size: 18px;
        background: var(--azul-primario);
        color: white;
        border-radius: 12px;
        text-align: center;
    }
}

