/* ==========================================================================
   VARIABLES Y DISEÑO BASE
   ========================================================================== */
:root {
    --bg-dark: #070a13;
    --bg-darker: #04060c;
    --primary: #ff6d5a; /* n8n Orange-Red */
    --primary-glow: rgba(255, 109, 90, 0.35);
    --secondary: #06b6d4; /* Neon Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.35);
    --success: #10b981; /* Neon Green */
    --success-glow: rgba(16, 185, 129, 0.35);
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Fondo de Rejilla de Ingeniería */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

/* Resaltados de Texto */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Botón Estilo Node Run */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #e05442 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 109, 90, 0.5);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 4px 15px var(--secondary-glow);
    transform: translateY(-2px);
}

/* Destellos traseros de ambiente */
.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.glow-orange {
    background: var(--primary);
    top: -100px;
    left: -150px;
}

.glow-cyan {
    background: var(--secondary);
    bottom: 10%;
    right: -150px;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 10, 19, 0.75);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(4, 6, 12, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo Estilizado */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo-node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: relative;
}

.logo-node-circle {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--primary-glow);
}

.logo-node-circle::before, .logo-node-circle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: var(--secondary);
    top: 50%;
    transform: translateY(-50%);
}

.logo-node-circle::before {
    right: 12px;
}

.logo-node-circle::after {
    left: 12px;
}

/* Navegación */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú Mobile Hamburgesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    margin-bottom: 6px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

/* Canvas Interactivo */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

.hero .container {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Permite clicks en el canvas a través de huecos */
}

.hero-content {
    max-width: 680px;
    pointer-events: auto; /* Reactiva clicks en el texto y botones */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 109, 90, 0.08);
    border: 1px solid rgba(255, 109, 90, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 24px;
    font-weight: 500;
    box-shadow: inset 0 0 10px rgba(255, 109, 90, 0.05);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-light 2s infinite;
}

.hero h1 {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   SERVICIOS (FLOWCHART DE NODOS)
   ========================================================================== */
.services-section {
    padding: 100px 0;
    position: relative;
    background-color: rgba(7, 10, 19, 0.4);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px auto;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
}

/* Diagrama de Flujo de Nodos */
.workflow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Nodos Individuales */
.node-card {
    width: 100%;
    max-width: 750px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(40px);
}

.node-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.node-card:hover {
    border-color: var(--accent-hover, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-hover, var(--primary-glow));
}

/* Barra Superior del Nodo (Estilo n8n) */
.node-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.node-info-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.node-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-hover, var(--primary));
    transition: var(--transition);
}

.node-card:hover .node-icon-box {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.node-name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
}

.node-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--success);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success-glow);
    animation: pulse-light 1.5s infinite;
}

/* Cuerpo del Nodo */
.node-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.node-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Parámetros de Simulación de Código (Consola) */
.node-parameters {
    background: rgba(4, 6, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #a78bfa; /* Light purple para simular código */
}

.node-parameters span {
    color: var(--text-muted);
}

.node-parameters .param-val {
    color: var(--secondary);
}

/* Puertos de Conexión del Nodo (Estilo Visual) */
.node-port {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #1e293b;
    border: 2px solid var(--accent-hover, var(--primary));
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    transition: var(--transition);
}

.node-card:hover .node-port {
    background: var(--accent-hover, var(--primary));
    box-shadow: 0 0 10px var(--accent-hover, var(--primary));
}

.port-in {
    left: -6px;
}

.port-out {
    right: -6px;
}

/* Conectores CSS Responsivos */
.node-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 2px;
    height: 48px;
}

.connector-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.connector-path {
    stroke: var(--accent-line, var(--secondary));
    stroke-width: 2px;
    fill: none;
    stroke-dasharray: 6 6;
    animation: connectorFlow 1.5s linear infinite;
}

@keyframes connectorFlow {
    to {
        stroke-dashoffset: -12;
    }
}

/* Animación rotación spinner en botón enviar */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   NUESTRO EQUIPO (LOS 9 NODOS)
   ========================================================================== */
.team-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-darker);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 15px var(--secondary-glow);
}

/* Cabecera de la Tarjeta del Equipo */
.team-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 109, 90, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    position: relative;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.team-card:hover .team-avatar {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(255, 109, 90, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
}

.team-avatar-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px var(--success-glow);
}

.team-title-box {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}

.team-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
}

/* Stats del Nodo */
.team-stats {
    background: rgba(4, 6, 12, 0.6);
    border-radius: 6px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.team-stat-item {
    display: flex;
    flex-direction: column;
}

.team-stat-label {
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.team-stat-val {
    color: var(--secondary);
    font-weight: 500;
}

.team-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================================================
   CONTACTO & WEBHOOK CONFIG PANEL
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

/* Panel de Configuración Webhook (Formulario) */
.webhook-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.webhook-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Encabezado del Formulario */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
}

.panel-badge {
    background: var(--primary);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Inputs Estilizados */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-label span {
    color: var(--primary);
}

.form-input {
    width: 100%;
    background: rgba(4, 6, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    background: rgba(4, 6, 12, 0.95);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Consola de Logs Lateral */
.console-panel {
    background: #04060c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 380px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.console-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.console-logs {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.log-line {
    opacity: 0;
    transform: translateX(-10px);
    animation: logFadeIn 0.3s forwards;
}

.log-info { color: #3b82f6; }
.log-success { color: var(--success); }
.log-warn { color: #f59e0b; }
.log-muted { color: var(--text-muted); }

@keyframes logFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal de Confirmación Estilo Nodo Ejecutado Exitosamente */
.node-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.node-alert-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.node-alert-box {
    background: var(--bg-dark);
    border: 2px solid var(--success);
    box-shadow: 0 0 30px var(--success-glow);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    padding: 32px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.node-alert-overlay.active .node-alert-box {
    transform: scale(1);
}

.alert-node-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    margin: 0 auto 20px auto;
    position: relative;
}

.alert-node-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 2px solid var(--success);
    animation: pulse-ring 2s infinite;
}

.node-alert-box h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.node-alert-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 350px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-col h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

/* ==========================================================================
   KEYFRAMES ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-light {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 8px currentColor;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
        box-shadow: 0 0 16px currentColor;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ==========================================================================
   RESPONSIVIDAD (MEDIA QUERIES - MOBILE FIRST)
   ========================================================================== */

@media (min-width: 768px) {
    .nav-wrapper {
        height: 85px;
    }
    
    .menu-toggle {
        display: none;
    }

    .hero {
        padding-top: 0;
    }

    .workflow-diagram {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 0;
        margin-top: 50px;
    }

    .node-card {
        flex: 1;
        max-width: 255px;
        padding: 20px;
    }

    .node-body {
        grid-template-columns: 1fr;
    }

    .node-connector {
        width: 40px;
        height: 2px;
        margin: auto 0;
    }

    .node-connector::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-line, var(--secondary)), rgba(255, 109, 90, 0.3));
        z-index: 1;
    }

    .contact-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 2fr;
        gap: 80px;
    }

    .footer-links-group {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .node-card {
        max-width: 270px;
        padding: 24px;
    }

    .node-connector {
        width: 50px;
    }

    .contact-layout {
        gap: 64px;
    }
}

@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--card-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -7px);
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}



/* ==========================================================================
   PERSONALIZACIÓN DE SCROLLBARS (ESTÉTICA DE LA PÁGINA)
   ========================================================================== */
/* Estilos globales y para contenedores específicos */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #04060c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 2px solid #04060c;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Estilos específicos para el Canvas Workspace, Consola de Canvas y Consola de la Landing */
.canvas-workspace::-webkit-scrollbar,
.canvas-console::-webkit-scrollbar,
.console-logs::-webkit-scrollbar,
.console-panel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.canvas-workspace::-webkit-scrollbar-track,
.canvas-console::-webkit-scrollbar-track,
.console-logs::-webkit-scrollbar-track,
.console-panel::-webkit-scrollbar-track {
    background: #04060c !important;
}

.canvas-workspace::-webkit-scrollbar-thumb,
.canvas-console::-webkit-scrollbar-thumb,
.console-logs::-webkit-scrollbar-thumb,
.console-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 4px !important;
    border: 2px solid #04060c !important;
}

.canvas-workspace::-webkit-scrollbar-thumb:hover,
.canvas-console::-webkit-scrollbar-thumb:hover,
.console-logs::-webkit-scrollbar-thumb:hover,
.console-panel::-webkit-scrollbar-thumb:hover {
    background: var(--secondary) !important;
}

/* Compatibilidad con Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) #04060c;
}

/* Ocultar botones de flechas de los scrollbars nativos */
::-webkit-scrollbar-button {
    display: none !important;
}

/* Ocultar cursor por defecto en toda la página */
body, a, button, select, input, textarea, .logo, .social-btn, .workflow-selector-item, .node-card, .team-card, .btn {
    cursor: none !important;
}

/* Cursor Personalizado Estilo N8N */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s;
}

.custom-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(var(--x-glow, -100px), var(--y-glow, -100px), 0) translate(-50%, -50%);
    box-shadow: 0 0 12px var(--secondary-glow);
    will-change: transform;
    opacity: 0;
    transition: transform 0.08s ease-out, width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s, opacity 0.3s;
}

/* Efectos al pasar sobre elementos clicables / interactivos */
.custom-cursor.hover {
    background-color: var(--secondary);
    width: 12px;
    height: 12px;
}

.custom-cursor-glow.hover {
    border-color: var(--primary);
    transform: translate3d(var(--x-glow, -100px), var(--y-glow, -100px), 0) translate(-50%, -50%) scale(1.4);
    background-color: rgba(255, 109, 90, 0.06);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Efectos al pasar sobre campos de entrada de texto */
.custom-cursor.text-hover {
    background-color: var(--text-main);
    width: 2px;
    height: 18px;
    border-radius: 0;
}

.custom-cursor-glow.text-hover {
    opacity: 0 !important;
}

/* Estado de click (micro-animación al pulsar) */
.custom-cursor.click {
    transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%) scale(0.6);
}

.custom-cursor-glow.click {
    transform: translate3d(var(--x-glow, -100px), var(--y-glow, -100px), 0) translate(-50%, -50%) scale(0.8);
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
}

