/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --background-color: rgb(238, 243, 251);
  --navbar-color: #FFFFFF;
  --sidebar-color: rgb(16, 78, 184);

  --card-color: #FFFFFF;
  --input-color: #FFFFFF;
  --input-focus-color: rgb(68, 182, 63);

  --primary-button-color: rgb(68, 182, 63);
  --hover-primary-button-color: rgb(58, 150, 54);
  --secondary-button-color: rgb(22, 96, 223);
  --hover-secondary-button-color: rgb(21, 81, 183);
  --third-button-color: rgb(243, 243, 243);

  --border-color: #e6e5e5;
  --white-color: #FFFFFF;

  --text-color: #000;
  --black-light-text-color: #707070;

  --box-color-1: rgb(16, 78, 184);
  --box-color-2: rgb(176, 176, 176);
  --box-color-3: rgb(50, 138, 46);

  /* */
  --panel-color: #FFFFFF;

  --background: rgb(238, 243, 251);

  --white-text--color: #FFFFFF;
  --text-color: #000;
  --black-light-text-color: #707070;
  --border-color: #e6e5e5;
  --toggle-color: #DDD;
  --box1-color: #4DA3FF;
  --box2-color: #FFE6AC;
  --box3-color: #E7D1FC;
  --title-icon-color: #fff;

  /* ====== Transition ====== */
  --tran-05: all 0.5s ease;
  --tran-03: all 0.3s ease;
  --tran-03: all 0.2s ease;

  --error-color: red;

  /* blue */
  --blue-principal: rgb(16, 78, 184);
  --blue-900: rgb(19, 50, 103);
  --blue-800: rgb(20, 66, 143);
  --blue-700: rgb(21, 81, 183);
  --blue-600: rgb(22, 96, 223);
  --blue-500: rgb(50, 119, 235);
  --blue-400: rgb(89, 144, 238);
  --blue-300: rgb(128, 169, 240);
  --blue-200: rgb(166, 194, 242);
  --blue-100: rgb(203, 219, 246);
  --blue-50: rgb(238, 243, 251);

  /* green */
  --green-source: rgb(50, 138, 46);
  --green-900: rgb(38, 86, 36);
  --green-800: rgb(48, 118, 45);
  --green-700: rgb(58, 150, 54);
  --green-600: rgb(68, 182, 63);
  --green-500: rgb(93, 198, 88);
  --green-400: rgb(123, 208, 119);
  --green-300: rgb(153, 217, 150);
  --green-200: rgb(183, 227, 181);
  --green-100: rgb(213, 237, 212);
  --green-50: rgb(241, 249, 241);
}

body.dark {
  --background-color: #172B4F;
  --navbar-color: #172B4F;
  --sidebar-color: #172B4F;

  --card-color: #1E293B;
  --input-color: #1E293B;

  --border-color: #5a5a5a;

  --panel-color: #3A3B3C;
  --text-color: #e0e0e0;
  --black-light-text-color: #CCC;
  /* Dark */
  --dark-900: rgb(57, 57, 57);
  --dark-800: rgb(75, 75, 75);
  --dark-700: rgb(94, 94, 94);
  --dark-600: rgb(114, 114, 114);
  --dark-500: rgb(134, 134, 134);
  --dark-400: rgb(155, 155, 155);
  --dark-300: rgb(176, 176, 176);
  --dark-200: rgb(198, 198, 198);
  --dark-100: rgb(221, 221, 221);
  --dark-50: rgb(243, 243, 243);

  --background: #242526;
}

body {
  min-height: 100vh;
  background-color: var(--background-color);
}

a {
  text-decoration: none;
  color: var(--text-color);
}

button {
  background: none;
  font: inherit;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

#info-registros {
  color: var(--text-color);
}

.primary-button {
  position: relative;
  background-color: var(--green-600);
  border-radius: 0.375rem;
  color: var(--white-text--color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
}

.primary-button:hover {
  background-color: var(--green-700);
}

.secondary-button {
  position: relative;
  background-color: var(--blue-50);
  border-radius: 0.375rem;
  color: var(--blue-principal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
}

.secondary-button:hover {
  background-color: var(--blue-100);
}

.password-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.password-wrapper input {
  flex: 1;
}

.toggle-password {
  cursor: pointer;
  user-select: none;
}

.error {
  color: var(--error-color);
}

.small-text {
  font-size: 0.75rem;
}

.medium-text {
  font-size: 0.9375rem;
}

.large-text {
  font-size: 1.125rem;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.25rem, 1fr));
  gap: 1rem;
}

.row-2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gap-5 {
  gap: 0.3125rem;
}

.gap-10 {
  gap: 0.625rem;
}

.row-align-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
}

.space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.column {
  display: flex;
  flex-direction: column;
}

.table-container th {
  background-color: rgb(16, 78, 184);
  color: white;
  padding: 12px 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.table-container td {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.table-container th:nth-child(-n+3),
.table-container td:nth-child(-n+3) {
  text-align: left;
}

.table-container tbody tr:nth-child(even) {
  background-color: #f8f8f8;
}

.table-container tbody tr:hover {
  background-color: #f1f1f1;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  font-weight: bold;
}

.input-box {
  width: 100%;
  margin-top: 0.625rem;
}

.input-box label {
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.input-box label span {
  font-size: 0.8125rem;
}

.custom-multiselect {
  position: relative;
  min-width: 160px;
}

.custom-multiselect select[multiple] {
  width: 100%;
  min-height: 28px;
  border-radius: 4px;
  border: 1px solid #aaa;
  margin: 0;
  padding: 2px;
  font-size: 14px;
  background: #fff;
  transition: border 0.2s;
}

.custom-multiselect .selected-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.custom-multiselect .selected-item {
  background: #e0e7ff;
  border-radius: 12px;
  padding: 2px 8px 2px 6px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 2px;
}

.custom-multiselect .selected-item .remove {
  margin-left: 4px;
  cursor: pointer;
  color: #666;
}

.contenedor {
  background-color: #f0f2f5;
  height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contenedor h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 0.3em;
}

.contenedor h2 {
  font-size: 2em;
  color: #444;
  margin-bottom: 0.3em;
}

.contenedor p {
  font-size: 1.2em;
  color: #666;
}

input,
.select-box {
  position: relative;
  height: 3.125rem;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: var(--black-light-text-color);
  background-color: var(--input-color);
  /* margin-top: 0.5rem; */
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0 0.9375rem;
}

input:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--green-600);
}

.select-box select {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  color: var(--black-light-text-color);
  background-color: var(--input-color);
  font-size: 1rem;
}

textarea {
  position: relative;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: var(--black-light-text-color);
  background-color: var(--input-color);
  /* margin-top: 0.5rem; */
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0 0.9375rem;
}

.checkbox {
  width: 1.175rem;
  height: 1.175rem;
}

.radio-button {
  width: 1.875rem;
  height: 1.875rem;
}

.card {
  overflow-x: auto;
  background: var(--card-color);
  padding: 1.25rem;
  border-radius: 0.625rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.625rem;
  margin-bottom: 0.625rem;
  color: var(--text-color);
  cursor: pointer;
}

.card-body {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.card-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
}

.rotate-arrow {
  transition: transform 0.3s ease;
}

.rotate-arrow.rotated {
  transform: rotate(90deg);
}

.card .card-title {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.625rem;
  margin-bottom: 0.625rem;
  color: var(--text-color);
}

.card .card-title a {
  text-decoration: none;
  color: var(--blue-500);
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow: auto;
  /* evita que se pegue a los bordes en pantallas pequeñas */
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white-color);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-in-out;
  /* se adapta al contenido */
  max-height: 80vh;
  /* Limita la altura máxima */
  overflow-y: auto;
  /* Habilita el scroll vertical */
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-body {
  width: 100%;
}

/* MODALES */
.dialog-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialog-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

/* Estilo general del combobox */
.select2-container--default .select2-selection--single {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
  box-shadow: none;
  transition: border 0.2s, box-shadow 0.2s;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Texto del select */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #111827;
  padding-left: 0;
  font-weight: 500;
}

/* Icono flecha */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 8px;
  right: 10px;
}

/* Dropdown */
.select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

/* Opción activa */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #6366f1;
  color: white;
}

/* Opción seleccionada */
.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #eef2ff;
  color: #111827;
}

/* MODALES */

.full-height {
  height: 100%;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.head .head-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
}

.search-box {
  position: relative;
  height: 2.8125rem;
  max-width: 21.875rem;
  width: 100%;
}

.search-box input {
  border: 1px solid var(--blue-600);
  background-color: var(--input-color);
  padding: 0 1.5625rem 0 3.125rem;
  border-radius: 0.3125rem;
  height: 100%;
  width: 100%;
  color: var(--black-light-text-color);
  font-size: 0.9375rem;
  font-weight: 400;
  outline: none;
}

.search-box input:focus {
  border: 1px solid var(--input-focus-color);
}

.search-box span {
  position: absolute;
  left: 0.9375rem;
  font-size: 1.375rem;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  color: #707070;
}

.title-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
}

.title-section span {
  position: relative;
  height: 2.1875rem;
  width: 2.1875rem;
  background-color: var(--blue-principal);
  border-radius: 0.375rem;
  color: var(--white-text--color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.title-section .text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.breadcrumb {
  list-style: none;
  display: flex;
  gap: 0.3125rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  margin: 0 0.3125rem;
  color: #999;
}

.breadcrumb-item a {
  text-decoration: none;
  color: var(--blue-500);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

/* ESTILOS LOGIN */
.form-container {
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form {
  width: 40%;
  padding: 2rem;
}

.form p {
  font-size: 1.5625rem;
  color: var(--blue-principal);
}

.form h2 {
  font-size: 2.1875rem;
  font-weight: 500;
}

.form .primary-button {
  margin-top: 1.25rem;
}

.img {
  width: 60%;
}

.img .background {
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
  display: block;
}

.img .on {
  position: absolute;
  width: 31.25rem;
  right: 3.125rem;
  top: 6.25rem;
}

.on .logo {
  width: 31.25rem;
  margin-bottom: 1.875rem;
}

.on p {
  font-size: 1.75rem;
  text-align: right;
  color: var(--panel-color);
  font-weight: 400;
}

.on span {
  font-size: 2.5rem;
  font-weight: 500;
}

/* ESTILOS SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 16.875rem;
  height: 100vh;
  background: var(--sidebar-color);
  border-right: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

.sidebar.closed {
  left: -100%;
  visibility: hidden;
}

.sidebar .sidebar-header {
  padding: 0.625r em 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header .header-logo img {
  width: 12.5rem;
  display: block;
  object-fit: contain;
}

.sidebar .sidebar-header .close-sidebar {
  color: var(--white-color);
  display: block;
}

.sidebar-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0 0.9375rem;
  flex-direction: column;
  transform: translateY(0.9375rem);
  transition: 0.4s ease;
}

.sidebar .sidebar-nav .primary-nav {
  overflow-y: auto;
  scrollbar-width: thin;
  padding-bottom: 1.25rem;
  height: calc(100vh - 227px);
  scrollbar-color: transparent transparent;
}

.sidebar .sidebar-nav .primary-nav:hover {
  scrollbar-color: #EEF2FF transparent;
}

.sidebar-nav .nav-item .nav-link {
  color: var(--white-color);
  display: flex;
  gap: 0.75rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  padding: 0.6875rem 0.9375rem;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--blue-principal);
  transition: 0.4s ease;
}

.sidebar-nav .nav-item:is(:hover, .open)>.nav-link:not(.dropdown-title) {
  color: var(--blue-principal);
  background: #EEF2FF;
}

.sidebar .nav-link .nav-label {
  transition: opacity 0.3s ease;
}

.sidebar-nav .nav-item {
  position: relative;
}

/* Dropdown ESTILOS */
.dropdown-icon {
  transition: transform 0.3s ease;
}

.dropdown-container.open>.nav-link .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 0.9375rem;
}

.dropdown-container.open>.dropdown-menu {
  max-height: 31.25rem;
}

.sidebar-nav .secondary-nav {
  position: absolute;
  bottom: 2.1875rem;
  width: 100%;
  background: var(--blue-principal);
}

/* ESTILOS DASHBOARD */
.dashboard {
  position: relative;
  left: 16.875rem;
  min-height: 100vh;
  width: calc(100% - 16.875rem);
  padding: 0.625rem 0.875rem;
  transition: all 0.5s ease;
}

.navbar {
  position: fixed;
  top: 0;
  left: 16.875rem;
  display: flex;
  width: calc(100% - 16.875rem);
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background-color: var(--background-color);
  transition: all 0.5s ease;
  z-index: 10;
}

.open-sidebar {
  color: var(--text-color);
  display: none;
}

.sidebar.closed~.dashboard {
  left: 0px;
  width: 100%;
}

.sidebar.closed~.dashboard .open-sidebar {
  display: block;
}

.navbar-actions span {
  cursor: pointer;
  background: #ebf5fb;
  color: var(--blue-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.navbar .navbar-actions img {
  width: 2.5rem;
  border-radius: 50%;
}

.dashboard .dash-content {
  overflow-x: auto;
}

.dash-content .boxes {
  margin-bottom: 1.25rem;
}

.dash-content .boxes .box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.75rem;
  padding: 0.9375rem 1.25rem;
  background-color: var(--box-color-1);
  transition: var(--tran-05);
}

.boxes .box span {
  color: var(--white-color);
}

.boxes .box .text {
  white-space: nowrap;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white-color);
}

.boxes .box .number {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--white-color);
}

.boxes .box .trending-up span {
  color: var(--green-500);
}

.boxes .box .trending-down span {
  color: red;
}

.boxes .box.box2 {
  background-color: var(--box-color-2);
}

.boxes .box.box4 {
  background-color: var(--box-color-3);
}

.info {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
}

.info .left {
  width: 65%;
}

.info .right {
  width: 35%;
}

.skill-box .skill-bar {
  height: 0.5rem;
  width: 100%;
  border-radius: 0.375rem;
  margin-top: 0.375rem;
  background: rgba(0, 0, 0, 0.1);
}

.skill-bar .skill-per {
  position: relative;
  display: block;
  height: 100%;
  width: 90%;
  border-radius: 0.375rem;
  background: var(--green-400);
  animation: progress 0.4s ease-in-out forwards;
  opacity: 0;
}

.skill-per.css {
  width: 70%;
  animation-delay: 0.1s;
}

.skill-per.javascript {
  width: 50%;
  animation-delay: 0.2s;
}

@keyframes progress {
  0% {
    width: 0;
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

.skill-per .tooltip {
  position: absolute;
  right: -0.875rem;
  top: -1.75rem;
  font-size: 9px;
  font-weight: 500;
  color: #fff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.1875rem;
  background: var(--green-400);
  z-index: 1;
}

.tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.125rem;
  height: 0.625rem;
  width: 0.625rem;
  z-index: -1;
  background: var(--green-400);
  transform: translateX(-50%) rotate(45deg);

}

.usuarios {
  overflow-x: auto;
  background: var(--panel-color);
  border-radius: 0.75rem;
  padding: 0.625rem;
}

.switches {
  margin-top: 1.25rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 3.125rem;
  height: 20.375rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20.375rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.25rem;
  width: 1.25rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--green-500);
}

input:checked+.slider:before {
  transform: translateX(1.5rem);
}

@media (max-width: 118.75rem) {
  .dash-content .boxes {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: hsla(0, 0%, 0%, 0.5);
    display: none;
    z-index: 15;
    transition: 0.5s ease;
  }

  .overlay.active {
    display: block;
  }

  .open-sidebar {
    background-color: var(--border-color);
    border-radius: 12px;
    display: block;
    cursor: pointer;
  }

  .sidebar .sidebar-header .close-sidebar {
    display: block;
  }

  .sidebar~.dashboard {
    left: 0px;
    width: 100%;
  }

  .sidebar~.dashboard .navbar {
    left: 0px;
    width: 100%;
  }

  .sidebar {
    left: -100%;
    visibility: hidden;
    z-index: 20;
  }

  .sidebar.active {
    left: 0;
    visibility: visible;
  }

  .row {
    display: flex;
    flex-direction: column;
  }

  /* LOGIN mejora layout */
  .form-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1rem;
    min-height: 100vh;
  }

  .form {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    box-sizing: border-box;

    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .img {
    display: none !important;
  }

  .img .background {
    height: 300px;
    object-fit: cover;
    width: 100%;
  }

  .img .on {
    position: relative;
    width: 100%;
    right: 0;
    top: 0;
    padding: 1rem;
    text-align: center;
  }

  .on .logo {
    width: 80%;
    max-width: 250px;
    margin: 0 auto 1rem;
  }

  .on p {
    font-size: 1.25rem;
    text-align: center;
  }

  .on span {
    font-size: 1.5rem;
    display: block;
    margin-top: 0.5rem;
  }
}

@media (max-width: 800px) {
  .medium-text {
    font-size: 0.9375rem;
  }

  .info {
    flex-direction: column;
  }

  .info .left {
    width: 100%;
  }

  .info .right {
    width: 100%;
  }

  .dash-content .boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {

  /* LOGIN reducción de textos e inputs */
  .form h2 {
    font-size: 1.5rem;
  }

  .form p {
    font-size: 1.125rem;
  }

  .form input,
  .form select {
    font-size: 0.875rem;
  }

  .form .primary-button {
    font-size: 0.875rem;
    padding: 0.75rem;
  }

  .on p,
  .on span {
    font-size: 1rem;
  }

  .head {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .pagination-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 25rem) {
  .dash-content .boxes {
    grid-template-columns: repeat(1, 1fr);
  }

  .usuarios .head {
    flex-direction: column;
  }
}

/* === Mejoras responsive para formularios === */
.actions {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-start;
  margin-top: 1rem;
}

@media (max-width: 30rem) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .primary-button,
  .actions .secondary-button {
    width: 100%;
  }
}

/* Input y label adaptables */
@media (max-width: 30rem) {

  input,
  select,
  textarea {
    font-size: 0.875rem;
    padding: 0.5rem;
  }

  label {
    font-size: 0.875rem;
  }
}

/* Tabla con scroll en móvil */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Título escalable */
.title-section .text {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Mejor interacción táctil en botones e íconos */
.material-symbols-rounded {
  font-size: 1.5rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.3s;
}

a:hover .material-symbols-rounded,
button:hover .material-symbols-rounded {
  background: rgba(0, 0, 0, 0.05);
}

/* Tap targets accesibles */
button,
a {
  min-height: 2.75rem;
  min-width: 2.75rem;
}