@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Estilos base */
* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #3D50FF 0%, #0066CC 100%);
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Centrado del contenedor principal */
.container-fluid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
}

/* Centrado de la fila principal */
.row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Reset para las columnas sin usar !important para evitar conflictos */
.col-sm-10, .col-sm-offset-1, .col-md-8, .col-md-offset-2, .col-lg-8, .col-lg-offset-2 {
  float: none;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cabecera principal */
.welcome-header {
  margin-top: 40px;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.welcome-header h1 {
  font-family: Rubik;
  font-style: normal;
  font-weight: bold;
  font-size: 64px;
  line-height: 1.2;
  text-align: center;
  color: white;
  white-space: nowrap;
  width: 100%;
}

.welcome-header a {
  color: white;
}

.welcome-header h2 {
  font-family: Rubik;
  font-style: normal;
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  color: white;
  white-space: nowrap;
  width: 100%;
}

.welcome-header img {
  width: 280px;
  margin-bottom: 60px;
}

/* Preservar estilo original para las tarjetas */
.welcome-message {
  margin-top: 20px;
}

.h-l {
  min-height: 100px;
  padding: 10px 20px;
  overflow: hidden;
  border-radius: 25px;
  text-align: left; /* Revertir a alineación a la izquierda para mantener el diseño original */
}

.h-l h3 {
  margin-bottom: 10px;
  text-align: left; /* Alineación original */
}

.h-m {
  height: 110px;
  padding-top: 23px;
}

.card-pf {
  border-top: 1px solid rgba(3, 3, 3, 0.1);
  box-shadow: 0 1px 1px rgba(3, 3, 3, 0.275);
  background-color: #333;
  color: white;
  width: 100%;
  border-radius: 25px;
}

.card-pf img {
  width: 22px;
  margin-right: 10px;
  vertical-align: bottom;
}

img.doc-img {
  width: auto;
  height: 22px;
}

.link {
  font-size: 16px;
  vertical-align: baseline;
  margin-left: 5px;
}

h3 {
  font-weight: 550;
}

h3 a:link,
h3 a:visited {
  color: #333;
  font-weight: 550;
}

h3 a:hover,
h3 a:hover .link {
  text-decoration: none;
  color: #00659c;
}

.h-l h3 a img {
  height: 30px;
  width: auto;
}

.description {
  margin-top: 30px;
}

/* Formularios */
.welcome-form label,
.welcome-form input {
  display: block;
  width: 100%;
}

.welcome-form label {
  color: #828486;
  font-weight: normal;
  margin-top: 18px;
}

.welcome-form input {
  border: 0;
  border-bottom: solid 1px #cbcbcb;
}

.welcome-form input:focus {
  border-bottom: solid 1px #5e99c6;
  outline-width: 0;
}

.welcome-form button {
  margin-top: 10px;
}

.error {
  color: #c00;
  border-color: #c00;
  padding: 5px 10px;
}

.success {
  color: #3f9c35;
  border-color: #3f9c35;
  padding: 5px 10px;
}

.welcome-form + .welcome-primary-link,
.welcome-message + .welcome-primary-link {
  display: none;
}

.footer img {
  float: right;
  width: 150px;
  margin-top: 30px;
}

/* Estilos específicos para el mensaje de alerta */
.welcome-message {
  text-align: center;
}

.welcome-message img {
  vertical-align: middle;
}

/* Estilo específico para la columna que contiene la tarjeta negra */
.col-xs-12 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-header {
    margin-top: 30px;
    margin-bottom: 40px;
  }
  
  .welcome-header img {
    width: 220px;
    margin-bottom: 40px;
  }
  
  .welcome-header h1,
  .welcome-header h2 {
    white-space: normal;
    font-size: calc(36px + 1.5vw);
  }
  
  .welcome-header h2 {
    font-size: calc(24px + 1vw);
  }
  
  h3 {
    margin-top: 10px;
  }
  
  .h-l,
  .h-m {
    height: auto;
    min-height: auto;
    padding: 5px 10px;
  }
  
  .h-l img {
    display: inline;
    margin-bottom: auto;
  }
  
  .description {
    display: none;
  }
  
  .footer img {
    margin-top: 10px;
  }
}