/*
 * Encode Sans self-hosteada, misma fuente y mismos pesos que usa
 * provinciales.blucaro.site (feriados-ar) — evita el round-trip a
 * fonts.googleapis.com y mantiene la misma familia entre los dos sitios.
 */
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/EncodeSans-400.ttf") format("truetype");
}
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/EncodeSans-600.ttf") format("truetype");
}
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/EncodeSans-700.ttf") format("truetype");
}
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/EncodeSans-800.ttf") format("truetype");
}

:root {
  --bg: #ffffff;
  --bg-sutil: #f3f5f7;
  --bg-elevado: #ffffff;
  --borde: #dde3e8;
  --texto: #16212b;
  --texto-suave: #52616f;

  /* Mismo celeste que Feriados AR, para que los dos sitios lean como
     parte de la misma familia. */
  --acento: #146c94;
  --acento-oscuro: #0f5676;
  --acento-suave: #e3eff4;
  --acento-borde: #bcdbe9;

  /* Secundario ámbar/terracota: tags de destino, badges de dificultad. */
  --secundario: #a15a1f;
  --secundario-oscuro: #7d4517;
  --secundario-suave: #f8ece0;
  --secundario-borde: #edcda6;

  --exito: #1e7a46;
  --exito-suave: #e3f3e9;

  --radio: 10px;
  --fuente: "Encode Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 900px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10161c;
    --bg-sutil: #161f27;
    --bg-elevado: #182029;
    --borde: #2a3742;
    --texto: #e7edf2;
    --texto-suave: #a3b2bf;
    --acento: #4fb3dd;
    --acento-oscuro: #7cc7e6;
    --acento-suave: #142833;
    --acento-borde: #21495c;
    --secundario: #d99a5b;
    --secundario-oscuro: #e8b784;
    --secundario-suave: #2c1f10;
    --secundario-borde: #4a341b;
    --exito: #4fce8b;
    --exito-suave: #113322;
  }
}

:root[data-theme="dark"] {
  --bg: #10161c;
  --bg-sutil: #161f27;
  --bg-elevado: #182029;
  --borde: #2a3742;
  --texto: #e7edf2;
  --texto-suave: #a3b2bf;
  --acento: #4fb3dd;
  --acento-oscuro: #7cc7e6;
  --acento-suave: #142833;
  --acento-borde: #21495c;
  --secundario: #d99a5b;
  --secundario-oscuro: #e8b784;
  --secundario-suave: #2c1f10;
  --secundario-borde: #4a341b;
  --exito: #4fce8b;
  --exito-suave: #113322;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--bg);
  color-scheme: light dark;
}

body,
.tarjeta,
header.site-header,
footer.site-footer {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body {
  margin: 0;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--acento);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

header.site-header {
  border-bottom: 1px solid var(--borde);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--texto);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--acento);
}

.header-derecha {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-sutil);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 3px;
}

.lang-switch button {
  font-family: var(--fuente);
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--texto-suave);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--texto);
}

.lang-switch button.active {
  background: var(--bg-elevado);
  color: var(--acento);
  box-shadow: inset 0 0 0 1px var(--acento-borde);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  border: 1px solid var(--borde);
  background: var(--bg-sutil);
  color: var(--texto);
  cursor: pointer;
  flex: none;
}

.theme-toggle:hover {
  border-color: var(--acento);
  color: var(--acento);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-toggle .icono-luna {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icono-sol {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icono-luna {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icono-sol {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icono-luna {
    display: block;
  }
}

/* ---------- page intro (no hero banner, just a title block) ---------- */

.page-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto-suave);
  margin-bottom: 0.75rem;
}

.eyebrow a {
  color: var(--texto-suave);
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--acento);
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--texto-suave);
  max-width: 640px;
  margin: 0 0 1.5rem;
}

/* ---------- quick facts ---------- */

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}

.quick-facts .fact {
  background: var(--bg-sutil);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.quick-facts .fact .label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--texto-suave);
}

.quick-facts .fact .value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--texto);
}

/* ---------- main sections ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

section + section {
  margin-top: 2.5rem;
}

section > h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

section > .section-intro {
  color: var(--texto-suave);
  max-width: 640px;
  margin: 0 0 1.4rem;
}

/* ---------- cards (shared flat style) ---------- */

.tarjeta {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--bg-elevado);
  padding: 1.4rem;
}

/* ---------- destination cards (home grid) ---------- */

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.destination-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--texto);
  transition: border-color 0.15s ease;
}

.destination-card:hover {
  border-color: var(--acento);
}

.destination-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--acento-oscuro);
  background: var(--acento-suave);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.destination-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.destination-card p {
  color: var(--texto-suave);
  margin: 0;
  font-size: 0.92rem;
}

.destination-card .cta {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--acento);
}

.destination-card.placeholder {
  border-style: dashed;
  background: var(--bg-sutil);
  color: var(--texto-suave);
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- activity cards (el-chalten grid) ---------- */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.activity-card {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--bg-elevado);
  padding: 1.25rem;
}

.activity-card .meta {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--acento-oscuro);
  background: var(--acento-suave);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.activity-card:nth-child(even) .meta {
  color: var(--secundario-oscuro);
  background: var(--secundario-suave);
}

.activity-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.activity-card p {
  color: var(--texto-suave);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- info blocks ---------- */

.info-block {
  background: var(--bg-sutil);
  border-radius: var(--radio);
  padding: 1.4rem;
}

.info-block p {
  margin: 0;
  color: var(--texto-suave);
}

.tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.tips-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--texto-suave);
}

.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--acento);
}

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--borde);
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
  background: var(--bg-sutil);
}

footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

footer.site-footer a {
  color: var(--acento);
  font-weight: 600;
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .page-intro {
    padding: 2rem 1.1rem 0.5rem;
  }
  main {
    padding: 1.25rem 1.1rem 3rem;
  }
}
