/* =========================
   ESTILOS GENERALES
========================= */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  background: #f5f5f5;
  padding: 20px;
  box-sizing: border-box;
}

/* =========================
   TARJETA PRINCIPAL
========================= */
.card {
  background: white;
  width: 100%;
  max-width: 700px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* =========================
   LOGO
========================= */
.logo {
  display: block;
  margin: 0 auto 10px auto;
  width: 110px;
}

/* =========================
   TITULOS
========================= */
h1 {
  text-align: center;
  color: #2e7d32;
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 28px;
}

.subtitulo {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 15px;
}

h3 {
  color: #2e7d32;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

h4 {
  color: #444;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* =========================
   PROTECCIÓN DE DATOS
========================= */
.swal2-html-container{
    overflow:hidden !important;
}

.modalDatos{
    text-align:left;
    font-family:Arial, sans-serif;
    font-size:14px;
    line-height:1.6;
    color:#444;
    max-height:60vh;
    overflow-y:auto;
    padding-right:10px;
}

.modalDatos h2{
    text-align:center;
    color:#0b4a7d;
    margin-bottom:20px;
    font-size:24px;
}

.modalDatos ul{
    padding-left:20px;
}

.contenedorCheck{
    margin-top:20px;
    padding:15px;
    border-radius:10px;
    background:#f4f7fb;
    border:1px solid #dce5ef;
}

.checkDatos{
    display:flex;
    align-items:flex-start;
    gap:10px;
    cursor:pointer;
}

.checkDatos input{
    margin-top:4px;
    transform:scale(1.2);
}

@media(max-width:768px){

    .swal2-popup{
        width:95% !important;
    }

    .modalDatos{
        font-size:13px;
        max-height:50vh;
    }

    .modalDatos h2{
        font-size:20px;
    }

}

/* =========================
   LABELS
========================= */
label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

/* =========================
   INPUTS Y SELECTS
========================= */
input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 14px;
  background: white;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3b78e7;
  box-shadow: 0 0 4px rgba(59,120,231,0.4);
}

/* =========================
   BOTONES
========================= */
button {
  width: 100%;
  padding: 14px;
  background: #3b78e7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #2f65c7;
}

/* =========================
   MENSAJES
========================= */
#resultado {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

#spinner {
  margin-top: 15px;
  text-align: center;
  color: #3b78e7;
  font-weight: bold;
}

/* =========================
   SEPARADORES
========================= */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

.fila-predio {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.fila-torre {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fila-torre label {
  margin: 0;
  min-width: 60px;
}

.fila-torre select {
  width: auto;
  margin-bottom: 0;
}

.fila-referencia {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fila-referencia label {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.fila-referencia input {
  width: 140px;
  margin: 0;
}

.fila-matricula {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fila-matricula label {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.fila-matricula input {
  margin: 0;
}

.fila-codigo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fila-codigo label {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.fila-codigo input {
  margin: 0;
}

.fila-adultos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fila-adultos label {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.fila-adultos input {
  width: 120px;
  margin: 0;
}

.fila-menores {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fila-menores label {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.fila-menores input {
  width: 120px;
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .card {
    padding: 18px;
  }

  h1 {
    font-size: 24px;
  }

  input,
  select {
    font-size: 17px;
    padding: 14px;
  }

  button {
    font-size: 18px;
    padding: 16px;
  }
}