* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body, html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.box {
  display: flex;
  justify-content: center;
  align-items: center;
}
.top {
  background: rgb(255, 255, 255);
  height: 70px;
}
.contenedortop {
  display: flex;
  flex-wrap: wrap;
  width: 800px;
  max-width: 100%;
  margin-top: 10px;
  border: 0px solid #ffffff;
  border-radius: 8px;
  overflow: hidden;
}
/* Columnas */
.columna1,
.columna2 {
  display: flex;                /* Activa flexbox en cada columna */
  justify-content: center;      /* Centra horizontalmente */
  align-items: center;          /* Centra verticalmente */
  text-align: center;           /* Centra texto */
  padding: 15px;
  box-sizing: border-box;
  min-height: 150px;            /* Altura mínima visible */
}

.columna1 {
  flex: 0 0 30%;
  background-color: #ffffff;
}

.columna2 {
  flex: 0 0 70%;
  font-size: 24px;
  font-weight: bold;
}


.middle {
  background: #ffffffff;
  flex: 1;
  padding: 10px;
}
.nav-bar{
  background: #ccc;
  padding: 10px;
  height: 80px;
}
.bottom {
  background: rgb(0, 0, 0);
  height: 60px;
  color: #fff;
}
/* Formulario */
.form-container {
  background: #f9f9f9;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  color: #333;
  width: 100%;
  max-width: 400px;
  border: 1px solid #e0e0e0;
}
.form-container h2 {
  margin-bottom: 10px;
  font-weight: 500;
  color: #444;
  font-size: 16px;
}
.form-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  transition: border 0.3s ease;
}
.form-container input:focus {
  border: 1px solid #888;
}
.form-container button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4a90e2;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.form-container button:hover {
  background: #357ab8;
  transform: scale(1.03);
}
.form-container label {
  display: block;
  text-align: left;
  font-size: 14px;
  margin: 10px 0 5px;
  color: #555;
}
.form-container select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  transition: border 0.3s ease;
  background: #fff;
}

.form-container select:focus {
  border: 1px solid #888;
}
/* Radios en línea */
.radio-group {
  display: flex;
  justify-content: space-between; /* separa ambos */
  gap: 15px; /* espacio entre ellos */
  margin: 10px 0 15px;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
  margin: 0; /* sobreescribimos el margin del label global */
}

.radio-group input[type="radio"] {
  margin-right: 6px;
}

/* Ajuste del checkbox */
.check-extranjero {
  text-align: left;
  margin: 5px 0 10px;
}

.check-extranjero label {
  font-size: 13px;
  color: #555;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;   /* 🔑 evita que el texto salte de línea */
  gap: 6px;
  cursor: pointer;
}

.check-extranjero input[type="checkbox"] {
  margin: 0;
}

/* Ajustes móviles */
@media (max-width: 600px) {
  .form-container {
    padding: 20px;
    max-width: 100%;
  }

  .form-container h2 {
    font-size: 18px;
  }

  .form-container input, 
  .form-container button {
    font-size: 14px;
    padding: 10px;
  }
    .middle {
    display: flex;
    align-items: flex-start; /* formulario arriba */
    justify-content: center; /* centrado horizontal */
    padding-top: 40px; /* ajusta según gusto */
  }
}
