/* ESTILOS GENERALES */
:root {
  --color-primario: #1a5276;
  --color-secundario: #3498db;
  --color-exito: #27ae60;
  --color-peligro: #e74c3c;
  --color-advertencia: #f39c12;
  --color-texto: #333;
  --color-fondo: #f5f5f5;
  --color-borde: #ddd;
  --color-sombra: rgba(0, 0, 0, 0.1);
  --color-blanco: #fff;
  --color-gris: #95a5a6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  color: var(--color-texto);
  line-height: 1.6;
  background-color: var(--color-fondo);
}

body::before {
  content: "";
  background-image: url('../images/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* HEADER */
header {
  background-color: var(--color-blanco);
  padding: 10px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px var(--color-sombra);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo-empresa {
  height: 50px;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.logo-empresa:hover {
  transform: scale(1.05);
}

.whatsapp-logo {
  width: 30px;
  height: 30px;
  margin-right: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-logo:hover {
  transform: scale(1.2);
}

nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav button {
  background-color: transparent;
  color: var(--color-texto);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  border-radius: 5px;
  font-weight: 500;
}

nav button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-primario);
}

/* MAIN CONTENT */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 120px;
  margin-bottom: 100px;
  padding: 0 20px;
}

#form-reserva {
  background-color: rgba(255, 255, 255, 0.98);
  padding: 30px;
  border-radius: 12px;
  width: 70%;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-borde);
}

#form-reserva h2 {
  color: var(--color-primario);
  margin-bottom: 25px;
  font-size: 1.8em;
  font-weight: 700;
}

/* FORMULARIO */
form input, form select {
  padding: 12px 15px;
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 15px;
  height: 45px;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  width: 100%;
}

form input:focus, form select:focus {
  border-color: var(--color-primario);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.2);
}

form .row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--color-blanco);
  border: 2px solid var(--color-primario);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
  background-color: rgba(26, 82, 118, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-primario);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* DIMENSIONES ESPECÍFICAS */
#aeropuerto {
  flex: 2;
  min-width: 250px;
}

#numero-vuelo {
  flex: 1;
  min-width: 150px;
}

#fecha, #hora {
  flex: 1;
  min-width: 150px;
}

#personas {
  flex: 1;
  min-width: 120px;
}

#direccion, #nombre {
  flex: 1;
  min-width: 250px;
}

#email, #celular {
  flex: 1;
  min-width: 250px;
}

/* BOTONES PRINCIPALES */
#cotizar-btn,
#tarifa-btn,
#metodo-pago-btn,
#reservar-btn,
#eliminar-btn {
  height: 45px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  min-width: 200px;
  transition: all 0.3s ease;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#cotizar-btn {
  width: 300px;
  background-color: var(--color-primario);
  color: var(--color-blanco);
  position: relative;
}

#cotizar-btn:hover {
  background-color: #154360;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#tarifa-btn {
  background-color: var(--color-advertencia);
  color: #000;
}

#tarifa-btn:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
}

#metodo-pago-btn {
  background-color: var(--color-secundario);
  color: var(--color-blanco);
}

#metodo-pago-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

#reservar-btn {
  background-color: var(--color-exito);
  color: var(--color-blanco);
}

#reservar-btn:hover {
  background-color: #219653;
  transform: translateY(-2px);
}

#reservar-btn:disabled {
  background-color: var(--color-gris);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#eliminar-btn {
  background-color: var(--color-peligro);
  color: var(--color-blanco);
}

#eliminar-btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

.voucher-modal {
  max-width: 800px;
  padding: 0;
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  position: absolute;
  right: 20px;
  top: 10px;
}

.close-modal:hover {
  color: #333;
}

/* ESTILOS PARA EL VOUCHER */
#voucher-container {
  font-family: 'Roboto', Arial, sans-serif;
  border: 2px solid var(--color-primario);
  padding: 30px;
  background-color: white;
  color: var(--color-texto);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}

.voucher-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-primario);
}

.voucher-header h2 {
  color: var(--color-primario);
  margin: 10px 0;
  font-size: 24px;
  font-weight: 700;
}

.voucher-header img {
  height: 80px;
  margin-bottom: 15px;
}

.voucher-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.voucher-section h3 {
  color: var(--color-primario);
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.voucher-row {
  display: flex;
  margin-bottom: 10px;
  font-size: 16px;
  align-items: flex-start;
}

.voucher-label {
  font-weight: bold;
  width: 180px;
  color: #555;
  flex-shrink: 0;
}

.voucher-value {
  flex: 1;
  word-break: break-word;
}

.voucher-footer {
  margin-top: 25px;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.voucher-footer h3 {
  color: var(--color-primario);
  margin-bottom: 10px;
}

.voucher-footer ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.voucher-footer li {
  margin-bottom: 5px;
}

.voucher-gracias {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: var(--color-primario);
}

.voucher-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  padding: 20px 0;
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #eee;
}

.voucher-actions button {
  padding: 12px 25px;
  background-color: var(--color-primario);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
  min-width: 200px;
}

.voucher-actions button:hover {
  background-color: #154360;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* OPCIONES DE PAGO */
.opcion-pago {
  padding: 15px;
  margin: 10px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 15px;
}

.opcion-pago:hover {
  border-color: var(--color-secundario);
  background-color: #f8f9fa;
}

.opcion-pago.seleccionado {
  border-color: var(--color-exito);
  background-color: #e8f8f0;
}

.pago-icono {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.05);
  border-radius: 50%;
}

.pago-contenido h4 {
  margin-bottom: 5px;
  color: var(--color-texto);
}

.pago-contenido p {
  color: #666;
  font-size: 14px;
}

.confirmar-btn {
  background-color: var(--color-exito);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  width: 100%;
  height: 45px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.confirmar-btn:hover {
  background-color: #219653;
}

/* FOOTER */
footer {
  background-color: white;
  padding: 15px;
  width: 100%;
  text-align: center;
  position: fixed;
  bottom: 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 1000;
}

footer p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* UTILIDADES */
.hidden {
  display: none !important;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ANIMACIONES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  #form-reserva {
    width: 85%;
    padding: 20px;
  }

  #aeropuerto {
    width: 100%;
  }

  #numero-vuelo, #fecha, #hora, #personas {
    width: 48%;
  }

  #direccion, #comuna, #nombre, #celular {
    width: 100%;
  }

  /* Voucher responsive */
  #voucher-container {
    padding: 20px;
  }
  
  .voucher-row {
    flex-direction: column;
  }
  
  .voucher-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .voucher-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .voucher-actions button {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

@media (max-width: 480px) {
  #form-reserva {
    width: 95%;
    padding: 15px;
  }

  #numero-vuelo, #fecha, #hora, #personas {
    width: 100%;
  }

  header {
    flex-direction: column;
    padding: 10px;
  }

  .logo-empresa {
    margin: 10px 0;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  /* Voucher mobile */
  #voucher-container {
    padding: 15px;
  }

  .voucher-header img {
    height: 60px;
  }

  .voucher-header h2 {
    font-size: 20px;
  }

  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #cotizar-btn {
    width: 100%;
  }
}

/* ESTILOS PARA IMPRESIÓN */
@media print {
  body * {
    visibility: hidden;
  }

  #voucher-container, #voucher-container * {
    visibility: visible;
  }

  #voucher-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow: visible;
  }

  .voucher-actions {
    display: none !important;
  }

  @page {
    size: letter;
    margin: 15mm;
  }
}
/* Estilos para el contenedor de servicios */
.servicios-container {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 12px;
    width: 70%;
    max-width: 800px;
    margin: 0 auto 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-borde);
    text-align: center;
}

.servicios-container h2 {
    color: var(--color-primario);
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 700;
}

.servicio-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--color-borde);
    text-align: left;
}

.servicio-card h3 {
    color: var(--color-primario);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.servicio-card p {
    color: var(--color-texto);
    line-height: 1.6;
}

#contactar-btn {
    background-color: var(--color-primario);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 200px;
    height: 45px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#contactar-btn:hover {
    background-color: #154360;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-container {
        width: 85%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .servicios-container {
        width: 95%;
        padding: 15px;
    }
}
/* Estilos para el contenedor de contacto */
.contacto-container {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 12px;
    width: 70%;
    max-width: 800px;
    margin: 0 auto 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-borde);
    text-align: center;
}

.contacto-container h2 {
    color: var(--color-primario);
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 700;
}

.contacto-info p {
    margin-bottom: 30px;
    color: var(--color-texto);
    font-size: 1.1em;
}

.contacto-metodos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.metodo-contacto {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--color-borde);
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s ease;
}

.metodo-contacto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contacto-icono {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.metodo-contacto h3 {
    color: var(--color-primario);
    margin-bottom: 10px;
}

.metodo-contacto p {
    margin-bottom: 15px;
    color: var(--color-texto);
}

.contacto-btn {
    background-color: var(--color-primario);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.contacto-btn:hover {
    background-color: #154360;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#contactar-btn {
    background-color: var(--color-primario);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 200px;
    height: 45px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#contactar-btn:hover {
    background-color: #154360;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-container {
        width: 85%;
        padding: 20px;
    }
    
    .contacto-metodos {
        flex-direction: column;
        align-items: center;
    }
    
    .metodo-contacto {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contacto-container {
        width: 95%;
        padding: 15px;
    }
}