:root {
    --gold: #d4af37;
    --gold-light: #f6d365;
    --black: #111111;
    --dark: #1d1d1d;
    --white: #ffffff;
    --gray: #f5f5f5;
}

/* =====================================================
   GENERAL
===================================================== */

body {
    background: var(--gray);
    font-family: 'Poppins',sans-serif;
    color: #222;
}

.container {
    max-width: 1300px;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    background: var(--black) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,.30);
    border: none !important;
    padding: 14px 25px;
}

.sistema-logo {
    color: var(--gold) !important;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.usuario-actual {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* =====================================================
   TARJETAS
===================================================== */

.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    animation: fade .35s;
}

.card-header {
    background: linear-gradient(90deg,#111,#2d2d2d);
    border: none;
    padding: 18px 25px;
    border-radius: 18px 18px 0 0;
}

    /* TODO EL TEXTO DEL HEADER ES BLANCO */

    .card-header,
    .card-header h1,
    .card-header h2,
    .card-header h3,
    .card-header h4,
    .card-header h5,
    .card-header h6 {
        color: white !important;
    }

        .card-header p {
            color: #d8d8d8 !important;
        }

/* =====================================================
   TITULOS
===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* =====================================================
   LABELS
===================================================== */

label {
    color: #222;
    font-weight: 600;
}

/* =====================================================
   INPUTS
===================================================== */

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #d9d9d9;
    padding: 10px 14px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 10px rgba(212,175,55,.35);
    }

/* =====================================================
   BOTONES
===================================================== */

.btn {
    border-radius: 30px;
    transition: .25s;
    font-weight: 600;
}

.btn-primary {
    background: var(--gold);
    color: black;
    border: none;
}

    .btn-primary:hover {
        background: var(--gold-light);
        color: black;
    }

.btn-success {
    background: #111;
    color: var(--gold);
    border: none;
}

    .btn-success:hover {
        background: #2d2d2d;
        color: white;
    }

.btn-secondary {
    border: none;
}

.btn-outline-warning {
    color: var(--gold);
    border-color: var(--gold);
}

    .btn-outline-warning:hover {
        background: var(--gold);
        color: black;
    }

.btn-claro {
    background: #e30613;
    color: white;
    border: none;
    height: 140px;
    font-size: 30px;
    font-weight: bold;
}

    .btn-claro:hover {
        background: #bb0813;
        color: white;
    }



.btn-movistar {
    background: #00B5E2;
    color: white;
    border: none;
    height: 140px;
    font-size: 30px;
    font-weight: bold;
}

    .btn-movistar:hover {
        background: #0097c2;
        color: white;
    }



.btn-bitel {
    background: #FFD400;
    color: black;
    border: none;
    height: 140px;
    font-size: 30px;
    font-weight: bold;
}

    .btn-bitel:hover {
        background: #e8c200;
        color: black;
    }

/* =====================================================
   TABLAS
===================================================== */

.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

    .table thead {
        background: #111;
    }

        .table thead th {
            background: #111 !important;
            color: white !important;
            border: none;
        }

    .table tbody td {
        color: #222;
        vertical-align: middle;
    }

    .table tbody tr {
        transition: .20s;
    }

        .table tbody tr:hover {
            background: #fff8de;
            transform: scale(1.005);
        }

/* =====================================================
   BADGES
===================================================== */

.bg-success {
    background: #198754 !important;
}

.bg-warning {
    background: var(--gold) !important;
    color: black !important;
}

/* =====================================================
   LINKS
===================================================== */

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* =====================================================
   LOGIN
===================================================== */

.card-header.text-center h3 {
    color: white !important;
}

.card-header.text-center p {
    color: #d6d6d6 !important;
}

/* =====================================================
   VALIDACIONES
===================================================== */

.text-danger {
    font-size: .9rem;
}

/* =====================================================
   ANIMACION
===================================================== */

@keyframes fade {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=====================================
      SELECCION DE OPERADOR
=====================================*/

.operador-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 320px;
    border-radius: 25px;
    transition: .35s;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

    .operador-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 20px 40px rgba(0,0,0,.30);
        text-decoration: none;
    }

.operador-logo {
    width: 170px;
    height: 170px;
    object-fit: contain;
    margin-bottom: 25px;
}

.operador-card h3 {
    color: white;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.operador-card span {
    color: white;
    font-size: 18px;
}

.claro {
    background: #DA291C;
}

.movistar {
    background: #00A9E0;
}

.bitel {
    background: #FFD200;
}

    .bitel h3,
    .bitel span {
        color: #222;
    }

.logo-operador {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

    .logo-operador img {
        max-height: 120px;
        max-width: 170px;
        object-fit: contain;
    }

/* ===========================
   LOGO LOGIN
=========================== */

.login-logo {
    width: 140px;
    height: auto;
    transition: .3s;
}

    .login-logo:hover {
        transform: scale(1.05);
    }

/*==================================================
    RESPONSIVE - CELULARES Y TABLETS
===================================================*/

@media (max-width: 768px) {

    /* Contenedor */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Títulos */
    h1, h2, h3 {
        text-align: center;
    }

    /* Botones */
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    /* Tarjetas */
    .card {
        margin-bottom: 15px;
    }

    .card-header h2,
    .card-header h3,
    .card-header h4,
    .card-header h5 {
        font-size: 1.3rem;
    }

    /* Logo del login */
    .login-logo {
        width: 90px;
        height: auto;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }

    /* Tablas */
    .table {
        font-size: .88rem;
        white-space: nowrap;
    }

    .table-responsive {
        border-radius: 10px;
    }

    /* Modales */
    .modal-dialog {
        margin: 15px;
    }

    /* Badges */
    .badge {
        font-size: .8rem;
    }

    /* Espaciado de botones */
    .d-flex.flex-column .btn {
        margin-bottom: 10px;
    }

    /* Inputs */
    .form-control,
    .form-select {
        font-size: 16px; /* evita el zoom automático en iPhone */
    }
}

/*==========================
NAVBAR
===========================*/

.navbar {
    background: linear-gradient(90deg,#1d3557,#0f4c81);
}

.navbar-brand {
    color: white !important;
}

    .navbar-brand small {
        color: #d9d9d9;
    }

.navbar-toggler {
    border: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/*=============================
LAYOUT
=============================*/

body {
    font-family: 'Poppins',sans-serif;
    background: #f5f7fb;
}

.navbar {
    background: linear-gradient(90deg,#0d3b66,#1b5e20);
}

.navbar-brand {
    color: white !important;
}

    .navbar-brand:hover {
        color: white !important;
    }

.usuario-pill {
    background: rgba(255,255,255,.12);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 500;
}

    .usuario-pill i {
        margin-right: 8px;
    }

.navbar .btn-warning {
    font-weight: 600;
}

main {
    min-height: 75vh;
}

@media(max-width:991px) {

    .usuario-pill {
        width: 100%;
        text-align: center;
    }

    .navbar .btn {
        width: 100%;
    }
}