/* CATBET — Patagonia Dusk */
:root {
  --bg: #151B24;
  --surface: #202833;
  --surface-2: #29323F;
  --teal: #5FA8A0;
  --teal-soft: rgba(95, 168, 160, .35);
  --teal-faint: rgba(95, 168, 160, .12);
  --peach: #E3A77A;
  --peach-soft: rgba(227, 167, 122, .3);
  --text: #E9EEF2;
  --muted: #A7B1BE;
  --line: rgba(233, 238, 242, .09);
  --radius: 14px;
  --max: 1120px;
  --head: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--peach); }

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

h1, h2, h3 { font-family: var(--head); line-height: 1.2; color: var(--text); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.8vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; margin-top: 1.9em; scroll-margin-top: 84px; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 700; color: var(--peach); margin-top: 1.6em; scroll-margin-top: 84px; }

p { margin: 0 0 1.1em; }
strong { color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--teal); color: var(--bg); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 27, 36, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em;
  color: var(--text); text-decoration: none;
}
.logo svg { width: 36px; height: 36px; flex: none; }
.logo:hover { color: var(--peach); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav { display: none; }
.main-nav.is-open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px 16px 20px;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 12px 0; color: var(--text); text-decoration: none;
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); }
.main-nav .btn { margin-top: 16px; border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open {
    display: block; position: static; padding: 0; background: none; border: 0;
  }
  .main-nav ul { display: flex; align-items: center; gap: 28px; }
  .main-nav a { padding: 6px 0; border: 0; font-size: .95rem; }
  .main-nav .btn { margin: 0; padding: 10px 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center;
  background: var(--teal); color: #0F141B !important; border: 1px solid var(--teal);
  box-shadow: 0 8px 24px -10px rgba(95, 168, 160, .7);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #6DB8AF; }
.btn-ghost {
  background: transparent; color: var(--text) !important;
  border: 1px solid var(--peach-soft); box-shadow: none;
}
.btn-ghost:hover { background: rgba(227, 167, 122, .1); border-color: var(--peach); }

/* ---------- Common blocks ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.eyebrow {
  display: inline-block; color: var(--peach);
  font-family: var(--head); font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px;
}
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 0 150px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(227, 167, 122, .32), transparent 70%),
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(95, 168, 160, .16), transparent 70%),
    linear-gradient(180deg, #151B24 0%, #1B2230 60%, #26283A 100%);
}
.hero-confetti, .hero-mountains {
  position: absolute; left: 0; width: 100%; pointer-events: none;
}
.hero-confetti { top: 0; height: 100%; }
.hero-mountains { bottom: -1px; height: 160px; }
.hero > .container { position: relative; }
.hero-slogan {
  font-family: var(--head); font-weight: 700; color: var(--peach);
  font-size: clamp(1.1rem, 2.8vw, 1.45rem); margin: 0 0 18px;
}
.hero-lead { max-width: 740px; margin: 0 auto 28px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.route {
  list-style: none; padding: 0; margin: 36px auto 0; max-width: 860px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  counter-reset: route;
}
.route li { counter-increment: route; }
.route li:last-child { grid-column: 1 / -1; }
.route a {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 12px 14px; border-radius: 12px; text-align: left;
  background: rgba(32, 40, 51, .75); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.route a::before {
  content: counter(route); flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-faint); color: var(--teal); font-family: var(--head); font-weight: 800;
}
.route a:hover { border-color: var(--teal-soft); }
@media (min-width: 760px) {
  .route { grid-template-columns: repeat(5, 1fr); }
  .route li:last-child { grid-column: auto; }
}

/* ---------- Article ---------- */
.article { padding: 56px 0 24px; }
.article > .container > :first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .55em; }
.article ul li::marker { color: var(--teal); }
.article ol li::marker { color: var(--peach); font-family: var(--head); font-weight: 700; }
.article em { color: var(--muted); }

.table-wrap {
  overflow-x: auto; margin: 0 0 1.6em;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: .96rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--head); font-weight: 700; color: var(--peach);
  background: var(--surface-2); border-bottom: 2px solid var(--teal-soft);
}
tbody tr:last-child td { border-bottom: 0; }
tbody td:last-child { color: var(--teal); font-weight: 600; white-space: nowrap; }

.callout { padding: 22px 24px; margin: 28px 0; border-left: 3px solid var(--peach); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Pros / cons ---------- */
.proscons { display: grid; gap: 20px; }
@media (min-width: 760px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons .card { padding: 26px 24px; }
.proscons h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: 1.25rem; color: var(--text);
}
.proscons h3 svg { width: 36px; height: 36px; flex: none; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); }
.proscons li strong { color: var(--text); }
.proscons li::before {
  position: absolute; left: 0; top: 0; font-weight: 800; font-family: var(--head);
}
.pros { border-top: 3px solid var(--teal) !important; }
.pros li::before { content: "+"; color: var(--teal); }
.cons { border-top: 3px solid var(--peach) !important; }
.cons li::before { content: "–"; color: var(--peach); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin-bottom: 1.4em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--teal-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--peach); border-bottom: 2px solid var(--peach);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary h3 { margin: 0; font-size: 1.08rem; color: var(--text); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- About / hub ---------- */
.about-block { padding: 36px 28px; display: grid; gap: 20px; align-items: center; }
.about-block h2 { margin: 0 0 10px; }
.about-block p { color: var(--muted); margin: 0; }
@media (min-width: 760px) { .about-block { grid-template-columns: 1fr auto; } }

.hub { display: grid; gap: 14px; margin: 0 0 12px; }
@media (min-width: 700px) { .hub { grid-template-columns: repeat(3, 1fr); } }
.hub a { display: block; padding: 20px; text-decoration: none; color: var(--text); transition: border-color .15s ease; }
.hub a:hover { border-color: var(--teal-soft); }
.hub strong { display: block; font-family: var(--head); font-size: 1.05rem; margin-bottom: 4px; }
.hub span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Inner page head ---------- */
.page-head {
  padding: 56px 0 40px; text-align: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(227, 167, 122, .2), transparent 70%);
}
.page-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--peach); margin-right: 8px; }
.breadcrumbs a { color: var(--muted); }
.updated { font-size: .9rem; color: var(--muted); margin-top: 10px !important; }

.toc { padding: 22px 24px; margin: 0 0 32px; }
.toc p { font-family: var(--head); font-weight: 700; color: var(--peach); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 4px; }

/* ---------- Helplines ---------- */
.helplines { display: grid; gap: 16px; margin: 0 0 1.6em; }
@media (min-width: 760px) { .helplines { grid-template-columns: repeat(3, 1fr); } }
.helpline { padding: 24px 20px; }
.helpline a.tel {
  display: block; font-family: var(--head); font-size: 1.7rem; font-weight: 800;
  color: var(--teal); text-decoration: none; margin: 4px 0 8px;
}
.helpline p { margin: 0; font-size: .92rem; color: var(--muted); }
.helpline .who { color: var(--peach); font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- 18+ ---------- */
.age-banner {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(227, 167, 122, .16), rgba(95, 168, 160, .12)), var(--surface);
  border: 1px solid var(--peach-soft);
}
.age-badge {
  flex: none; width: 68px; height: 68px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--peach); color: #151B24;
  font-family: var(--head); font-weight: 800; font-size: 1.35rem;
}
.age-banner p { margin: 0; color: var(--muted); }
.age-banner .age-title { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--text); margin-bottom: 4px; }
@media (min-width: 760px) {
  .age-banner { flex-direction: row; text-align: left; }
  .age-banner .btn { margin-left: auto; flex: none; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 0 0; position: relative; overflow: hidden; }
.notfound .code {
  font-family: var(--head); font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1;
  margin: 0 0 12px;
  background: linear-gradient(180deg, var(--peach), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 0; }
.notfound .hero-mountains { position: static; display: block; margin-top: 48px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px; padding: 48px 0 28px;
  background: #10151C; border-top: 1px solid var(--line);
  font-size: .94rem; color: var(--muted);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2 {
  font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--peach); margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.footer-warning { display: flex; align-items: center; gap: 14px; color: var(--text); }
.footer-warning .age-badge { width: 44px; height: 44px; font-size: .9rem; }
.footer-warning p { margin: 0; }
.copy { font-size: .85rem; margin: 0; }
@media (min-width: 820px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}

/* Tablas en celular: sin scroll horizontal */
@media (max-width: 600px) {
  table { min-width: 0; font-size: .88rem; }
  th, td { padding: 10px 10px; }
  tbody td:last-child { white-space: normal; }
}
