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;
}
/* ==========================================
   DISEŅO GENERAL
========================================== */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
    background: radial-gradient( circle at top left, rgba(13, 110, 253, 0.12), transparent 30% ), radial-gradient( circle at bottom right, rgba(77, 163, 255, 0.12), transparent 30% ), linear-gradient( 135deg, #edf5ff 0%, #f7fbff 50%, #ffffff 100% );
    background-attachment: fixed;
}


/* ==========================================
   NAVBAR EXISTENTE
========================================== */

.navbar {
    min-height: 65px;
    background: linear-gradient( 120deg, #0a3568 0%, #0d6efd 58%, #4da3ff 100% ) !important;
    border-bottom: none !important;
    box-shadow: 0 4px 16px rgba(10, 53, 104, 0.18);
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.3px;
}

    .navbar-brand:hover {
        color: #ffffff !important;
    }

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    margin: 0 2px;
    padding: 9px 12px !important;
    border-radius: 9px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .navbar .nav-link:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.16);
        transform: translateY(-1px);
    }

.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

    .navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
    }

.navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* ==========================================
   CONTENIDO EXISTENTE
========================================== */

body > .container {
    max-width: 1200px;
}

main {
    min-height: calc(100vh - 145px);
    padding-top: 20px;
}


/* ==========================================
   TARJETAS BOOTSTRAP
========================================== */

.card {
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 55, 95, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .card:hover {
        box-shadow: 0 12px 30px rgba(13, 110, 253, 0.13);
    }

.card-header {
    border-bottom: none;
    background: linear-gradient( 120deg, #0a3568 0%, #0d6efd 60%, #4da3ff 100% );
    color: #ffffff;
    font-weight: 600;
}


/* ==========================================
   BOTONES BOOTSTRAP
========================================== */

.btn {
    border-radius: 9px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    border: none;
    background: linear-gradient( 120deg, #0758c9 0%, #0d6efd 60%, #4099f7 100% );
    box-shadow: 0 5px 12px rgba(13, 110, 253, 0.22);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: linear-gradient( 120deg, #064cac 0%, #0b5ed7 60%, #267fdc 100% );
        box-shadow: 0 7px 16px rgba(13, 110, 253, 0.28);
    }


/* ==========================================
   FORMULARIOS
========================================== */

.form-control,
.form-select {
    min-height: 43px;
    border-radius: 9px;
    border-color: #d5dfec;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #6faeff;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.13);
    }

.form-label {
    color: #27364a;
    font-weight: 600;
}


/* ==========================================
   TABLAS
========================================== */

.table {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

    .table thead th {
        padding-top: 13px;
        padding-bottom: 13px;
        background-color: #eaf3ff;
        color: #123d6b;
        border-bottom: 2px solid #cee2fa;
        font-weight: 700;
    }

    .table tbody tr {
        transition: background-color 0.2s ease;
    }

        .table tbody tr:hover {
            background-color: #f2f7ff;
        }


/* ==========================================
   FOOTER EXISTENTE
========================================== */

.footer {
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #dce8f7 !important;
    color: #64748b !important;
    backdrop-filter: blur(8px);
}

    .footer a {
        color: #0d6efd;
        font-weight: 500;
        text-decoration: none;
    }

        .footer a:hover {
            color: #084eae;
            text-decoration: underline;
        }


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 575.98px) {
    body > .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        border-radius: 12px;
        background-color: rgba(5, 44, 91, 0.25);
    }

    .navbar .nav-link {
        margin-bottom: 3px;
    }
}