/* ==========================================================================
   TERESÓPOLIS · PARQUES — folha de estilos
   Tipografia: Fraunces (display) + Inter (corpo/UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Cor — paleta de mata e serra */
  --forest-900: #0e2a20;
  --forest-800: #143b2c;
  --forest-700: #1c4c38;
  --forest-600: #2a6146;
  --forest-500: #3c7a58;
  --sage-300: #a9c2ab;
  --sage-100: #dfe8de;
  --cream-50: #f6f3ea;
  --paper: #fffdf8;
  --ink-900: #1a2119;
  --ink-700: #3a4238;
  --ink-500: #667063;
  --ink-300: #97a092;
  --line: #e2ddce;
  --clay-600: #a3402c;
  --clay-100: #f6e3dd;
  --gold-500: #b8933d;
  --gold-100: #f3e8cf;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(14, 42, 32, 0.06), 0 8px 24px -12px rgba(14, 42, 32, 0.18);
  --shadow-pop: 0 20px 50px -20px rgba(14, 42, 32, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--forest-900); font-weight: 600; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--forest-600);
}

/* ---------------- Botões ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest-700); color: var(--paper); }
.btn-primary:hover { background: var(--forest-600); }
.btn-outline { background: transparent; border-color: var(--forest-700); color: var(--forest-700); }
.btn-outline:hover { background: var(--forest-700); color: var(--paper); }
.btn-ghost-light { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.25); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-danger { background: var(--clay-600); color: #fff; }
.btn-danger:hover { background: #832f1f; }
.btn-block { width: 100%; }

/* ---------------- Cabeçalho / navegação ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--forest-900);
  letter-spacing: 0.01em;
}
.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  font-weight: 600;
}

.main-nav ul { display: flex; gap: 36px; align-items: center; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--forest-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--forest-800); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--forest-800); }

/* ---------------- Divisor de montanhas (assinatura visual) ---------------- */

.ridge-divider { display: block; width: 100%; line-height: 0; }
.ridge-divider svg { width: 100%; height: auto; display: block; }

/* ---------------- Hero / carrossel (Home) ---------------- */

.carousel {
  position: relative;
  overflow: hidden;
  height: min(78vh, 620px);
  min-height: 420px;
}
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}
.carousel-slide.is-active { opacity: 1; visibility: visible; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,32,0.55) 0%, rgba(14,42,32,0.25) 38%, rgba(14,42,32,0.65) 100%);
}
.carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.carousel-caption .container { max-width: 640px; }
.carousel-caption .eyebrow { color: var(--sage-100); }
.carousel-caption h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin-block: 14px 12px;
}
.carousel-caption p {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  margin-bottom: 26px;
  max-width: 46ch;
}
.carousel-park-name {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage-100);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-800);
  transition: background 0.15s ease;
}
.carousel-nav:hover { background: #fff; }
.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }
.carousel-nav svg { width: 20px; height: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dots button.is-active { background: #fff; transform: scale(1.25); }

/* ---------------- Seções gerais ---------------- */

.section { padding-block: 88px; }
.section-tight { padding-block: 56px; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-block: 12px 12px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-dark {
  background: var(--forest-900);
  color: var(--sage-100);
}
.section-dark .eyebrow { color: var(--sage-300); }
.section-dark h2 { color: #fff; }

/* ---------------- Grade de parques (cards) ---------------- */

.park-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.park-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.park-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.park-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.park-card-media img { width: 100%; height: 100%; object-fit: cover; }
.park-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.park-card-body h3 { font-size: 1.18rem; line-height: 1.3; }
.park-card-body p { color: var(--ink-500); font-size: 0.94rem; flex: 1; }
.park-card-body .btn { align-self: flex-start; margin-top: 6px; }

.status-pill {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: rgba(42, 97, 70, 0.92); color: #fff; }
.status-pill.is-closed { background: rgba(163, 64, 44, 0.95); color: #fff; }

.list-row .park-card { flex-direction: row; align-items: stretch; }
.list-row .park-card-media { width: 280px; aspect-ratio: auto; flex-shrink: 0; }
.list-row .park-card-body { justify-content: center; }

/* ---------------- Rodapé ---------------- */

.site-footer {
  background: var(--forest-900);
  color: var(--sage-100);
  padding-block: 30px 34px;
  text-align: center;
}
.site-footer p { font-size: 0.85rem; color: var(--sage-300); margin-bottom: 12px; }
.footer-social { display: flex; justify-content: center; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.12); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------------- Página Parques (listagem) ---------------- */

.page-hero {
  background: var(--forest-800);
  background-image: linear-gradient(120deg, rgba(14,42,32,0.86), rgba(28,76,56,0.8)), var(--page-hero-img, none);
  background-size: cover;
  background-position: center;
  padding-block: 64px 52px;
  color: #fff;
}
.page-hero .eyebrow { color: var(--sage-300); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-block: 12px 10px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 52ch; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: #fff; }

/* ---------------- Página de detalhes do parque ---------------- */

.detail-hero {
  position: relative;
  height: 46vh;
  min-height: 320px;
  color: #fff;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,32,0.55) 0%, rgba(14,42,32,0.15) 45%, rgba(14,42,32,0.75) 100%);
}
.detail-hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 34px;
  z-index: 2;
}
.detail-hero-content h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 8px; max-width: 20ch; }
.detail-hero-content p { color: rgba(255,255,255,0.88); font-size: 1.02rem; }
.detail-status-banner {
  background: var(--clay-600);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.detail-status-banner strong { text-transform: uppercase; letter-spacing: 0.05em; margin-right: 6px; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  background: var(--paper);
}
.tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 20px;
  background: none; border: none;
  font-weight: 600; font-size: 0.92rem;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button svg { width: 17px; height: 17px; }
.tabs button.is-active { color: var(--forest-800); border-bottom-color: var(--forest-700); }
.tabs button:hover { color: var(--forest-700); }

.tab-panel { display: none; padding-block: 44px; }
.tab-panel.is-active { display: block; }

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.info-card + .info-card { margin-top: 18px; }
.info-card h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin-bottom: 14px;
}
.kv-list { display: flex; flex-direction: column; gap: 10px; }
.kv-list .kv { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.kv-list .kv .k { color: var(--ink-500); }
.kv-list .kv .v { font-weight: 600; text-align: right; }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 24px; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-700); }
.meta-item svg { width: 17px; height: 17px; color: var(--forest-600); flex-shrink: 0; }
.prose { color: var(--ink-700); font-size: 1.02rem; line-height: 1.7; }

.event-item {
  display: flex; align-items: baseline; gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}
.event-item:last-child { border-bottom: none; }
.event-item .date { font-weight: 700; color: var(--forest-700); font-size: 0.85rem; white-space: nowrap; }
.event-item .title { font-size: 0.92rem; }
.event-item .time { color: var(--ink-500); font-size: 0.82rem; }

.trail-table { width: 100%; border-collapse: collapse; }
.trail-table th, .trail-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.trail-table th { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700;
}
.chip.is-easy { background: var(--sage-100); color: var(--forest-700); }
.chip.is-mod { background: var(--gold-100); color: #8a6a1f; }
.chip.is-hard { background: var(--clay-100); color: var(--clay-600); }
.chip.status-aberta { background: var(--sage-100); color: var(--forest-700); }
.chip.status-manutencao { background: var(--clay-100); color: var(--clay-600); }
.trail-note { font-size: 0.82rem; color: var(--clay-600); margin-top: 3px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}
.gallery-grid a:hover img { transform: scale(1.03); }

.cta-banner {
  margin-top: 48px;
  background: var(--forest-700);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 600;
}
.cta-banner svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------------- Contatos ---------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-block: 26px 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--sage-100); color: var(--forest-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-list .icon-wrap svg { width: 19px; height: 19px; }
.contact-list strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-list span { color: var(--ink-500); font-size: 0.92rem; }

.form-card, .admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-600); outline: none; box-shadow: 0 0 0 3px rgba(42,97,70,0.15); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; }
.form-success {
  display: none;
  background: var(--sage-100);
  color: var(--forest-800);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.form-success.is-visible { display: block; }

.admin-access-card {
  margin-top: 8px;
  background: var(--sage-100);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: left;
}
.admin-access-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.admin-access-card p { color: var(--ink-700); font-size: 0.9rem; margin-bottom: 16px; }

/* ---------------- Login ---------------- */

.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background-image: linear-gradient(160deg, rgba(14,42,32,0.88), rgba(28,76,56,0.82)), var(--login-bg);
  background-size: cover;
  background-position: center;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-pop);
}
.login-card .logo { justify-content: center; margin-bottom: 22px; }
.login-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 6px; }
.login-card > p { text-align: center; color: var(--ink-500); font-size: 0.92rem; margin-bottom: 26px; }
.login-error {
  display: none;
  background: var(--clay-100); color: var(--clay-600);
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
}
.login-error.is-visible { display: block; }
.login-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-300);
}
.login-links { text-align: center; margin-top: 14px; }
.login-links a { font-size: 0.85rem; color: var(--forest-600); font-weight: 600; }
.login-links a:hover { text-decoration: underline; }
.field-icon { position: relative; }
.field-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-300); }
.field-icon input { padding-left: 40px; }

/* ---------------- Painel administrativo ---------------- */

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--forest-900);
  color: var(--sage-100);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar .logo { padding: 6px 8px 22px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 14px; }
.admin-sidebar .logo-text strong { color: #fff; }
.admin-sidebar .logo-text span { color: var(--sage-300); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a, .admin-nav button {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  color: var(--sage-100);
  background: none; border: none; text-align: left; width: 100%;
}
.admin-nav a svg, .admin-nav button svg { width: 17px; height: 17px; opacity: 0.85; }
.admin-nav a:hover, .admin-nav button:hover { background: rgba(255,255,255,0.08); }
.admin-nav a.is-active { background: var(--forest-600); color: #fff; }
.admin-nav .nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 10px 6px; }
.admin-logout { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }

.admin-main { flex: 1; min-width: 0; background: var(--cream-50); }
.admin-topbar {
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 34px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 600; }
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage-100); color: var(--forest-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.admin-content { padding: 34px; max-width: 1080px; }
.admin-content h1 { font-size: 1.7rem; margin-bottom: 6px; }
.admin-content > p.lede { color: var(--ink-500); margin-bottom: 30px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px 24px;
}
.stat-card .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--forest-800); }
.stat-card .label { color: var(--ink-500); font-size: 0.88rem; margin-top: 4px; }
.stat-card.tone-a { border-top: 3px solid var(--forest-600); }
.stat-card.tone-b { border-top: 3px solid var(--gold-500); }
.stat-card.tone-c { border-top: 3px solid var(--clay-600); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-action {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.quick-action .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--forest-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.quick-action .icon-wrap svg { width: 20px; height: 20px; }
.quick-action span { font-size: 0.86rem; font-weight: 600; }
.quick-action:hover { border-color: var(--forest-500); }

.admin-table-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.admin-table-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.admin-table-head h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 22px; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--ink-500); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 15px; height: 15px; color: var(--ink-500); }
.icon-btn:hover { border-color: var(--forest-600); }
.icon-btn.danger:hover { border-color: var(--clay-600); }
.icon-btn.danger:hover svg { color: var(--clay-600); }

.status-toggle { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.status-toggle button { padding: 7px 14px; font-size: 0.78rem; font-weight: 700; background: #fff; border: none; color: var(--ink-500); }
.status-toggle button.is-active.is-open { background: var(--forest-600); color: #fff; }
.status-toggle button.is-active.is-closed { background: var(--clay-600); color: #fff; }

.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  background: var(--forest-800); color: #fff;
  padding: 14px 22px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-pop);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14,42,32,0.5);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.is-visible { display: flex; }
.modal-card {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 30px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-pop);
}
.modal-card h3 { font-size: 1.2rem; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; }

.empty-note { padding: 30px 22px; text-align: center; color: var(--ink-500); font-size: 0.9rem; }

/* ---------------- Utilidades ---------------- */

.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 980px) {
  .park-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-media { aspect-ratio: 16/9; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; background: var(--cream-50); padding: 26px 24px; transform: translateX(100%); transition: transform 0.25s ease; z-index: 40; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; align-items: flex-start; }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .park-grid { grid-template-columns: 1fr; }
  .list-row .park-card { flex-direction: column; }
  .list-row .park-card-media { width: 100%; aspect-ratio: 4/3; }
  .section { padding-block: 56px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar .logo { display: none; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-logout { margin-top: 0; border-top: none; }
  .admin-content { padding: 20px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-caption .container { padding-inline: 20px; }
}
