/* ============================================================
   TopSEO — submarca editorial dentro de SEO en México.
   Comparte tokens y estructura; concentra su carácter en la señal sonora.
   ============================================================ */
.tp {
  --tp-ink: var(--topseo-purple-950);
  --tp-deep: var(--topseo-purple-900);
  --tp-main: var(--topseo-purple-700);
  --tp-accent: var(--topseo-orange);
  --tp-signal: var(--topseo-cyan);
  --tp-mist: var(--topseo-purple-100);
  background: #fff;
  color: var(--text-body);
}
.tp main { min-height: 55vh; }
.tp-wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.tp-skip { position: fixed; z-index: 200; left: 16px; top: -80px; padding: 10px 16px; background: #fff; color: var(--tp-ink); border-radius: 8px; font-weight: 700; }
.tp-skip:focus { top: 12px; }
.tp-grid-dark { background-image: linear-gradient(rgb(255 255 255 / 5.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5.5%) 1px, transparent 1px); background-size: 52px 52px; }
.tp-grid-light { background-image: linear-gradient(rgb(108 46 156 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(108 46 156 / 8%) 1px, transparent 1px); background-size: 52px 52px; }

/* Header propio de la submarca, conectado al mismo WordPress. */
.tp-site-header { position: sticky; inset: 0 0 auto; z-index: 80; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--border-subtle); backdrop-filter: blur(14px); }
.tp-site-header__bar { min-height: 70px; display: flex; align-items: center; gap: 22px; }
.tp-brand { display: inline-flex; align-items: center; flex: none; }
.tp-brand img { width: auto; height: 42px; object-fit: contain; }
.tp-nav { display: none; align-items: center; gap: 28px; margin-left: 12px; }
.tp-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--tp-ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.tp-nav a:hover { color: var(--topseo-purple-500); }
.tp-menu-toggle { margin-left: auto; width: 48px; height: 48px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--tp-ink); border-radius: 8px; cursor: pointer; }
.tp-menu-toggle svg { grid-area: 1 / 1; }
.tp-menu-toggle svg[hidden] { display: none; }
.tp-mobile-menu { background: #fff; border-top: 1px solid var(--border-subtle); }
.tp-mobile-menu[hidden] { display: none; }
.tp-mobile-menu .tp-wrap { padding-block: 8px 22px; display: grid; }
.tp-mobile-menu a:not(.tp-button) { min-height: 52px; display: flex; align-items: center; color: var(--tp-ink); border-bottom: 1px solid var(--border-subtle); text-decoration: none; font-size: 17px; font-weight: 700; }
.tp-mobile-menu .tp-button { margin-top: 16px; }
.tp-header-cta { display: none !important; margin-left: auto; }

.tp-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--tp-accent); border-radius: 8px; background: var(--tp-accent); color: var(--tp-ink) !important; text-decoration: none !important; font-weight: 750; line-height: 1.15; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.tp-button:hover { background: #ffab43; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tp-button--compact { min-height: 48px; padding-inline: 20px; font-size: 14px; }
.tp-button--secondary { background: #fff; border-color: var(--tp-main); color: var(--tp-main) !important; }
.tp-button--secondary:hover { background: var(--tp-mist); }
.tp-button--ghost { background: transparent; border-color: rgb(255 255 255 / 45%); color: #fff !important; }
.tp-button--ghost:hover { background: rgb(255 255 255 / 8%); border-color: #fff; }
.tp-eyebrow,.tp-kicker,.tp-results-count { margin: 0; color: var(--topseo-purple-500); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.tp-hero .tp-eyebrow,.tp-follow .tp-eyebrow,.tp-archive-hero .tp-eyebrow { color: var(--tp-signal); }

/* Hero: el reproductor visual es una puerta al episodio, no un control falso. */
.tp-hero { background-color: var(--tp-deep); color: var(--tp-mist); overflow: hidden; }
.tp-hero__grid { padding-block: 52px 60px; display: grid; gap: 42px; align-items: center; }
.tp-hero h1 { max-width: 12ch; margin: 16px 0 0; color: #fff; font-size: clamp(2.75rem, 1.8rem + 5vw, 4.5rem); font-weight: 850; letter-spacing: -.035em; line-height: .98; }
.tp-hero__tagline { margin: 18px 0 0; color: var(--tp-accent); font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem); font-weight: 750; line-height: 1.3; }
.tp-hero__lead { max-width: 53ch; margin: 20px 0 0; color: var(--tp-mist); font-size: clamp(1.05rem, .98rem + .3vw, 1.17rem); line-height: 1.58; }
.tp-hero__lead strong { color: #fff; }
.tp-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.tp-feature { width: 100%; max-width: 460px; justify-self: center; display: block; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 24px 56px rgb(14 3 26 / 28%); color: var(--text-body) !important; text-decoration: none !important; }
.tp-feature__media { aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #fff, var(--tp-mist)); border-bottom: 1px solid var(--border-subtle); }
.tp-feature__media img { width: 100%; height: 100%; object-fit: contain; }
.tp-feature__body { padding: 20px 22px 22px; }
.tp-feature h2 { margin: 7px 0 0; color: var(--tp-ink); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); line-height: 1.18; }
.tp-feature__link { min-height: 44px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; color: var(--tp-main); font-size: 14px; font-weight: 700; }
.tp-wave { height: 52px; margin-top: 12px; display: flex; align-items: center; gap: 5px; }
.tp-wave b { width: 42px; height: 42px; margin-right: 8px; display: grid; place-items: center; border-radius: 50%; background: var(--tp-main); color: #fff; font-size: 13px; }
.tp-wave i,.tp-signal i,.tp-artwork i { width: 5px; border-radius: 99px; background: var(--tp-accent); }
.tp-wave i:nth-of-type(1),.tp-wave i:nth-of-type(6) { height: 12px; }.tp-wave i:nth-of-type(2),.tp-wave i:nth-of-type(9) { height: 24px; }.tp-wave i:nth-of-type(3),.tp-wave i:nth-of-type(7) { height: 34px; }.tp-wave i:nth-of-type(4),.tp-wave i:nth-of-type(8) { height: 20px; }.tp-wave i:nth-of-type(5),.tp-wave i:nth-of-type(10) { height: 40px; }

/* Tarjetas: imágenes completas, nunca recortadas. */
.tp-section { padding-block: 70px; background: #fff; }
.tp-section-head { max-width: 760px; }
.tp-section-head h2 { margin: 12px 0 0; color: var(--topseo-navy); font-size: clamp(2rem, 1.3rem + 2.7vw, 3rem); font-weight: 820; letter-spacing: -.03em; }
.tp-card-grid { margin-top: 34px; display: grid; gap: 22px; }
.tp-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.tp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tp-card__media { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #faf8fd, var(--tp-mist)); border-bottom: 1px solid var(--border-subtle); }
.tp-card__media img { width: 100%; height: 100%; object-fit: contain; }
.tp-card__body { padding: 20px 20px 22px; display: flex; flex: 1; flex-direction: column; }
.tp-card h3 { margin: 8px 0 0; color: var(--tp-ink); font-size: 1.18rem; line-height: 1.28; }
.tp-card h3 a { color: inherit; text-decoration: none; }
.tp-card__excerpt { margin: 12px 0 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
.tp-card__link { min-height: 44px; margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--topseo-purple-500); text-decoration: none; font-size: 14px; font-weight: 700; }
.tp-card__link:hover { color: var(--tp-main); }
.tp-artwork { width: 100%; height: 100%; min-height: 120px; padding: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle at 20% 15%, rgb(41 171 226 / 22%), transparent 35%), linear-gradient(135deg, var(--tp-deep), var(--tp-main)); }
.tp-artwork i:nth-child(1),.tp-artwork i:nth-child(9) { height: 20%; }.tp-artwork i:nth-child(2),.tp-artwork i:nth-child(8) { height: 42%; }.tp-artwork i:nth-child(3),.tp-artwork i:nth-child(7) { height: 68%; }.tp-artwork i:nth-child(4),.tp-artwork i:nth-child(6) { height: 88%; }.tp-artwork i:nth-child(5) { height: 58%; background: var(--tp-signal); }
.tp-section-action { margin-top: 34px; display: grid; justify-items: center; gap: 10px; }
.tp-pagination { margin-top: 38px; }
.tp-pagination ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.tp-pagination a,.tp-pagination span { min-width: 44px; min-height: 44px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-subtle); border-radius: 8px; background: #fff; color: var(--tp-main); text-decoration: none; font-weight: 700; }
.tp-pagination a:hover { border-color: var(--tp-main); background: var(--tp-mist); }
.tp-pagination .current { border-color: var(--tp-main); background: var(--tp-main); color: #fff; }
.tp-pagination a:focus-visible { outline: 3px solid var(--tp-accent); outline-offset: 3px; }

/* Historia editorial; la señal sonora sustituye imágenes genéricas. */
.tp-story { border-block: 1px solid var(--border-subtle); }
.tp-story__grid { display: grid; gap: 40px; align-items: center; }
.tp-story__signal { min-height: 330px; padding: 34px; display: grid; align-content: center; gap: 22px; border-radius: 18px; background: var(--tp-deep); box-shadow: var(--shadow-lg); }
.tp-story__signal>span { color: var(--tp-signal); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; }
.tp-story__signal>strong { color: #fff; font-size: clamp(2.5rem, 2rem + 2vw, 4rem); letter-spacing: -.04em; }
.tp-signal { height: 92px; display: flex; align-items: center; gap: 10px; }
.tp-signal i { flex: 1; background: var(--tp-accent); }.tp-signal i:nth-child(1),.tp-signal i:nth-child(7){height:20%}.tp-signal i:nth-child(2),.tp-signal i:nth-child(6){height:48%}.tp-signal i:nth-child(3),.tp-signal i:nth-child(5){height:82%}.tp-signal i:nth-child(4){height:100%;background:var(--tp-signal)}
.tp-prose { color: var(--text-body); font-size: clamp(1rem, .97rem + .15vw, 1.08rem); line-height: 1.76; }
.tp-prose p { margin: 0 0 1.35em; }
.tp-prose h2,.tp-prose h3 { margin: 1.8em 0 .7em; color: var(--tp-ink); }
.tp-experience { border-bottom: 1px solid var(--border-subtle); }
.tp-experience .tp-prose h2 { margin: 12px 0 24px; font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8rem); }
.tp-story__signal--cyan { background: linear-gradient(145deg, var(--tp-deep), #243a78); }
.tp-story__signal--cyan strong { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem); }
.tp-community { background: #fff; }
.tp-community__content { max-width: 860px; margin-top: 34px; }
.tp-prose a { color: var(--cyan-600); text-decoration: underline; text-underline-offset: 3px; }
.tp-follow { padding-block: 62px; background-color: var(--tp-main); color: #fff; }
.tp-follow h2 { max-width: 760px; margin: 12px 0 0; color: #fff; font-size: clamp(1.8rem, 1.3rem + 2.1vw, 2.7rem); }
.tp-platforms { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.tp-platforms a { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.tp-platforms a:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }

/* Archivo. */
.tp-archive-hero { padding-block: 48px 54px; background-color: var(--tp-deep); color: #fff; }
.tp-breadcrumb { max-width: 100%; margin-bottom: 24px; display: flex; gap: 9px; overflow-x: auto; color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.tp-archive-hero .tp-breadcrumb { color: rgb(255 255 255 / 55%); }
.tp-breadcrumb a { min-height: 30px; display: inline-flex; align-items: center; color: inherit; }
.tp-breadcrumb b { color: currentColor; }
.tp-archive-hero h1 { max-width: 24ch; margin: 16px 0 0; color: #fff; font-size: clamp(2.35rem, 1.6rem + 3.8vw, 4.2rem); font-weight: 830; line-height: 1.02; }
.tp-archive-hero h1 em { color: var(--tp-accent); font-style: normal; }
.tp-results-count { margin-bottom: -10px; color: var(--text-muted); }

/* Episodio. Portada 11:4 en todos los breakpoints, sin recorte. */
.tp-article-layout { padding-block: 38px 72px; display: grid; gap: 44px; }
.tp-article { min-width: 0; }
.tp-article h1 { margin: 14px 0 0; color: var(--tp-deep); font-size: clamp(2.1rem, 1.55rem + 2.7vw, 3.3rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.02; }
.tp-article__meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.tp-article__meta b { color: var(--topseo-purple-500); }
.tp-article__cover { width: 100%; aspect-ratio: 11 / 4; margin: 28px 0 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 14px; background: linear-gradient(135deg, #fff, var(--tp-mist)); }
.tp-article__cover img { width: 100%; height: 100%; object-fit: contain; }
.tp-player-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 26px; overflow: hidden; border-radius: 14px; background: var(--tp-deep); box-shadow: var(--shadow-md); }
.tp-player-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-player-embed--audio { height: 156px; aspect-ratio: auto; background: #fff; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.tp-player-embed--document { aspect-ratio: 16 / 10; }
.tp-article__content { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--border-subtle); }
.tp-related { display: grid; align-content: start; gap: 20px; }
.tp-related__card { padding: 24px; border-radius: 14px; background: var(--tp-mist); }
.tp-related__card h2 { color: var(--tp-ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tp-related__card ul { margin: 18px 0 0; padding: 0; display: grid; list-style: none; }
.tp-related__card li { padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; border-top: 1px solid rgb(74 31 113 / 15%); }
.tp-related__card li:first-child { border-top: 0; }
.tp-related__card a { min-height: 32px; color: var(--tp-main); text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; }
.tp-related__card span { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }
.tp-related__spotify { min-height: 116px; padding: 22px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-content: center; border-radius: 14px; background: var(--tp-deep); color: #fff !important; text-decoration: none !important; }
.tp-related__spotify>span { grid-row: 1 / 3; color: var(--tp-signal); font-size: 30px; }.tp-related__spotify strong { align-self: end; }.tp-related__spotify small { color: var(--tp-mist); }

/* Aval y footer principal con tono TopSEO, datos centralizados. */
.tp-endorsement { background: var(--tp-deep); border-bottom: 1px solid rgb(255 255 255 / 12%); }
.tp-endorsement__inner { min-height: 92px; display: flex; align-items: center; gap: 16px; }
.tp-endorsement img { width: auto; max-height: 42px; object-fit: contain; }
.tp-endorsement__inner>span { width: 1px; height: 32px; background: rgb(255 255 255 / 24%); }
.tp-endorsement p { margin: 0; color: var(--tp-mist); font-size: 12px; }
.tp .site-footer { background: var(--tp-deep); }
.tp .site-footer__bottom { background: var(--topseo-purple-950); }
.tp .mcta__btn { background: var(--tp-main); }

@media (min-width: 720px) {
  .tp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-story__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 58px; }
}
@media (min-width: 900px) {
  .tp-nav { display: flex; }
  .tp-menu-toggle { display: none; }
  .tp-header-cta { display: inline-flex !important; }
  .tp-hero__grid { min-height: 500px; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 70px; }
  .tp-feature { justify-self: end; }
  .tp-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 54px; }
  .tp-related { position: sticky; top: 96px; }
}
@media (max-width: 480px) {
  .tp-wrap { width: min(100% - 32px, 1160px); }
  .tp-hero__grid { padding-block: 42px 50px; }
  .tp-actions { display: grid; }
  .tp-button { width: 100%; }
  .tp-feature__body { padding-inline: 18px; }
  .tp-section { padding-block: 56px; }
  .tp-platforms { display: grid; }
  .tp-endorsement__inner { padding-block: 18px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-card,.tp-button { transition: none; }
}
