/* TubePro · tubepro.runwebx.com. Estética de Invest Oil (azul noche, tarjetas con borde, Syne + Plus Jakarta
   Sans, marquesina y brillos) adaptada a la producción de vídeo. Colores por variables: los cambia el backoffice. */
:root { --tp-fondo: #050d1f; --tp-superficie: #0e1e3d; --tp-texto: #ddeeff; --tp-suave: #a9bddc; --tp-acento: #F59E0B; --tp-acento2: #FF3D57;
  --tp-borde: #1a3264; --tp-radio: 16px; --tp-fh: 'Syne', 'Segoe UI', sans-serif; --tp-fb: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tp-fondo); color: var(--tp-texto); font: 16px/1.65 var(--tp-fb); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--tp-fh); line-height: 1.12; margin: 0; text-wrap: balance; }
a { color: var(--tp-acento); }
img { max-width: 100%; height: auto; display: block; }
.tp-contenedor { width: min(1200px, 100% - 40px); margin-inline: auto; }
.tp-saltar { position: absolute; left: -9999px; }
.tp-saltar:focus { left: 16px; top: 12px; z-index: 50; background: var(--tp-acento); color: #111; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--tp-acento); outline-offset: 3px; }

/* Navegación fija con fondo opaco: el texto se mide contra un fondo que no cambia con lo que pasa debajo. */
.tp-nav { position: sticky; top: 0; z-index: 30; background: rgba(5, 13, 31, .96); border-bottom: 1px solid var(--tp-borde); backdrop-filter: blur(10px); }
.tp-nav .tp-contenedor { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.tp-marca { display: inline-flex; align-items: center; gap: 10px; color: var(--tp-texto); text-decoration: none; font: 800 1.3rem var(--tp-fh); }
.tp-marca img { width: 36px; height: 36px; border-radius: 10px; }
.tp-nav nav { display: flex; gap: 22px; margin-left: auto; }
.tp-nav nav a { color: var(--tp-suave); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tp-nav nav a:hover { color: var(--tp-texto); }
.tp-nav-acciones { display: flex; gap: 10px; }

/* Botones (área táctil ≥ 44 px). */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: 700 .98rem var(--tp-fb); transition: transform .15s, box-shadow .15s; }
.tp-btn-primario { background: linear-gradient(100deg, var(--tp-acento), var(--tp-acento2)); color: #140a00; box-shadow: 0 0 24px rgba(245, 158, 11, .3); }
.tp-btn-primario:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 61, 87, .4); color: #140a00; }
.tp-btn-borde { background: transparent; color: var(--tp-texto); border: 1px solid var(--tp-borde); }
.tp-btn-borde:hover { border-color: var(--tp-acento); color: var(--tp-texto); }
.tp-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Secciones */
.tp-seccion { padding: 96px 0; position: relative; }
.tp-titulo { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.tp-titulo h2 { font-size: clamp(2rem, 4vw, 3rem); }
.tp-etiqueta { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--tp-acento); font: 700 .8rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.tp-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--tp-acento2); box-shadow: 0 0 12px var(--tp-acento2); animation: tp-latido 1.6s infinite; }
.tp-sub { color: var(--tp-suave); font-size: 1.12rem; margin: 18px 0 0; }
.tp-degradado { background: linear-gradient(100deg, var(--tp-acento), var(--tp-acento2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.tp-s-hero { padding-top: 72px; overflow: hidden; background: radial-gradient(900px 500px at 85% 10%, rgba(255, 61, 87, .16), transparent 60%), radial-gradient(800px 500px at 10% 0%, rgba(245, 158, 11, .14), transparent 60%); }
.tp-s-hero .tp-contenedor { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.tp-s-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); letter-spacing: -.02em; }
.tp-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tp-nota { color: var(--tp-suave); font-size: .9rem; margin: 14px 0 0; }
.tp-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 36px 0 0; }
.tp-cifras div { border: 1px solid var(--tp-borde); border-radius: 12px; padding: 14px; background: rgba(14, 30, 61, .6); }
.tp-cifras dt { font: 800 1.25rem var(--tp-fh); color: var(--tp-acento); }
.tp-cifras dd { margin: 4px 0 0; color: var(--tp-suave); font-size: .85rem; line-height: 1.4; }
.tp-hero-visual { position: relative; min-height: 420px; }
.tp-pantalla { margin: 0; border: 1px solid var(--tp-borde); border-radius: var(--tp-radio); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 40px rgba(245, 158, 11, .15); transform: perspective(1400px) rotateY(-8deg); }
.tp-movil { position: absolute; right: -10px; bottom: -30px; width: 31%; margin: 0; border: 6px solid #0a0f1d; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 61, 87, .25); }
.tp-redes-flotantes { position: absolute; left: -18px; top: 12%; list-style: none; margin: 0; padding: 10px; display: grid; gap: 10px; background: rgba(10, 24, 48, .92); border: 1px solid var(--tp-borde); border-radius: 14px; }
.tp-redes-flotantes svg { width: 24px; height: 24px; display: block; }

/* Marquesina */
.tp-s-marquesina { padding: 18px 0; border-block: 1px solid var(--tp-borde); background: #0a1830; }
.tp-s-marquesina .tp-contenedor { width: 100%; overflow: hidden; }
.tp-marquesina { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tp-marquesina ul { display: flex; gap: 40px; padding: 0 20px; margin: 0; list-style: none; flex-shrink: 0; animation: tp-desliza 40s linear infinite; }
.tp-marquesina li { white-space: nowrap; color: var(--tp-texto); font: 700 1rem var(--tp-fh); }
.tp-marquesina li::before { content: '✦'; color: var(--tp-acento); margin-right: 40px; }
.tp-marquesina:hover ul { animation-play-state: paused; }

/* Rejillas de tarjetas */
.tp-rejilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tp-tarjeta { background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: var(--tp-radio); padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tp-tarjeta:hover { border-color: rgba(245, 158, 11, .6); transform: translateY(-3px); box-shadow: 0 0 24px rgba(245, 158, 11, .15); }
.tp-tarjeta h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.tp-tarjeta p { margin: 0; color: var(--tp-suave); }
.tp-icono { font-size: 1.7rem; }
.tp-red-icono svg { width: 40px; height: 40px; }
.tp-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: paso; }
.tp-numero { font: 800 2.2rem var(--tp-fh); color: var(--tp-acento); }
.tp-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.tp-faq summary { cursor: pointer; font: 700 1.08rem var(--tp-fh); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 28px; }
.tp-faq summary::after { content: '+'; color: var(--tp-acento); font-size: 1.4rem; line-height: 1; }
.tp-faq details[open] summary::after { content: '−'; }
.tp-faq details p { margin-top: 12px; }
.tp-faq .tp-tarjeta:hover { transform: none; }

/* Llamada final y pie */
.tp-cta { text-align: center; padding: 56px 24px; border-radius: 24px; border: 1px solid var(--tp-borde); background: radial-gradient(600px 300px at 50% 0%, rgba(255, 61, 87, .22), transparent 70%), var(--tp-superficie); }
.tp-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.tp-cta .tp-btn { margin-top: 26px; }
.tp-pie { padding: 48px 0 32px; display: grid; gap: 16px; }
.tp-s-pie { padding: 0; border-top: 1px solid var(--tp-borde); }
.tp-pie nav { display: flex; flex-wrap: wrap; gap: 20px; }
.tp-pie nav a { color: var(--tp-suave); text-decoration: none; font-weight: 600; }
.tp-pie nav a:hover { color: var(--tp-texto); }
.tp-pie p { margin: 0; color: var(--tp-suave); font-size: .88rem; max-width: 760px; }

@keyframes tp-desliza { to { transform: translateX(-100%); } }
@keyframes tp-latido { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tp-marquesina ul, .tp-punto { animation: none; } .tp-tarjeta, .tp-btn { transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 960px) {
  .tp-s-hero .tp-contenedor { grid-template-columns: 1fr; }
  .tp-nav nav { display: none; }
  .tp-nav-acciones { margin-left: auto; }
  .tp-pantalla { transform: none; }
  .tp-redes-flotantes { left: 8px; }
}
@media (max-width: 560px) { .tp-cifras { grid-template-columns: 1fr; } .tp-nav-acciones .tp-btn-borde { display: none; } .tp-seccion { padding: 64px 0; } }

/* Páginas de cuenta: tarjeta centrada sobre el mismo fondo. */
.tp-pagina { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: radial-gradient(800px 500px at 50% -10%, rgba(255, 61, 87, .14), transparent 60%), var(--tp-fondo); }
.tp-centro { display: grid; place-items: center; padding: 40px 20px; }
.tp-caja { width: min(460px, 100%); background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.tp-caja h1 { font-size: 1.9rem; }
.tp-caja > p { color: var(--tp-suave); }
.tp-form { display: grid; gap: 16px; margin-top: 22px; }
.tp-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.tp-campo { position: relative; display: flex; }
.tp-form input[type=email], .tp-form input[type=password], .tp-form input[type=text] { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--tp-borde); background: #071228; color: var(--tp-texto); font: 1rem var(--tp-fb); }
.tp-form input::placeholder { color: #8ea3c4; }
.tp-campo input { padding-right: 52px; }
.tp-ojo { position: absolute; right: 2px; top: 1px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--tp-suave); cursor: pointer; font-size: 1.1rem; border-radius: 10px; }
.tp-ojo:hover { color: var(--tp-texto); }
.tp-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-casilla { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 10px !important; font-weight: 500 !important; min-height: 44px; cursor: pointer; }
.tp-casilla input { width: 20px; height: 20px; accent-color: var(--tp-acento); }
.tp-enlace { color: var(--tp-acento); font-weight: 600; text-decoration: none; }
.tp-enlace:hover { text-decoration: underline; }
.tp-mensaje { margin: 0; min-height: 1.4em; font-size: .95rem; }
.tp-mensaje.error { color: #ff9b9b; }
.tp-mensaje.ok { color: #6ee7a8; }
.tp-pie-caja { margin: 22px 0 0; text-align: center; color: var(--tp-suave); }
.tp-fuerza { height: 6px; border-radius: 4px; background: #13284f; overflow: hidden; }
.tp-fuerza span { display: block; height: 100%; width: 0; transition: width .2s; }

/* Cuenta: configuración y descarga */
.tp-panel { width: min(1100px, 100% - 40px); margin: 40px auto; display: grid; gap: 20px; }
.tp-panel h1 { font-size: 2.2rem; }
.tp-bloque { background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: var(--tp-radio); padding: 26px; display: grid; gap: 14px; }
.tp-bloque h2 { font-size: 1.35rem; }
.tp-bloque p { margin: 0; color: var(--tp-suave); }
.tp-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.tp-token { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp-token code { flex: 1 1 260px; min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; background: #071228; border: 1px solid var(--tp-borde); color: var(--tp-texto); font: .92rem 'JetBrains Mono', ui-monospace, monospace; overflow-wrap: anywhere; }
.tp-opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tp-opcion { display: grid; gap: 6px; padding: 16px; border-radius: 12px; border: 1px solid var(--tp-borde); background: #071228; cursor: pointer; }
.tp-opcion:has(input:checked) { border-color: var(--tp-acento); box-shadow: 0 0 0 1px var(--tp-acento) inset; }
.tp-opcion b { color: var(--tp-texto); }
.tp-opcion span { color: var(--tp-suave); font-size: .92rem; }
.tp-orden { position: relative; }
.tp-orden pre { margin: 0; padding: 16px; border-radius: 12px; background: #030915; border: 1px solid var(--tp-borde); color: #e9f2ff; font: .86rem/1.6 'JetBrains Mono', ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-lista { margin: 0; padding-left: 20px; color: var(--tp-suave); display: grid; gap: 6px; }
.tp-insignia { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: rgba(110, 231, 168, .15); color: #6ee7a8; }
.tp-insignia.aviso { background: rgba(245, 158, 11, .18); color: var(--tp-acento); }
.tp-datos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.tp-datos dt { color: var(--tp-suave); }
.tp-datos dd { margin: 0; color: var(--tp-texto); }
