:root{
  --primary-dark: #003164;
  --primary: #004894;
  --primary-light: #0E5AA6;
  --accent: #FF8A00;
  --accent-light: #F2832A;
  --white: #FFFFFF;
  --primary-extra-light: #F5F9FF; 
  --gray-light:#f8f9fa;
  --gray: #6c757d;
  --dark: #212529;
  --glass: rgba(255, 255, 255, 0.25);
  --glass-dark: rgba(0, 0, 0, 0.05);
  --shadow-light: 0 4px 25px rgba(0, 49, 100, 0.08);
  --shadow-medium: 0 8px 40px rgba(0, 49, 100, 0.12);
  --shadow-heavy: 0 20px 60px rgba(0, 49, 100, 0.25);
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
}

h4, h5, h6 {
  font-family: 'Poppins', serif;
}

body {
  font-size: 16px;
  font-family: 'Nunito', serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 15px;
  overflow-y: auto;
}

.container {
  margin: 0 auto;
  width: 100%;
  max-width: 650px;
}

.img-fondo{
  width: 60px;
  height: 35px;
}

.img-logo {
  width: 200px;
  height: 60px;
}

.card {
  max-width: 700px;
  margin: auto;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
}

.content{
  padding: 5px;
  background-color: #fff;
}

.card-title, .form-label{
  color: #2A2F3D;
}

.input-group {
  margin-bottom: 20px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.input-group-text {
  background-color: #5D87FF;
  border-color: #5D87FF;
  color: #fff;
}

input.form-control{
  color: #2A2F3D;
}

.form-control:focus{
  border-color:#5D87FF;
  box-shadow: none;
}

.btn-primary {
  border-color: #5D87FF;
  background-color: #5D87FF;
  width: 100%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.btn-primary:hover {
  border-color: #ffff;
  background-color: #ffff;
  color: #5D87FF;
}

        .btn-outline {
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary);
            border: 2px solid var(--primary);
            backdrop-filter: blur(10px);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: var(--white);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 72, 148, 0.3);
        }
        .btn-glass {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            color: var(--primary-dark);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-glass:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

#boton:active {
  border-color: #ffff;
  background-color: #ffff;
  color: #5D87FF;
}

.btn-container-center {
  text-align: center;
  margin-top: 12px;
}

.section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 20px 25px;
  margin-bottom: 0;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 90%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.8s ease;
}

.section:hover::before {
  left: 90%;
}

.section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
} 

.section-title {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
}

.title{
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}

.form-showcase {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group {
  margin-bottom: 10px;
  position: relative;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-align: left;
  width: 100%;
}

.form-control {
  width: 100%;
  max-width: 350px;
  padding: 10px 18px;
  font-family: 'Open Sans', sans-serif;
  border: 2px solid rgba(0, 72, 148, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 72, 148, 0.1);
  background: var(--white);
  transform: translateY(-1px);
}

.form-group small {
  font-size: 0.75rem;
  margin-top: 3px;
  text-align: center;
  display: block;
  width: 100%;
}

.btn {
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 138, 0, 0.4);
}

.text-center.mt-4 {
  margin-top: 10px !important;
}

.text-center.mt-4 p {
  margin-bottom: 5px !important;
  font-size: 0.85rem !important;
}



.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.checkbox-error {
  outline: 1px solid rgba(208, 56, 56, 0.247);
  outline-offset: 2px;
}

.campo-requerido {
  color: red;
  margin-left: 3px;
}

/* Estilos para el input de contraseña con icono */
.password-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.password-wrapper .form-control {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--primary);
  font-size: 1.1rem;
  transition: color 0.3s;
  z-index: 10;
}

.toggle-password:hover {
  color: var(--accent);
}

.error-message {
  color: #d32f2f;
  font-size: 11px;
  margin-top: 3px;
  display: none;
  text-align: left;
  width: 100%;
}

 .checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 8px;
}

.checkbox-container label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1;
}

.checkbox-container input[type="checkbox"] {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-container span {
    flex: 1;
    text-align: left;
    font-size: 12px;
}

#error-mensaje {
  color: red;
  font-size: 11px;
  margin-top: 8px;
  display: none;
  text-align: center;
}

@media (max-height: 800px) {
  body {
    font-size: 14px;
  }
  
  .section {
    padding: 15px 20px;
  }
  
  .section-title {
    font-size: 1rem;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  
  .title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    padding-bottom: 12px;
  }
  
  .form-group {
    margin-bottom: 8px;
    max-width: 300px;
  }
  
  .form-control {
    padding: 9px 15px;
    font-size: 0.85rem;
    max-width: 300px;
  }
  
  .password-wrapper {
    max-width: 300px;
  }
  
  .form-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  
  .img-fondo {
    width: 50px;
    height: 30px;
  }
  
  .btn {
    padding: 9px 24px;
    font-size: 0.9rem;
  }

  .checkbox-container {
    font-size: 10px;
    max-width: 300px;
  }

  .error-message {
    font-size: 10px;
  }
}

@media (max-height: 700px) {
  .section-title {
    font-size: 0.95rem;
  }
  
  .title {
    font-size: 1rem;
    padding-bottom: 8px;
  }
  
  .form-group {
    margin-bottom: 6px;
    max-width: 280px;
  }
  
  .form-control {
    max-width: 280px;
    padding: 8px 14px;
  }
  
  .password-wrapper {
    max-width: 280px;
  }
  
  .btn {
    padding: 8px 20px;
  }

  .checkbox-container {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .form-group {
    max-width: 100%;
  }
  
  .form-control {
    max-width: 100%;
  }
  
  .password-wrapper {
    max-width: 100%;
  }

  .checkbox-container {
    max-width: 100%;
  }
}

/*Alerta de correo enviado en formulario de registro*/
.swal-arriba.swal2-container {
    align-items: flex-start;
    padding: top 35px;
}

.swal-arriba .swal2-icon {
    transform: scale(0.6) ;
    margin: -10px auto 0px ; 
  
}
