/* Estilos generales */
body {
    font-family: 'Garamond', serif;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;

    /* Fondo turístico */
    background-image: url('../img/plane.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.text {
  color: white;
  font-size: 32px;
  font-weight: 600;
 
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */
  text-align: center;
  height: 100%;           /* altura fija para centrar verticalmente */
  
  
}
.text_uno {
  color: white;
  font-size: 22px;
  font-weight: 300;
  align-items: center;     /* centra verticalmente */
  text-align: center;
  height: 100%;           /* altura fija para centrar verticalmente */
 
}

/* Estilos del encabezado y navegación (no se modifican) */
.formulario {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
}

.header-container { padding: 20px; background-color: #fff8dc; }
.contenido-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.titulo-pagina-inline p { margin: 0; font-size: 1rem; color: #DAA520; }
.titulo-pagina-inline h1 { margin: 0; font-size: 2rem; color: #FFD700; font-weight: bold; text-shadow: 1px 1px 2px #B8860B; }
.logo-container img { width: 100px; height: 100px; object-fit: contain; background-color: #fff8dc; border-radius: 8px; padding: 5px; }
.nav-menu { background-color: #f8f9fa; padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
.nav-menu ul { list-style-type: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 20px; }
.nav-menu li a { text-decoration: none; color: #004d73; font-size: 16px; font-weight: bold; padding: 10px 15px; transition: color 0.3s ease; }
.nav-menu li a:hover { color: #007bff; }

/* Estilos para las pestanas y botones */
/*.pestanas { display: flex; justify-content: flex-start; border-bottom: 2px solid #ccc; margin-bottom: 20px; }
.pestanas button {background-color: #f2f092; border: none; padding: 15px 30px; cursor: pointer; font-size: 16px; color: #666; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.pestanas button.active { background-color: #f1f1f1; border-bottom: 2px solid #3498db; font-weight: bold; color: #000; }
.pestanas button:hover { background-color: #deeffb; }*/

.pestanas {
  display: flex;
  justify-content: space-between; /* distribuye el espacio */
  border-bottom: 2px solid #ccc;
  margin-bottom: 20px;
  width: 100%;
}
/* Estilos para las pestanas y sus botones */
.pestanas button {
  background-color: #fff8dc;  
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  flex: 1; /* cada botón ocupa el mismo ancho */
  text-align: center;
}

.pestanas button.active {
  background-color: #dcf9d8;
  border-bottom: 2px solid #3498db;
  font-weight: bold;
  color: #fa7d4c;
}

.pestanas button:hover {
  background-color: #deeffb;
}

/*Estilos para botones*/
.continue-btn, .boton-add-return, .boton-search {
    background-color: #927efa;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Garamond', serif;
    width: 100%;
    margin-top: 22px;

}
/*Boton Round Trip -Add return information */
.campo-boton {
display: flex;
 justify-content: center;
  padding: 10px 0;
}

.boton-add-return {   background-color: #dcf9d8;  width: 70%;  color: red}

/* Estilos para el contenedor de las pestanas */
.tab-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

#contenido-transfer {
    display: block;
}

#contenido-taxi {
    display: none;
}

.campo-contenedor1 {
    flex: 1 1 100%; /* Por defecto, ocupa el 100% del ancho y se apila */
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 20px; /* Espaciado entre filas */

}
.campo-contenedor1 label {
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    background: white;
    padding: 0 4px;
    color: #ec2828;
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
}
/*============ESTILOS PARA BOTONES=====*/
.selection-group-container {
    /* Separación superior/inferior de 10px del resto de la interfaz */
    margin-top: 10px;
    margin-bottom: 20px;
    
    /* Separación de 5px entre los elementos hijos (.radio-option) */
    display: flex; /* Usamos Flexbox para controlar el espaciado vertical */
    flex-direction: column;
    gap: 5px; 
}

.radio-option {
    /* Define la opción como bloque */
    display: block; 
    width: 50%; /* Ocupa todo el ancho disponible */    
    /* Requisitos de estilo y borde */
    background-color: white; 
    border: 1px solid red; 
    padding: 10px; /* Padding interno para que el contenido no toque el borde */
    border-radius: 5px; /* Suaviza las esquinas */
    cursor: pointer; /* Indica que es clickeable */
}

.radio-option-round{
      /* Define la opción como bloque */
    display: block; 
    width: 50%; /* Ocupa todo el ancho disponible */    
    /* Requisitos de estilo y borde */
    background-color: #dcf9d8; 
    border: 1px solid red; 
    padding: 10px; /* Padding interno para que el contenido no toque el borde */
    border-radius: 5px; /* Suaviza las esquinas */
    cursor: pointer; /* Indica que es clickeable */  
}


/* * 3. Alineación del Contenido (Input y Label)
 * Requisito: Texto alineado horizontalmente a continuación del check box.
 */
.radio-option input[type="radio"] {
    /* Coloca el checkbox en línea */
    margin-right: 10px; 
    /* Alinea el checkbox al centro de la línea de texto */
    vertical-align: top;
}
.radio-option .title {
    font-weight: bold;
}
   
/* ------------------------------------------------------------- */
/* Estilos para inputs, select, labels, icons y span*/
input[type="text"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 12px 10px 10px;
    box-sizing: border-box;
    border: 1px solid #fc7436da;
    border-radius: 5px;
    font-family: 'Garamond', serif;
    font-size: 12px;
}

.status-icon {
  margin-left: 8px;
  font-size: 18px;
  vertical-align: middle;
  transition: color 0.3s ease;
}

.status-icon.valid {
  color: #27ae60; /* verde */
}

.status-icon.invalid {
  color: #c0392b; /* rojo */
}
/*Panel personalizado generado en el archivo importado 12-01geoAutocomplete.js */
.geo-suggestion-box {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.geo-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
}

.geo-suggestion-item:hover {
  background-color: #f0f0f0;
}

/* Estilos para el campo de pasajeros */
.pasajero-input select,
.pasajero-input input[type="number"] {
    width: 100%;
    padding: 8px; /* Ajustado para consistencia */
}

/* ------------------------------------------------------------- */
/* Estilos para los campos de retorno (return) */
.return-fields-container {
    display: none; /* Se activa con JS */
    flex-direction: column;
    gap: 1.0rem;
    padding: 1rem 0;
}

.return-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 20px;
}

.return-row-address {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 80%;
}

.campo-contenedor-return {
    flex: 1 ;
    position: relative;
}

.campo-contenedor-return input {
    width: 100%;
    padding: 10px 10px 10px;
    border: 1px solid #fc7436da;
    border-radius: 5px;
    box-sizing: border-box;
}

#label-return {
    position: absolute;
    top: 0;
    left: 20px;
    transform: translateY(-50%);
    background: white;
    padding: 0 4px;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Garamond', serif;
    font-size: 12px;
    font-weight: 600;
    color: #f36f3a;
}

.remove-return-btn {
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-weight: 500;
    cursor: pointer;
    padding: 25px;
    line-height: 1;
}

.remove-return-btn {
  color:white;
  font-size: 12px;   
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group, .input-group-return {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px; /* Espacio entre input y botón */
}

/*VENTANA MODAL Y SUS ESTILOS*/

.modal-alert {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.modal-alert.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-alert.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alert-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.close-btn:hover {
  color: #000;
}


.hidden {
  display: none;
}




/* ------------------------------------------------------------- */
/* Media Query para pantallas más grandes (a partir de 768px) */
@media (min-width: 768px) {
    .formulario {
        width: 60%;
    }

    /* Coloca los campos en una fila para pantallas grandes */
    .fila-campos {
        flex-wrap: nowrap;
    }


    /* Ajustes específicos para los campos de retorno en pantallas grandes */
    .return-row {
        flex-wrap: nowrap;
    }

    .campo-contenedor-return.boton-x {
        flex: 0 0 50px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
.campo-contenedor-return {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 10px;
    box-sizing: border-box;
  }

#return-address {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px;
    box-sizing: border-box;
  }

  #label-return {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .modal-content {
    width: 50%;
    padding: 1.0rem;
    font-size: 14px;
  }

  .close-btn {
    top: 0.5rem;
    right: 1rem;
    font-size: 1.2rem;
  }


}