:root {
    --tinta: #1d1d1f;
    --suave: #6e6e73;
    --fondo: #f5f5f7;
    --linea: #e8e8ed;
    --azul: #047450;
    --azul-hover: #055422;
    --lima: #b3dd00;
    --verde-fondo: #e7f8ee;
    --verde-tinta: #137333;
    --rojo-fondo: #fff1f0;
    --rojo-tinta: #c41a16;
    --radio: 14px;
    --sombra: 0 8px 28px rgba(0, 0, 0, .06);
}

html { font-size: 16px; }

body {
    background: var(--fondo);
    color: var(--tinta);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, .h3, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -.022em;
    color: var(--tinta);
}

a { color: var(--azul); }
a:hover { color: var(--azul-hover); }

main.container { padding-top: 1.75rem; }

.barra {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #055422;
    border-bottom: 3px solid var(--lima);
}

.barra .navbar-brand { padding-top: .2rem; padding-bottom: .2rem; }
.barra .navbar-brand img { height: 42px; width: auto; display: block; }

.barra .navbar-nav .nav-link {
    color: #fff;
    border-radius: 980px;
    padding: .35rem .75rem;
}

.barra .navbar-nav .nav-link:hover,
.barra .navbar-nav .nav-link:focus {
    color: #055422;
    background: var(--lima);
}

.barra .navbar-text { color: rgba(255, 255, 255, .85); }

.btn {
    border-radius: 980px;
    font-weight: 500;
    padding: .45rem 1.15rem;
}

.btn-primary {
    background: var(--azul);
    border-color: var(--azul);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--azul-hover);
    border-color: var(--azul-hover);
}

.btn-outline-primary {
    color: var(--azul);
    background: rgba(4, 116, 80, .1);
    border-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--azul);
    border-color: var(--azul);
}

.btn-outline-danger {
    color: var(--rojo-tinta);
    background: rgba(196, 26, 22, .08);
    border-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background: var(--rojo-tinta);
    border-color: var(--rojo-tinta);
}

.btn-link { color: var(--azul); font-weight: 500; }

.btn-salir {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 0;
}

.btn-salir:hover { background: var(--lima); color: #055422; }

.btn-sm { padding: .28rem .8rem; }

.form-control {
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    min-height: 2.65rem;
    color: var(--tinta);
    background: #fff;
}

.form-control:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 4px rgba(4, 116, 80, .18);
}

label { font-weight: 500; color: var(--tinta); }

.card {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--sombra);
}

.card-body { padding: 1.35rem 1.4rem; }

body.pagina-ingreso {
    min-height: 100vh;
    background:
        radial-gradient(820px 420px at 50% -8%, rgba(179, 221, 0, .28), transparent 58%),
        radial-gradient(640px 480px at 110% 110%, rgba(0, 165, 158, .28), transparent 46%),
        #04361c;
}
body.pagina-ingreso .barra { display: none; }
body.pagina-ingreso main.container { max-width: none; padding: 0; }

.ingreso-pantalla {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem 3rem;
}
.ingreso-marca { text-align: center; max-width: 26rem; margin-bottom: 1.35rem; }
.ingreso-marca img { height: 108px; width: auto; margin-bottom: .9rem; }
.ingreso-marca h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -.045em;
    margin: 0;
}
.ingreso-marca p {
    margin: .45rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
    line-height: 1.45;
}
.ingreso {
    width: 100%;
    max-width: 26rem;
    background: rgba(255, 255, 255, .96);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    padding: 1.7rem 1.6rem 1.45rem;
    margin: 0;
}

.table-responsive {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--sombra);
}

.table { margin-bottom: 0; color: var(--tinta); }

.table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--linea);
    color: var(--suave);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .9rem .85rem;
}

.table td, .table th {
    border-top: 1px solid var(--linea);
    vertical-align: middle;
    padding: .8rem .85rem;
}

.table-striped tbody tr:nth-of-type(odd) { background-color: transparent; }

.table-bordered { border: 0; }

.table-bordered td, .table-bordered th { border: 1px solid var(--linea); }

.badge {
    border-radius: 980px;
    font-weight: 500;
    padding: .4em .7em;
}

.badge-success { background: var(--verde-fondo); color: var(--verde-tinta); }
.badge-secondary { background: #eeeef0; color: var(--suave); }
.badge-light { background: var(--fondo); color: var(--tinta); border-color: transparent !important; }

.alert {
    border: 0;
    border-radius: var(--radio);
}

.alert-success { background: var(--verde-fondo); color: var(--verde-tinta); }
.alert-danger, .alert-warning { background: var(--rojo-fondo); color: var(--rojo-tinta); }
.alert-info { background: #e7f6ee; color: #055422; }

.dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
    padding: .4rem;
}

.dropdown-item { border-radius: 8px; color: var(--tinta); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--fondo); color: var(--azul); }

.nav-tabs { border-bottom: 0; margin-bottom: .6rem; }
.nav-tabs .nav-link {
    border: 0;
    border-radius: 980px;
    color: var(--suave);
    padding: .35rem .7rem;
}
.nav-tabs .nav-link.active {
    background: var(--tinta);
    color: #fff;
}
.tab-content.border {
    border: 0 !important;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--sombra);
    padding: .4rem .8rem !important;
}

.tipo-botones { display: flex; flex-wrap: wrap; gap: .65rem; margin: .25rem 0 1.25rem; }
.btn-tipo {
    background: #fff;
    color: var(--tinta);
    border: 1px solid #d2d2d7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    padding: .7rem 1.3rem;
    font-size: 1.05rem;
}
.btn-tipo:hover { background: #e7f6ee; color: #055422; border-color: #047450; }
.tipo-botones .btn-primary { padding: .7rem 1.3rem; font-size: 1.05rem; }

.filtro { max-width: 28rem; }
.form-ancho { max-width: 40rem; }

.grilla { min-width: 46rem; background: #fff; }
.grilla th, .grilla td { vertical-align: top; min-width: 7rem; }
.grilla thead th {
    text-transform: none;
    letter-spacing: -.01em;
    font-size: .9rem;
    color: var(--tinta);
    background: #fafafa;
}
.grilla tbody th {
    min-width: 9rem;
    white-space: nowrap;
    background: #fafafa;
    font-weight: 500;
}

.chip {
    background: #e7f6ee;
    color: #055422;
    border-radius: 10px;
    padding: .3rem .5rem;
    margin-bottom: .3rem;
}

.celda-disponible { background: var(--verde-fondo); color: var(--verde-tinta); }
.celda-ocupado { background: var(--rojo-fondo); color: var(--rojo-tinta); }
.celda-vacio { background: #fafafa; color: var(--suave); }
.dia-bloque { border-bottom: 1px solid var(--linea); padding: .7rem .2rem; }
.dia-bloque:last-child { border-bottom: 0; }
.leyenda .muestra { display: inline-block; padding: .15rem .5rem; border-radius: 980px; margin: 0 .2rem; }

.materia-item, .clase { cursor: grab; }
.materia-item {
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    padding: .55rem .7rem;
    margin-bottom: .5rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.materia-item.seleccionada {
    border-color: var(--azul);
    background: #e7f6ee;
    box-shadow: 0 0 0 4px rgba(4, 116, 80, .14);
}
.clase { position: relative; }
.clase .quitar {
    position: absolute;
    top: .05rem;
    right: .1rem;
    border: 0;
    background: transparent;
    color: var(--suave);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.celda.bloqueada { background: var(--rojo-fondo); }
.celda.sobre { outline: 2px solid var(--azul); outline-offset: -2px; }

.solo-celular { display: none; }

@media (max-width: 767.98px) {
    .solo-pc { display: none !important; }
    .solo-celular { display: block; }
    .navbar-text { display: block; margin: .5rem 0; }
    .ingreso-marca h1 { font-size: 2.5rem; }
    .ingreso-marca img { height: 92px; }
}
