﻿
.carrion-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.carrion-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #182b42;
    color: white;
}

.menu-titulo {
    padding: 25px 18px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #34465b;
}

.carrion-menu .nav-link {
    color: #cbd5e1;
    padding: 14px 20px;
}

    .carrion-menu .nav-link:hover,
    .carrion-menu .nav-link.active {
        background: #304c6a;
        color: white;
    }

.carrion-contenido {
    flex: 1;
    min-width: 0;
}

.carrion-header {
    height: 65px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    font-weight: 600;
}

.carrion-main {
    padding: 25px;
}

.carrion-overlay {
    display: none;
}

@media (max-width: 768px) {

    .carrion-sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transition: left .2s ease;
    }

        .carrion-sidebar.abierto {
            left: 0;
        }

    .carrion-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1040;
    }

    .carrion-main {
        padding: 15px;
    }
}

@media (min-width: 769px) {
    .carrion-header button {
        display: none;
    }
}


/* CONSULTA DE PRECIOS */

.precios-pagina {
    max-width: 1200px;
    margin: 0 auto;
}

.tabla-precios {
    width: 100%;
    font-size: 15px;
}

    .tabla-precios thead th {
        background: #213c59;
        color: white;
        padding: 15px;
        font-weight: 600;
        border: none;
    }

    .tabla-precios tbody td {
        padding: 13px 15px;
        vertical-align: middle;
        border-bottom: 1px solid #e2e8f0;
    }

    /* Filas alternadas */
    .tabla-precios tbody tr:nth-child(odd) td {
        background: #ffffff;
    }

    .tabla-precios tbody tr:nth-child(even) td {
        background: #edf4fa;
    }

    /* Resaltar fila al pasar el mouse */
    .tabla-precios tbody tr:hover td {
        background: #dceafa;
    }

.codigo-articulo {
    color: #64748b;
    font-size: 13px;
}

.descripcion-articulo {
    font-weight: 500;
    color: #203449;
}

.precio-articulo {
    font-weight: 700;
    font-size: 17px;
    color: #0f6a48;
    white-space: nowrap;
}

/* CELULARES */

.articulo-movil {
    padding: 16px;
    border-bottom: 1px solid #dce3eb;
}

    .articulo-movil:nth-child(odd) {
        background: #ffffff;
    }

    .articulo-movil:nth-child(even) {
        background: #edf4fa;
    }

.precio-movil {
    text-align: right;
    font-size: 23px;
    font-weight: 700;
    color: #0f6a48;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .precios-pagina h3 {
        font-size: 23px;
    }

    .precios-pagina .input-group-lg .form-control {
        font-size: 16px;
        min-width: 0;
    }

    .precios-pagina .input-group-lg .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Barra de usuario */

.carrion-userbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.carrion-user-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 6px 10px;
    color: #1b3048;
    cursor: pointer;
    transition: background 0.2s;
}

    .carrion-user-button:hover {
        background: #f1f5f9;
    }

.carrion-user-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7eff8;
    color: #28527a;
    border-radius: 50%;
    font-size: 20px;
}

.carrion-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

    .carrion-user-info strong {
        font-size: 13px;
        font-weight: 600;
    }

    .carrion-user-info small {
        font-size: 11px;
        color: #64748b;
    }

.carrion-userbar .dropdown-menu {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    min-width: 190px;
}

@media (max-width: 576px) {
    .carrion-userbar {
        padding: 6px 10px;
    }

    .carrion-user-info small {
        display: none;
    }

    .carrion-user-avatar {
        width: 34px;
        height: 34px;
    }
}

/* Página de inicio */

.carrion-home {
    padding: 8px 0;
}

.carrion-welcome {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 30px;
}

    .carrion-welcome h2 {
        color: #192d45;
        font-size: 25px;
        font-weight: 650;
        margin-bottom: 8px;
    }

    .carrion-welcome p {
        color: #64748b;
        margin-bottom: 14px;
    }

.carrion-welcome-user {
    display: inline-flex;
    align-items: center;
    background: #eaf2fb;
    color: #28527a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.carrion-module-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

    .carrion-module-card:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,.06);
        transform: translateY(-2px);
    }

.carrion-module-icon {
    width: 48px;
    height: 48px;
    background: #eaf2fb;
    color: #28527a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 18px;
}

.carrion-module-card h5 {
    color: #192d45;
    font-weight: 600;
}

.carrion-module-card p {
    color: #64748b;
    font-size: 14px;
    min-height: 48px;
}

@media (max-width: 576px) {
    .carrion-welcome {
        padding: 22px 18px;
    }

        .carrion-welcome h2 {
            font-size: 21px;
        }

    .carrion-module-card {
        padding: 20px;
    }
}


/* ==========================================
   LOGIN - BARRACA CARRIÓN
   ========================================== */

.carrion-login-layout {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient( 135deg, #e9eff6 0%, #f5f7fa 55%, #e7edf5 100% );
}

.carrion-login-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.carrion-login-card {
    background: #ffffff;
    width: 100%;
    max-width: 410px;
    border-radius: 18px;
    padding: 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 45px rgba(20, 45, 75, 0.09);
}

.carrion-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.carrion-login-logo {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2fb;
    color: #28527a;
    border-radius: 17px;
    font-size: 30px;
}

.carrion-login-header h2 {
    font-size: 25px;
    font-weight: 700;
    color: #192d45;
    margin-bottom: 8px;
}

.carrion-login-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.carrion-login-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.carrion-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: white;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

    .carrion-input-group:focus-within {
        border-color: #28527a;
        box-shadow: 0 0 0 3px rgba(40, 82, 122, .12);
    }

    .carrion-input-group i {
        padding-left: 14px;
        color: #64748b;
        font-size: 17px;
    }

    .carrion-input-group .form-control {
        border: none;
        box-shadow: none;
        padding: 12px;
        font-size: 14px;
        background: transparent;
    }

.carrion-login-button {
    background: #28527a;
    border: 1px solid #28527a;
    color: white;
    border-radius: 9px;
    padding: 12px;
    font-weight: 600;
    margin-top: 8px;
    transition: background .2s;
}

    .carrion-login-button:hover,
    .carrion-login-button:focus {
        background: #1c3e60;
        border-color: #1c3e60;
        color: white;
    }

    .carrion-login-button:disabled {
        background: #28527a;
        color: white;
        opacity: .7;
    }

.carrion-login-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 28px;
}

@media (max-width: 576px) {
    .carrion-login-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .carrion-login-header h2 {
        font-size: 23px;
    }
}
.carrion-menu-seccion {
    padding: 22px 14px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
}



