:root {
  --main-50: #fcf3f5;
  --main-100: #fae7eb;
  --main-200: #f2c2cd;
  --main-300: #eb9eaf;
  --main-400: #db5573;
  --main-500: #cc0c37;
  --main-600: #b80b32;
  --main-700: #990929;
  --main-800: #7a0721;
  --main-900: #64061b;

  --box-shadow: rgba(0, 0, 0, 0.2);
  --box-shadow-blue: rgba(38, 117, 252, 0.4);
  --black: rgba(0, 0, 0, 0.2);

  --label: #2d3436;
  --white: #ffff;
  --border: #ffffff4d;
  --divider: #ddd;

  --cyan300: #67e8f9;
  --cyan500: #06b6d4;
  --cyan700: #0e7490;
  --orange300: #fdba74;
  --orange500: #ff9500;
  --orange700: #ff7b00;
  --violet300: #c4b5fd;
  --violet500: #8b5cf6;
  --violet700: #6d28d9;
  --rose300: #f9a8d4;
  --rose500: #ec4899;
  --rose700: #be185d;
  --lime300: #bef264;
  --lime500: #84cc16;
  --lime700: #4d7c0f;
  --blue300: #93c5fd;
  --blue500: #3b82f6;
  --blue700: #0d6efd;
  --green300: #86efac;
  --green500: #22c55e;
  --green700: #15803d;
  --opacity: #fafaf9;

  --primary: #4361ee;
  --secondary: #3f37c9;
  --success: #4cc9f0;
  --info: #4895ef;
  --warning: #f72585;
  --danger: #e63946;
  --light: #f8f9fa;
  --dark: #212529;
  --orange: #ff7b00;
  --green: #38b000;
  --red: #d00000;
  --rose: #f72585;
  --violet: #7209b7;

  --gray: #6c757d;
}

* {
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.gradient-custom {
  background: var(--main-500);
  background: linear-gradient(to right, var(--main-900), var(--main-500));
}

.card-body {
  padding: 2rem;
}

.bg-blue {
  background: linear-gradient(135deg, var(--blue300) 0%, var(--blue700) 100%);
}

.bg-green {
  background: linear-gradient(135deg, #38b000 0%, #70e000 100%);
}

.bg-orange {
  background: linear-gradient(135deg, #ff7b00 0%, #ff9500 100%);
}

.bg-violet {
  background: linear-gradient(135deg, #cc0c37 0%, #b80b32 100%);
}

.bg-lime {
  background: linear-gradient(135deg, #84cc16 0%, #bef264 100%);
}

.bg-rose {
  background: linear-gradient(135deg, #f72585 0%, #ff477e 100%);
}

.bg-violet {
  background: linear-gradient(135deg, #7209b7 0%, #9d4edd 100%);
}

.bg-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #67e8f9 100%);
}

body {
  min-height: 100vh;
  /** padding: 20px;*/
  background-color: var(--white);
}

/** Login */
.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Efecto de partículas en el fondo */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.particle {
  position: absolute;
  background-color: var(--border);
  border-radius: 50%;
}

.form-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--box-shadow-blue);
  padding: 35px;
  width: 100%;
  max-width: 800px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transform: translateZ(0);
  transition: all 0.3s ease;
}

.form-container:hover {
  box-shadow: 0 15px 40px var(--box-shadow);
  transform: translateY(-5px);
}

.form-title {
  color: var(--blue700);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.form-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue300) 0%, var(--blue700) 100%);
  border-radius: 2px;
}

.form-subtitle {
  font-size: medium;
  color: var(--blue700);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.form-subtitle:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue300) 0%, var(--blue700) 100%);
  border-radius: 2px;
}



.required-field::after {
  content: "*";
  color: var(--main-500);
  margin-left: 4px;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--label);
  display: flex;
  align-items: center;
}

.form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 2px solid var(--box-shadow);
  transition: all 0.3s;
  box-shadow: inset 0 1px 2px var(--box-shadow);
}

.form-control:focus {
  border-color: var(--blue500);
  box-shadow: 0 0 0 0.25rem var(--box-shadow-blue);
}

.input-group-text {
  background: linear-gradient(90deg, var(--blue300) 0%, var(--blue700) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px 0 0 8px;
}

.btn-submit {
  /* background: linear-gradient(90deg, var(--blue300) 0%, var(--blue700) 100%);*/
  border: none;
  padding: 14px;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 25px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--box-shadow-blue);
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px var(--box-shadow-blue);
}

.btn-main {
  background: linear-gradient(135deg, var(--blue700) 0%, var(--blue500) 100%);
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--white) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--blue300);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--blue300);
  background: linear-gradient(135deg, var(--blue500) 0%, var(--blue700) 100%);
  color: var(--white) !important;
}

.btn-icon {
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--white) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--box-shadow-blue);
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.valid-feedback,
.invalid-feedback {
  font-weight: 500;
  margin-top: 5px;
}

.valid-feedback {
  color: var(--green700);
}

.invalid-feedback {
  color: var(--main-500);
}

.form-check-input:checked {
  background-color: var(--blue700);
  border-color: var(--blue700);
}

.file-upload-container {
  border: 2px dashed var(--divider);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  background-color: var(--light);
}

.file-upload-container:hover {
  border-color: var(--blue700);
  background-color: var(---light);
}

.file-upload-label {
  display: block;
  cursor: pointer;
  color: var(--blue700);
  font-weight: 600;
}

.file-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--blue700);
}

/* Efectos de validación personalizados */
.is-valid {
  border-color: var(--green700) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%232ed573' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.is-invalid {
  border-color: var(--main-500) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ff4757'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff4757' stroke='none'/%3e%3c/svg%3e");
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  animation: fadeIn 0.5s ease-out;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

.form-group:nth-child(4) {
  animation-delay: 0.4s;
}

.form-group:nth-child(5) {
  animation-delay: 0.5s;
}

.form-group:nth-child(6) {
  animation-delay: 0.6s;
}

.form-group:nth-child(7) {
  animation-delay: 0.7s;
}

.form-group:nth-child(8) {
  animation-delay: 0.8s;
}

.form-group:nth-child(9) {
  animation-delay: 0.9s;
}

/* Responsividad mejorada */
@media (max-width: 768px) {
  .form-container {
    padding: 25px;
  }

  .form-title {
    font-size: 1.5rem;
  }
}

/* profile */
.profile-header {
  background: linear-gradient(135deg, var(--main-500) 0%, var(--main-800) 100%);
  height: 150px;
  border-radius: 15px;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border: 4px solid var(--white);
  margin-top: -60px;
  background-color: var(--white);
}

/** Loader **/
#content-loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: var(--main-500);
  opacity: 0.3;
  z-index: 200;
  display: none;
}

.loader {
  width: 60px;
  aspect-ratio: 1;
  display: flex;
  animation: l10-0 2s infinite steps(1);
  position: absolute;
  top: 50%;
  left: 50%;
}

.loader::before,
.loader::after {
  content: "";
  flex: 1;
  animation: l10-1 1s infinite linear alternate,
    l10-2 2s infinite steps(1) -0.5s;
}

.loader::after {
  --s: -1, -1;
}

@keyframes l10-0 {
  0% {
    transform: scaleX(1) rotate(0deg);
  }
  50% {
    transform: scaleX(-1) rotate(-90deg);
  }
}

@keyframes l10-1 {
  0%,
  5% {
    transform: scale(var(--s, 1)) translate(0px) perspective(150px)
      rotateY(0deg);
  }
  33% {
    transform: scale(var(--s, 1)) translate(-10px) perspective(150px)
      rotateX(0deg);
  }
  66% {
    transform: scale(var(--s, 1)) translate(-10px) perspective(150px)
      rotateX(-180deg);
  }
  95%,
  100% {
    transform: scale(var(--s, 1)) translate(0px) perspective(150px)
      rotateX(-180deg);
  }
}

@keyframes l10-2 {
  0% {
    background: #514b82;
    border-radius: 0;
  }
  50% {
    background: #25b09b;
    border-radius: 100px 0 0 100px;
  }
}

.breadcrumb-chevron {
  --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  gap: .5rem;
}
.breadcrumb-chevron .breadcrumb-item {
  display: flex;
  gap: inherit;
  align-items: center;
  padding-left: 0;
  line-height: 1;
}
.breadcrumb-chevron .breadcrumb-item::before {
  gap: inherit;
  float: none;
  width: 1rem;
  height: 1rem;
}

.breadcrumb-custom .breadcrumb-item {
  position: relative;
  flex-grow: 1;
  padding: .75rem 3rem;
}
.breadcrumb-custom .breadcrumb-item::before {
  display: none;
}
.breadcrumb-custom .breadcrumb-item::after {
  position: absolute;
  top: 50%;
  right: -25px;
  z-index: 1;
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  content: "";
  background-color: var(--bs-tertiary-bg);
  border-top-right-radius: .5rem;
  box-shadow: 1px -1px var(--bs-border-color);
  transform: scale(.707) rotate(45deg);
}
.breadcrumb-custom .breadcrumb-item:first-child {
  padding-left: 1.5rem;
}
.breadcrumb-custom .breadcrumb-item:last-child {
  padding-right: 1.5rem;
}
.breadcrumb-custom .breadcrumb-item:last-child::after {
  display: none;
}
