:root {
  --bg: #0e0b10;
  --bg-alt: #141017;
  --surface: #1a151e;
  --surface-2: #221b27;
  --line: #2f2634;
  --text: #f4eef3;
  --muted: #a99eaa;
  --accent: #ef3c6f;
  --accent-ink: #0e0b10;
  --accent-soft: rgba(239, 60, 111, 0.12);
  --star: #ffb547;
  --star-off: #3a3140;
  --ok: #3ddc97;
  --err: #ff6b6b;
  --radius: 14px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::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: 16px/1.6 var(--body); }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(14, 11, 16, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 30px; height: 26px; flex-shrink: 0; }
.logo-text { font-weight: inherit; }
.logo-text span { color: var(--accent); font-style: italic; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 0; border-radius: 999px; padding: 12px 22px; font: 700 15px/1 var(--body); cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 400px at 85% -10%, rgba(239, 60, 111, 0.18), transparent 60%), radial-gradient(600px 300px at 0% 110%, rgba(255, 181, 71, 0.08), transparent 60%); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); max-width: 16ch; }
.lead { font-size: clamp(16px, 2vw, 19px); color: #d9cfd8; max-width: 62ch; margin-top: 18px; }
.stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 34px; line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { margin-top: 8px; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-icon { font-size: 26px; }
.cat-name { font-family: var(--display); font-size: 19px; font-weight: 700; }
.cat-short { color: var(--muted); font-size: 14px; flex: 1; }
.cat-count { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card:hover { border-color: #463a4d; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-size: 20px; overflow-wrap: anywhere; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.desc { color: #ddd3dc; font-size: 15px; }
.solution { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 14px; color: #d6ccd5; }
.label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; font-size: 13px; flex-wrap: wrap; }
.price { color: var(--muted); }
.visit { font-weight: 700; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 1px; overflow-wrap: anywhere; }
.visit:hover { color: var(--accent); }
.badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Stars */
.rating { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.stars { --pct: calc(var(--r) / 5 * 100%); font-size: 16px; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, var(--star) var(--pct), var(--star-off) var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score { font-weight: 700; font-size: 13px; color: var(--star); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip span { color: var(--accent); }

/* Directory */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; position: sticky; top: 64px; z-index: 10; padding: 12px 0; background: var(--bg); }
.section.alt .filter-bar { background: var(--bg-alt); }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; }
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 500 16px var(--body); padding: 13px 0; outline: none; }
.sort, .min { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 500 14px var(--body); }
.cat-section { margin-bottom: 48px; }
.cat-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cat-section-head h3 { font-size: 24px; }
.cat-section-head a { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.empty a { color: var(--accent); }

/* Page head */
.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 100% 0%, rgba(239, 60, 111, 0.14), transparent 60%); }
.page-head h1 { font-size: clamp(30px, 5vw, 52px); }
.page-head .muted { margin-top: 14px; font-size: 14px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Method */
.method-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.method-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: #d6ccd5; font-size: 15px; }
.method-list strong { color: var(--text); display: block; margin-bottom: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

/* CTA */
.cta { padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(239, 60, 111, 0.16), rgba(255, 181, 71, 0.06)); border: 1px solid rgba(239, 60, 111, 0.35); border-radius: 20px; padding: 32px; }
.cta h2 { font-size: clamp(24px, 3.5vw, 34px); }
.cta p { color: #d9cfd8; margin-top: 8px; }

/* Form */
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; background: var(--surface); min-width: 0; }
.form legend { font-family: var(--display); font-size: 18px; font-weight: 700; padding: 0 8px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input:not([type='checkbox']), .field textarea, .field select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 500 16px var(--body); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: #d6ccd5; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 8px 0 20px; min-height: 65px; }
.form-status { margin-top: 16px; font-weight: 600; text-align: center; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-done { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-done h2 { font-size: 30px; margin-bottom: 12px; }
.form-done p { color: var(--muted); margin-bottom: 24px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg-alt); }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.foot-inner p { margin-top: 10px; font-size: 14px; max-width: 40ch; }
.foot-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; font-size: 14px; }
.foot-cats a { color: var(--muted); text-decoration: none; }
.foot-cats a:hover { color: var(--accent); }
.foot-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 8px; }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Selector de idioma */
.nav a.lang { display: inline-flex !important; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; text-decoration: none; }
.nav a.lang:hover { border-color: var(--accent); color: var(--accent); }
.foot-lang { margin-top: 12px; font-size: 14px; }
.foot-lang a { color: var(--accent); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
