﻿/* ================================================================
   TRUST-BAR.CSS — 3 métricas conectadas como nodos de un mismo
   proceso, en clave clara (coherente con el resto del sitio y con
   mejor base de contraste si más adelante se suma un modo de
   accesibilidad / alto contraste).
   Se referencia SOLO en Views/Home/Index.cshtml (sección @Styles)
   Depende de variables definidas en tokens.css
   ================================================================ */
.trust-bar {
    position: relative;
    padding: 56px 0;
    background: var(--mist-2);
    overflow: hidden;
}
    /* Misma textura de plano que el hero, coherencia entre ambas secciones */
    .trust-bar::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(6,27,72,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(6,27,72,0.035) 1px, transparent 1px);
        background-size: 44px 44px;
        mask-image: radial-gradient(closest-side, black, transparent 85%);
        pointer-events: none;
    }

    .trust-bar .container {
        position: relative;
        z-index: 1
    }

/* ── FLOW — conecta los 3 nodos en una misma línea de proceso ── */
.trust-flow {
    position: relative;
    padding: 0 6%
}

.trust-connector {
    position: absolute;
    top: 50%;
    left: 6%;
    right: 6%;
    height: 1px;
    background-image: linear-gradient(to right, var(--gold-soft) 50%, transparent 0);
    background-size: 8px 1px;
    z-index: 0;
}

.trust-node-dot {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px var(--paper);
    transform: translate(-50%,-50%);
    z-index: 1;
}

    .trust-node-dot.d1 {
        left: 37.3%
    }

    .trust-node-dot.d2 {
        left: 69.3%
    }

.trust-nodes {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px
}

/* Nodo con forma de hexágono alargado — geometría, no rectángulo.
   El borde toma un tinte sutil del acento propio de cada dato, y
   ahora suma un toque "3D": highlight interior arriba, línea de
   acento sólida abajo (mismo tratamiento que las tarjetas de
   Pilares) y un degradé de fondo muy sutil. */
.trust-node {
    --accent: var(--spark);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, white) 0%, #fff 60%);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    clip-path: polygon(9% 0%, 91% 0%, 100% 50%, 91% 100%, 9% 100%, 0% 50%);
    padding: 18px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 0 color-mix(in srgb, var(--accent) 55%, transparent), 0 20px 40px -28px rgba(6,27,72,0.18);
    transition: background .25s ease,transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

    .trust-node.n2 {
        --accent: var(--blue)
    }

    .trust-node.n3 {
        --accent: var(--gold)
    }

.trust-node-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.trust-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex: none;
    background: color-mix(in srgb, var(--accent) 14%, white);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .trust-icon svg {
        width: 14px;
        height: 14px
    }

.trust-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 24px;
    color: var(--navy);
    line-height: 1
}

.trust-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.1px;
    color: color-mix(in srgb, var(--blue) 55%, var(--ink-soft));
    text-transform: uppercase;
    line-height: 1.3;
}

.trust-node-link:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, white) 0%, #fff 60%);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -3px 0 0 var(--accent), 0 26px 48px -26px rgba(6,27,72,0.24);
}

/* Mobile: las 3 métricas en una sola fila (sin tarjetas), separadas por líneas finas.
   Ocupa ~110px en vez de ~280px y no empuja el contenido. */
@media (max-width:700px) {
    .trust-bar {
        padding: 28px 0
    }

    .trust-flow {
        padding: 0
    }

    .trust-connector, .trust-node-dot {
        display: none
    }

    .trust-nodes {
        grid-template-columns: repeat(3,1fr);
        gap: 0
    }

    .trust-node, .trust-node-link:hover {
        clip-path: none;
        background: none;
        border: 0;
        box-shadow: none;
        transform: none;
        border-radius: 0;
        padding: 4px 6px;
        gap: 8px;
        position: relative;
    }

        .trust-node + .trust-node {
            border-left: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line))
        }

    .trust-node-top {
        flex-direction: column;
        gap: 8px
    }

    .trust-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%
    }

    .trust-num {
        font-size: 30px
    }

    .trust-label {
        font-size: 9px;
        letter-spacing: .6px;
        line-height: 1.35
    }
}
