/* ============================================================
   Directorio de Creadoras — style.css
   Estética oscura premium · tipografía de sistema · sin webfonts
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --surface: #13131c;
  --surface-2: #1a1a26;
  --border: #262636;
  --text: #eaeaf2;
  --muted: #9a9ab0;
  --accent: #b347ff;
  --accent-2: #ff4fa3;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(179, 71, 255, 0.35), 0 8px 32px rgba(179, 71, 255, 0.18);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

/* el atributo hidden SIEMPRE gana a cualquier display de author CSS */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans JP", "Noto Sans SC",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------------------------------------------------- cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
}

.brand {
  font-weight: 800; font-size: 1.06rem; letter-spacing: 0.2px;
  color: var(--text); white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand:hover { text-decoration: none; }

.brand-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-search {
  flex: 1; display: flex; max-width: 420px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 71, 255, 0.15);
}
.header-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--text); padding: 9px 16px; font-size: 0.92rem;
  outline: none;
}
.header-search input::placeholder { color: var(--muted); }
.search-btn {
  border: 0; background: transparent; color: var(--muted);
  padding: 0 14px; cursor: pointer; display: grid; place-items: center;
}
.search-btn:hover { color: var(--accent-2); }

.lang-switch { display: flex; gap: 4px; }
.lang-link {
  padding: 4px 8px; border-radius: 8px; font-size: 0.72rem;
  font-weight: 700; color: var(--muted); letter-spacing: 0.5px;
  border: 1px solid transparent;
}
.lang-link:hover { color: var(--text); text-decoration: none; }
.lang-link.active {
  color: #fff; border-color: var(--border);
  background: var(--surface-2);
}

/* ---------------------------------------------------- hero */
.hero { padding: 44px 0 24px; text-align: center; }
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text { color: var(--muted); max-width: 640px; margin: 12px auto 0; }

.section-title {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.count-badge {
  font-size: 0.78rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 10px; border-radius: 999px; font-weight: 600;
}

/* ---------------------------------------------------- mosaico */
.mosaic { padding: 8px 0 40px; }
.grid {
  display: grid; gap: 18px; margin-top: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
  border-color: rgba(179, 71, 255, 0.5);
}
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }

.card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-cover img { transform: scale(1.05); }

.card-body { display: flex; gap: 12px; padding: 12px 14px 14px; align-items: center; }
.card-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  border: 2px solid var(--border); object-fit: cover;
  background: var(--surface-2);
}
.card-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-name {
  font-size: 1rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-sub { display: flex; }
.card-count { font-size: 0.8rem; color: var(--muted); }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.4px; text-transform: lowercase;
  color: #fff; background: rgba(179, 71, 255, 0.16);
  border: 1px solid rgba(179, 71, 255, 0.45);
  padding: 2px 10px; border-radius: 999px;
}
.badge:hover { text-decoration: none; background: rgba(179, 71, 255, 0.3); }
.badge-video { background: rgba(255, 79, 163, 0.14); border-color: rgba(255, 79, 163, 0.5); }

.load-more-wrap { text-align: center; margin-top: 26px; }
.card.is-hidden { display: none; }

/* ---------------------------------------------------- botones */
.btn {
  display: inline-block; border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 22px; font-size: 0.92rem;
  font-weight: 700; cursor: pointer; color: var(--text);
  background: var(--surface-2); transition: 0.18s;
  font-family: inherit; line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--grad); border: 0; color: #fff;
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------- perfil */
.breadcrumb { padding: 16px 20px 0; }
.crumbs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0; font-size: 0.8rem; color: var(--muted);
}
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs [aria-current] { color: var(--text); }

.profile-banner { aspect-ratio: 3 / 1; max-height: 320px; overflow: hidden; position: relative; }
.profile-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0) 55%, rgba(10,10,15,0.9));
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }

.profile-head {
  display: flex; gap: 22px; align-items: flex-end;
  margin-top: -46px; position: relative; z-index: 2; padding-bottom: 8px;
}
.profile-avatar {
  width: 124px; height: 124px; border-radius: 50%; flex: none;
  border: 4px solid var(--bg); background: var(--surface-2);
  box-shadow: var(--shadow); object-fit: cover;
}
.profile-info { padding-bottom: 6px; min-width: 0; }
.profile-name {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin: 0 0 6px;
}
.profile-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  color: var(--muted); font-size: 0.88rem; margin: 0 0 10px;
}
.profile-updated { font-size: 0.78rem; opacity: 0.75; }
.profile-bio { color: var(--text); opacity: 0.92; max-width: 68ch; margin: 0 0 14px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------- galería */
.gallery { padding: 26px 20px 48px; }
.gallery-grid {
  display: grid; gap: 14px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.media-item {
  margin: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; position: relative;
}
.media-open {
  display: block; width: 100%; padding: 0; border: 0;
  background: transparent; cursor: zoom-in; position: relative;
  color: inherit; font: inherit; text-align: inherit;
}
.media-item img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--surface-2); transition: transform 0.25s ease;
}
.media-video .media-open img { aspect-ratio: 16 / 9; }
.media-item:hover img { transform: scale(1.04); }

.play-icon, .play-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem;
  background: rgba(10, 10, 15, 0.55); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.media-fecha {
  padding: 8px 12px; font-size: 0.74rem; color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}

/* embed FxTwitter (modo vídeo alternativo) */
.media-embed blockquote { margin: 0; }

/* ---------------------------------------------------- nav de tops */
.tops-nav {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.6);
  padding: 6px 0;
}
.tops-inner {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding-top: 2px; padding-bottom: 2px;
}
.top-link {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3px;
  color: var(--muted); padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  white-space: nowrap;
}
.top-link:hover {
  color: #fff; text-decoration: none;
  border-color: rgba(179, 71, 255, 0.55); background: rgba(179, 71, 255, 0.14);
}
.top-link-tags { margin-left: auto; }

/* ---------------------------------------------------- tarjetas de publicación */
.mgrid {
  display: grid; gap: 14px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.mcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.mcard:hover {
  transform: translateY(-4px); box-shadow: var(--glow);
  border-color: rgba(179, 71, 255, 0.5);
}
.mcard-link { display: block; color: inherit; }
.mcard-link:hover { text-decoration: none; }
.mcard-thumb {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--surface-2);
}
.mcard-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.mcard:hover .mcard-thumb img { transform: scale(1.05); }
.mcard-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 10, 15, 0.55); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.mcard-meta { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 11px; }
.mcard-name {
  font-size: 0.92rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcard-sub {
  font-size: 0.72rem; color: var(--muted); display: flex; gap: 6px; align-items: center;
}
.mcard-stats { display: flex; gap: 10px; margin-top: 2px; }
.ic { vertical-align: -2px; margin-right: 3px; opacity: 0.9; }
.st { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-likes .ic { color: var(--accent-2); }
.st-rt .ic { color: var(--accent); }
.st-resp .ic { color: var(--muted); }
.img-fallback { outline: 2px dashed rgba(179, 71, 255, 0.5); outline-offset: -2px; }
.img-fail { opacity: 0.55; }
.no-media-msg { color: var(--muted); grid-column: 1 / -1; }

/* ---------------------------------------------------- barra de filtros */
.filters {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; margin: 18px 0 6px;
}
.f-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted); font-weight: 700;
}
.f-label select {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; font-size: 0.82rem; font-family: inherit; outline: none;
  cursor: pointer;
}
.f-label select:focus { border-color: var(--accent); }
.f-count { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
.load-more-wrap-dyn { text-align: center; margin-top: 22px; }

/* ---------------------------------------------------- secciones */
.section-title-big { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; }
.section-desc { color: var(--muted); font-size: 0.92rem; max-width: 72ch; margin: 0 0 6px; }
.tops { padding: 18px 20px 48px; }
.ultimas { padding: 10px 20px 30px; }
.tags-home { padding: 10px 20px 44px; }
.chip-n {
  font-size: 0.68rem; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 1px 8px; margin-left: 4px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag-cloud .tag-chip { font-size: 0.9rem; }
.tag-l2 { font-size: 1.02rem !important; border-color: rgba(179, 71, 255, 0.5); }
.tag-l3 { font-size: 1.14rem !important; border-color: rgba(255, 79, 163, 0.55); background: rgba(255, 79, 163, 0.12); }

/* ---------------------------------------------------- página de medio */
.media-page {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 26px; padding: 18px 20px 48px; align-items: start;
}
.media-main {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.media-stage { margin: 0; background: #08080d; }
.media-stage-img {
  width: 100%; max-height: 82vh; object-fit: contain; display: block;
  background:
    linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%)
    var(--surface-2);
}
.media-stage-video .video-open { display: block; position: relative; }
.media-stage-video .video-open img {
  width: 100%; max-height: 82vh; object-fit: contain; display: block;
}
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(179, 71, 255, 0.35); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85); font-size: 1.8rem;
}
.video-fallback { padding: 14px; text-align: center; }
.video-fallback img { margin: 0 auto 12px; max-height: 60vh; border-radius: var(--radius-sm); }
.video-fallback-note { color: var(--muted); font-size: 0.85rem; }
.media-embed blockquote { margin: 0; }

.media-meta { padding: 16px 18px 18px; border-top: 1px solid var(--border); }
.media-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.media-creator { display: flex; align-items: center; gap: 12px; color: inherit; }
.media-creator:hover { text-decoration: none; }
.media-creator img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); background: var(--surface-2);
}
.media-creator-txt { display: flex; flex-direction: column; }
.media-creator-txt .muted { font-size: 0.78rem; }
.media-alt { color: var(--text); opacity: 0.94; margin: 0 0 6px; }
.media-fecha { color: var(--muted); font-size: 0.8rem; margin: 0 0 12px; }
.media-stats { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.media-stats .st { font-size: 0.86rem; color: var(--text); }
.media-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.media-related .mgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

@media (max-width: 980px) {
  .media-page { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- verificación edad */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 5, 9, 0.97);
  display: grid; place-items: center; padding: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.age-gate-box {
  max-width: 420px; width: 100%; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow);
}
.age-gate-badge {
  margin: 0 auto 14px; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.35);
}
.age-gate-box h2 { font-size: 1.3rem; margin: 0 0 10px; }
.age-gate-text { color: var(--muted); font-size: 0.92rem; margin: 0 0 22px; }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; }
.age-gate-actions .btn { width: 100%; }

/* ---------------------------------------------------- búsqueda */
.search-hero { padding: 40px 20px 8px; max-width: 760px; }
.search-title { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; }
.search-big {
  display: flex; gap: 10px; margin-top: 18px;
}
.search-big input {
  flex: 1; min-width: 0; padding: 13px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); font-size: 1rem; outline: none;
}
.search-big input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 71, 255, 0.15);
}
.popular { margin-top: 22px; }
.popular-title { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.popular-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-chip {
  font-size: 0.8rem; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.tag-chip:hover { border-color: var(--accent); text-decoration: none; }

.search-results { padding: 18px 20px 48px; }
.search-status { color: var(--muted); font-size: 0.9rem; min-height: 1.5em; }

/* ---------------------------------------------------- legales / 404 */
.legal { max-width: 76ch; padding: 40px 20px 60px; }
.legal-title { font-size: 1.6rem; font-weight: 800; }
.legal-intro { color: var(--muted); }
.legal-body h2 { font-size: 1.05rem; margin-top: 26px; color: var(--text); }
.legal-body p { color: var(--muted); margin: 0 0 12px; }
.legal-body li { color: var(--muted); margin-bottom: 6px; }
.legal-body a { color: var(--accent-2); }
.legal-back { margin-top: 30px; }

.notfound { text-align: center; padding: 90px 20px; }
.notfound-title { font-size: 2rem; font-weight: 800; }
.notfound-text { color: var(--muted); }
.redirect-page .notfound { padding: 60px 20px; }

/* ---------------------------------------------------- pie */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19,19,28,0.35), rgba(10,10,15,0.6));
  padding: 34px 0 30px; margin-top: 20px;
}
.footer-inner { text-align: center; }
.footer-brand { font-weight: 700; margin: 0 0 10px; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  font-size: 0.82rem; margin-bottom: 14px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-2); }
.footer-note { color: var(--muted); font-size: 0.74rem; max-width: 620px; margin: 0 auto 10px; }
.footer-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  color: #fff; background: var(--grad);
  padding: 3px 12px; border-radius: 999px; margin: 0;
}

/* ---------------------------------------------------- carga perezosa */
img.protected-img[data-src]:not([src]) {
  background:
    linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%)
    var(--surface-2);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* ---------------------------------------------------- responsive */
@media (max-width: 860px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .lang-switch { margin-left: auto; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .media-related .mgrid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .filters { gap: 10px; }
  .f-count { margin-left: 0; flex-basis: 100%; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: -74px; }
  .profile-avatar { width: 104px; height: 104px; }
  .search-big { flex-direction: column; }
  .search-big .btn { width: 100%; }
  .hero { padding: 30px 0 16px; }
  .top-link-tags { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ============================================================
   v2.1 — Categorías de contenido · account-add · vistas
   ============================================================ */

/* ---- barra de categorías (bajo el header principal) ---- */
.cats-nav {
  background: linear-gradient(180deg, rgba(179, 71, 255, 0.10), rgba(179, 71, 255, 0.02));
  border-bottom: 1px solid var(--border);
}
.cats-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 16px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.cat-link {
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
}
.cat-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.cat-hetero:hover, .cat-link.cat-hetero.activo { color: #ff5c8a; border-color: rgba(255, 92, 138, 0.45); background: rgba(255, 92, 138, 0.10); }
.cat-gay:hover, .cat-link.cat-gay.activo { color: #4f9cff; border-color: rgba(79, 156, 255, 0.45); background: rgba(79, 156, 255, 0.10); }
.cat-trans:hover, .cat-link.cat-trans.activo { color: #58cfd4; border-color: rgba(88, 207, 212, 0.45); background: rgba(88, 207, 212, 0.10); }
.cat-ia:hover, .cat-link.cat-ia.activo { color: #9d7bff; border-color: rgba(157, 123, 255, 0.45); background: rgba(157, 123, 255, 0.10); }
.cat-comic:hover, .cat-link.cat-comic.activo { color: #ffa14f; border-color: rgba(255, 161, 79, 0.45); background: rgba(255, 161, 79, 0.10); }
.cat-add {
  color: var(--text); border-color: var(--border);
  background: rgba(255, 255, 255, 0.03); margin-left: auto;
}
.cat-add:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) { .cat-add { margin-left: 0; } }

/* ---- hub de categorías en la portada ---- */
.cathub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin-top: 14px;
}
.cathub-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--panel);
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cathub-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent); opacity: 0.85;
}
.cathub-hetero::before { background: #ff5c8a; }
.cathub-gay::before { background: #4f9cff; }
.cathub-trans::before { background: #58cfd4; }
.cathub-ia::before { background: #9d7bff; }
.cathub-comic::before { background: #ffa14f; }
.cathub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.14); }
.cathub-name { font-size: 1.06rem; font-weight: 700; color: var(--text); }
.cathub-meta { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.cathub-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }

/* ---- secciones por categoría en la portada ---- */
.cat-home { padding: 22px 16px 6px; border-top: 1px solid var(--border); }
.cat-home .section-title a { color: inherit; text-decoration: none; }
.cat-home .section-title a:hover { color: var(--accent); }
.cat-hetero .section-title a:hover { color: #ff5c8a; }
.cat-gay .section-title a:hover { color: #4f9cff; }
.cat-trans .section-title a:hover { color: #58cfd4; }
.cat-ia .section-title a:hover { color: #9d7bff; }
.cat-comic .section-title a:hover { color: #ffa14f; }
.cat-home-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.ver-todas { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.ver-todas:hover { text-decoration: underline; }
.grid-chips { margin-bottom: 12px; }

/* ---- página de categoría ---- */
.cat-hero { padding: 26px 16px 10px; }
.cat-hero .section-title-big { margin-bottom: 6px; }
.cat-cross { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat-chip {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; text-decoration: none;
}
.cat-chip:hover { color: var(--text); border-color: var(--accent); }
.cat-chip.cat-hetero:hover { color: #ff5c8a; border-color: rgba(255,92,138,0.5); }
.cat-chip.cat-gay:hover { color: #4f9cff; border-color: rgba(79,156,255,0.5); }
.cat-chip.cat-trans:hover { color: #58cfd4; border-color: rgba(88,207,212,0.5); }
.cat-chip.cat-ia:hover { color: #9d7bff; border-color: rgba(157,123,255,0.5); }
.cat-chip.cat-comic:hover { color: #ffa14f; border-color: rgba(255,161,79,0.5); }
.cat-creators { padding-top: 18px; }

/* ---- insignias de categoría ---- */
.badge-cat { font-weight: 700; text-transform: capitalize; }
.badge-cat.cat-hetero { color: #ff5c8a; border-color: rgba(255, 92, 138, 0.5); background: rgba(255, 92, 138, 0.10); }
.badge-cat.cat-gay { color: #4f9cff; border-color: rgba(79, 156, 255, 0.5); background: rgba(79, 156, 255, 0.10); }
.badge-cat.cat-trans { color: #58cfd4; border-color: rgba(88, 207, 212, 0.5); background: rgba(88, 207, 212, 0.10); }
.badge-cat.cat-ia { color: #9d7bff; border-color: rgba(157, 123, 255, 0.5); background: rgba(157, 123, 255, 0.10); }
.badge-cat.cat-comic { color: #ffa14f; border-color: rgba(255, 161, 79, 0.5); background: rgba(255, 161, 79, 0.10); }

/* ---- tops: cabecera + secciones por categoría ---- */
.tops-hero { padding: 22px 16px 8px; }
.tops-cat { padding-top: 18px; border-top: 1px solid var(--border); }
.ver-todas-wrap { margin: 10px 0 0; }

/* ---- contador de vistas ---- */
.st-views { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.st-views .ic { opacity: 0.85; }

/* ---- página account-add ---- */
.aa { max-width: 640px; padding: 24px 16px 60px; }
.aa-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; }
.aa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aa-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.aa-cat-opt input { position: absolute; opacity: 0; }
.aa-cat-opt label {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
.aa-cat-opt label strong { font-size: 0.95rem; color: var(--text); }
.aa-cat-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.4; }
.aa-cat-opt input:checked + label { border-color: var(--accent); background: rgba(179, 71, 255, 0.08); }
.aa-cat-opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.aa-checks { display: flex; flex-direction: column; gap: 10px; }
.aa-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem;
  color: var(--text); line-height: 1.5; cursor: pointer; }
.aa-check input { margin-top: 3px; width: auto; }
.btn-big { font-size: 1rem; padding: 12px 22px; }
@media (max-width: 560px) {
  .aa-cats { grid-template-columns: 1fr; }
}

/* ---- buscador: chips de categoría (opcional futuro) ---- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 6px; }
