* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

:root {
  --topbar-height: 100px;
}

body {
  background-color: #f4f7f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--topbar-height) + 25px); 
}

/* Contenedor principal de la tarjeta */
.login-card {
  display: flex;
  width: min(750px, 95%);
  background-color: #ffffff;
  border-radius: 24px;
  border: 1.5px solid #20b8c5;
  overflow: hidden; /* Mantiene bordes redondeados en los paneles internos */
  gap: 24px; /* Crea espacio uniforme entre la barra lateral y el formulario */
}

/* Panel Izquierdo (Sidebar) */
.sidebar {
  background-color: #023061;
  color: #ffffff;
  width: 32%;
  padding: 40px 15px; /* Reducimos el padding lateral de 30px a 15px */
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;   
}

/* Contenedor del icono */
.sidebar-icon {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilo de la imagen */
.sidebar-icon img {
  width: clamp(250px, 33vw, 350px);
  height: auto;
  opacity: 1; /* Valor correcto (de 0 a 1) */
}

.linea-decorativa {
  width: 35px;
  height: 2px;
  background-color: #20b8c5;
  margin-top: 12px;
}

/* Panel Derecho (Formulario) */
.form-container {
  width: 68%;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
}

/* Ajustes adicionales al formulario */
.form-container h1, .form-container p {
  color: #023061;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.form-container label {
  color:  #023061;
  padding: 9px;
}

#btn-ing {
  background-color: #023061;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 9px;
}

.input-form {
  width: 100%; /* O el ancho que desees para llenar el contenedor */
  padding: 12px 20px; /* Espacio interior para que el texto no toque el borde */
  border: 1px solid #e1e8ed; /* Borde gris claro */
  border-radius: 10px; /* Bordes MUY redondeados (ESTE ES EL SECRETO) */
  background-color: #f9fbfd; /* Fondo muy claro (como en la imagen) */
  box-sizing: border-box; /* Importante para que el padding no estire el ancho total */
  font-size: 16px; /* Tamaño de fuente del texto de entrada */
  color: #023061; /* Color del texto de entrada */
}

/* Opcional: Asegurar que los títulos <h3> se vean como en la imagen */
.form-container h3 {
  font-weight: normal; 
  color: #023061; /* Texto negro */
  font-size: 18px; /* Tamaño de fuente de los títulos */
  padding-bottom: 7px;
  padding-top: 7px;
}

.linea-decorativas{
    background-color: #20b8c5;    
}

.raya-decorativa {
  width: 200px;
  height: 2px;
  background-color: #20b8c5;
  margin: auto  auto;
}

#text-correo{
  padding-top: 25px;
}

#olvidar-contraseña{
 padding-bottom: 9px;
}


/* Estilo base del checkbox igualado a los inputs */
#checkbox1,
#Acepto.checkbox-terminos,
.checkbox-terminos,
.checkbox-terminos-label input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  background-color: #f9fbfd;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  outline: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#checkbox1:checked,
#Acepto.checkbox-terminos:checked,
.checkbox-terminos:checked,
.checkbox-terminos-label input:checked {
  background-color: #023061;
  border-color: #023061;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2L4.8 8.5L9.5 3.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-container {
  margin-top: 17px;
}

.checkbox-label,
.checkbox-terminos-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #023061;
  font-size: 17px;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label > input,
.checkbox-terminos-label > input {
  margin: 0;
}

.checkbox-label {
  cursor: pointer;
}

.form-container form label {
  display: flex;
  align-items: center;
  padding: 9px 0;
}

.checkbox-terminos-wrap .checkbox-terminos-label {
  align-items: center;
}

a {
 text-decoration: none;
 color: #20b8c5;
}

.footer-container span{
 color: #20b8c5; 
}

.footer-container p {
  color: #023061
}

.footer-mesage{
  width: 70%; /* O el ancho que desees para llenar el contenedor */
  padding: 12px 20px; /* Espacio interior para que el texto no toque el borde */
  border: 1px solid #e1e8ed; /* Borde gris claro */
  border-radius: 10px; /* Bordes MUY redondeados (ESTE ES EL SECRETO) */
  background-color: white; /* Fondo muy claro (como en la imagen) */
  box-sizing: border-box; /* Importante para que el padding no estire el ancho total */
  font-size: 20px; /* Tamaño de fuente del texto de entrada */
  color: #023061; /* Color del texto de entrada */
  text-align: center;
}

.footer-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra todos los elementos hijos */
  margin-bottom: 30px;
}

/* Contenedor principal fijo arriba */
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar-height);
  z-index: 1000;
  background-color: white;
  display: flex;
  align-items: center;      /* Centra verticalmente */
  padding: 0 24px;          /* Espaciado hacia los bordes de la ventana */
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Contenedor interno */
.sub-topbar {
  width: 100%;              /* Ocupa todo el ancho de la topbar */
  display: flex;
  justify-content: space-between; /* Empuja un bloque a cada extremo */
  align-items: center;      /* Alinea texto y logo al centro vertical */
}

/* Estilos de la imagen */
.logo-topbar img {
  width: clamp(120px, 18vw, 250px);             /* Ajusta según el tamaño que desees */
  height: auto;
  display: block;
}

/* Estilos del texto */
.texto-topbar h2 {
  color: #023061;
  margin: 0;                /* Elimina márgenes por defecto del h2 */
  font-size: clamp(1rem, 2.2vw, 1.3rem);        /* Ajuste responsive */
}

.input-oculto {
  display: none;
}

.boton-archivo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 12px;
  flex-wrap: nowrap; /* Evita que el texto baje a la siguiente línea */
}

.boton-archivo label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #023061;
  border: none;
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
  min-width: 180px;
}

.boton-personalizado:active {
  background-color: #012d48;
  transform: translateY(0);
}

.texto-archivo {
  color: #003366;
  font-family: sans-serif;
  font-size: 17px;
  text-align: center;
  word-break: break-word;
}

select,
input { width: 100%; max-width: 100%; min-width: 0; font-size: 16px; background-color: var(--fondo-select); }

select {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

option {
  width: fit-content;
  white-space: normal;
  background-color: #fff;
  padding: 10px 12px;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-toggle {
  width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  background-color: #f9fbfd;
  color: #023061;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.custom-select-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 3px);
  left: 0;
  display: none;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  background: #fff;
}

.custom-select.is-open .custom-select-options { display: block; }

.custom-select-options button,
.container-buttons buttons {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e1e8ed;
  background: #fff;
  color: #023061;
  font: inherit;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.custom-select-options button:hover { background-color: #c7ddf4; }

.custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  :root { --topbar-height: 80px; }
  .topbar { height: var(--topbar-height); padding: 8px 16px; }
  .sub-topbar { flex-direction: column; gap: 8px; align-items: flex-start; }
  .logo-topbar img { width: 160px; }
  .texto-topbar { align-self: flex-end; }
  body { padding-top: calc(var(--topbar-height) + 25px); }
  .login-card { flex-direction: column; width: min(680px, 95%); }
  .sidebar { width: 100%; padding: 20px; }
  .form-container { width: 100%; padding: 20px; }
}

@media (max-width: 480px) {
  :root { --topbar-height: 72px; }
  .topbar { height: var(--topbar-height); padding: 6px 12px; }
  .logo-topbar img { width: 140px; }
  .texto-topbar h2 { font-size: 1rem; }
  .login-card { gap: 12px; }
  .sidebar { padding: 12px; }
  .form-container { padding: 12px; }
  #btn-ing { font-size: 20px; padding: 12px; }
}