* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1d2433;
}

.contenedor {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
}

.auth-box,
.detalle-box {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.portada-box {
    text-align: center;
}

.titulo-principal {
    margin: 0 0 20px 0;
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
}

.subtexto {
    margin: 0 0 24px 0;
    font-size: 18px;
    color: #4b5563;
}

h1, h2, h3 {
    margin-top: 0;
}

.grupo {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

input,
select,
textarea,
button {
    width: 100%;
    font-size: 15px;
    border-radius: 10px;
}

input,
select,
textarea {
    border: 1px solid #ccd5e1;
    padding: 12px;
    background: #fff;
}

textarea {
    resize: vertical;
}

button,
.btn-principal,
.btn-secundario {
    display: inline-block;
    text-decoration: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.2s ease;
}

button,
.btn-principal {
    background: #0b63f6;
    color: #fff;
}

.btn-principal:hover {
    background: #0954cf;
}

.btn-secundario {
    background: #e8eef9;
    color: #1d2433;
}

.btn-secundario:hover {
    background: #dbe6f8;
}

.barra-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
}

.alerta {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alerta.error {
    background: #ffe1e1;
    color: #8a1f1f;
}

.alerta.exito {
    background: #dff7e7;
    color: #146b35;
}

.texto-centro {
    text-align: center;
}

.tabla-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
}

th {
    background: #f8fbff;
}

.grid-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.contenedor-imagen {
    width: 100%;
    text-align: center;
    overflow: hidden;
    margin: 24px 0;
}

.img-pasos {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
}

.card-resumen {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-resumen span {
    display: block;
    font-size: 13px;
    color: #67758c;
    margin-bottom: 8px;
}

.card-resumen strong {
    font-size: 28px;
}

.acciones-admin {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.acciones-portada {
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 18px;
}

.preview-img img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #dde6f1;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    border-left: 4px solid #0b63f6;
    padding: 10px 14px;
    background: #f8fbff;
    border-radius: 8px;
}

.grid-admin-detalle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.estado {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.estado-recibido,
.estado-en_revision {
    background: #fff4cc;
    color: #7a5a00;
}

.estado-cotizado,
.estado-pendiente_confirmacion,
.estado-confirmado,
.estado-pendiente_pago {
    background: #dfeaff;
    color: #0b4bbb;
}

.estado-pagado,
.estado-pedido_realizado,
.estado-en_transito,
.estado-entregado {
    background: #dff7e7;
    color: #146b35;
}

.estado-cancelado {
    background: #ffe1e1;
    color: #8a1f1f;
}

.login-link {
    margin-top: 8px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .img-pasos {
        width: 80%;
        min-width: 900px;
    }
}

    .card {
        padding: 20px;
    }

    .titulo-principal {
        font-size: 30px;
        line-height: 1.2;
    }

    .subtexto {
        font-size: 16px;
    }

    .barra-top {
        flex-direction: column;
        align-items: center;
    }

    .barra-top a,
    .acciones-portada a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

}