/* NLT Infrastructure -- componentes de las páginas: plantillas con vista en vivo, formularios, reglas, panel de empresa y animaciones. */

/* ---------- animaciones de entrada ---------- */
.pal-bloque { opacity: 0; transform: translateY(.4em); filter: blur(12px); animation: palIn 1.1s var(--ease) .1s forwards; }
@keyframes palIn { to { opacity: 1; transform: none; filter: blur(0); } }
.sin-js .pal-bloque { opacity: 1; transform: none; filter: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .pal-bloque { opacity: 1; transform: none; filter: none; animation: none; } }

/* tarjetas con luz que sigue al cursor (solo con ratón) */
@media (hover: hover) and (pointer: fine) {
    .luz { --mx: 50%; --my: 50%; }
    .luz::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--neon-rgb), .13), transparent 62%); }
    .luz:hover::after { opacity: 1; }
}
.tilt { transition: transform .5s var(--ease); will-change: transform; transform-style: preserve-3d; }

/* ---------- barra: enlace activo y sesión ---------- */
.nav ul a.on { color: #fff; background: rgba(255, 255, 255, .09); }
.nav .der { display: flex; align-items: center; gap: 6px; }
.btn.fantasma { color: var(--mute); background: transparent; min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.fantasma:hover { color: #fff; background: rgba(255, 255, 255, .07); }
@media (max-width: 560px) { .nav .btn.fantasma { display: none; } }

/* ---------- plantillas: vista en vivo ---------- */
.plantillas { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(22px, 3.4vw, 44px); align-items: center; }
.editor { padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; align-content: start; }
.editor h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.editor p { color: var(--mute); }
.campo { display: grid; gap: 8px; }
.campo label { font: 600 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(4, 9, 9, .55); color: var(--ink); font: 500 16px Inter, sans-serif; transition: border-color .25s, box-shadow .25s; }
.campo textarea { padding: 14px 16px; min-height: 130px; resize: vertical; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: #5f6f6a; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: rgba(var(--neon-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--neon-rgb), .12); }
.campo small { color: var(--dim); font-size: 13px; min-height: 18px; }
.campo small.mal { color: #ff8a8a; } .campo small.bien { color: var(--neon); }
.colores { display: flex; flex-wrap: wrap; gap: 10px; }
.colores button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; background: var(--c, #39ff14); cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 8px 22px -8px var(--c); transition: transform .25s var(--ease), border-color .25s; }
.colores button:hover { transform: scale(1.12); } .colores button.on { border-color: #fff; transform: scale(1.12); }
.modelos { display: flex; gap: 8px; flex-wrap: wrap; }
.modelos button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 22, 20, .7); color: var(--mute); font: 600 13.5px Inter, sans-serif; cursor: pointer; transition: all .25s; }
.modelos button.on { color: #fff; border-color: rgba(var(--neon-rgb), .5); background: rgba(var(--neon-rgb), .12); }

/* navegador de vidrio con la web de ejemplo dentro */
.navegador { position: relative; padding: 10px; border-radius: 28px; }
.nav-barra { display: flex; align-items: center; gap: 12px; padding: 4px 8px 12px; }
.nav-barra .luces { display: flex; gap: 6px; } .nav-barra .luces i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.nav-barra .url { flex: 1; min-width: 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--dim); font: 500 12.5px Inter, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitio { --b: #39ff14; --b-rgb: 57, 255, 20; position: relative; border-radius: 18px; overflow: hidden; background: #070b0c; border: 1px solid rgba(255, 255, 255, .07); aspect-ratio: 16 / 11.5; transition: --b .4s; }
.sitio::before { content: ""; position: absolute; inset: -30% -20% auto; height: 80%; background: radial-gradient(50% 60% at 30% 40%, rgba(var(--b-rgb), .5), transparent 70%), radial-gradient(40% 50% at 75% 30%, rgba(var(--b-rgb), .28), transparent 70%); filter: blur(30px); opacity: .9; transition: background .5s; }
.sitio > * { position: relative; }
.s-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font: 700 13px Geist, Inter, sans-serif; }
.s-nav .logo-f { display: inline-flex; align-items: center; gap: 8px; } .s-nav .logo-f i { width: 20px; height: 20px; border-radius: 6px; background: var(--b); box-shadow: 0 0 14px rgba(var(--b-rgb), .8); }
.s-nav span.m { display: flex; gap: 12px; color: #9fb0ab; font-weight: 500; font-size: 11px; }
.s-nav .cta { padding: 6px 12px; border-radius: 999px; background: var(--b); color: #031208; font-size: 11px; }
.s-hero { text-align: center; padding: 6% 8% 3%; }
.s-hero b { display: block; font: 800 clamp(20px, 3.4vw, 36px)/1.05 Geist, Inter, sans-serif; letter-spacing: -.04em; }
.s-hero b em { font-style: normal; color: var(--b); text-shadow: 0 0 14px rgba(var(--b-rgb), .35); }
.s-hero p { margin: 8px auto 0; max-width: 34ch; color: #a9b8b3; font-size: clamp(9.5px, 1.2vw, 12px); }
.s-planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 3% 6% 6%; }
.s-plan { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); font-size: clamp(8px, 1vw, 10px); color: #9fb0ab; display: grid; gap: 3px; }
.s-plan b { font: 800 clamp(13px, 2vw, 20px) Geist, Inter, sans-serif; color: #fff; letter-spacing: -.03em; }
.s-plan.dest { border-color: rgba(var(--b-rgb), .65); box-shadow: 0 0 22px -8px rgba(var(--b-rgb), .8); } .s-plan.dest i { font-style: normal; color: var(--b); font-weight: 700; }
.sitio[data-m="claro"] { background: #f4f7f6; color: #0b1412; } .sitio[data-m="claro"]::before { opacity: .45; }
.sitio[data-m="claro"] .s-hero p, .sitio[data-m="claro"] .s-nav span.m { color: #52625d; }
.sitio[data-m="claro"] .s-plan { background: #fff; border-color: #dfe7e4; color: #52625d; } .sitio[data-m="claro"] .s-plan b { color: #0b1412; }
.sitio[data-m="trading"] .s-planes { display: none; }
.sitio[data-m="trading"] .s-hero::after { content: ""; display: block; height: 34%; margin: 6% 0 0; border-radius: 12px; background: linear-gradient(180deg, rgba(var(--b-rgb), .22), transparent), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 28px); min-height: 90px; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.mini { padding: 10px; border-radius: 22px; transition: transform .45s var(--ease); cursor: pointer; text-align: left; color: inherit; font: inherit; }
.mini:hover { transform: translateY(-5px); }
.mini .sitio { aspect-ratio: 16 / 10; pointer-events: none; font-size: .8em; }
.mini h4 { margin: 12px 6px 4px; font-size: 16px; font-weight: 700; } .mini span.d { display: block; margin: 0 6px 6px; color: var(--dim); font-size: 13px; }
@media (max-width: 980px) { .plantillas { grid-template-columns: 1fr; } .galeria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .galeria .mini { flex: 0 0 82%; scroll-snap-align: center; } }

/* ---------- formularios y páginas interiores ---------- */
.pagina { padding: 150px 0 90px; min-height: 100svh; }
.pagina .cabeza { text-align: center; display: grid; gap: 16px; justify-items: center; margin-bottom: clamp(30px, 5vw, 56px); }
.pagina h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.dos-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.formulario { padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slug-fila { display: flex; align-items: center; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(4, 9, 9, .55); overflow: hidden; }
.slug-fila:focus-within { border-color: rgba(var(--neon-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--neon-rgb), .12); }
.slug-fila input { border: 0; background: transparent; box-shadow: none !important; min-width: 0; } .slug-fila span { padding-right: 16px; color: var(--dim); font-size: 14px; white-space: nowrap; }
.acepto { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--mute); line-height: 1.5; }
.acepto input { width: 22px; height: 22px; margin-top: 2px; accent-color: #39ff14; flex: 0 0 auto; }
.acepto a { color: #fff; text-decoration-color: rgba(var(--neon-rgb), .6); }
.resumen { padding: clamp(24px, 3.4vw, 38px); display: grid; gap: 18px; position: sticky; top: 100px; }
.resumen h3 { font-size: 22px; font-weight: 700; }
.linea { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 15.5px; }
.linea b { color: #fff; font-weight: 600; } .linea.total { border: 0; padding-top: 6px; font-size: 18px; color: #fff; } .linea.total b { font: 800 30px Geist, Inter, sans-serif; letter-spacing: -.04em; color: var(--neon); }
.nota-chica { color: var(--dim); font-size: 13px; line-height: 1.55; }
.aviso { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; border: 1px solid var(--line); background: var(--glass); }
.aviso.mal { border-color: rgba(255, 120, 120, .4); background: rgba(255, 80, 80, .08); color: #ffc4c4; } .aviso.bien { border-color: rgba(var(--neon-rgb), .4); background: rgba(var(--neon-rgb), .08); }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.centrado { text-align: center; max-width: 640px; margin-inline: auto; display: grid; gap: 22px; justify-items: center; }
.check-grande { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--neon-rgb), .12); border: 1px solid rgba(var(--neon-rgb), .5); box-shadow: 0 0 36px -12px rgba(var(--neon-rgb), .45); }
.check-grande svg { width: 44px; height: 44px; } .check-grande path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: dibuja 1s var(--ease) .3s forwards; }
@media (max-width: 880px) { .dos-col { grid-template-columns: 1fr; } .resumen { position: static; } .fila-2 { grid-template-columns: 1fr; } }

/* ---------- reglas (sí / no) ---------- */
.reglas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(30px, 5vw, 56px); }
.reglas .glass { padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 16px; align-content: start; }
.reglas h3 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.reglas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.reglas li { display: flex; gap: 12px; color: #d8e3df; font-size: 16px; line-height: 1.5; }
.reglas .si li::before, .reglas .no li::before { flex: 0 0 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; font: 700 13px Inter, sans-serif; }
.reglas .si li::before { content: "\2713"; color: #031208; background: var(--neon); } .reglas .no li::before { content: "\2715"; color: #fff; background: #ef4444; }
.reglas .si h3 i { color: var(--neon); } .reglas .no h3 i { color: #ff7878; } .reglas h3 i { font-style: normal; }
@media (max-width: 760px) { .reglas { grid-template-columns: 1fr; } }
.texto-largo { max-width: 780px; margin: 0 auto; display: grid; gap: 18px; }
.texto-largo h2 { font-size: 26px; font-weight: 700; margin-top: 18px; } .texto-largo p, .texto-largo li { color: var(--mute); font-size: 16.5px; line-height: 1.65; } .texto-largo ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.texto-largo a { color: #fff; }

/* ---------- panel de empresa ---------- */
.panel-app { padding: 110px 0 80px; min-height: 100svh; }
.acceso { max-width: 470px; margin: 8vh auto 0; padding: clamp(28px, 4vw, 44px); display: grid; gap: 20px; }
.acceso h1 { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.pa-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.pa-top h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.04em; } .pa-top small { color: var(--dim); }
.pa-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; } .pa-tabs::-webkit-scrollbar { display: none; }
.pa-tabs button { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 22, 20, .7); color: var(--mute); font: 600 14px Inter, sans-serif; cursor: pointer; transition: all .25s; }
.pa-tabs button:hover { color: #fff; } .pa-tabs button.on { color: #fff; background: rgba(var(--neon-rgb), .14); border-color: rgba(var(--neon-rgb), .5); }
.pa-cuerpo { display: grid; gap: 18px; animation: palIn .5s var(--ease) both; }
.tarjeta { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 14px; align-content: start; }
.tarjeta h3 { font-size: 19px; font-weight: 700; } .tarjeta p.s { color: var(--mute); font-size: 15px; line-height: 1.6; }
.kpis-pa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis-pa .kpi { padding: 18px 20px; } @media (max-width: 760px) { .kpis-pa { grid-template-columns: repeat(2, 1fr); } }
.tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; } .tabla th { text-align: left; font: 600 11.5px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tabla td { padding: 13px 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #dbe6e2; vertical-align: top; } .tabla tr:last-child td { border: 0; } .tabla .der { text-align: right; }
.tabla-wrap { overflow-x: auto; border-radius: 14px; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font: 600 12px Inter, sans-serif; background: rgba(255, 255, 255, .08); color: var(--mute); } .badge.ok { color: var(--neon); background: rgba(var(--neon-rgb), .12); } .badge.mal { color: #ff9a9a; background: rgba(255, 80, 80, .12); } .badge.av { color: #7dd3fc; background: rgba(56, 189, 248, .12); } .badge.pe { color: #fcd34d; background: rgba(252, 211, 77, .12); }
.codigo { display: block; padding: 13px 15px; border-radius: 12px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #cfe0da; word-break: break-all; white-space: pre-wrap; }
.fila-btn { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vacio { text-align: center; color: var(--dim); padding: 28px 10px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 90; padding: 13px 22px; border-radius: 16px; background: rgba(8, 16, 14, .94); border: 1px solid rgba(var(--neon-rgb), .4); color: #fff; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .35s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pantallas táctiles: sin «hover» pegado después de tocar (se veía como un botón blanco/claro) ---------- */
@media (hover: none), (pointer: coarse) {
    .btn.neon:hover { transform: none; background: linear-gradient(100deg, #2fcf14, #58de3b); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 8px 22px -12px rgba(var(--neon-rgb), .5); }
    .btn.vidrio:hover { transform: none; background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)), rgba(6, 12, 10, .6); }
    .btn.fantasma:hover, .nav ul a:hover, footer a:hover { background: transparent; }
    .colores button:hover { transform: none; } .colores button.on { transform: scale(1.12); }
    .mini:hover, .celda:hover { transform: none; }
    .pa-tabs button:hover { color: var(--mute); } .pa-tabs button.on:hover { color: #fff; }
}

/* ---------- selector de idioma ---------- */
.idioma { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 40px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 22, 20, .6); color: var(--mute); font: 700 12px Inter, sans-serif; letter-spacing: .06em; text-decoration: none; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .idioma:hover { color: #fff; border-color: rgba(var(--neon-rgb), .45); } }
