/*SISTEMA DE ESTILOS PROFESIONAL MODERNO */

:root {
  /* Colores Primarios - CONAFE Oficial */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-light-2: #eff6ff;

  /* Colores Secundarios - Verde CONAFE */
  --secondary: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #d1fae5;

  /* Estados */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0284c7;

  /* Escala de Grises */
  --light: #f9fafb;
  --dark: #111827;
  --white: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-light: #6b7280;

  /* Efectos */
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Espaciado */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Componentes */
  --sidebar-width: 280px;
  --navbar-height: 64px;

  /* Tipografía */
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-mono: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;

  /* Mapeo de variables usadas en el tema */
  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-dark);
  --color-primary-light: var(--primary-light);
  --color-secondary: var(--secondary);
  --color-secondary-dark: var(--secondary-dark);
  --color-secondary-light: var(--secondary-light);
  --color-success: var(--success);
  --color-danger: var(--danger);
  --color-warning: var(--warning);
  --color-info: var(--info);
  --color-light: var(--light);
  --color-dark: var(--dark);
  --color-white: var(--white);
  --color-border: var(--border);
  --color-text: var(--text);
  --color-text-light: var(--text-light);
}

/*cuerpo del documento */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  padding: 1rem 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  min-height: 100vh;
  background: #afc1d3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow-x: hidden;
  margin: 0;
}

.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0.5rem;
}

/* RESET Y ESTILOS BASE */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-white);
  padding-top: calc(var(--navbar-height) + 20px);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  width: 30%;
  height: 50px;
  object-fit: cover;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-fluid {
  max-width: auto;
  height: 50px;
}

.hero-imgLogo {
  width: 400px !important;
  height: 400px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;

}

.imgLogo {
  height: 400px !important;
  width: auto !important;
  left: 0;
  right: auto;
}

.imgCarusel {
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* CONTENEDOR Y GRID */


.container {
  width: 90vw;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  max-width: 90vw;
}

.container-fluid {
  width: 90vw;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar .container-fluid {
  width: 100%;
  padding: 0 1rem;
  gap: 0.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.row.g-3 {
  row-gap: 1rem;
}

.row.g-2 {
  row-gap: .5rem;
}

.col,
[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  flex-basis: 0;
  flex-grow: 1;
}

.col-1 {
  max-width: 8.33%;
  flex-basis: 8.33%;
}

.col-2 {
  max-width: 16.66%;
  flex-basis: 16.66%;
}

.col-3 {
  max-width: 25%;
  flex-basis: 25%;
}

.col-4 {
  max-width: 33.33%;
  flex-basis: 33.33%;
}

.col-5 {
  max-width: 41.66%;
  flex-basis: 41.66%;
}

.col-6 {
  max-width: 50%;
  flex-basis: 50%;
}

.col-7 {
  max-width: 58.33%;
  flex-basis: 58.33%;
}

.col-8 {
  max-width: 66.66%;
  flex-basis: 66.66%;
}

.col-9 {
  max-width: 75%;
  flex-basis: 75%;
}

.col-10 {
  max-width: 83.33%;
  flex-basis: 83.33%;
}

.col-11 {
  max-width: 91.66%;
  flex-basis: 91.66%;
}

.col-12 {
  max-width: 100%;
  flex-basis: 100%;
}

/* Responsive */
@media (max-width: 991px) {
  .col-lg-1 {
    max-width: 8.33%;
    flex-basis: 8.33%;
  }

  .col-lg-2 {
    max-width: 16.66%;
    flex-basis: 16.66%;
  }

  .col-lg-3 {
    max-width: 25%;
    flex-basis: 25%;
  }

  .col-lg-4 {
    max-width: 33.33%;
    flex-basis: 33.33%;
  }

  .col-lg-6 {
    max-width: 50%;
    flex-basis: 50%;
  }

  .col-lg-12 {
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 767px) {
  .col-md-1 {
    max-width: 8.33%;
    flex-basis: 8.33%;
  }

  .col-md-2 {
    max-width: 16.66%;
    flex-basis: 16.66%;
  }

  .col-md-3 {
    max-width: 25%;
    flex-basis: 25%;
  }

  .col-md-4 {
    max-width: 33.33%;
    flex-basis: 33.33%;
  }

  .col-md-6 {
    max-width: 50%;
    flex-basis: 50%;
  }

  .col-md-12 {
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 575px) {
  .col-1 {
    max-width: 100%;
    flex-basis: 100%;
  }

  .col-2 {
    max-width: 100%;
    flex-basis: 100%;
  }

  .col-3 {
    max-width: 100%;
    flex-basis: 100%;
  }

  .col-4 {
    max-width: 100%;
    flex-basis: 100%;
  }

  .col-6 {
    max-width: 100%;
    flex-basis: 100%;
  }

  .col-12 {
    max-width: 100%;
    flex-basis: 100%;
  }

  .col-lg-3 {
    max-width: 100%;
    flex-basis: 100%;
  }

  .col-md-2 {
    max-width: 100%;
    flex-basis: 100%;
  }
}


/* NAVBAR */


.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #c0d9f1 0%, #e9ecef 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
  min-height: var(--navbar-height);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--color-primary);
}

/* Estilos de navbar-top eliminados para consolidar con los del sidebar */

/* Estilos de navbar-top eliminados para consolidar con los del sidebar */

.navbar-dark {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-bottom: 3px solid #3498db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 3px solid var(--color-primary);
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  padding: 0.25rem 0;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.navbar-brand:hover {
  color: var(--color-primary-dark);
  transform: scale(1.05);
}

.navbar-dark .navbar-brand {
  color: #3498db;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-dark .navbar-brand:hover {
  color: #5dade2;
}

.navbar-toggler {
  display: none;
  border: 2px solid var(--color-text);
  background: transparent;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-size: 1.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  background-color: rgba(0, 123, 255, 0.08);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.25);
  background-color: rgba(0, 123, 255, 0.12);
}

.navbar-toggler:hover {
  background-color: rgba(0, 123, 255, 0.15);
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.navbar-toggler[aria-expanded="true"] {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: linear-gradient(to bottom,
      white 0%,
      white 8%,
      transparent 8%,
      transparent 15%,
      white 15%,
      white 23%,
      transparent 23%,
      transparent 30%,
      white 30%,
      white 38%);
}

.navbar-dark .navbar-toggler {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background: linear-gradient(to bottom,
      var(--color-text) 0%,
      var(--color-text) 8%,
      transparent 8%,
      transparent 15%,
      var(--color-text) 15%,
      var(--color-text) 23%,
      transparent 23%,
      transparent 30%,
      var(--color-text) 30%,
      var(--color-text) 38%);
  transition: all 0.3s ease;
}

.navbar-dark .navbar-toggler-icon {
  background: linear-gradient(to bottom,
      white 0%,
      white 8%,
      transparent 8%,
      transparent 15%,
      white 15%,
      white 23%,
      transparent 23%,
      transparent 30%,
      white 30%,
      white 38%);
}

.navbar-collapse {
  width: 100%;
  flex-basis: 100%;
  display: flex !important;
  align-items: center;
  margin-left: auto;
}

.navbar-collapse.collapse {
  display: none !important;
}

.navbar-collapse.collapse.show {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: inherit;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--color-border);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  list-style: none;
}

.nav-link {
  padding: 0.7rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: var(--radius);
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(0, 123, 255, 0.08);
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(0, 123, 255, 0.12);
  border-radius: var(--radius);
}

.nav-link.active::after {
  width: calc(100% - 2rem);
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .nav-link:hover {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
}

.navbar-dark .nav-link:hover::after {
  background-color: #3498db;
}

.navbar-dark .nav-link.active {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.15);
}

.navbar-dark .nav-link.active::after {
  background-color: #3498db;
}

@media (max-width: 991px) {
  .navbar {
    padding: 0.5rem;
    flex-wrap: wrap;
  }

  .navbar-toggler {
    display: block !important;
    order: 2;
  }

  .navbar-brand {
    order: 1;
  }

  .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
    order: 3;
  }

  .navbar-collapse.collapse {
    display: none !important;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .navbar-collapse.collapse.show {
    display: flex !important;
    max-height: 500px;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: inherit;
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    margin-left: 0;
    gap: 0;
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
  }
}

/* LAYOUT CON SIDEBAR EN ESCRITORIO */

.main-content {
  padding: 1rem;
  min-height: calc(200vh - var(--navbar-height));
  display: block;
  overflow: visible;
}

@media (min-width: 992px) {
  body.sidebar-open .main-content {
    margin-left: var(--sidebar-width);
  }
}


/* TIPOGRAFÍA */


h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}


/* BOTONES */


.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Variantes de botones */
.btn-primary {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-secondary {
  color: var(--color-white);
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.btn-success {
  color: var(--color-white);
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-danger {
  color: var(--color-white);
  background-color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.btn-warning {
  color: var(--color-text);
  background-color: var(--color-warning);
  border-color: var(--color-warning);
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-block,
.w-100 {
  display: block;
  width: 100%;
}

/* TARJETAS PROFESIONALES */

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--color-white);
  background-clip: border-box;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img-top {
  transform: none;
  filter: none;
}

.card-body {
  flex: 1 1 auto;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--color-text);
}

.card-plain {
  box-shadow: none;
}

.card-plain .card-header {
  background: none;
  background-color: transparent;
  border-bottom: 1px solid var(--color-border);
}

.form-compact .card-body {
  padding: .75rem .75rem;
}

.container-wide {
  width: 90vw;
  max-width: 90vw;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-text {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text);
}

.card-footer {
  padding: .5rem;
  background-color: #f8f9fa;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.h-100 {
  height: 100%;
}

/* CARRUSEL MODERNO */

.carousel-container {
  width: 100%;
  max-width: 100%;
  padding: 2rem 0;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 95%;
  width: 95%;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  margin: 0 auto;
}

.carousel:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.carousel-item.active {
  display: flex;
}

.carousel-item img {
  width: auto;
  max-width: auto;
  height: auto;
  max-height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item img:hover {
  transform: scale(1.025);
  filter: brightness(0.95);
}

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

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  border: none;
  opacity: 0.4;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

.carousel-control-next {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-flex;
  width: 45px;
  height: 450px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: bold;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background: rgba(0, 0, 0, 1);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.carousel-control-prev-icon::before {
  content: '❮';
  font-size: 1.5rem;
  color: white;
}

.carousel-control-next-icon::before {
  content: '❯';
  font-size: 1.5rem;
  color: white;
}


/* MODALES */


.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
}

.modal-dialog-lg {
  max-width: 800px;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--color-white);
  background-clip: padding-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.btn-close {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  cursor: pointer;
}

.btn-close:hover {
  opacity: 0.75;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}


/* ALERTAS */


.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* SECCIÓN HERO */

.hero-section {
  text-align: left;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
  border-radius: 12px;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-image {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 700px;
  margin: 2rem auto;
  font-weight: 500;
}


/* UTILIDADES EXTENDIDAS */


.m-1 {
  margin: 0.25rem;
}

.m-2 {
  margin: 0.5rem;
}

.m-3 {
  margin: 1rem;
}

.m-4 {
  margin: 1.5rem;
}

.m-5 {
  margin: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mt-6 {
  margin-top: 4rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mb-6 {
  margin-bottom: 4rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.my-6 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 1rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pt-5 {
  padding-top: 3rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1.5rem;
}

.pb-5 {
  padding-bottom: 3rem;
}


/* COLORES Y FONDOS */


.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-success {
  background-color: var(--color-success);
}

.bg-danger {
  background-color: var(--color-danger);
}

.bg-warning {
  background-color: var(--color-warning);
}

.bg-info {
  background-color: var(--color-info);
}

.bg-light {
  background-color: var(--color-light);
}

.bg-dark {
  background-color: var(--color-dark);
}

.bg-white {
  background-color: var(--color-white);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-danger);
}

.text-warning {
  color: var(--color-warning);
}

.text-info {
  color: var(--color-info);
}

.text-light {
  color: var(--color-light);
}

.text-dark {
  color: var(--color-dark);
}

.text-white {
  color: var(--color-white);
}

.text-muted {
  color: #868e96;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.fw-bold {
  font-weight: 700;
}

.fw-normal {
  font-weight: 400;
}

.fw-light {
  font-weight: 300;
}

.font-italic {
  font-style: italic;
}

/* FOOTER */

.main-footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  padding: 4rem 0 2rem;
  margin-top: auto;
  width: 100%;
  border-top: 4px solid var(--color-primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  color: var(--color-primary-light);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateX(5px);
}

.footer-info {
  font-size: 0.95rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a:hover {
    transform: translateY(-3px);
  }
}



/* BORDES Y SOMBRAS */


.border {
  border: 1px solid var(--color-border);
}

.border-top {
  border-top: 1px solid var(--color-border);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.border-left {
  border-left: 1px solid var(--color-border);
}

.border-right {
  border-right: 1px solid var(--color-border);
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: 50%;
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-none {
  box-shadow: none;
}


/* DISPLAY Y VISIBILITY */


.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-none {
  display: none;
}

.d-inline {
  display: inline;
}

.d-inline-block {
  display: inline-block;
}

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-stretch {
  align-items: stretch;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.gap-5 {
  gap: 3rem;
}


/* FORMULARIOS AVANZADOS */


.form-group {
  margin-bottom: 0.4rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  font-size: 1.11rem;
}

.label-icon {
  margin-right: 0.5rem;
  font-size: 2.2rem;
}

.form-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #868e96;
}

.form-control,
.form-select,
textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.3rem rgba(15, 118, 110, 0.1);
  background-color: var(--primary-light-2);
}

.form-control-lg {
  padding: 0.875rem 1.25rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
}

.form-control::placeholder {
  color: #adb5bd;
  font-weight: 400;
}


/* TARJETAS ESPECIALES */


.card-login {
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-login:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

/* Table styles for consultas */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.table-striped tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.03);
}

.table-bordered {
  border: 1px solid var(--color-border);
}

.table-dark thead {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.08);
}

.table-responsive {
  overflow-x: auto;
}

/* allow fixed header when scrolling within responsive container */
.table-responsive {
  max-height: 500px;
}

.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.card-header-login {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 2rem 1.5rem;
  border: none;
  color: white;
}

.card-header-login .card-title {
  color: white;
  font-size: 1.75rem;
  margin: 0;
}

.card-header-login .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}


/* BOTONES AVANZADOS */


.btn-outline-primary {
  color: var(--color-primary);
  background-color: transparent;
  border: 2px solid var(--color-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  color: white;
  background-color: var(--color-primary);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  letter-spacing: 0.5px;
}

.btn-login {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-login:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-arrow {
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-login:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.btn-block,
.w-100 {
  display: block;
  width: 100%;
  text-decoration: none;
}


/* ALERTAS MEJORADAS */


.alert {
  position: relative;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
  border-left: 5px solid transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-left-color: #28a745;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-left-color: #dc3545;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-left-color: #ffc107;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-left-color: #17a2b8;
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.alert-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.alert-dismiss-able {
  padding-right: 2.65rem;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.alert hr {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}


/* FORMULARIO FOOTER */


.form-footer {
  padding-top: 1.5rem;
}

.form-footer p {
  margin-bottom: 1rem;
}


/* SECCIÓN HERO */


.hero-section {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
  border-radius: 12px;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-image {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 700px;
  margin: 2rem auto;
  font-weight: 500;
}


/* ESTILOS ADICIONALES */


hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--color-border);
  height: 0;
  overflow: visible;
}

.hr-lg {
  margin: 3rem 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-100 {
  opacity: 1;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-visible {
  overflow: visible;
}

.w-25 {
  width: 25%;
}

.w-50 {
  width: 50%;
}

.w-75 {
  width: 75%;
}

.w-100 {
  width: 100%;
}

.h-25 {
  height: 25%;
}

.h-50 {
  height: 50%;
}

.h-75 {
  height: 75%;
}

.h-100 {
  height: 100%;
}

.min-h-100 {
  min-height: 100vh;
}


/* RESPONSIVE UTILITIES */


.m-1 {
  margin: 0.25rem;
}

.m-2 {
  margin: 0.5rem;
}

.m-3 {
  margin: 1rem;
}

.m-4 {
  margin: 1.5rem;
}

.m-5 {
  margin: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-6 {
  margin-top: 4rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-6 {
  margin-bottom: 4rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-6 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-5 {
  padding: 3rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pt-5 {
  padding-top: 3rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1.5rem;
}

.pb-5 {
  padding-bottom: 3rem;
}


/* COLORES Y ESTILOS DE TEXTO */


.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-success {
  background-color: var(--color-success);
}

.bg-danger {
  background-color: var(--color-danger);
}

.bg-warning {
  background-color: var(--color-warning);
}

.bg-info {
  background-color: var(--color-info);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-danger);
}

.text-warning {
  color: var(--color-warning);
}

.text-info {
  color: var(--color-info);
}

.text-light {
  color: var(--color-light);
}

.text-dark {
  color: var(--color-dark);
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.fw-bold {
  font-weight: 700;
}

.fw-normal {
  font-weight: 400;
}

.fw-light {
  font-weight: 300;
}

.font-italic {
  font-style: italic;
}


/* BORDES Y SOMBRAS EXTENDIDOS */


.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.border-left {
  border-left: 1px solid var(--color-border);
}

.border-right {
  border-right: 1px solid var(--color-border);
}

.rounded-full {
  border-radius: 50%;
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-none {
  box-shadow: none;
}


/* DISPLAY Y FLEXBOX */


.d-inline {
  display: inline;
}

.d-inline-block {
  display: inline-block;
}

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-stretch {
  align-items: stretch;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.gap-5 {
  gap: 3rem;
}


/* LOGIN PAGE - CAPTCHA LEVEL 2 */

.login-wrapper {
  width: 100%;
  max-width: 620px;
  animation: slideInUp 1.6s ease;
  margin: 0 auto;
  padding: 0.5rem;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.login-header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.login-header p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.login-body {
  padding: 1.5rem;
}

.login-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.8rem;
}

.login-footer p {
  margin: 0;
  color: #64748b;
}

.login-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* REGISTRO PAGE */

.registro-container {
  width: 100vw;
  max-width: 620px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideInUp 0.6s ease;
}

.registro-header {
  background: linear-gradient(135deg, #ffffff 0%, #97a8e0 100%);
  color: white;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.registro-header h1 {
  margin: 0 0 0.06rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.registro-header p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95rem;
}

.registro-logo {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
}

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

.registro-body {
  padding: 0.35rem;
}

.registro-footer {
  padding: 0.5rem 0.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.8rem;
}

.registro-footer a {
  color: #d0d8e7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.registro-footer a:hover {
  color: #1e40af;
  text-decoration: underline;
}


/* ALERTS */


.alert {
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
  font-size: 0.8rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left-color: #ef4444;
  color: #7f1d1d;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left-color: #10b981;
  color: #065f46;
}

.alert a {
  color: inherit;
  font-weight: 600;
}


/* FORMS */


.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.45rem;
}

.form-label {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.1rem;
  font-size: 0.56rem;
}

.form-control {
  padding: 0.32rem 0.4rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.62rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: rgba(37, 99, 235, 0.02);
}

.form-select {
  padding: 0.32rem 0.4rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.62rem;
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: rgba(37, 99, 235, 0.02);
}

/* CAPTCHA LEVEL 2 STYLES */
.captcha-container {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: .2px solid #e2e8f0;
  border-radius: .8px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.captcha-label {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-size: 9rem;
}

.captcha-image-wrapper {
  background: white;
  border: 2px;
  border-radius: 6px;
  padding: 0.15rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.captcha-image-wrapper img {
  max-width: 300%;
  height: auto;
  display: block;
} 

.captcha-image {
  width: 80%;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #64748b;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.captcha-refresh:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

.captcha-input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
}

.captcha-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: rgba(16, 185, 129, 0.02);
}

.captcha-hint {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.3rem;
  font-style: italic;
  line-height: 1.2;
}

/* BUTTONS */

.btn-login,
.btn-register {
  padding: 0.36rem 0.6rem;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 0.35rem;
}

.btn-login::before,
.btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.btn-login:hover::before,
.btn-register:hover::before {
  left: 100%;
}

.btn-login:hover,
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-login:active,
.btn-register:active {
  transform: translateY(-1px);
}

.btn-reset {
  padding: 0.6rem 1rem;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}


/* DEMO INFO */


.demo-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #1e40af;
  line-height: 1.4;
}

.demo-info strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #1e3a8a;
}

.demo-info code {
  background: white;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}


/* BUTTON GROUP */


.btn-group {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.btn-group .btn-login,
.btn-group .btn-reset {
  margin-top: 0;
}


/* RESPONSIVE */


@media (max-width: 768px) {
  .registro-container {
    margin: 0;
    border-radius: 0;
    width: 100vw;
    max-width: 300px;
  }

  .registro-header {
    padding: 0.6rem;
  }

  .registro-header h1 {
    font-size: 1rem;
  }

  .registro-body {
    padding: 0.35rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .captcha-image-wrapper {
    min-height: 50px;
    padding: 0.15rem;
  }
}

@media (max-width: 500px) {
  .login-wrapper {
    max-width: 100%;
    padding: 0.25rem;
  }

  .login-header {
    padding: 1.2rem 1rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }

  .login-body {
    padding: 1rem;
  }

  .login-footer {
    padding: 0.8rem 1rem;
  }

  .captcha-image-wrapper {
    min-height: 75px;
    padding: 0.5rem;
  }

  .btn-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .btn-group .btn-login,
  .btn-group .btn-reset {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .carousel-item img {
    height: auto;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}


/* ===============================================
   ESTILOS PARA SIDEBAR EXTRAÍBLE (MENÚ LATERAL)
   ============================================== */

/* Sidebar contenedor principal */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  overflow-x: hidden;
}

/* Sidebar visible */
.sidebar.show {
  transform: translateX(0);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
}

/* Header del Sidebar */
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Botón cerrar en el header */
.sidebar-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.sidebar.show .sidebar-close-btn {
  opacity: 1;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.close-icon {
  display: inline-block;
  font-size: 1.2rem;
}

/* Menú del sidebar */
.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 0;
  padding: 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 0.95rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-weight: 500;
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-left-color: #fff;
  padding-left: 1.8rem;
}

.sidebar-menu a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-left-color: #fff;
  font-weight: 600;
  padding-left: 1.8rem;
}

.sidebar-menu .icon {
  margin-right: 0.8rem;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Divisor y títulos de sección */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.section-title {
  padding: 0.8rem 1.5rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.8px;
}

/* Overlay oscuro */
.sidebar-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  animation: fadeIn 0.35s ease;
}

.sidebar-overlay.show {
  display: block;
}

/* Botón toggle (hamburger) */
.toggler-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  z-index: 1101;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggler-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 0 65px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.navbar-top .brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.5px;
  flex-grow: 1;
}

.navbar-top .nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
}

.logout-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-subtitle {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
}

.user-info {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-word;
  text-align: center;
}

html,
body {
  overflow: hidden;
}

body.home-scroll {
  overflow-y: auto;
}