/* Visual reference: Lovable /seleccionar-ciudad. Routing lives unchanged in index.php. */
:root {
  --brand-primary: #ffd900;
  --brand-secondary: #1e40af;
  --background: #fafaf7;
  --foreground: #0f0f0f;
  --border: #e8e8e5;
  --muted-bg: #f2f2ef;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

::selection {
  background: var(--brand-secondary);
  color: var(--background);
}

.city-selector {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 48px 24px;
  background: var(--brand-primary);
}

.city-selector__content {
  width: 100%;
  max-width: 896px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.city-selector__brand {
  margin: -8px 0 32px;
  text-align: center;
}

.logo {
  display: block;
  height: 18px;
  width: auto;
  margin: 0 auto;
  opacity: 0.6;
}

.city-selector__intro {
  margin-bottom: 40px;
  text-align: center;
}

.city-selector h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.03em;
}

.city-selector__intro p {
  max-width: 448px;
  margin: 0 auto;
  color: rgb(15 15 15 / 70%);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.005em;
}

.buttonsContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 576px;
  margin: 0 auto;
}

.button {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 74px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms, border-color 150ms;
}

.button:hover {
  border-color: rgb(15 15 15 / 20%);
  background: var(--muted-bg);
}

.button:focus-visible,
.privacy-link:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

.city-selector__hint {
  margin: 40px 0 0;
  color: rgb(15 15 15 / 60%);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.01em;
  text-align: center;
}

.privacy-link {
  position: fixed;
  bottom: 10px;
  left: 12px;
  color: rgb(15 15 15 / 70%);
  font-size: 11px;
  line-height: 16px;
  text-decoration: none;
  text-underline-offset: 3px;
}

.privacy-link:hover {
  color: var(--foreground);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .city-selector__brand { margin-bottom: 40px; }
  .logo { height: 22px; }
  .city-selector__intro { margin-bottom: 48px; }
  .city-selector h1 { font-size: 30px; line-height: 36px; }
  .city-selector__intro p { font-size: 16px; line-height: 24px; }
  .buttonsContainer { gap: 16px; }
  .button { font-size: 18px; letter-spacing: -0.01em; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .city-selector { min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
