/* ==========================================================================
   VilaTec 2.0 — CSS de Agentes Multi-I.A. Autónomos
   Estilo Premium con Perspectiva Isométrica 3D, Giroscopios y Telemetría HUD
   ========================================================================== */

/* --- Contenedor General --- */
#ia-agents-page {
    background-color: #05070a;
    color: #f3f4f6;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.agents-hero {
    position: relative;
    padding: 10rem 0 7rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.agents-hero__bg-image {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 55%;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to left, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
    z-index: 0;
    opacity: 0.35;
}

.agents-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #60a5fa;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.agents-hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.agents-hero__highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agents-hero__desc {
    max-width: 32rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.agents-hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* --- HUD de Especificaciones en Hero --- */
.agents-hero__tech-specs {
    margin-top: 4.5rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #4b5563;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agents-hero__tech-specs div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agents-hero__tech-specs div::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px #3b82f6;
}

/* ==========================================================================
   SECCIÓN DE ORQUESTACIÓN: UI ISOMÉTRICA DE ENJAMBRE 3D
   ========================================================================== */
.orq-section {
    position: relative;
    padding: 8rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(13, 17, 23, 0.4) 0%, #05070a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Contenedor de Perspectiva Isométrica */
.swarm-container {
    position: relative;
    width: 100%;
    height: 620px;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    overflow: visible;
}

.swarm-plane {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(25deg) rotateY(0deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Líder: Núcleo Orquestador Central --- */
.swarm-leader {
    position: absolute;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    z-index: 10;
}

.swarm-leader__sphere {
    position: absolute;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle at 35% 35%, #60a5fa 0%, #1e40af 60%, #0b132b 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 35px rgba(37, 99, 235, 0.4),
        inset -15px -15px 30px rgba(0, 0, 0, 0.8),
        inset 10px 10px 20px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floating-y 5s ease-in-out infinite alternate;
}

.swarm-leader__core {
    width: 40px;
    height: 40px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 25px #00f0ff, 0 0 50px rgba(0, 240, 255, 0.3);
    animation: core-glow 2s ease-in-out infinite alternate;
}

/* Anillos Concántricos Giroscópicos en 3D */
.swarm-leader__ring {
    position: absolute;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 50%;
    pointer-events: none;
    transform-style: preserve-3d;
}

.swarm-leader__ring--1 {
    width: 190px;
    height: 190px;
    transform: rotateX(60deg) rotateY(20deg);
    animation: gyro-rotate-1 8s linear infinite;
    border-top: 2px solid #60a5fa;
}

.swarm-leader__ring--2 {
    width: 210px;
    height: 210px;
    transform: rotateX(-45deg) rotateY(45deg);
    animation: gyro-rotate-2 12s linear infinite reverse;
    border-bottom: 2px solid #3b82f6;
}

.swarm-leader__ring--3 {
    width: 230px;
    height: 230px;
    transform: rotateX(75deg) rotateY(-10deg);
    animation: gyro-rotate-3 16s linear infinite;
    border-left: 2px solid #00f0ff;
}

/* --- Robots Especialistas (Satélites) --- */
.swarm-agent {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform-style: preserve-3d;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Posiciones Radiales en Arco */
.swarm-agent--data {
    top: 5%;
    left: 8%;
}

.swarm-agent--exec {
    top: 48%;
    right: 5%;
    flex-direction: row-reverse;
}

.swarm-agent--critic {
    bottom: 5%;
    left: 12%;
}

/* Cuerpo Robótico Isométrico (Esferas Hexagonales) */
.swarm-agent__body {
    position: relative;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, #4b5563 0%, #1f2937 60%, #111827 100%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.5),
        inset -8px -8px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: floating-y 4s ease-in-out infinite alternate;
}

.swarm-agent__body::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.swarm-agent__core {
    width: 26px;
    height: 26px;
    background: #374151;
    border-radius: 50%;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease;
}

/* Anillo Mecánico Flotante */
.swarm-agent__gyro {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: spin 6s linear infinite;
}

/* --- Paneles de Telemetría (JetBrains Mono) --- */
.swarm-agent__telemetry {
    background: rgba(13, 17, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    width: 250px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.swarm-agent__telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.swarm-agent__name {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #e5e7eb;
}

.swarm-agent__status {
    color: #9ca3af;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.swarm-agent__desc {
    color: #9ca3af;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
}

/* Barra de Carga Técnica */
.swarm-agent__progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.swarm-agent__progress {
    height: 100%;
    width: 0%;
    background: #4b5563;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* --- SVG Tuberías de Datos Curvadas --- */
.swarm-pipes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.swarm-pipe-path {
    fill: none;
    stroke: rgba(59, 130, 246, 0.08);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke 0.5s ease;
}

.swarm-pulse {
    fill: none;
    stroke: url(#pulse-gradient);
    stroke-width: 6;
    stroke-dasharray: 20, 150;
    stroke-dashoffset: 0;
    animation: flow 3s linear infinite;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

/* --- Estados Activos de Procesamiento Rotativo --- */
.swarm-agent.is-active {
    z-index: 8;
}

.swarm-agent.is-active .swarm-agent__body {
    background: radial-gradient(circle at 30% 30%, #1e40af 0%, #1e3a8a 60%, #0f172a 100%);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 15px 30px rgba(0, 240, 255, 0.25),
        inset -8px -8px 15px rgba(0, 0, 0, 0.6);
}

.swarm-agent.is-active .swarm-agent__core {
    background: #00f0ff;
    box-shadow: 0 0 15px #00f0ff, 0 0 30px rgba(0, 240, 255, 0.4);
}

.swarm-agent.is-active .swarm-agent__gyro {
    border-color: rgba(0, 240, 255, 0.4);
    animation-duration: 2s;
}

.swarm-agent.is-active .swarm-agent__telemetry {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.08);
    background: rgba(13, 17, 23, 0.85);
}

.swarm-agent.is-active .swarm-agent__name {
    color: #00f0ff;
}

.swarm-agent.is-active .swarm-agent__status {
    color: #00f0ff;
}

.swarm-agent.is-active .swarm-agent__progress {
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
}

/* --- Latido en Modo Espera --- */
.swarm-agent:not(.is-active) {
    animation: heartbeat 3s ease-in-out infinite;
}

.swarm-agent:not(.is-active) .swarm-agent__core {
    background: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
    opacity: 0.6;
    animation: pulse-light 3s ease-in-out infinite;
}

/* ==========================================================================
   SECCIÓN DE CASOS DE USO (Bento Grid)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.bento-card {
    position: relative;
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-5px);
    background: rgba(13, 17, 23, 0.6);
}

.bento-card__num {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: color 0.4s ease;
}

.bento-card:hover .bento-card__num {
    color: rgba(59, 130, 246, 0.06);
}

.bento-card__icon-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.2rem;
}

.bento-card__icon {
    font-size: 3.5rem; /* El doble de grande */
    color: #60a5fa;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover .bento-card__icon {
    color: #00f0ff;
    transform: scale(1.15) rotate(3deg);
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.bento-card__tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00f0ff;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
    transition: all 0.4s ease;
}

.bento-card:hover .bento-card__tech-tag {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.35);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.bento-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

/* Badges del Flujo de Trabajo */
.bento-card__flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.bento-card__step {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    color: #9ca3af;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-card__step {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.bento-card__arrow {
    font-size: 0.8rem;
    color: #4b5563;
}

/* ==========================================================================
   HUMAN-IN-THE-LOOP & VÍAS DE ESCAPE
   ========================================================================== */
.control-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

/* Simulador de Terminal HUD */
.terminal-hud {
    background: #020406;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.terminal-hud__bar {
    height: 36px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-hud__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal-hud__dot--red { background-color: #ef4444; }
.terminal-hud__dot--yellow { background-color: #f59e0b; }
.terminal-hud__dot--green { background-color: #10b981; }

.terminal-hud__title {
    color: #4b5563;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
}

.terminal-hud__content {
    padding: 2rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-hud__prompt {
    color: #38bdf8;
    margin-bottom: 1rem;
}

.terminal-hud__warning {
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid #f59e0b;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    color: #fbbf24;
    font-size: 0.75rem;
}

.terminal-hud__warning strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

.terminal-hud__actions {
    display: flex;
    gap: 1rem;
}

.terminal-hud__btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-hud__btn--approve {
    background: #10b981;
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.terminal-hud__btn--approve:hover {
    background: #059669;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.terminal-hud__btn--reject {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.terminal-hud__btn--reject:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
}

/* Vías de Escape */
.esc-mechanisms {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.esc-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.esc-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.esc-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.esc-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e5e7eb;
}

.esc-card__desc {
    font-size: 0.75rem;
    color: #6b7280;
}

.esc-card__status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    color: #34d399;
}

/* ==========================================================================
   STACK DE ORQUESTACIÓN
   ========================================================================== */
.stack-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.terminal-code {
    background: #020406;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.terminal-code__content {
    padding: 2rem;
    color: #9ca3af;
}

.terminal-code__line {
    margin-bottom: 0.75rem;
}

.terminal-code__comment { color: #4b5563; }
.terminal-code__keyword { color: #f43f5e; }
.terminal-code__string { color: #10b981; }
.terminal-code__var { color: #e5e7eb; }
.terminal-code__func { color: #60a5fa; }
.terminal-code__check { color: #34d399; margin-right: 0.5rem; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.agents-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.8) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.agents-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.agents-cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
    position: relative;
    z-index: 2;
}

.agents-cta__desc {
    max-width: 42rem;
    margin: 0 auto 3.5rem;
    color: #9ca3af;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.agents-cta__btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   MICRO-ANIMACIONES Y KEYFRAMES
   ========================================================================== */

/* Rotación de Giroscopios 3D */
@keyframes gyro-rotate-1 {
    from { transform: rotateX(60deg) rotateY(20deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes gyro-rotate-2 {
    from { transform: rotateX(-45deg) rotateY(45deg) rotateZ(0deg); }
    to { transform: rotateX(-45deg) rotateY(45deg) rotateZ(360deg); }
}

@keyframes gyro-rotate-3 {
    from { transform: rotateX(75deg) rotateY(-10deg) rotateZ(0deg); }
    to { transform: rotateX(75deg) rotateY(-10deg) rotateZ(360deg); }
}

/* Flotación Vertical */
@keyframes floating-y {
    0% { transform: translateY(-8px) rotateX(0deg); }
    100% { transform: translateY(8px) rotateX(0deg); }
}

/* Giro Mecánico Clásico */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Latido de Entidad */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.1); }
}

/* Pulso de Núcleo */
@keyframes core-glow {
    0% { transform: scale(0.9); box-shadow: 0 0 15px #00f0ff, 0 0 30px rgba(0, 240, 255, 0.2); }
    100% { transform: scale(1.1); box-shadow: 0 0 25px #00f0ff, 0 0 50px rgba(0, 240, 255, 0.4); }
}

@keyframes pulse-light {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Flujo de datos por SVG Pipes */
@keyframes flow {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: -200; }
}

/* --- Panel Colapsable de Especificaciones Técnicas (Stack) --- */
.tech-specs-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.tech-specs-panel.is-open {
    max-height: 500px;
    opacity: 1;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.tech-specs-item {
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.tech-specs-item:hover {
    background: rgba(0, 240, 255, 0.02);
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.tech-specs-label {
    color: #4b5563;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tech-specs-value {
    color: #00f0ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

@media (max-width: 640px) {
    .tech-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Adaptabilidad Responsiva (Mobile First) --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .control-grid, .stack-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .swarm-container {
        height: auto;
        min-height: 800px;
    }
    .swarm-plane {
        transform: rotateX(0deg);
        flex-direction: column;
        gap: 3.5rem;
        position: relative;
    }
    /* Hilo de luz eléctrico vertical de fondo en móvil que conecta los nodos */
    .swarm-plane::before {
        content: '';
        position: absolute;
        top: 65px;
        bottom: 65px;
        left: 50%;
        width: 2px;
        background: linear-gradient(to bottom, 
            transparent 0%, 
            rgba(96, 165, 250, 0.05) 5%, 
            rgba(0, 240, 255, 0.35) 20%, 
            #00f0ff 50%, 
            rgba(0, 240, 255, 0.35) 80%, 
            rgba(96, 165, 250, 0.05) 95%, 
            transparent 100%
        );
        background-size: 100% 300px;
        background-repeat: repeat-y;
        box-shadow: 
            0 0 10px rgba(0, 240, 255, 0.3),
            0 0 20px rgba(0, 240, 255, 0.1);
        transform: translateX(-50%);
        z-index: 1;
        animation: mobile-cable-flow 3.5s linear infinite;
    }
    .swarm-leader {
        position: relative;
        margin-bottom: 2rem;
        z-index: 10;
    }
    .swarm-agent {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        flex-direction: column !important;
        width: 100%;
        max-width: 320px;
        z-index: 5;
    }
    .swarm-agent__telemetry {
        width: 100%;
        background: rgba(13, 17, 23, 0.85); /* Un poco más de opacidad para que no trasluzca demasiado la línea */
        backdrop-filter: blur(8px);
    }
    .swarm-pipes {
        display: none; /* Desactivar tuberías 3D complejas en móvil */
    }
}

/* Animación de haz de luz fluyendo por el cable en móvil */
@keyframes mobile-cable-flow {
    0% { background-position: 0 0; }
    100% { background-position: 0 300px; }
}

/* --- Refinamiento Responsivo para Móviles y Tablets --- */
@media (max-width: 768px) {
    .agents-hero {
        padding: 8rem 0 4rem;
        min-height: auto;
        text-align: center;
    }
    .agents-hero__bg-image {
        width: 100%;
        opacity: 0.15;
        mask-image: radial-gradient(circle, black 45%, transparent 100%);
        -webkit-mask-image: radial-gradient(circle, black 45%, transparent 100%);
    }
    .agents-hero__badge {
        margin-left: auto;
        margin-right: auto;
    }
    .agents-hero__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .agents-hero__ctas {
        justify-content: center;
    }
    .agents-hero__tech-specs {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 3.5rem;
    }
    /* Optimización de los botones del CTA final en móviles */
    .agents-cta {
        padding: 4rem 1.5rem;
    }
    .agents-cta__btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    .agents-cta__btns .btn {
        width: 100% !important;
        max-width: 320px !important;
        box-sizing: border-box !important;
        padding: 1.1rem 1.25rem !important; /* Padding lateral optimizado para evitar desbordamiento */
        font-size: 0.825rem !important; /* Ajuste tipográfico responsivo de gran legibilidad */
        text-align: center !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: normal !important; /* Si el texto es largo, se divide en 2 líneas de forma armónica en vez de cortarse */
    }
}
