/* =====================================================================
   GIDEON BUSINESS — Secciones nuevas (equipo de agentes + resultados)
   Reposicionamiento: de "un agente" a "un EQUIPO de agentes por dominio".
   Estética consistente: negro + azul #1B4EF5/#5997ff + Grotesk/Mono.
   ===================================================================== */

/* ---------- Equipo de agentes (sección Producto) ---------- */
.agents-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.agent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 260px;
    padding: 22px 18px 26px;
    border-radius: 18px;
    background:
        radial-gradient(
            130% 70% at 50% 0%,
            rgba(27, 78, 245, 0.16),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}
.agent-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(89, 151, 255, 0.65),
        transparent
    );
    z-index: 1;
}
.agent-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        440px circle at var(--mx, 50%) var(--my, 0%),
        rgba(89, 151, 255, 0.22),
        transparent 46%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}
.agent-card:hover {
    transform: translateY(-8px);
    border-color: rgba(89, 151, 255, 0.55);
    box-shadow:
        0 30px 60px -30px rgba(27, 78, 245, 0.65),
        inset 0 0 0 1px rgba(89, 151, 255, 0.22);
}
.agent-card:hover::after {
    opacity: 1;
}

/* Marca de agua: número grande al fondo */
.agent-num {
    position: absolute;
    right: 10px;
    bottom: 4px;
    font-family: "Mono", monospace;
    font-size: 62px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.035);
    pointer-events: none;
    z-index: 0;
    transition: color 0.45s ease;
}
.agent-card:hover .agent-num {
    color: rgba(89, 151, 255, 0.16);
}

/* Cabecera: código de rol + indicador online */
.agent-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}
.agent-code {
    font-family: "Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.24em;
    color: rgba(244, 247, 245, 0.42);
}
.agent-status {
    display: inline-flex;
    align-items: center;
    width: 7px;
    height: 7px;
}
.agent-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fc53a;
    box-shadow: 0 0 8px #3fc53a;
    animation: agent-pulse 2.4s ease-in-out infinite;
}
@keyframes agent-pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #3fc53a;
    }
    50% {
        opacity: 0.35;
        box-shadow: 0 0 2px #3fc53a;
    }
}

/* Glifo por agente */
.agent-glyph {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 18px 0 16px;
    border-radius: 13px;
    border: 1px solid rgba(89, 151, 255, 0.28);
    background: linear-gradient(
        180deg,
        rgba(27, 78, 245, 0.24),
        rgba(27, 78, 245, 0.06)
    );
    color: #8fb6ff;
    position: relative;
    z-index: 1;
    transition:
        color 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.agent-glyph svg {
    width: 22px;
    height: 22px;
}
.agent-card:hover .agent-glyph {
    color: #ffffff;
    border-color: rgba(89, 151, 255, 0.7);
    box-shadow: 0 0 26px -4px rgba(89, 151, 255, 0.6);
    transform: scale(1.08);
}

.agent-body {
    position: relative;
    z-index: 1;
}
.agent-name {
    font-family: "Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #f4f7f5;
    margin: 0 0 8px;
}
.agent-desc {
    font-size: 13.5px;
    line-height: 21px;
    color: rgba(244, 247, 245, 0.6);
    margin: 0;
}

/* Kicker + acento del titular */
.agents-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #5997ff;
    padding: 8px 15px;
    border: 1px solid rgba(89, 151, 255, 0.24);
    border-radius: 100px;
    background: rgba(27, 78, 245, 0.08);
    margin-bottom: 22px;
}
.agents-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5997ff;
    box-shadow: 0 0 10px #5997ff;
}
.agents-title-accent {
    color: #709af5;
    background: linear-gradient(90.9deg, #9f9dfb 0%, #709af5 50%, #a5dcf3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Palabras divididas por GSAP heredan el gradiente del acento. */
.agents-title-accent .gs-w {
    color: #709af5;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90.9deg, #9f9dfb 0%, #709af5 50%, #a5dcf3 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Nota final: pill centrada */
.agents-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(244, 247, 245, 0.55);
    margin: 32px auto 0;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    width: fit-content;
    max-width: 100%;
}
.agents-note::before {
    content: "◈";
    color: #5997ff;
    font-size: 12px;
    line-height: 1;
}

/* ---------- Métricas (sección Resultados) ---------- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.metric-card {
    text-align: center;
    padding: 36px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        180deg,
        rgba(27, 78, 245, 0.09),
        rgba(27, 78, 245, 0.02)
    );
}
.metric-value {
    font-family: "Grotesk", sans-serif;
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(90.9deg, #9f9dfb 0%, #709af5 50%, #a5dcf3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.metric-label {
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 247, 245, 0.6);
}
.metrics-note {
    text-align: center;
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(244, 247, 245, 0.42);
    margin: 18px 0 0;
}

/* ---------- Bloque de sub-título dentro de Resultados ---------- */
.team-block {
    margin-top: 72px;
}
.team-block-head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}
.team-block-head .team-block-title {
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f4f7f5;
    background: linear-gradient(
        180deg,
        #f4f7f5 0%,
        rgba(244, 247, 245, 0.82) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}
.team-block-head .team-block-sub {
    font-size: 15px;
    line-height: 25px;
    color: rgba(244, 247, 245, 0.62);
    margin: 0 auto;
    max-width: 560px;
}

/* ---------- Demo: un solo chat, todo el equipo ---------- */
.demo-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.demo-copy h3 {
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f4f7f5;
    margin-bottom: 16px;
}
.demo-copy p {
    font-size: 15px;
    line-height: 25px;
    color: rgba(244, 247, 245, 0.62);
    margin: 0 0 20px;
}
.demo-flow {
    list-style: none;
    margin: 0;
    padding: 0;
}
.demo-flow li {
    position: relative;
    padding-left: 22px;
    font-family: "Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(244, 247, 245, 0.72);
    margin-bottom: 10px;
}
.demo-flow li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #5997ff;
}
.demo-flow li b {
    color: #f4f7f5;
    font-weight: 500;
}
.demo-chat {
    display: flex;
    justify-content: center;
}
.demo-chat .phone-mock {
    width: 320px;
}
.wa-agent-tag {
    display: block;
    font-family: "Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5997ff;
    margin-bottom: 3px;
}

/* ---------- Diferenciadores ---------- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.diff-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}
.diff-ico {
    flex-shrink: 0;
    font-family: "Mono", monospace;
    font-size: 13px;
    color: #5997ff;
    line-height: 1.4;
}
.diff-item p {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    color: rgba(244, 247, 245, 0.68);
}
.diff-item p strong {
    color: #f4f7f5;
    font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .agent-card {
        flex: 0 1 calc(50% - 7px);
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .demo-wrap {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .agents-grid {
        gap: 12px;
    }
    /* Cards en formato de lista horizontal (glifo + texto) */
    .agent-card {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 18px 16px;
    }
    .agent-glyph {
        margin: 0;
        flex-shrink: 0;
    }
    .agent-top {
        position: absolute;
        top: 12px;
        right: 14px;
        width: auto;
    }
    .agent-code {
        display: none;
    }
    .agent-num {
        font-size: 40px;
        right: 10px;
        bottom: 0;
    }
    .agent-body {
        min-width: 0;
    }
    .agent-name {
        margin-bottom: 4px;
    }
    .diff-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   GIDEON HARDWARE — Gideon Glasses + Gideon Watch (sección Producto)
   Misma estética: negro + azul #1B4EF5/#5997ff + spotlight al cursor.
   ===================================================================== */
.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}
.device-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background:
        radial-gradient(
            130% 70% at 50% 0%,
            rgba(27, 78, 245, 0.16),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}
.device-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(89, 151, 255, 0.65),
        transparent
    );
    z-index: 1;
}
.device-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        440px circle at var(--mx, 50%) var(--my, 0%),
        rgba(89, 151, 255, 0.22),
        transparent 46%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
    pointer-events: none;
}
.device-card:hover {
    transform: translateY(-8px);
    border-color: rgba(89, 151, 255, 0.55);
    box-shadow:
        0 30px 60px -30px rgba(27, 78, 245, 0.65),
        inset 0 0 0 1px rgba(89, 151, 255, 0.22);
}
.device-card:hover::after {
    opacity: 1;
}

.device-media {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 300px;
    margin: 18px 18px 0;
    padding: 20px;
    border-radius: 14px;
    background:
        radial-gradient(
            120% 90% at 50% 30%,
            rgba(27, 78, 245, 0.22),
            transparent 65%
        ),
        rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.device-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.device-body {
    position: relative;
    z-index: 1;
    padding: 22px 24px 28px;
}
.device-code {
    display: inline-block;
    font-family: "Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #5997ff;
    margin-bottom: 10px;
}
.device-name {
    font-family: "Grotesk", sans-serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #f4f7f5;
    margin: 0 0 8px;
}
.device-tag {
    font-size: 14px;
    line-height: 22px;
    color: rgba(244, 247, 245, 0.66);
    margin: 0 0 16px;
}
.device-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.device-list li {
    position: relative;
    padding-left: 20px;
    font-size: 13.5px;
    line-height: 20px;
    color: rgba(244, 247, 245, 0.62);
}
.device-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #5997ff;
}

@media (max-width: 760px) {
    .device-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .device-media {
        height: 230px;
    }
}

/* =====================================================================
   GIDEON PLATAFORMA — Web / Desktop / Mobile + sistemas operativos
   Misma estética: negro + azul #1B4EF5/#5997ff + spotlight al cursor.
   ===================================================================== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}
.platform-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 22px 28px;
    border-radius: 18px;
    background:
        radial-gradient(
            130% 70% at 50% 0%,
            rgba(27, 78, 245, 0.16),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}
.platform-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(89, 151, 255, 0.65),
        transparent
    );
    z-index: 1;
}
.platform-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        440px circle at var(--mx, 50%) var(--my, 0%),
        rgba(89, 151, 255, 0.22),
        transparent 46%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
    pointer-events: none;
}
.platform-card:hover {
    transform: translateY(-8px);
    border-color: rgba(89, 151, 255, 0.55);
    box-shadow:
        0 30px 60px -30px rgba(27, 78, 245, 0.65),
        inset 0 0 0 1px rgba(89, 151, 255, 0.22);
}
.platform-card:hover::after {
    opacity: 1;
}

.platform-glyph {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(89, 151, 255, 0.28);
    background: linear-gradient(
        180deg,
        rgba(27, 78, 245, 0.24),
        rgba(27, 78, 245, 0.06)
    );
    color: #8fb6ff;
    transition:
        color 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.platform-glyph svg {
    width: 24px;
    height: 24px;
}
.platform-card:hover .platform-glyph {
    color: #ffffff;
    border-color: rgba(89, 151, 255, 0.7);
    box-shadow: 0 0 26px -4px rgba(89, 151, 255, 0.6);
    transform: scale(1.06);
}

.platform-body {
    position: relative;
    z-index: 1;
}
.platform-code {
    display: block;
    font-family: "Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #5997ff;
    margin-bottom: 8px;
}
.platform-name {
    font-family: "Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #f4f7f5;
    margin: 0 0 8px;
}
.platform-desc {
    font-size: 13.5px;
    line-height: 21px;
    color: rgba(244, 247, 245, 0.6);
    margin: 0;
}

.os-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 1040px;
    margin: 24px auto 0;
    padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
}
.os-bar-label {
    font-family: "Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 247, 245, 0.45);
}
.os-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.os-chip {
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 247, 245, 0.78);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(89, 151, 255, 0.28);
    background: rgba(27, 78, 245, 0.1);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}
.os-chip:hover {
    color: #ffffff;
    border-color: rgba(89, 151, 255, 0.7);
    background: rgba(27, 78, 245, 0.24);
    box-shadow: 0 0 18px -6px rgba(89, 151, 255, 0.7);
}

@media (max-width: 900px) {
    .platform-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}
