/* Televisión. Todo el diseño está limitado a esta sección. */
.tv-section { display: none; position: relative; padding: 76px 24px 52px; scroll-margin-top: 24px; text-align: center; }
[data-stage="cover"] .tv-section, html[data-restored="true"] .tv-section { display: block; }
.tv-section:focus { outline: none; }
.tv-section-inner { max-width: 760px; margin: 0 auto; }
.tv-heading .eyebrow { font-size: 10px; }
.tv-heading h2 { margin: 16px 0 14px; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; color: var(--ink-strong, var(--ink)); }
.tv-question { margin: 0; color: var(--accent-pink, #a8456e); font-family: var(--serif); font-size: clamp(23px, 3vw, 29px); font-weight: 400; }
.tv-question span { color: var(--ink-soft, var(--ink)); }
.tv-set { position: relative; width: min(100%, 680px); margin: 73px auto 54px; isolation: isolate; }
.tv-antenna { position: absolute; z-index: -1; top: -47px; left: calc(50% - 50px); width: 100px; height: 50px; }
.tv-antenna span { position: absolute; bottom: 0; left: 50%; width: 4px; height: 70px; border-radius: 4px; transform-origin: bottom; background: linear-gradient(90deg, #a99e92, #fff7ec, #c2b3a4); box-shadow: 1px 0 1px #69565730; }
.tv-antenna span:first-child { transform: rotate(-44deg); }
.tv-antenna span:nth-child(2) { transform: rotate(43deg); background: linear-gradient(90deg, #8d9faa, #e1eff5, #a2b9c6); }
.tv-antenna span::before { content: ""; position: absolute; top: -4px; left: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: inset -1px -1px 2px #94657730; }
.tv-antenna span:nth-child(2)::before { background: var(--blue); }
.tv-antenna i { position: absolute; bottom: -10px; left: 24px; width: 53px; height: 24px; background: linear-gradient(#f9efde, #d8c5a9); border-radius: 50% 50% 0 0; }
.tv-cabinet { position: relative; padding: 20px 20px 14px; border: 1px solid #dfc8aa; border-radius: 34px; background: linear-gradient(135deg, #fff8e9 0%, #f5e8d0 45%, #ead9bb 100%); box-shadow: inset 0 2px 2px #ffffffed, inset 0 -6px 0 #bfa58730, inset -4px 0 5px #a68a6940, 0 7px 0 #c5ad8f, 0 9px 0 #9d82724d, 0 28px 44px -25px #64506160; }
.tv-cabinet::before { content: ""; position: absolute; inset: 7px; border: 1px solid #fffcf080; border-radius: 28px; pointer-events: none; }
.tv-bezel { padding: 8px; border-radius: 25px; background: linear-gradient(140deg, #d5c0aa, #f7eedf 38%, #fdf7e9 57%, #bda588); box-shadow: inset 0 2px 5px #8e726855, 0 1px 1px #fffef5; }
.tv-screen { position: relative; isolation: isolate; width: 100%; aspect-ratio: var(--video-ratio, 624 / 352); border-radius: 19px; overflow: hidden; background: #242731; box-shadow: inset 0 0 22px #1010189c; }
.tv-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #15171d; opacity: 1; }
[data-power="off"] .tv-screen video { opacity: 0; }
.tv-screen-reflection { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px #fff5e626, inset 3px 3px 12px #00000035; }
.tv-off-screen { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: center; flex-direction: column; padding: 18px; color: #f5eee4; background: radial-gradient(ellipse at 35% 25%, #3c3a4b, #242731 65%, #181c25); }
.tv-off-screen::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, #d9dfec 2px 3px); }
.tv-off-symbol { width: 40px; height: 40px; margin-bottom: 14px; fill: none; stroke: #d2bccf; stroke-width: 1.35; opacity: .65; }
.tv-off-screen p { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(20px, 4vw, 26px); font-weight: 400; line-height: 1.25; }
.tv-off-screen > span { margin-top: 18px; font-size: 10px; line-height: 1.6; color: #c7bdc9; }
.tv-interference { position: absolute; z-index: 4; inset: 0; opacity: .92; background: #69707b; overflow: hidden; }
.tv-interference::before { content: ""; position: absolute; inset: -20%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23noise)' opacity='.6'/%3E%3C/svg%3E"); opacity: .45; animation: tv-signal-arrive 500ms linear both; }
.tv-interference > span { position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(transparent 0 5px, #e9e4f1 5px 6px); }
.tv-play-overlay { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; background: #17182025; pointer-events: none; }
.tv-screen-play { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px 21px; min-height: 48px; border: 1px solid #ffffff80; border-radius: 32px; background: #fff9edeb; color: #514550; box-shadow: 0 4px 20px #00000026; cursor: pointer; font-weight: 700; font-size: 14px; pointer-events: auto; }
.tv-screen-play svg { width: 18px; height: 18px; fill: currentColor; }
.tv-error { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: #242731; color: #fff6e9; }
.tv-error p { margin: 0; font-size: 15px; }
.tv-error button { min-height: 44px; padding: 11px 24px; color: #514550; background: #fff5e5; border: 0; border-radius: 24px; cursor: pointer; font-weight: 700; }
.tv-section [hidden] { display: none !important; }
.tv-indicator-row { display: flex; align-items: center; gap: 7px; padding: 5px 4px 0; font-size: 9px; color: #90796b; }
.tv-indicator { width: 6px; height: 6px; border-radius: 50%; background: #928780; box-shadow: inset 0 1px 1px #665c53; transition: background .2s, box-shadow .2s; }
[data-power="on"] .tv-indicator { background: #a7d8e6; box-shadow: 0 0 6px #87c2d9, inset 0 1px 1px #e0fcff; }
.tv-frequency { margin-left: auto; letter-spacing: .14em; font-size: 7px; opacity: .6; }
.tv-feet { display: flex; justify-content: space-between; margin: 0 46px; position: relative; z-index: -1; }
.tv-feet > span { width: 21px; height: 23px; transform: skew(-12deg); border-radius: 0 0 7px 7px; background: linear-gradient(90deg, #c59ea4, #e8c4c8 65%, #b99096); }
.tv-feet > span:last-child { transform: skew(12deg); background: linear-gradient(90deg, #90a9b6, #bbd3dc 65%, #879eab); }
.tv-floor-shadow { position: absolute; z-index: -2; bottom: -8px; left: 5%; width: 90%; height: 19px; border-radius: 50%; background: #72576e3d; filter: blur(13px); }
.tv-status { min-height: 36px; max-width: 320px; margin: 20px auto 0; color: var(--ink-soft, var(--ink)); font-size: 11px; line-height: 1.65; }
.tv-ending { margin: 28px 0 14px; }
.tv-ending-line { display: block; width: 40px; height: 1px; margin: 0 auto 21px; background: #896b885e; }
.tv-ending p { max-width: 300px; margin: 0 auto 20px; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.25; }
.tv-team-button { font-size: 12px; }
.tv-continue { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 10px; color: var(--ink-soft, var(--ink)); text-decoration: none; font-size: 11px; font-weight: 600; }
.tv-continue:hover { text-decoration: underline; text-underline-offset: 4px; }
.tv-continue svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tv-close-expanded { position: absolute; top: 12px; right: 12px; z-index: 7; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff73; border-radius: 50%; color: #fff; background: #25232bba; cursor: pointer; }
.tv-close-expanded svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tv-screen button:focus-visible { outline-color: #fff8ef; }
.tv-screen:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: #15171d; }
.tv-screen:fullscreen video { object-fit: contain; }
.tv-screen.is-expanded { position: fixed; z-index: 100; inset: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); width: auto; height: auto; aspect-ratio: auto; border-radius: 14px; box-shadow: 0 0 0 100vmax #191922db; }
body:has(.tv-screen.is-expanded) { overflow: hidden; }
.tv-section:has(.tv-screen.is-expanded) { z-index: 100; }
@keyframes tv-signal-arrive { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
@keyframes tv-power-invite { 0%,100% { box-shadow: inset 0 2px 2px #fff3f6, 0 3px 0 #bf8d9d, 0 5px 10px #ac7b8438; } 50% { box-shadow: inset 0 2px 2px #fff3f6, 0 3px 0 #bf8d9d, 0 0 0 5px #e6b6c41f, 0 0 0 10px #e6b6c40d; } }
@media (prefers-reduced-motion: no-preference) {
  .tv-set[data-power="off"].is-in-view .tv-power-face { animation: tv-power-invite 2.8s ease-in-out 3; }
}
@media (max-width: 480px) {
  .tv-section { padding: 60px 12px 36px; }
  .tv-heading h2 { font-size: 31px; }
  .tv-heading .eyebrow { font-size: 9px; }
  .tv-set { max-width: 360px; margin-top: 70px; margin-bottom: 46px; }
  .tv-cabinet { padding: 13px 12px 12px; border-radius: 28px; }
  .tv-cabinet::before { inset: 5px; border-radius: 23px; }
  .tv-bezel { padding: 6px; border-radius: 20px; }
  .tv-screen { border-radius: 15px; }
  .tv-off-screen { padding: 12px; }
  .tv-off-symbol { width: 30px; height: 30px; margin-bottom: 8px; }
  .tv-off-screen p { font-size: 19px; }
  .tv-off-screen > span { display: none; }
}
@media (max-width: 359px) {
}
@media (prefers-reduced-motion: reduce) {
  .tv-interference { opacity: .25; }
}

/* Panel de controles integrado en el televisor: los botones del control remoto viven en la TV. */
.tv-section-inner { max-width: 820px; }
.tv-set { width: min(100%, 740px); }
.tv-cabinet { background: linear-gradient(140deg, #fffaf0 0%, #f6e9d2 42%, #ecdbbd 100%); }
.tv-screen { box-shadow: inset 0 0 26px #0b0c12b0, 0 0 0 1px #00000022; }
.tv-screen-reflection { background: linear-gradient(125deg, #ffffff17 0%, #ffffff08 28%, transparent 29%); }
[data-power="on"] .tv-screen { box-shadow: inset 0 0 26px #0b0c12b0, 0 0 22px -4px #b9dcea80; }
.tv-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand brand" "power controls"; align-items: center; position: relative; gap: 12px 14px; margin-top: 14px; padding: 14px 14px 12px; border-radius: 20px; background: linear-gradient(180deg, #f1e2c7, #e9d6b6); box-shadow: inset 0 2px 4px #8f72583d, inset 0 -1px 0 #fffaf0b3, 0 1px 0 #fffcf3; }
.tv-brand { grid-area: brand; text-align: left; color: #7f6656; font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.05; letter-spacing: .01em; }
.tv-brand > span { display: block; margin-top: 4px; color: #957d6c; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .05em; }
.tv-speaker { position: absolute; top: 18px; right: 16px; display: grid; grid-template-columns: repeat(7, 5px); gap: 4px; align-items: center; }
.tv-speaker i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #a68a7466; box-shadow: inset 1px 1px 1px #6e584a66, 0 1px 0 #fffaf0; }
.tv-power-button { grid-area: power; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 0; border: 0; color: #7a5a65; background: none; cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.tv-power-face { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #d49aaa; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0f3, var(--pink) 70%); box-shadow: inset 0 2px 2px #fff6f8, 0 3px 0 #bd8797, 0 7px 12px -2px #a3707d40; transition: transform .15s, box-shadow .15s; }
.tv-power-face svg { width: 24px; height: 24px; fill: none; stroke: #7a4a5e; stroke-width: 1.8; stroke-linecap: round; }
.tv-power-button:active .tv-power-face { transform: translateY(2px); box-shadow: inset 0 2px 3px #ae84963b, 0 1px 0 #bd8797; }
[data-power="on"] .tv-power-face { border-color: #8fb7c8; background: radial-gradient(circle at 35% 30%, #f0fbff, var(--blue) 70%); box-shadow: inset 0 2px 2px #f0fbff, 0 3px 0 #86a8b6, 0 0 0 4px #b9dcea55, 0 7px 12px -2px #5f8ea040; }
[data-power="on"] .tv-power-face svg { stroke: #345f74; }
.tv-remote { grid-area: controls; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tv-remote-button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: #6b5860; cursor: pointer; font-size: 9px; font-weight: 800; line-height: 1.15; letter-spacing: .01em; }
.tv-remote-button svg { flex: none; width: 42px; height: 42px; padding: 10px; border: 1px solid #d9c4a6; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffdf7, #efdfc4 75%); box-shadow: inset 0 1px 1px #fff, 0 3px 0 #c9ae8d, 0 6px 10px -3px #7c614a40; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s, box-shadow .15s, background .2s; }
.tv-remote-button .tv-icon-play { fill: currentColor; stroke: none; padding: 11px 10px 11px 12px; }
.tv-remote-button:nth-of-type(1) { color: #8e4f68; }
.tv-remote-button:nth-of-type(1) svg { border-color: #dcaab8; background: radial-gradient(circle at 35% 30%, #fff4f6, #f3c9d4 75%); box-shadow: inset 0 1px 1px #fff, 0 3px 0 #c895a3, 0 6px 10px -3px #a3707d40; }
.tv-remote-button:nth-of-type(2) { color: #3f6c80; }
.tv-remote-button:nth-of-type(2) svg { border-color: #a9cad8; background: radial-gradient(circle at 35% 30%, #f4fbfe, #c9e2ec 75%); box-shadow: inset 0 1px 1px #fff, 0 3px 0 #90b2c0, 0 6px 10px -3px #5f8ea040; }
.tv-remote-button:hover:not(:disabled) svg { filter: brightness(1.04); }
.tv-remote-button:active:not(:disabled) svg { transform: translateY(2px); box-shadow: inset 0 1px 2px #7c614a33, 0 1px 0 #c9ae8d; }
.tv-remote-button:disabled { cursor: default; opacity: .42; }
.tv-remote-button:focus-visible, .tv-power-button:focus-visible { outline-offset: 3px; border-radius: 12px; }
.tv-indicator-row { padding: 9px 6px 0; font-size: 10px; font-weight: 600; color: #826a5c; }
.tv-frequency { font-size: 8px; }
.tv-status { margin-top: 26px; font-size: 13px; font-weight: 600; }
.tv-continue { font-size: 13px; }

@media (min-width: 700px) {
  /* En pantallas grandes el panel va a un lado, como en las televisiones clásicas. */
  .tv-cabinet { display: grid; grid-template-columns: minmax(0, 1fr) 150px; grid-template-areas: "screen panel" "indicator indicator"; column-gap: 16px; padding: 20px 20px 14px; }
  .tv-bezel { grid-area: screen; align-self: center; }
  .tv-indicator-row { grid-area: indicator; }
  .tv-panel { grid-area: panel; grid-template-columns: 1fr; grid-template-areas: "brand" "power" "controls" "speaker"; justify-items: center; align-content: space-between; gap: 14px; margin-top: 0; padding: 18px 12px 16px; }
  .tv-brand { text-align: center; }
  .tv-remote { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; width: 100%; }
  .tv-speaker { position: static; grid-area: speaker; justify-self: center; grid-template-columns: repeat(5, 5px); }
  .tv-speaker i:nth-child(n+6) { display: none; }
}
@media (max-width: 480px) {
  .tv-cabinet { padding: 12px 11px 11px; }
  .tv-panel { gap: 10px 10px; margin-top: 11px; padding: 12px 10px 10px; border-radius: 17px; }
  .tv-brand { font-size: 14px; }
  .tv-brand > span { font-size: 8px; }
  .tv-power-button { min-width: 54px; font-size: 9px; }
  .tv-power-face { width: 46px; height: 46px; }
  .tv-remote { gap: 2px; }
  .tv-remote-button { font-size: 8.5px; gap: 5px; }
  .tv-remote-button svg { width: 38px; height: 38px; padding: 9px; }
  .tv-remote-button .tv-icon-play { padding: 10px 9px 10px 11px; }
}
@media (max-width: 359px) {
  .tv-remote-button svg { width: 34px; height: 34px; padding: 8px; }
  .tv-remote-button { font-size: 8px; }
  .tv-power-face { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-power-face, .tv-remote-button svg { transition: none; }
}
