/* =====================================================================
   home.css — portada (index.html en EN/ES/DE/FR) · 2026-09-10
   y, desde el 2026-09-11, también las 288 landings (destinos, hoteles, minivan).
   Hero + formulario de reserva (escritorio y móvil) y retoques de la
   home. Se carga al final del <head>, después de styles.min.css y de los
   <style> inline de la página; las reglas del hero usan "header#home"
   (un id) para ganar a las capas antiguas con !important.
   Regla de oro en móvil: el precio total tiene que verse sin hacer scroll.
   Se aplica con: python _tools/aj_home_build.py (portada)
                  python _tools/aj_landing_form_build.py (landings)
   Al cambiar este archivo, subir CSS_VER en aj_home_build.py y correr ambos.
   ===================================================================== */

/* ── 1. Formulario: base común (escritorio y móvil) ────────────────── */
html body header#home .reservation-form {
  background: #fff !important;
  border-radius: 16px !important;
  border: none !important;
  border-top: 5px solid #f7c20c !important;
  box-shadow: 0 22px 50px rgba(3, 14, 32, 0.35) !important;
  box-sizing: border-box !important;
}
html body header#home .reservation-form h2 {
  color: #0a2342 !important;
  text-align: center !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}
html body header#home .reservation-form h2::after { content: none !important; }

html body header#home .reservation-form .form-group {
  display: block !important;
  position: relative !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  text-align: left !important;
}
html body header#home .reservation-form .form-group::before,
html body header#home .reservation-form .form-group::after { content: none !important; display: none !important; }
html body header#home .reservation-form .form-group-doble {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 10px !important;
}
html body header#home .reservation-form .form-group-doble .form-group {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
html body header#home .reservation-form label {
  display: block !important;
  color: #334155 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  padding: 0 !important;
}
html body header#home .reservation-form select,
html body header#home .reservation-form input {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: 1.5px solid #d6dee8 !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: #0a2342 !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(10, 35, 66, 0.04) !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
html body header#home .reservation-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a2342' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  padding-right: 36px !important;
  cursor: pointer !important;
}
html body header#home .reservation-form input[type="date"],
html body header#home .reservation-form input[type="time"] {
  min-width: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
html body header#home .reservation-form select:focus,
html body header#home .reservation-form input:focus {
  border-color: #00c4cc !important;
  box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.18) !important;
}
html body header#home .reservation-form select:invalid { color: #64748b !important; font-weight: 500 !important; }
html body header#home .reservation-form .error-message {
  display: none;
  margin: 4px 0 0 !important;
  font-size: 0.72rem !important;
  color: #dc2626 !important;
  font-weight: 500 !important;
  position: static !important;
  transform: none !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Panel del precio total: alineado, centrado verticalmente, precio en dorado */
html body header#home .reservation-form .form-group.total {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  min-height: 60px !important;
  background: linear-gradient(135deg, #0a2342 0%, #163d6b 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(10, 35, 66, 0.22) !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
html body header#home .reservation-form .form-group.total::before,
html body header#home .reservation-form .form-group.total::after { content: none !important; display: none !important; }
html body header#home .reservation-form .form-group.total > p:first-child {
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html body header#home .reservation-form .form-group.total .vat-text {
  display: block !important;
  margin-top: 2px !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.72) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.72) !important;
}
html body header#home .reservation-form #total-price {
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  color: #f7c20c !important;
  -webkit-text-fill-color: #f7c20c !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.5px !important;
  white-space: nowrap !important;
  text-align: right !important;
  transition: transform 0.2s ease !important;
}
html body header#home .reservation-form .form-group.total.is-updated #total-price { transform: scale(1.06); }
/* Sin ruta aún: en vez de "0 €" se muestra una pista (el texto real sigue en el DOM para el JS) */
html body header#home .reservation-form .form-group.total.is-empty #total-price { font-size: 0 !important; letter-spacing: 0 !important; }
html body header#home .reservation-form .form-group.total.is-empty #total-price::after {
  content: attr(data-empty);
  display: block;
  max-width: 170px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.85);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
  text-align: right;
  white-space: normal;
}

/* Botón de reserva: dorado, el color de acción del sitio (.book-button en las landings) */
html body header#home .reservation-form .form-group:has(.btn-submit),
html body header#home .reservation-form .form-group:has(.book-button) { grid-column: 1 / -1 !important; }
html body header#home .reservation-form .btn-submit,
html body header#home .reservation-form .book-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f7c20c 0%, #e0ad0a 100%) !important;
  color: #0a2342 !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(247, 194, 12, 0.35) !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s !important;
}
html body header#home .reservation-form .btn-submit:hover,
html body header#home .reservation-form .book-button:hover {
  background: linear-gradient(135deg, #ffd23a 0%, #f0b90c 100%) !important;
  color: #0a2342 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(247, 194, 12, 0.45) !important;
}
html body header#home .reservation-form .btn-submit:active,
html body header#home .reservation-form .book-button:active { transform: translateY(0) !important; }

/* ── 2. Escritorio ─────────────────────────────────────────────────── */
@media (min-width: 969px) {
  html body header#home .hero-content { align-items: center !important; }
  html body header#home .hero-text { max-width: 620px !important; }
  html body header#home .hero-text h1 {
    font-size: 2.85rem !important;
    line-height: 1.12 !important;
    letter-spacing: -0.3px !important;
    margin: 0 0 16px !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35) !important;
  }
  html body header#home .hero-text .subtitle,
  html body header#home .hero-text > p {
    font-size: 1.02rem !important;
    line-height: 1.6 !important;
    max-width: 540px !important;
    margin: 0 0 22px !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }
  html body header#home .trust-badges { gap: 8px !important; margin: 0 0 26px !important; }
  html body header#home .trust-badges .badge {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.13) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  /* Enlace a tarifas: botón secundario, para que el dorado del formulario sea la acción principal */
  html body header#home .hero-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 13px 26px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
  }
  html body header#home .hero-cta:hover {
    background: #f7c20c !important;
    border-color: #f7c20c !important;
    color: #0a2342 !important;
  }

  html body header#home .reservation-form-wrapper { max-width: 450px !important; }
  html body header#home .reservation-form { padding: 26px 28px 28px !important; }
  html body header#home .reservation-form h2 { font-size: 1.4rem !important; margin: 0 0 18px !important; }
  html body header#home .reservation-form .form-group { margin: 0 0 13px !important; }
  html body header#home .reservation-form .form-group-doble .form-group { margin-bottom: 13px !important; }
  html body header#home .reservation-form label { margin: 0 0 6px !important; }
  html body header#home .reservation-form select,
  html body header#home .reservation-form input {
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 0.97rem !important;
  }
  html body header#home .reservation-form select { padding-right: 38px !important; }
  html body header#home .reservation-form .form-group.total { margin: 4px 0 14px !important; min-height: 66px !important; padding: 12px 18px !important; }
  html body header#home .reservation-form #total-price { font-size: 1.9rem !important; }
  html body header#home .reservation-form .form-group:last-child { margin-bottom: 0 !important; }
  html body header#home .reservation-form .btn-submit,
  html body header#home .reservation-form .book-button { height: 56px !important; padding: 0 20px !important; font-size: 1.02rem !important; }
}

/* ── 3. Móvil: formulario compacto, el precio se ve sin hacer scroll ── */
@media (max-width: 968px) {
  html body header#home .hero-text { margin: 0 0 8px !important; padding: 0 4px !important; }
  html body header#home .hero-text h1 {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
    margin: 0 0 8px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  }
  html body header#home .trust-badges { margin: 0 0 10px !important; gap: 6px !important; }
  html body header#home .trust-badges .badge {
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
  }
  html body header#home .reservation-form-wrapper { margin: 0 !important; }
  html body header#home .reservation-form {
    margin: 0 auto !important;
    padding: 12px 14px 14px !important;
    border-radius: 14px !important;
    border-top-width: 4px !important;
  }
  html body header#home .reservation-form h2 { font-size: 1.12rem !important; margin: 0 0 10px !important; }
  html body header#home .reservation-form .form-group { margin: 0 0 8px !important; }
  html body header#home .reservation-form .form-group-doble { gap: 0 8px !important; }
  html body header#home .reservation-form label { font-size: 0.68rem !important; margin: 0 0 3px !important; }
  html body header#home .reservation-form select,
  html body header#home .reservation-form input {
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 16px !important;   /* 16px evita el zoom automático de iOS al enfocar */
  }
  html body header#home .reservation-form select { padding-right: 32px !important; background-position: right 10px center !important; }
  html body header#home .reservation-form input[type="date"],
  html body header#home .reservation-form input[type="time"] { padding: 0 8px 0 10px !important; }
  html body header#home .reservation-form .form-group.total { margin: 2px 0 10px !important; min-height: 58px !important; padding: 10px 14px !important; border-radius: 12px !important; }
  html body header#home .reservation-form .form-group.total > p:first-child { font-size: 0.68rem !important; }
  html body header#home .reservation-form .form-group.total .vat-text { font-size: 0.64rem !important; }
  html body header#home .reservation-form #total-price { font-size: 1.6rem !important; }
  html body header#home .reservation-form .form-group.total.is-empty #total-price::after { font-size: 0.72rem; max-width: 150px; }
  html body header#home .reservation-form .form-group:last-child { margin-bottom: 0 !important; }
  html body header#home .reservation-form .btn-submit,
  html body header#home .reservation-form .book-button { height: 50px !important; padding: 0 16px !important; font-size: 0.98rem !important; }
}
@media (max-width: 380px) {
  html body header#home .hero-text h1 { font-size: 1.2rem !important; }
  html body header#home .reservation-form { padding: 10px 12px 12px !important; }
  html body header#home .reservation-form select,
  html body header#home .reservation-form input { height: 40px !important; }
  html body header#home .reservation-form .form-group { margin-bottom: 7px !important; }
}

/* ── 4. Resto de la portada ────────────────────────────────────────── */
/* "Book your transfer now" en Cómo funciona: era un texto plano, ahora es botón */
html body main .how-it-works .book-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 13px 28px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0a2342 0%, #163d6b 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(10, 35, 66, 0.25) !important;
  transition: background 0.2s, color 0.2s, transform 0.2s !important;
}
html body main .how-it-works .book-button:hover {
  background: linear-gradient(135deg, #f7c20c 0%, #e0ad0a 100%) !important;
  color: #0a2342 !important;
  transform: translateY(-2px) !important;
}
/* Tarjetas de rutas: precio destacado y foto sin marco gris */
html body main .destination-card { transition: transform 0.2s, box-shadow 0.2s !important; }
html body main .destination-card:hover { transform: translateY(-4px) !important; box-shadow: 0 16px 34px rgba(3, 14, 32, 0.25) !important; }
html body main .destination-card img { padding: 0 !important; border: none !important; border-radius: 10px !important; object-fit: cover !important; box-shadow: none !important; }
html body main .destination-card .price { color: #0a2342 !important; font-weight: 800 !important; }
/* Iconos sociales del pie (eran emojis grises) */
html body .site-footer .footer-social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-size: 1.1rem !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
}
html body .site-footer .footer-social a:hover { background: rgba(247, 194, 12, 0.25) !important; }
