/* =========================================
   BASE WRAPPER + CARD
   ========================================= */

.tgle-promo-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 24px 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tgle-promo-card {
  width: 100%;
  max-width: 480px;
  background: #111219;
  border-radius: 24px;
  padding: 24px 22px 22px;
  box-sizing: border-box;
  border: 1px solid rgba(245, 199, 106, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* En páginas de promos, fondo negro y card más ancha */
body.page-id-322,
body.page-id-326 {
  background: #05060a !important;
}

body.page-id-322 .site,
body.page-id-326 .site,
body.page-id-322 .site-main,
body.page-id-326 .site-main,
body.page-id-322 .entry-content,
body.page-id-326 .entry-content,
body.page-id-322 .content-area,
body.page-id-326 .content-area,
body.page-id-322 .container,
body.page-id-326 .container {
  background: transparent !important;
}

body.page-id-322 .site-main,
body.page-id-326 .site-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page-id-322 .tgle-promo-wrapper,
body.page-id-326 .tgle-promo-wrapper {
  min-height: 100vh;
  padding: 24px 8px;
  justify-content: center;
  align-items: flex-start;
  background: transparent !important;
}

body.page-id-322 .tgle-promo-card,
body.page-id-326 .tgle-promo-card {
  max-width: 560px;
}

/* =========================================
   SELECTOR DE IDIOMA
   ========================================= */

.tgle-promo-lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.tgle-promo-lang-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 999px;
  color: #e5e7eb;
  transition: background 0.15s ease, color 0.15s ease;
}

.tgle-promo-lang-btn.is-active {
  background: #f5c76a;
  color: #111827;
}

/* =========================================
   LOGO
   ========================================= */

.tgle-promo-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 38px;
  margin-bottom: 18px;
}

.tgle-promo-logo img {
  max-width: 160px;
  height: auto;
  display: block;
}

/* =========================================
   HEADERS / TÍTULOS
   ========================================= */

.tgle-promo-header {
  text-align: center;
  margin-bottom: 20px !important;
}

.tgle-promo-header--form {
  margin-top: 28px;
  margin-bottom: 16px !important;
}

.tgle-promo-title {
  font-size: 20px;
  margin: 0 0 4px;
  font-weight: 600;
  color: #f5c76a;
  letter-spacing: 0.03em;
}

.tgle-promo-subtitle {
  margin: 0;
  font-size: 13px;
  color: #d4d4d8;
}

.tgle-section-title {
  font-size: 20px;
  color: #f5c76a;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.tgle-section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #d4d4d4;
  margin-bottom: 14px;
}

/* Glow ligero en títulos importantes */
.tgle-promo-gallery-title,
.tgle-section-title,
.tgle-promo-label {
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(245, 199, 106, 0.18);
}

/* =========================================
   ALERTAS
   ========================================= */

.tgle-promo-alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.tgle-promo-alert-error {
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

.tgle-promo-alert-success {
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

/* =========================================
   FORM / CAMPOS
   ========================================= */

.tgle-promo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tgle-promo-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tgle-promo-field label,
.tgle-promo-label {
  font-size: 13px;
  font-weight: 500;
  color: #f5c76a;
}

/* título general del selector de experiencia */
.tgle-promo-label {
  display: block;
  text-align: center;
  margin: 5px 0 3px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Inputs */

.tgle-promo-field input[type="text"],
.tgle-promo-field input[type="email"],
.tgle-promo-field input[type="tel"] {
  border-radius: 14px;
  border: 1px solid rgba(245, 199, 106, 0.22);
  padding: 9px 11px;
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
  background: #05060a;
  color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tgle-promo-field input::placeholder {
  color: #6b7280;
}

.tgle-promo-field input:focus {
  outline: none;
  border-color: #f5c76a;
  box-shadow: 0 0 0 1px #f5c76a;
  background: #020617;
}

.tgle-promo-hint {
  font-size: 11px;
  color: #9ca3af;
}

/* =========================================
   OPCIONES (RADIOS)
   ========================================= */

.tgle-promo-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.tgle-promo-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 199, 106, 0.22);
  cursor: pointer;
  background: #05060a;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}

.tgle-promo-option input[type="radio"] {
  margin-top: 2px;
}

.tgle-promo-option-text {
  font-size: 13px;
  color: #f9fafb;
}

.tgle-promo-option:hover {
  border-color: #f5c76a;
  background: #020617;
  transform: translateY(-1px);
}

/* Títulos por aeropuerto */
.tgle-promo-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f5c76a;
  margin: 10px 10px 10px;
  text-align: left;
}

.tgle-promo-group {
  margin: 20px 0 24px !important;
}

/* Más espacio entre AICM y AIFA */
.tgle-promo-group + .tgle-promo-group {
  margin-top: 10px !important;
}

/* Más espacio entre último grupo y encabezado de formulario */
.tgle-promo-group:last-of-type {
  margin-bottom: 10px !important;
}

/* =========================================
   CAPTCHA
   ========================================= */

.tgle-promo-captcha {
  margin-top: 4px;
}

/* =========================================
   BOTÓN + LEGAL
   ========================================= */

.tgle-promo-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tgle-promo-submit {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #f5c76a;
  color: #111827;
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 25px rgba(245, 199, 106, 0.35);
}

.tgle-promo-submit:hover {
  background: #eab308;
}

.tgle-promo-submit:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

/* Estado deshabilitado */
.tgle-promo-submit:disabled,
.tgle-promo-submit[disabled],
.tgle-promo-submit.tgle-promo-submit-sending {
  background: #9ca3af;
  color: #111827;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.tgle-promo-submit:disabled:hover,
.tgle-promo-submit[disabled]:hover,
.tgle-promo-submit.tgle-promo-submit-sending:hover {
  background: #9ca3af;
}

.tgle-promo-submit:disabled:active,
.tgle-promo-submit[disabled]:active,
.tgle-promo-submit.tgle-promo-submit-sending:active {
  transform: none;
  box-shadow: none;
}

.tgle-promo-legal {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}

/* =========================================
   GALERÍA DE EXPERIENCIAS
   ========================================= */

.tgle-promo-gallery {
  margin-top: 18px;
  margin-bottom: 28px; /* <-- espacio razonable antes del selector */
  padding: 20px 18px 22px;
  border-radius: 20px;
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  border: 1px solid rgba(245, 199, 106, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.tgle-promo-gallery-title {
  text-align: center;
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f5c76a;
}

.tgle-promo-subtitle--gallery {
  text-align: center;
  margin: 0 0 1px;
  font-size: 0.85rem;
  color: #d4d4d8;
}

.tgle-promo-gallery-item {
  display: flex;
  flex-direction: column;   /* imagen arriba, texto abajo */
  align-items: stretch;
  padding: 16px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(245, 199, 106, 0.22);
  background: #05060a;
  box-shadow: 0 14px 32px rgba(0,0,0,0.75);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tgle-promo-gallery-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tgle-promo-gallery-item:hover {
  background: rgba(15,23,42,0.95);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

.tgle-promo-gallery-img {
  flex: 0 0 auto;
  margin-bottom: 12px;
}


.tgle-promo-gallery-img img {
  width: 100%;
  max-height: 210px;        /* alto fijo */
  object-fit: cover;        /* recorta para verse premium */
  border-radius: 16px;
  border: 1px solid rgba(245, 199, 106, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}


.tgle-promo-gallery-img img:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
}

.tgle-promo-gallery-text {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #e5e7eb;
  font-weight: 400;
  margin-top: 4px;
}


/* =========================================
   LIGHTBOX GALERÍA
   ========================================= */

.tgle-promo-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.tgle-promo-lightbox.is-visible {
  display: flex;
}

.tgle-promo-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tgle-promo-lightbox-inner img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  display: block;
}

.tgle-promo-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
}

.tgle-promo-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.tgle-promo-lightbox-prev,
.tgle-promo-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 12px;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}

.tgle-promo-lightbox-prev { left: 10px; }
.tgle-promo-lightbox-next { right: 10px; }

.tgle-promo-lightbox-caption {
  margin-top: 10px;
  color: #e5e7eb;
  font-size: 0.9rem;
  text-align: center;
  max-width: 90vw;
}

/* En móviles, sin flechas (solo swipe/tap) */
@media (max-width: 640px) {
  .tgle-promo-lightbox-prev,
  .tgle-promo-lightbox-next {
    display: none;
  }

  .tgle-promo-lightbox-inner {
    max-width: 94vw;
    max-height: 80vh;
  }

  .tgle-promo-lightbox-caption {
    padding: 0 16px;
    font-size: 0.9rem;
  }
}

/* =========================================
   PÁGINA DE AGRADECIMIENTO
   ========================================= */

.tgle-promo-thanks-card {
  text-align: center;
}

.tgle-promo-banner {
  margin-top: 20px;
}

.tgle-promo-banner-link {
  display: inline-block;
  max-width: 100%;
}

.tgle-promo-banner-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* =========================================
   DIVIDER PREMIUM
   ========================================= */

.tgle-divider {
  width: 160px;
  height: 1px;
  margin: 26px auto;
  background: linear-gradient(to right, transparent, #f5c76a, transparent);
  opacity: 0.7;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (min-width: 768px) {
  .tgle-promo-card {
    padding: 26px 26px 24px;
  }

  .tgle-promo-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .tgle-promo-gallery {
    padding: 18px 14px 20px;
  }

  .tgle-promo-gallery-img {
    width: 100%;
  }

  .tgle-promo-gallery-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  .tgle-promo-gallery-text {
    font-size: 0.86rem;
    text-align: left;
  }
}


.tgle-promo-gallery:last-child {
    margin-bottom: 100px !important;
}

/* ===== Simplificar contenedor de galería ===== */

.tgle-promo-gallery {
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 0;                          /* sin padding interno */
  background: transparent;             /* mismo fondo que la tarjeta */
  border: none;                        /* quitamos borde dorado */
  box-shadow: none;                    /* sin sombra extra */
}


.tgle-promo-gallery-text {
  white-space: normal !important;
  line-height: 1.32;
}

.tgle-promo-gallery-text br {
  display: block;
  margin-bottom: 4px; /* separa visualmente las líneas */
}

.tgle-promo-lightbox-caption {
  display: none !important;
}

