﻿/* Language selector and first-visit gate */
.language-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 31, 45, 0.72);
  backdrop-filter: blur(8px);
}

.language-gate-backdrop.is-visible {
  display: flex;
}

.language-gate-card {
  width: min(420px, 100%);
  background: #ffffff;
  color: #24384d;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.language-gate-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

.language-gate-card p {
  margin: 0 0 22px;
  color: #5f7183;
  line-height: 1.6;
  font-size: 15px;
}

.language-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.language-gate-actions button,
.lang-switch button {
  font-family: inherit;
}

.language-gate-actions button {
  border: 0;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  color: #ffffff;
  background: #2C3E50;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.language-gate-actions button:hover,
.lang-switch button:hover {
  transform: translateY(-1px);
}

.language-gate-actions button[data-language-choice="es"] {
  background: #1ABC9C;
  box-shadow: 0 10px 22px rgba(26, 188, 156, 0.22);
}

.language-gate-note {
  display: block;
  margin-top: 16px;
  color: #6e7f90;
  font-size: 12px;
  line-height: 1.5;
}

.lang-switch {
  position: fixed;
  top: 10px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 2900;
}

.lang-switch button {
  background: #1ABC9C;
  color: #ffffff;
  border: none;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lang-switch button.inactive {
  background: #d9e3ea;
  color: #2C3E50;
}

@media (max-width: 640px) {
  .language-gate-card {
    padding: 24px 18px;
  }

  .language-gate-card h2 {
    font-size: 23px;
  }

  .language-gate-actions {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    top: 8px;
    right: 8px;
  }
}
