/* CATBET — Cruz del Sur */
:root {
  --bg: #0E1426;
  --surface: #18203A;
  --surface-2: #1F2947;
  --silver: #C9D3E6;
  --glow: #8FB3D9;
  --glow-soft: rgba(143, 179, 217, .35);
  --glow-faint: rgba(143, 179, 217, .12);
  --text: #E6EBF5;
  --muted: #A3AFC6;
  --radius: 10px;
  --max: 1120px;
  --display: "Bungee", Impact, "Arial Black", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(143, 179, 217, .16), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23C9D3E6'%3E%3Ccircle cx='12' cy='30' r='.8' opacity='.5'/%3E%3Ccircle cx='70' cy='12' r='.6' opacity='.35'/%3E%3Ccircle cx='130' cy='58' r='1' opacity='.45'/%3E%3Ccircle cx='200' cy='22' r='.7' opacity='.3'/%3E%3Ccircle cx='38' cy='120' r='.6' opacity='.35'/%3E%3Ccircle cx='96' cy='160' r='.9' opacity='.4'/%3E%3Ccircle cx='170' cy='130' r='.6' opacity='.3'/%3E%3Ccircle cx='222' cy='190' r='1' opacity='.45'/%3E%3Ccircle cx='60' cy='214' r='.7' opacity='.3'/%3E%3Ccircle cx='150' cy='224' r='.5' opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed, scroll;
  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(--glow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--silver); }

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

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--silver);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.7rem, 5.4vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.9rem); margin-top: 1.9em; }
h3 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.3;
  color: var(--glow); margin: 1.6em 0 .6em;
}

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(--silver); color: var(--bg); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Listas con estrella ---------- */
.article ul, .stars-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.article ul li, .stars-list li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.article ul li::before, .stars-list li::before {
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 13px; height: 13px; background: var(--glow);
  clip-path: var(--star);
  filter: drop-shadow(0 0 4px var(--glow));
}
.article ol { padding-left: 1.3em; }
.article ol li { margin-bottom: .5em; }
.article ol li::marker { color: var(--glow); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 20, 38, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--glow-soft);
}
.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(--display); font-size: 1.35rem; letter-spacing: .04em;
  color: var(--silver); text-decoration: none;
}
.logo svg { width: 36px; height: 36px; flex: none; }
.logo:hover { color: #fff; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--glow-soft); border-radius: var(--radius);
  color: var(--silver); 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 dashed var(--glow-soft);
  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: 700; border-bottom: 1px dashed var(--glow-faint);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--glow); }
.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: 999px;
  font-family: var(--display); font-size: .95rem; letter-spacing: .04em;
  text-decoration: none; text-align: center;
  background: linear-gradient(180deg, #E4EAF5, var(--silver));
  color: var(--bg) !important; border: 1px solid var(--silver);
  box-shadow: 0 0 22px rgba(143, 179, 217, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(143, 179, 217, .55); }
.btn-ghost {
  background: transparent; color: var(--silver) !important; box-shadow: none;
  border: 1px dashed var(--glow);
}
.btn-ghost:hover { background: var(--glow-faint); box-shadow: none; }

/* ---------- Constelaciones ---------- */
.panel {
  background: linear-gradient(180deg, var(--surface), rgba(24, 32, 58, .82));
  border: 1px solid var(--glow-faint);
  border-radius: var(--radius);
  position: relative;
}
.panel-dots::before, .panel-dots::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  background: var(--silver); clip-path: var(--star);
}
.panel-dots::before { top: 10px; left: 10px; }
.panel-dots::after { bottom: 10px; right: 10px; }

.constellation {
  display: block; width: 220px; height: 24px; margin: 0 auto 16px; color: var(--glow);
}
.eyebrow {
  display: block; text-align: center; color: var(--glow);
  font-size: .8rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section { padding: 64px 0; }
.section-title { text-align: center; margin-top: 0; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 0 60px;
  border-bottom: 1px dashed var(--glow-soft);
}
.hero::before {
  content: ""; position: absolute; left: 50%; top: 38%;
  width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 211, 230, .2), rgba(143, 179, 217, .08) 30%, transparent 62%);
  pointer-events: none;
}
.hero-sky {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--glow); opacity: .55; pointer-events: none;
}
.hero > .container { position: relative; }
.hero-slogan {
  font-family: var(--display); color: var(--glow);
  font-size: clamp(1rem, 2.6vw, 1.3rem); margin: 0 0 18px;
  text-shadow: 0 0 18px rgba(143, 179, 217, .6);
}
.hero-lead { max-width: 740px; margin: 0 auto 28px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.trust {
  list-style: none; padding: 0; margin: 36px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 760px;
}
.trust li {
  border: 1px dashed var(--glow-soft); border-radius: var(--radius);
  padding: 12px 10px; font-size: .9rem; color: var(--muted); background: rgba(24, 32, 58, .7);
}
.trust strong { display: block; color: var(--silver); font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Category cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 28px 22px 22px; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--glow-soft); transform: translateY(-2px); }
.card-icon {
  width: 60px; height: 60px; padding: 12px; margin-bottom: 14px;
  border-radius: 50%; color: var(--silver);
  background: radial-gradient(circle, rgba(143, 179, 217, .3), rgba(143, 179, 217, .05) 70%);
  box-shadow: 0 0 0 1px var(--glow-soft), 0 0 24px rgba(143, 179, 217, .25);
}
.card h3 { margin-top: 0; color: var(--silver); }
.card p { color: var(--muted); font-size: .96rem; }
.card dl { margin: auto 0 14px; padding-top: 12px; border-top: 1px dashed var(--glow-faint); font-size: .88rem; }
.card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.card dt { color: var(--muted); }
.card dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; }
.rate { color: var(--glow); letter-spacing: 2px; }
.rate i { font-style: normal; opacity: .25; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link::after { content: " →"; }

.providers {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; padding: 0; margin: 32px 0 0;
}
.providers li {
  padding: 6px 14px; border: 1px dashed var(--glow-soft); border-radius: 999px;
  font-size: .85rem; color: var(--muted);
}

/* ---------- Article ---------- */
.article { padding: 56px 0 24px; }
.article > .container > h2:first-child { margin-top: 0; }
.article em { color: var(--muted); }
.article h2 { scroll-margin-top: 84px; }
.article h2::after {
  content: ""; display: block; width: 120px; height: 2px; margin-top: 12px;
  background: repeating-linear-gradient(90deg, var(--glow) 0 4px, transparent 4px 9px);
}

.table-wrap {
  overflow-x: auto; margin: 0 0 1.6em;
  border: 1px solid var(--glow-soft); border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: .96rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px dashed var(--glow-faint); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--silver); font-weight: 800; }
tbody tr:nth-child(even) { background: rgba(24, 32, 58, .55); }
tbody tr:last-child td { border-bottom: 0; }

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

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin-bottom: 1.4em; }
.faq details { background: var(--surface); border: 1px solid var(--glow-faint); border-radius: var(--radius); }
.faq details[open] { border-color: var(--glow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px; background: var(--glow); clip-path: var(--star);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.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: 40px 24px; text-align: center; }
.about-block p { max-width: 700px; margin-left: auto; margin-right: auto; color: var(--muted); }

.hub { display: grid; gap: 16px; 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); }
.hub a:hover { border-color: var(--glow-soft); }
.hub strong { display: block; color: var(--silver); font-size: 1.05rem; margin-bottom: 4px; }
.hub span { color: var(--muted); font-size: .92rem; }

/* ---------- Inner page head ---------- */
.page-head { padding: 56px 0 36px; text-align: center; border-bottom: 1px dashed var(--glow-soft); position: relative; overflow: hidden; }
.page-head > .container { position: relative; }
.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: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  background: var(--glow); clip-path: var(--star);
}
.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-weight: 800; color: var(--silver); 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; text-align: center; }
.helpline a.tel {
  display: block; font-family: var(--display); font-size: 1.5rem;
  color: var(--silver); text-decoration: none; margin: 6px 0 8px;
  text-shadow: 0 0 16px rgba(143, 179, 217, .5);
}
.helpline p { margin: 0; font-size: .92rem; color: var(--muted); }
.helpline .who { color: var(--glow); font-weight: 800; font-size: .9rem; letter-spacing: .04em; }

/* ---------- 18+ ---------- */
.age-banner {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: 28px 24px; border-radius: var(--radius);
  background: radial-gradient(ellipse at 0% 50%, rgba(143, 179, 217, .22), transparent 60%), var(--surface-2);
  border: 1px dashed var(--glow);
}
.age-badge {
  flex: none; width: 70px; height: 70px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--silver); color: var(--silver);
  font-family: var(--display); font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(143, 179, 217, .4);
}
.age-banner p { margin: 0; color: var(--muted); }
.age-banner .age-title { font-family: var(--display); font-size: 1.1rem; color: var(--silver); 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; position: relative; }
.notfound .code {
  font-family: var(--display); font-size: clamp(4.5rem, 20vw, 8rem); line-height: 1;
  color: var(--silver); margin: 0 0 14px; text-shadow: 0 0 40px rgba(143, 179, 217, .55);
}
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px; padding: 48px 0 28px;
  background: #0A0F1D; border-top: 1px dashed var(--glow-soft);
  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-family: var(--sans); font-weight: 800; font-size: .85rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--glow); margin: 0 0 14px;
}
.site-footer h2::after { display: none; }
.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(--silver); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--glow-faint);
  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: 46px; height: 46px; font-size: .9rem; box-shadow: none; }
.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, .card, .faq summary::after { transition: none; }
}
