@import url("https://fonts.googleapis.com/css2?family=Megrim&display=swap");

/* Welcome gate: same look as the Inicio IA welcome modal. The platform stays
   visible behind a light frosted glass. Fonts are inherited from the app. */
.tx-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(226, 236, 248, .28);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: var(--tx-ink, #0f1c2e);
  animation: tx-gate-fade .35s ease-out both;
}

html.dark .tx-gate { background: rgba(4, 12, 24, .38); color: #e8f0fb; }
body.tx-gate-open { overflow: hidden; }
.tx-gate *, .tx-gate *::before, .tx-gate *::after { box-sizing: border-box; }

.tx-gate__modal {
  width: min(440px, 100%);
  margin: auto 0;
  padding: 1.6rem 1.6rem 1.3rem;
  border: 1px solid var(--tx-glass-border, rgba(148, 163, 184, .3));
  border-radius: 26px;
  background: radial-gradient(ellipse at 90% 0, rgba(0, 188, 229, .13), transparent 50%), rgba(248, 252, 255, .96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 30px 90px rgba(3, 12, 25, .3);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: tx-gate-rise .5s cubic-bezier(.2, .9, .25, 1.05) .05s both;
}

html.dark .tx-gate__modal {
  border-color: rgba(148, 163, 184, .16);
  background: radial-gradient(ellipse at 90% 0, rgba(0, 188, 229, .13), transparent 55%), rgba(12, 25, 44, .96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 90px rgba(0, 0, 0, .4);
}

.tx-gate__brand { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.tx-gate__mark {
  width: 38px; height: 38px; padding: 5px; border-radius: 12px;
  background: linear-gradient(135deg, #1a61b8, #1a85b8);
  box-shadow: 0 10px 24px rgba(26, 97, 184, .3);
}
.tx-gate__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tx-gate__name { font-family: 'Megrim', sans-serif; font-size: 1.45rem; font-weight: 400; }

.tx-gate__cast { display: flex; align-items: flex-end; justify-content: center; gap: .3rem; margin: 1rem 0 .4rem; }
.tx-gate__cast tx-assistant { --assistant-size: 42px; animation: tx-gate-pop .5s cubic-bezier(.25, 1.4, .5, 1) both; }
.tx-gate__cast tx-assistant:nth-child(1) { animation-delay: .2s; }
.tx-gate__cast tx-assistant:nth-child(2) { animation-delay: .28s; }
.tx-gate__cast tx-assistant:nth-child(3) { --assistant-size: 54px; animation-delay: .36s; }
.tx-gate__cast tx-assistant:nth-child(4) { animation-delay: .44s; }
.tx-gate__cast tx-assistant:nth-child(5) { animation-delay: .52s; }

.tx-gate__copy { text-align: center; margin-bottom: 1.1rem; }
.tx-gate__copy h1 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tx-gate__copy p { margin: .4rem 0 0; font-size: .9rem; color: var(--tx-ink-muted, #64748b); }
html.dark .tx-gate__copy p { color: #94a3b8; }

.tx-gate__form { display: grid; gap: .8rem; }
.tx-gate__field { display: grid; gap: .35rem; }
.tx-gate__field label { font-size: .8rem; font-weight: 650; }
.tx-gate__input { position: relative; }
.tx-gate__input input {
  width: 100%; min-height: 44px; padding: .6rem 2.6rem .6rem .75rem;
  border: 1px solid var(--tx-hairline, #cbd5e1); border-radius: 12px;
  color: inherit; background: rgba(255, 255, 255, .7); font: inherit; font-size: 16px;
  box-shadow: inset 0 2px 4px rgba(26, 97, 184, .03);
  transition: border-color .2s, box-shadow .2s;
}
html.dark .tx-gate__input input { color-scheme: dark; background: rgba(9, 22, 40, .7); border-color: rgba(148, 163, 184, .2); }
.tx-gate__input input:focus { outline: 0; border-color: #168ec6; box-shadow: 0 0 0 3px rgba(0, 188, 229, .12), 0 8px 20px -14px #168ec6; }
.tx-gate__eye {
  position: absolute; top: 50%; right: .3rem; translate: 0 -50%;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 10px; color: inherit; opacity: .6; background: transparent; cursor: pointer;
}
.tx-gate__eye:hover { opacity: 1; background: rgba(0, 188, 229, .07); }

.tx-gate__phone { display: grid; grid-template-columns: 104px minmax(0, 1fr); border-radius: 12px; }
.tx-gate__phone > input,
.tx-gate__country select {
  width: 100%; min-width: 0; min-height: 44px; padding: .6rem .75rem;
  border: 1px solid var(--tx-hairline, #cbd5e1); color: inherit; background: rgba(255, 255, 255, .7);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
html.dark .tx-gate__phone > input, html.dark .tx-gate__country select { color-scheme: dark; background: rgba(9, 22, 40, .7); border-color: rgba(148, 163, 184, .2); }
.tx-gate__phone > input { border-radius: 0 12px 12px 0; }
.tx-gate__phone > input:focus { outline: 0; }
.tx-gate__phone:focus-within { box-shadow: 0 0 0 3px rgba(0, 188, 229, .12), 0 8px 20px -14px #168ec6; }
.tx-gate__phone:focus-within > input, .tx-gate__phone:focus-within select { border-color: #168ec6; }
.tx-gate__country { position: relative; min-width: 0; }
.tx-gate__country select { appearance: none; color: transparent; border-right: 0; border-radius: 12px 0 0 12px; cursor: pointer; }
.tx-gate__country select option { color: var(--tx-ink, #0f1c2e); background: var(--color-bg-row, #fff); }
.tx-gate__country select:focus { outline: 0; }
.tx-gate__country-display { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: 0 .6rem; pointer-events: none; font-size: .92rem; white-space: nowrap; }
.tx-gate__code { text-align: center; letter-spacing: .5em; font-size: 1.3rem !important; font-weight: 700; padding-right: .75rem !important; }
.tx-gate__legal { margin: 0; text-align: center; font-size: .72rem; opacity: .65; }
.tx-gate__legal a { color: inherit; }
.tx-gate__terms { margin: 0; text-align: center; font-size: .72rem; line-height: 1.5; color: var(--tx-ink-muted, #64748b); }
.tx-gate__terms a { color: #168ec6; font-weight: 700; }
html.dark .tx-gate__terms { color: #94a3b8; }
html.dark .tx-gate__check { background: rgba(255, 255, 255, .06); border-color: rgba(148, 163, 184, .35); }
html.dark .tx-gate__terms a { color: #5ad7f0; }
@media (prefers-reduced-motion: reduce) { .tx-gate__check { transition: none; } }
.tx-gate__links { display: flex; justify-content: space-between; gap: .5rem; }
.tx-gate__links button { min-height: 36px; padding: 0 .6rem; border: 0; border-radius: 10px; color: #168ec6; background: transparent; font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; }
.tx-gate__links button:hover:not(:disabled) { background: rgba(0, 188, 229, .07); }
.tx-gate__links button:disabled { color: inherit; opacity: .5; cursor: default; }
.tx-gate__form[hidden] { display: none; }
.tx-gate__hint { margin: 0; color: var(--tx-success, #0e9f77); font-size: .8rem; font-weight: 650; }
.tx-gate__hint[hidden] { display: none; }
.tx-gate__message { margin: 0; color: var(--tx-danger, #be123c); font-size: .8rem; line-height: 1.5; }
.tx-gate__message[hidden] { display: none; }

.tx-gate__submit {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; margin-top: .2rem; border: 0; border-radius: 14px;
  color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  background: linear-gradient(115deg, #1a61b8, #079fc1);
  box-shadow: 0 10px 28px -9px rgba(0, 188, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.tx-gate__submit:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(115deg, #1756a2, #048ead); box-shadow: 0 14px 30px -9px rgba(0, 188, 229, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tx-gate__submit:active:not(:disabled) { transform: scale(.985); }
.tx-gate__submit:disabled { cursor: progress; opacity: .85; }
.tx-gate__submit.is-success { background: linear-gradient(115deg, #0e9f77, #16b8a0); }

.tx-gate__google {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 44px;
  border: 1px solid var(--tx-hairline, #cbd5e1); border-radius: 12px;
  color: inherit; background: rgba(255, 255, 255, .7); font: inherit; font-weight: 650; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
html.dark .tx-gate__google { background: rgba(9, 22, 40, .7); border-color: rgba(148, 163, 184, .2); }
.tx-gate__google:hover { border-color: #168ec6; box-shadow: 0 8px 20px -14px #168ec6; }
.tx-gate__or { margin: 0; text-align: center; font-size: .75rem; opacity: .6; }

.tx-gate__signup {
  display: flex; justify-content: center; align-items: center; width: 100%; min-height: 40px;
  margin-top: .5rem; border: 0; border-radius: 10px; color: inherit; background: transparent;
  font: inherit; font-size: .82rem; cursor: pointer;
}
.tx-gate__signup strong { margin-left: .3rem; color: #168ec6; }
.tx-gate__signup:hover { background: rgba(0, 188, 229, .07); }

.tx-gate :focus-visible { outline: 2px solid #168ec6; outline-offset: 2px; }

@media (max-width: 576px) {
  .tx-gate { padding: .65rem; }
  .tx-gate__modal { padding: 1.3rem 1.1rem 1rem; border-radius: 22px; }
  .tx-gate__copy h1 { font-size: 1.3rem; }
}

@keyframes tx-gate-fade { from { opacity: 0; } }
@keyframes tx-gate-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes tx-gate-pop { from { opacity: 0; transform: translateY(14px) scale(.6); } }

@media (prefers-reduced-motion: reduce) {
  .tx-gate, .tx-gate__modal, .tx-gate__cast tx-assistant { animation: none; }
  .tx-gate__submit, .tx-gate__google, .tx-gate__input input { transition: none; }
}

/* Type of business: tour operator, travel agency or hotel. */
.tx-gate__profiles { margin: 0 0 .1rem; padding: 0; border: 0; min-width: 0; }
.tx-gate__profiles legend { margin-bottom: .4rem; padding: 0; font-size: .8rem; font-weight: 650; }
.tx-gate__profile-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.tx-gate__profile {
  position: relative; display: grid; justify-items: center; gap: .3rem; min-height: 74px; padding: .6rem .35rem;
  border: 1px solid var(--tx-hairline, #cbd5e1); border-radius: 14px; color: inherit; background: rgba(255, 255, 255, .7);
  font: inherit; font-size: .78rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.tx-gate__profile i { font-size: 1.45rem; color: #168ec6; transition: transform .25s cubic-bezier(.25, 1.4, .5, 1); }
.tx-gate__profile:hover { border-color: #168ec6; transform: translateY(-1px); box-shadow: 0 10px 22px -16px #168ec6; }
.tx-gate__profile.is-active {
  border-color: transparent; color: #fff; background: linear-gradient(135deg, #1a61b8 0%, #1686cc 55%, #00b0da 100%);
  box-shadow: 0 12px 26px -12px rgba(0, 188, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.tx-gate__profile.is-active i { color: #fff; transform: scale(1.12); }
.tx-gate__profile.is-active::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -7px; height: 10px; border-radius: 50%;
  background: linear-gradient(90deg, #00bce5 0%, #3b82f6 52%, #6366f1 100%); filter: blur(9px); opacity: .55; pointer-events: none;
}
html.dark .tx-gate__profile { background: rgba(9, 22, 40, .7); border-color: rgba(148, 163, 184, .2); }
html.dark .tx-gate__profile i { color: #5ad7f0; }
html.dark .tx-gate__profile.is-active i { color: #fff; }
@media (max-width: 360px) { .tx-gate__profile { font-size: .72rem; min-height: 68px; } }
@media (prefers-reduced-motion: reduce) { .tx-gate__profile, .tx-gate__profile i { transition: none; } .tx-gate__profile:hover { transform: none; } }
