/* =================================================================
   FullServicesPY · impact.css
   Se carga DESPUÉS de style.css y cards.css. Sólo sobreescribe y suma.
   Para volver al diseño anterior: sacá este <link> y js/impact.js.
   ================================================================= */

:root {
    --accent-2: #ffb347;
    --line: rgba(255, 255, 255, 0.08);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Tipografía: títulos más legibles, Orbitron queda para marca y números ---------- */
.hero-title, .section-title { letter-spacing: -1px; }
.hero-title { color: var(--white); }
.section-title { color: var(--white); }
.section-title .highlight, .hero-title .highlight { color: var(--accent); }

/* =================================================================
   HERO · dos columnas, red de nodos, maqueta viva
   ================================================================= */
.hero {
    background:
        radial-gradient(1100px 600px at 85% 10%, rgba(243,156,18,.14), transparent 60%),
        radial-gradient(900px 700px at 0% 100%, rgba(51,114,250,.16), transparent 60%),
        linear-gradient(135deg, #070f1d 0%, #0a1628 55%, #0d1f3c 100%);
}
.hero::before { display: none; }

.hero-net, .hero-grid-bg, .hero-spot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hero-net { opacity: .9; }
.hero-grid-bg {
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
}
.hero-spot {
    background: radial-gradient(420px circle at var(--sx, 70%) var(--sy, 30%), rgba(243,156,18,.16), transparent 60%);
    transition: background .2s linear;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}
.hero-content {
    margin: 0;
    max-width: none;
    text-align: left;
}
.hero-title {
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.08;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroIn .9s var(--ease-out) .15s forwards;
}
.hero-badge   { opacity: 0; animation: heroIn .7s var(--ease-out) 0s forwards; }
.hero-subtitle{ margin: 0 0 36px; max-width: 540px; opacity: 0; animation: heroIn .8s var(--ease-out) .35s forwards; }
.hero-actions { justify-content: flex-start; margin-bottom: 36px; opacity: 0; animation: heroIn .8s var(--ease-out) .5s forwards; }
.hero-trust   { opacity: 0; animation: heroIn .8s var(--ease-out) .65s forwards; }
@keyframes heroIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.6);
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

#rotator { white-space: nowrap; }
#rotator.swap { animation: wordSwap .45s var(--ease-out); }
@keyframes wordSwap {
    from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
    to   { opacity: 1; transform: none; filter: none; }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}
.hero-trust i { color: var(--accent); margin-right: 6px; }

.scroll-hint {
    position: absolute;
    left: 50%; bottom: 26px;
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 14px;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-hint span {
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--accent);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Maqueta viva ---------- */
.hero-visual {
    position: relative;
    min-height: 460px;
    perspective: 1200px;
    opacity: 0;
    animation: heroIn 1s var(--ease-out) .45s forwards;
}
.hv-card {
    position: absolute;
    background: rgba(13, 31, 60, .78);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
    font-family: var(--font-body);
}
.hv-main {
    inset: 20px 40px 40px 0;
    padding: 18px 20px;
    transform-style: preserve-3d;
    transition: transform .25s ease-out;
    border-color: rgba(243,156,18,.35);
}
.hv-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.hv-bar i:nth-child(1) { background: #ff5f57; }
.hv-bar i:nth-child(2) { background: #febc2e; }
.hv-bar i:nth-child(3) { background: #28c840; }
.hv-bar span { margin-left: 10px; font-size: 12px; color: rgba(255,255,255,.55); }
.hv-total small { display: block; font-size: 12px; color: rgba(255,255,255,.55); }
.hv-total strong { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); color: var(--white); }
.hv-chart { width: 100%; height: 100px; margin: 10px 0 14px; display: block; }
.hv-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: drawLine 2.2s var(--ease-out) 1s forwards; }
.hv-area { opacity: 0; animation: fadeArea 1s ease 2.2s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: 1; } }
.hv-rows div {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 8px 0;
    border-top: 1px dashed rgba(255,255,255,.1);
    font-size: 13px; color: rgba(255,255,255,.75);
}
.hv-rows b { color: var(--white); font-weight: 600; white-space: nowrap; }
.hv-rows .ok, .hv-rows .ok b { color: #4ade80; }

.hv-kds { right: 0; top: 0; width: 170px; padding: 12px; animation: floaty 6s ease-in-out infinite; }
.hv-kds-head { font-size: 12px; color: #fb923c; font-weight: 700; margin-bottom: 8px; }
.hv-kds-head i { margin-right: 6px; }
.hv-ticket {
    display: flex; justify-content: space-between;
    padding: 7px 10px; margin-top: 6px;
    border-radius: 8px; font-size: 12px;
    background: rgba(74,222,128,.12); color: #86efac;
}
.hv-ticket.late { background: rgba(251,146,60,.16); color: #fdba74; }

.hv-alert, .hv-qr {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
}
.hv-alert { left: -18px; bottom: 0; animation: floaty 7s ease-in-out -2s infinite; }
.hv-alert i { color: #facc15; font-size: 20px; }
.hv-qr { right: 6px; bottom: 74px; animation: floaty 8s ease-in-out -4s infinite; }
.hv-qr i { color: #60a5fa; font-size: 20px; }
.hv-alert b, .hv-qr b { display: block; font-size: 13px; color: var(--white); }
.hv-alert small, .hv-qr small { font-size: 11px; color: rgba(255,255,255,.55); }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* =================================================================
   CINTA DE RUBROS
   ================================================================= */
.marquee {
    overflow: hidden;
    padding: 18px 0;
    background: var(--accent);
    color: var(--primary);
    transform: rotate(-1deg) scale(1.02);
    margin: -18px 0 26px;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 40px rgba(243,156,18,.25);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 48px;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 700; font-size: 15px;
    white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =================================================================
   NÚMEROS
   ================================================================= */
.stats-section { padding: 70px 0 30px; background: var(--primary); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    overflow: hidden;
}
.stat {
    padding: 34px 20px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-number {
    display: block;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}
.stat span:not(.count) { color: rgba(255,255,255,.6); font-size: 14px; }

/* =================================================================
   SISTEMAS · títulos y tarjetas con foco de luz
   ================================================================= */
.systems-section {
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(243,156,18,.07), transparent 70%),
        var(--primary);
}
.system-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 300px;
}
.system-card::before {          /* foco que sigue al mouse */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
        color-mix(in srgb, var(--card-accent) 22%, transparent), transparent 65%);
    opacity: 0;
    transition: opacity .3s ease;
}
.system-card:hover::before { opacity: 1; }
.system-card::after {           /* línea de color arriba */
    content: "";
    position: absolute;
    left: 0; top: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--card-accent), transparent);
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.system-card:hover::after { transform: scaleX(1); }
.system-card [class*="__action"] {
    background: transparent;
    color: var(--card-text);
    border: 1px solid color-mix(in srgb, var(--card-accent) 55%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.system-card [class*="__action"]:hover {
    background: var(--card-accent);
    color: #0b111e;
}
.system-card [class$="__title"] { font-size: 1.35rem; }

/* =================================================================
   SERVICIOS · pasos
   ================================================================= */
.services-section {
    padding: 100px 0;
    background: var(--secondary);
}
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    position: relative;
    counter-reset: none;
}
.steps::before {                 /* línea que une los pasos */
    content: "";
    position: absolute;
    left: 12%; right: 12%; top: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(243,156,18,.15));
}
.step { position: relative; padding: 0 18px; text-align: center; }
.step-n {
    position: relative;
    width: 58px; height: 58px;
    margin: 0 auto 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 900; font-size: 22px;
    box-shadow: 0 0 0 8px var(--secondary), 0 0 28px rgba(243,156,18,.25);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: rgba(255,255,255,.62); max-width: 240px; margin: 0 auto; }

/* =================================================================
   BANDA CTA
   ================================================================= */
.cta-band {
    padding: 80px 0;
    background:
        radial-gradient(700px 300px at 15% 50%, rgba(243,156,18,.22), transparent 70%),
        linear-gradient(135deg, #0d1f3c, #0a1628);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-inner h2 {
    font-size: clamp(22px, 3vw, 34px);
    max-width: 700px;
    line-height: 1.25;
}

/* =================================================================
   Revelado al hacer scroll (sólo si hay JS)
   ================================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Botón principal con brillo ---------- */
.btn-primary { box-shadow: 0 8px 30px rgba(243,156,18,.35); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-visual { min-height: 420px; max-width: 560px; margin: 0 auto; width: 100%; }
    .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 0; }
    .steps::before { display: none; }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .cta-inner { justify-content: center; text-align: center; }
    .scroll-hint { display: none; }
    .hero-visual { min-height: 380px; }
    .hv-main { inset: 10px 14px 40px 0; }
    .hv-alert { left: 0; }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .hv-kds { width: 140px; }
    .hv-qr { display: none; }
    #rotator { white-space: normal; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-title, .hero-badge, .hero-subtitle, .hero-actions, .hero-trust, .hero-visual { animation: none; opacity: 1; }
    .marquee-track, .hv-kds, .hv-alert, .hv-qr, .live-dot, .scroll-hint span { animation: none; }
    .hv-line { animation: none; stroke-dashoffset: 0; }
    .hv-area { animation: none; opacity: 1; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
