/* Hero Top IA aprobado. Solo se carga en /es/top-ia/ y /ai-top/. */
body.tia-hero-route, body:has(.tia-hero-scroll) { background: #fff; }
body.tia-hero-route .aviso-privado { position: sticky; top: 0; z-index: 80; background: #edf3f9; }
body.tia-hero-route .cabecera { top: var(--tia-header-top,24px); }
.tia-page .tia-hero { padding: 30px 0 32px; background: #fff; }
.tia-page .tia-hero > .contenedor { padding-inline: 32px; }
.tia-page .tia-hero .migas { font-size: 12px; margin: 0 0 12px; color: #46536a; flex: none; }
.tia-page .tia-hero-heading { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); align-items: center; gap: 28px; }
.tia-page .tia-hero h1 { font-size: clamp(36px,3.5vw,49px); line-height: 1.13; letter-spacing: -.045em; margin: 0 0 23px; }
.tia-page .tia-hero h1 span { color: #07142e; }
.tia-page .tia-editorial > p { max-width: 560px; font-size: 16px; line-height: 1.8; color: #46536a; margin: 0; }
.tia-page .tia-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 25px; }
.tia-page .tia-hero-actions > a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; color: #153e6b; font-size: 13px; text-underline-offset: 4px; }
.tia-page .tia-hero-actions .btn { font-size: 14px; padding: 14px 22px; }

/* Circuitos aportados: capa sin altura propia, fuera del flujo del scroll.
   El encuadre aprovecha el aire sobre el badge sin añadir otro tramo vacío. */
.tia-page .tia-editorial { position: relative; }
.tia-page .tia-editorial::before {
  content: ''; position: absolute; pointer-events: none;
  left: min(-32px, calc((1260px - 100vw) / 2 - 32px)); bottom: calc(100% + 14px);
  width: min(960px, 80vw); height: clamp(80px, calc(28svh - 132px), 240px);
  background: url('/img/top-ia/circuitos-cape-coral.png') left 18% / 100% 400% no-repeat;
  opacity: .8;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
}

/* Se encuadran los márgenes del archivo original; el arte no se modifica. */
.tia-hero-badge { display: block; position: relative; width: 340px; max-width: 100%; aspect-ratio: 5.2; margin-bottom: 24px; overflow: hidden; border-radius: 999px; isolation: isolate; }
.tia-hero-badge > img { position: absolute; width: 130%; max-width: none; height: auto; left: -15%; top: -25%; }
.tia-hero-badge::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent 36%,rgba(167,231,255,.08) 43%,rgba(220,248,255,.25) 48%,rgba(255,255,255,.58) 50%,rgba(255,226,197,.21) 53%,rgba(255,178,108,.06) 59%,transparent 64%); transform: translateX(-100%); opacity: 0; animation: tia-badge-sweep 9s linear 2s infinite; animation-play-state: paused; }
.tia-hero-badge[data-light-active]::after { animation-play-state: running; }
@keyframes tia-badge-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  12% { opacity: .28; }
  34% { opacity: .62; }
  56% { opacity: .28; }
  72%, 100% { transform: translateX(100%); opacity: 0; }
}

.tia-page .tia-owl { margin: 0; align-self: center; min-width: 0; display: grid; justify-items: center; }
.tia-owl-track { min-width: 0; }
.tia-owl-scene { position: relative; width: min(560px,100%); height: min(560px,calc(100svh - 250px)); min-height: 340px; background: #fff; }
.tia-owl-video, .tia-owl-still { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; filter: brightness(1.06); mask-image: linear-gradient(to bottom,transparent,#000 2%,#000 97%,transparent),linear-gradient(to right,transparent,#000 15%,#000 85%,transparent); mask-composite: intersect; -webkit-mask-image: linear-gradient(to bottom,transparent,#000 2%,#000 97%,transparent),linear-gradient(to right,transparent,#000 15%,#000 85%,transparent); -webkit-mask-composite: source-in; }
.tia-owl-still { display: none; }
.tia-owl figcaption { min-height: 44px; margin-top: 2px; }
.tia-owl-scroll-link { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; color: #46536a; font-size: 11px; text-decoration: none; text-underline-offset: 4px; }
.tia-owl-scroll-link > span { color: #153e6b; font-size: 17px; }
.tia-owl-scroll-link:hover { text-decoration: underline; }
.tia-owl-scroll-link:focus-visible { outline: 3px solid #1f5e9a; outline-offset: 4px; border-radius: 8px; }
.tia-scroll-wide { height: var(--owl-track-height); }
.tia-scroll-wide .tia-hero-pin { position: sticky; top: var(--owl-sticky-top); min-height: var(--owl-scene-height); display: flex; flex-direction: column; justify-content: center; }
.tia-scroll-wide .tia-hero-heading { flex: 1; }
.tia-scroll-compact .tia-owl-track { height: var(--owl-track-height); }
.tia-scroll-compact .tia-owl { position: sticky; top: var(--owl-sticky-top); }
.tia-scroll-compact .tia-hero-heading { align-items: start; }
.tia-scroll-static .tia-owl-video { display: none; }
.tia-scroll-static .tia-owl-still { display: block; }

.tia-page .tia-review-card { margin-top: 30px; padding: 22px 26px; display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); align-items: center; gap: 28px; border: 1px solid #fff; border-radius: 22px; background: linear-gradient(135deg,rgba(255,255,255,.94),rgba(232,242,253,.74) 60%,rgba(255,241,226,.85)); box-shadow: inset 0 1px #fff,0 0 0 1px rgba(34,73,117,.08),0 20px 50px -24px rgba(30,69,114,.24); backdrop-filter: blur(16px); }
.tia-page .tia-round-strip { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 28px; padding: 0; margin: 0; border: 0; }
.tia-page .tia-round-strip p { font-size: 12px; gap: 7px; }
.tia-page .tia-round-strip p > strong { font-size: 15px; }
.tia-page .tia-round-strip p:nth-child(2) { border-top: 0; padding-top: 0; padding-left: 28px; border-left: 1px solid #d5e0eb; grid-row: 1 / 3; grid-column: 2; align-self: center; }
.tia-page .tia-round-strip p:nth-child(2) > strong { font-size: 29px; line-height: 1.15; letter-spacing: -.04em; }
.tia-page .tia-round-strip p:nth-child(2) > strong > span { font-size: 21px; color: #46536a; }
.tia-page .tia-round-strip p:nth-child(2) > span { font-size: 10px; line-height: 1.7; }
.tia-page .tia-round-strip > a { grid-column: 1; font-size: 11px; min-height: 30px; padding: 3px 0; margin: 0; text-underline-offset: 4px; }
.tia-page .tia-review-platforms { margin: 0; padding: 0 0 0 28px; border-left: 1px solid #d5e0eb; }
.tia-page .tia-review-platforms > p { font-size: 11px; margin: 0 0 14px; color: #46536a; }
.tia-page .tia-review-platforms > ul { display: flex; justify-content: space-between; gap: 7px; list-style: none; padding: 0; margin: 0; }
.tia-page .tia-review-platforms li { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; font-size: 10px; color: #21334e; }
.tia-page .tia-review-platforms img { width: 24px; height: 24px; object-fit: contain; }
.tia-page .tia-scope { max-width: 1050px; margin: 20px 0 0; padding-left: 15px; border-left: 2px solid #efb68f; font-size: 12px; line-height: 1.8; }
@media(max-width:1000px) {
  .tia-page .tia-review-card { grid-template-columns: 1.5fr 1fr; gap: 18px; padding: 22px; }
  .tia-page .tia-round-strip { gap: 8px 18px; }
  .tia-page .tia-round-strip p:nth-child(2), .tia-page .tia-review-platforms { padding-left: 18px; }
}
@media(max-width:760px) {
  .tia-page .tia-hero > .contenedor { padding-inline: 20px; }
  .tia-page .tia-hero { padding-top: 25px; }
  .tia-page .tia-hero-heading { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .tia-page .tia-editorial::before { left: -20px; bottom: auto; top: -24px; width: calc(100% + 20px); height: 160px; background-size: auto 250%; background-position: right 18%; opacity: .14; -webkit-mask-image: linear-gradient(#000,transparent 85%); mask-image: linear-gradient(#000,transparent 85%); }
  .tia-page .tia-hero h1 { font-size: clamp(31px,8.5vw,42px); margin-bottom: 18px; }
  .tia-page .tia-editorial > p { font-size: 15px; }
  .tia-hero-badge { width: 300px; margin-bottom: 22px; }
  .tia-owl-scene { width: min(350px,100%); height: min(360px,calc(100svh - 200px)); min-height: 200px; }
  .tia-page .tia-owl { justify-self: center; }
  .tia-owl figcaption { margin-top: 0; }
  .tia-page .tia-review-card { margin-top: 18px; grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .tia-page .tia-round-strip { grid-template-columns: 1.1fr 1fr; gap: 7px 14px; }
  .tia-page .tia-round-strip p > strong { font-size: 13px; }
  .tia-page .tia-round-strip p > span { font-size: 10px; }
  .tia-page .tia-round-strip p:nth-child(2) { padding-left: 14px; }
  .tia-page .tia-round-strip p:nth-child(2) > strong { font-size: 25px; }
  .tia-page .tia-round-strip p:nth-child(2) > strong > span { font-size: 18px; }
  .tia-page .tia-review-platforms { padding: 16px 0 0; border-left: 0; border-top: 1px solid #d5e0eb; }
  .tia-page .tia-review-platforms > p { font-size: 10px; }
  .tia-page .tia-review-platforms li { font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  .tia-page .tia-hero-scroll, .tia-page .tia-owl-track { height: auto; }
  .tia-page .tia-hero-pin, .tia-page .tia-owl { position: static; min-height: 0; }
  .tia-owl-video { display: none; }
  .tia-owl-still { display: block; }
  .tia-hero-badge::after { animation: none; opacity: 0; }
}
@media(prefers-reduced-transparency:reduce) { .tia-page .tia-review-card { background: #fff; backdrop-filter: none; } }
@media(forced-colors:active) { .tia-page .tia-editorial::before { display: none; } .tia-owl-scroll-link { color: LinkText; } .tia-hero-badge::after { display: none; } }

/* Mientras carga, conserva la pose inicial del poster sin salto de casco. */
.tia-scroll-static[data-motion-state="loading"] .tia-owl-video { display: block; }
.tia-scroll-static[data-motion-state="loading"] .tia-owl-still { display: none; }
@media(prefers-reduced-motion:reduce) { .tia-scroll-static[data-motion-state="loading"] .tia-owl-video { display: none; } .tia-scroll-static[data-motion-state="loading"] .tia-owl-still { display: block; } }
