/* ============================================================
   TAROTKI — Stylesheet base
   Paleta:  #111111 fondo · #b03a48 rojo carmín · #c8a96b dorado suave
            #f5f1e8 marfil texto · #b8b8b8 gris humo secundario
   Fuentes: Cinzel (títulos) · Manrope (cuerpo)
   ============================================================ */

/* ── AdSense: ocultar SOLO flotantes (Anchor + Vignette), dejar in-page ── */
.google-auto-placed[style*="position: fixed"],
.google-auto-placed[style*="position:fixed"],
ins.adsbygoogle[style*="position: fixed"],
ins.adsbygoogle[style*="position:fixed"],
iframe[id^="aswift_"][style*="position: fixed"],
iframe[id^="aswift_"][style*="position:fixed"],
.gscb-anchor-frame,
[class*="gscb"][class*="anchor"],
[id*="anchor"][class*="adsbygoogle"] {
    display: none !important;
}

:root {
  --tk-bg:           #111111;
  --tk-bg-soft:      #1a1a1a;
  --tk-red:          #dc4356;          /* rojo brillante (acento principal, CTAs, hover) */
  --tk-red-strong:   #e54155;          /* aún más vivo, para el logo y h1 */
  --tk-red-deep:     #b03a48;          /* rojo profundo de soporte (fondos sutiles, bordes) */
  --tk-red-dim:      rgba(220, 67, 86, 0.18);
  --tk-gold:         #c8a96b;
  --tk-gold-dim:     rgba(200, 169, 107, 0.18);
  --tk-text:         #f5f1e8;
  --tk-text-2:       #b8b8b8;
  --tk-text-3:       #707070;
  --tk-border:       rgba(245, 241, 232, 0.08);
  --tk-border-gold:  rgba(200, 169, 107, 0.25);

  --tk-font-serif:   'Cinzel', Georgia, serif;
  --tk-font-sans:    'Manrope', system-ui, sans-serif;

  --tk-radius-sm:    4px;
  --tk-radius-md:    8px;
  --tk-radius-lg:    14px;

  --tk-shadow-md:    0 6px 20px rgba(0, 0, 0, 0.4);
  --tk-shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.55);

  --tk-transition:   180ms cubic-bezier(0.4, 0, 0.2, 1);

  --tk-nav-h:        72px;
  --tk-max-w:        1200px;
}

/* ── Reset minimal ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--tk-bg);
  color: var(--tk-text);
  font-family: var(--tk-font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fondo decorativo: sutil radial dorado en esquina superior-derecha */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 169, 107, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tk-red); text-decoration: none; transition: color var(--tk-transition); }
a:hover { color: var(--tk-gold); }

/* ── Tipografía ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tk-font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.7em;
  color: var(--tk-text);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.3; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
strong { color: var(--tk-text); font-weight: 600; }
em { color: var(--tk-gold); font-style: italic; }

.tk-heading {
  font-family: var(--tk-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tk-heading--lg { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
.tk-subheading {
  font-family: var(--tk-font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tk-gold);
  font-weight: 500;
}
.tk-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--tk-text-2);
  max-width: 65ch;
}

/* ── Layout principal ───────────────────────────────────────── */
.tk-page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.tk-main {
  flex: 1;
  max-width: var(--tk-max-w);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--tk-nav-h) + 2rem) 1.25rem 4rem;
}

/* ── Header / Nav ───────────────────────────────────────────── */
.tk-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--tk-nav-h);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tk-border);
  z-index: 100;
}
.tk-nav { height: 100%; }
.tk-nav__container {
  max-width: var(--tk-max-w);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}
.tk-nav__container .tk-nav__logo   { justify-self: start; }
.tk-nav__container .tk-nav__list   { justify-self: center; margin: 0; }
.tk-nav__container .tk-nav__toggle { justify-self: end; }

/* Logo */
.tk-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--tk-red);
  transition: color var(--tk-transition);
}
.tk-nav__logo:hover { color: var(--tk-gold); }
.tk-logo-svg { width: 34px; height: 34px; }
.tk-logo-text {
  font-family: var(--tk-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tk-text);
}

/* Lista de navegación */
.tk-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 0.25rem;
}
.tk-nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  font-family: var(--tk-font-serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tk-text);
  border-radius: var(--tk-radius-sm);
  transition: color var(--tk-transition), background var(--tk-transition);
  white-space: nowrap;
  text-decoration: none;
}
/* Hover: tinte sutil sin color rojo, solo realce */
.tk-nav__link:hover {
  color: var(--tk-text);
  background: rgba(245, 241, 232, 0.05);
}
/* Activo: rojo brillante + subrayado dorado fijo */
.tk-nav__link--active {
  color: var(--tk-red);
  background: transparent;
}
.tk-nav__link--active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2px;
  background: var(--tk-gold);
  border-radius: 1px;
}

/* Hamburger (oculto en desktop) */
.tk-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 6px;
  background: transparent;
  border: 0;
  border-radius: var(--tk-radius-sm);
  cursor: pointer;
  transition: background var(--tk-transition);
}
.tk-nav__toggle:hover { background: var(--tk-red-dim); }
.tk-nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--tk-text);
  border-radius: 2px;
  transition: transform var(--tk-transition), opacity var(--tk-transition), background var(--tk-transition);
}
.tk-nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--tk-red); }
.tk-nav__toggle.open span:nth-child(2) { opacity: 0; }
.tk-nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--tk-red); }

/* ── Botones ────────────────────────────────────────────────── */
.tk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--tk-font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--tk-radius-md);
  cursor: pointer;
  transition: transform var(--tk-transition), background var(--tk-transition), border-color var(--tk-transition), color var(--tk-transition);
}
.tk-btn--primary {
  background: var(--tk-red);
  color: var(--tk-text);
}
.tk-btn--primary:hover {
  background: #c84858;
  transform: translateY(-1px);
}
.tk-btn--ghost {
  background: transparent;
  color: var(--tk-text);
  border-color: var(--tk-border-gold);
}
.tk-btn--ghost:hover {
  border-color: var(--tk-gold);
  color: var(--tk-gold);
  background: var(--tk-gold-dim);
}

/* ── Hero ───────────────────────────────────────────────────── */
.tk-hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.tk-hero__eyebrow {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--tk-font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tk-gold);
  border: 1px solid var(--tk-border-gold);
  border-radius: 999px;
  background: var(--tk-gold-dim);
}
.tk-hero__title {
  font-family: var(--tk-font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--tk-text);
}
.tk-hero__title-accent { color: var(--tk-red); display: block; }
.tk-hero__subtitle {
  font-family: var(--tk-font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--tk-gold);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}
.tk-hero__lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--tk-text-2);
}
.tk-hero__ctas {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Secciones genéricas ────────────────────────────────────── */
.tk-section { padding: 3rem 0; }
.tk-section--alt { background: var(--tk-bg-soft); }
.tk-divider {
  width: 60px;
  height: 1px;
  background: var(--tk-gold);
  margin: 1.5rem auto;
  opacity: 0.6;
}

/* ── Cards / Grid ───────────────────────────────────────────── */
.tk-grid {
  display: grid;
  gap: 1.25rem;
}
.tk-grid--2    { grid-template-columns: repeat(2, 1fr); }
.tk-grid--3    { grid-template-columns: repeat(3, 1fr); }
.tk-grid--4    { grid-template-columns: repeat(4, 1fr); }
.tk-grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.tk-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  background: rgba(245, 241, 232, 0.025);
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-md);
  transition: transform var(--tk-transition), border-color var(--tk-transition), background var(--tk-transition);
  text-decoration: none;
  color: inherit;
}
.tk-card:hover {
  transform: translateY(-3px);
  border-color: var(--tk-border-gold);
  background: rgba(245, 241, 232, 0.05);
}
.tk-card__icon {
  width: 36px;
  height: 36px;
  color: var(--tk-gold);
  margin-bottom: 0.9rem;
}
.tk-card__icon svg { width: 100%; height: 100%; }
.tk-card__title {
  font-family: var(--tk-font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tk-text);
  margin: 0 0 0.4rem;
}
.tk-card__desc {
  font-size: 0.92rem;
  color: var(--tk-text-2);
  margin: 0;
  line-height: 1.55;
}

/* ── Section head (subheading + title + divider) ────────────── */
.tk-section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tk-subheading {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tk-gold);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.tk-section__head .tk-divider { margin-top: 1rem; }

/* ── Categoría cards (más prominentes que tk-card normal) ──── */
.tk-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
  background: rgba(245, 241, 232, 0.03);
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--tk-transition), border-color var(--tk-transition), background var(--tk-transition);
  position: relative;
}
.tk-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--tk-border-gold);
  background: rgba(220, 67, 86, 0.04);
}
.tk-cat-card__icon {
  width: 44px;
  height: 44px;
  color: var(--tk-gold);
  margin-bottom: 1rem;
  transition: color var(--tk-transition);
}
.tk-cat-card__icon svg { width: 100%; height: 100%; }
.tk-cat-card:hover .tk-cat-card__icon { color: var(--tk-red); }
.tk-cat-card__title {
  font-family: var(--tk-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tk-text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.tk-cat-card__desc {
  font-size: 0.92rem;
  color: var(--tk-text-2);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.tk-cat-card__count {
  font-size: 0.78rem;
  color: var(--tk-text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 1px solid var(--tk-border);
  padding-top: 0.75rem;
  width: 100%;
}

/* ── Feature blocks (¿Por qué Tarotki?) ─────────────────────── */
.tk-feature {
  text-align: center;
  padding: 1.5rem 1rem;
}
.tk-feature__icon {
  width: 48px;
  height: 48px;
  color: var(--tk-gold);
  margin: 0 auto 1rem;
}
.tk-feature__icon svg { width: 100%; height: 100%; }
.tk-feature__title {
  font-family: var(--tk-font-serif);
  font-size: 1.1rem;
  color: var(--tk-text);
  margin: 0 0 0.6rem;
}
.tk-feature__desc {
  font-size: 0.92rem;
  color: var(--tk-text-2);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Breadcrumb / SEO block ─────────────────────────────────── */
.tk-breadcrumb {
  font-size: 0.85rem;
  color: var(--tk-text-2);
  margin-bottom: 1rem;
}
.tk-breadcrumb a { color: var(--tk-text-2); }
.tk-breadcrumb a:hover { color: var(--tk-red); }
.tk-breadcrumb span { opacity: 0.6; margin: 0 0.4em; }
.tk-seo-block {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(245, 241, 232, 0.025);
  border-left: 3px solid var(--tk-red);
  border-radius: var(--tk-radius-sm);
}
.tk-seo-block__desc { color: var(--tk-text-2); margin: 0; font-size: 0.95rem; }

/* ── SEO content rico (intro, qué es, FAQ, relacionados) ───── */
.tk-seo-content {
  background: rgba(245, 241, 232, 0.02);
  border-top: 1px solid var(--tk-border);
  padding: 3rem 1.25rem;
  margin-top: 3rem;
}
.tk-seo-content__inner {
  max-width: 760px;
  margin: 0 auto;
  color: var(--tk-text-2);
  font-size: 1rem;
  line-height: 1.75;
}
.tk-seo-content__inner h2 {
  font-family: var(--tk-font-serif);
  font-size: 1.6rem;
  color: var(--tk-text);
  letter-spacing: 0.02em;
  margin: 2.5rem 0 0.6rem;
  text-align: center;
}
.tk-seo-content__inner h3 {
  font-family: var(--tk-font-serif);
  font-size: 1.2rem;
  color: var(--tk-gold);
  margin: 2rem 0 0.8rem;
}
.tk-seo-content__inner h2 + .tk-divider { margin: 0.5rem auto 1.5rem; }
.tk-seo-content__inner p {
  margin: 0 0 1.1rem;
}
.tk-seo-content__intro {
  font-size: 1.08rem;
  color: var(--tk-text);
  border-left: 3px solid var(--tk-red);
  padding: 0.4rem 0 0.4rem 1rem;
  margin-bottom: 2rem !important;
}
.tk-seo-content__inner strong { color: var(--tk-text); font-weight: 600; }
.tk-seo-content__inner em { color: var(--tk-gold); font-style: italic; }
.tk-seo-content__inner a { color: var(--tk-gold); text-decoration: underline; text-decoration-color: var(--tk-border-gold); text-underline-offset: 3px; }
.tk-seo-content__inner a:hover { color: var(--tk-red); text-decoration-color: var(--tk-red); }
.tk-seo-content__inner ul {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}
.tk-seo-content__inner ul li { margin: 0.4rem 0; }

/* ── FAQ accordion ──────────────────────────────────────────── */
.tk-faq { margin: 1rem 0 2rem; }
.tk-faq__item {
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-md);
  margin-bottom: 0.6rem;
  background: rgba(245, 241, 232, 0.018);
  transition: border-color var(--tk-transition);
}
.tk-faq__item[open] { border-color: var(--tk-border-gold); }
.tk-faq__q {
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  font-family: var(--tk-font-serif);
  font-size: 1rem;
  color: var(--tk-text);
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.tk-faq__q::-webkit-details-marker { display: none; }
.tk-faq__q::after {
  content: '+';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tk-gold);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform var(--tk-transition);
}
.tk-faq__item[open] .tk-faq__q::after { content: '−'; }
.tk-faq__a {
  padding: 0 1.2rem 1.1rem;
  color: var(--tk-text-2);
  font-size: 0.97rem;
  line-height: 1.7;
}
.tk-faq__a p:last-child { margin-bottom: 0; }

/* ── Verwandte Inhalte ──────────────────────────────────────── */
.tk-related {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tk-related li { margin: 0; }
.tk-related a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--tk-border-gold);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--tk-text-2);
  text-decoration: none;
  transition: background var(--tk-transition), color var(--tk-transition), border-color var(--tk-transition);
}
.tk-related a:hover {
  background: var(--tk-red-dim);
  border-color: var(--tk-red);
  color: var(--tk-text);
}

/* ── Footer ─────────────────────────────────────────────────── */
.tk-footer {
  margin-top: 4rem;
  padding: 3rem 1.25rem 2rem;
  background: var(--tk-bg-soft);
  border-top: 1px solid var(--tk-border-gold);
}
.tk-footer__inner { max-width: var(--tk-max-w); margin: 0 auto; }
.tk-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--tk-border);
}
.tk-footer__logo-svg { width: 40px; height: 40px; color: var(--tk-red); flex-shrink: 0; }
.tk-footer__tagline {
  margin: 0;
  font-family: var(--tk-font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--tk-gold);
  line-height: 1.4;
}
.tk-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--tk-text-3);
}
.tk-footer__bottom p { margin: 0; }
.tk-footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tk-footer__legal a {
  color: var(--tk-text-3);
  font-size: 0.83rem;
  text-decoration: none;
  transition: color var(--tk-transition);
}
.tk-footer__legal a:hover { color: var(--tk-red); }

/* ── 404 ────────────────────────────────────────────────────── */
.tk-404 {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.tk-404__title {
  font-family: var(--tk-font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--tk-red);
  margin-bottom: 1rem;
}
.tk-404__desc {
  font-size: 1.05rem;
  color: var(--tk-text-2);
  margin-bottom: 2rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tk-grid--3, .tk-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tk-nav__container { grid-template-columns: 1fr auto; }
  .tk-nav__toggle { display: flex; }
  .tk-nav__list {
    display: none;
    position: fixed;
    top: var(--tk-nav-h);
    left: 0; right: 0;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tk-border-gold);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--tk-shadow-lg);
  }
  .tk-nav__list.open { display: flex; }
  .tk-nav__link { font-size: 0.9rem; padding: 0.7rem 1rem; }

  .tk-grid--2, .tk-grid--3, .tk-grid--4 { grid-template-columns: 1fr; }
  .tk-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  :root { --tk-nav-h: 60px; }
  .tk-logo-text { font-size: 1.05rem; }
}
