html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- Portada --- */
.bc-hero {
    background: radial-gradient(1200px 600px at 20% 20%, rgba(25,118,210,.15), transparent 60%), linear-gradient(180deg, #0d6efd 0%, #0b5ed7 40%, #0a58ca 100%);
    color: #eef4ff;
}

.bc-badge {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    padding: .4rem .7rem;
    border-radius: 100px;
    font-weight: 600;
}

.bc-hero-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.bc-kpi {
    background: #f8f9fa;
    border-radius: .75rem;
    padding: 1rem;
    text-align: center;
}

.bc-kpi-title {
    font-size: .85rem;
    color: #6c757d;
}

.bc-kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
}

/* --- Botonera CRUD unificada --- */
.btn-crud {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .55rem;
    --bs-btn-font-size: .85rem;
    border-width: 1px;
    border-radius: .4rem;
    transition: all .2s ease-in-out;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

    .btn-icon i {
        line-height: 1;
        font-size: 1rem;
    }

/* === Gris - Detalle === */
.btn-gray-soft {
    color: #495057;
    background: #fff;
    border: 1px solid #dee2e6;
}

    .btn-gray-soft:hover {
        color: #212529;
        background: #f8f9fa;
        border-color: #adb5bd;
    }

/* === Azul - Editar === */
.btn-blue-soft {
    color: #0d6efd;
    background: #fff;
    border: 1px solid #cfe2ff;
}

    .btn-blue-soft:hover {
        color: #fff;
        background: #0d6efd;
        border-color: #0d6efd;
    }

/* === Rojo - Eliminar === */
.btn-red-soft {
    color: #dc3545;
    background: #fff;
    border: 1px solid #f8d7da;
}

    .btn-red-soft:hover {
        color: #fff;
        background: #dc3545;
        border-color: #dc3545;
    }

/* Separación lateral para la columna de acciones */
td.text-end .btn-crud {
    margin-left: .15rem;
}

/* Detalle unificado */
.detail-card {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: .5rem 1rem;
    padding: .4rem 0;
}

.detail-label {
    font-weight: 600;
    color: #212529;
}

.detail-value {
    color: #343a40;
}

.detail-actions {
    margin-top: 1rem;
}
