/* ==========================================
   NODEFLOW – Premium CSS Design System
   ========================================== */

:root {
    /* Color palette */
    --bg-dark: #030508;
    --bg-section: #060a12;
    --bg-card: rgba(10, 18, 30, 0.75);
    --primary: #00e5ff;
    --secondary: #7000ff;
    --accent: #ff3cac;
    --text-main: #f1f5f9;
    --text-muted: #64748b;
    --text-soft: #94a3b8;

    /* Glow */
    --glow-primary: 0 0 25px rgba(0, 229, 255, 0.35);
    --glow-secondary: 0 0 25px rgba(112, 0, 255, 0.35);
    --glow-accent: 0 0 25px rgba(255, 60, 172, 0.35);

    /* Glass */
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-blur: blur(16px);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;

    --container-width: 1200px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 20px;
}

/* ==========================================  RESET & BASE  */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================  HEADER  */
header {
    padding: 1.4rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 5, 8, 0.75);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.9rem 0;
    background: rgba(3, 5, 8, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================  BUTTONS  */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(112, 0, 255, 0.45);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-card {
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-card:hover {
    background: var(--primary);
    color: #000;
}

/* ==========================================  BADGE  */
.badge {
    background: rgba(0, 229, 255, 0.07);
    color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.badge.pulse {
    animation: pulse-badge 2.5s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 229, 255, 0);
    }
}

/* ==========================================  SECTION HEADERS  */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.section-header h2 span,
h2 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto;
}

section {
    padding: 110px 0;
}

/* ==========================================  HERO  */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    background: radial-gradient(ellipse at 15% 30%, rgba(112, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 70%, rgba(0, 229, 255, 0.07) 0%, transparent 50%);
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 2rem;
}

#hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

#hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero p {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-unit {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.stat p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero visual card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.iso-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 340px;
}

.glow-box {
    box-shadow: var(--glow-secondary);
}

.iso-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c840;
}

.iso-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-family: monospace;
}

.iso-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.flow-node {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.flow-node:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.06);
}

.node-icon {
    font-size: 1.2rem;
}

.flow-node.trigger {
    border-color: rgba(0, 229, 255, 0.35);
}

.flow-node.process {
    border-color: rgba(112, 0, 255, 0.35);
}

.flow-node.output {
    border-color: rgba(40, 200, 64, 0.35);
}

.flow-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
    opacity: 0.5;
}

.iso-card__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: #28c840;
    box-shadow: 0 0 6px #28c840;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(40, 200, 64, 0);
    }
}

/* Float animation */
@keyframes float-anim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.animate-float {
    animation: float-anim 5s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% {
        opacity: 1;
        top: 5px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ==========================================  CÓMO FUNCIONA  */
#como-funciona {
    background: var(--bg-section);
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 229, 255, 0.08);
    line-height: 1;
    margin-bottom: 0.5rem;
    pointer-events: none;
    user-select: none;
}

.step-content {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.step-content:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-content h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.step-connector {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin-top: 80px;
    opacity: 0.25;
}

/* ==========================================  CATÁLOGO / SERVICIOS  */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-radius: var(--radius);
}

.card--leadgen .card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.1), transparent 65%);
}

.card--n8n .card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(112, 0, 255, 0.12), transparent 65%);
}

.card--web .card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(255, 189, 46, 0.08), transparent 65%);
}

.card--seo .card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(255, 60, 172, 0.08), transparent 65%);
}

.card:hover .card-glow {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.3);
}

.badge--leadgen {
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary);
    border-color: rgba(0, 229, 255, 0.2);
}

.badge--n8n {
    background: rgba(112, 0, 255, 0.08);
    color: #a855f7;
    border-color: rgba(112, 0, 255, 0.2);
}

.badge--web {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
}

.badge--seo {
    background: rgba(255, 60, 172, 0.08);
    color: var(--accent);
    border-color: rgba(255, 60, 172, 0.2);
}

.card-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.card>p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    font-size: 0.82rem;
    color: var(--text-soft);
    padding: 0.3rem 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1rem;
    color: var(--text-soft);
}

.price strong {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--primary);
}

.price span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================  POR QUÉ NODEFLOW  */
#por-que {
    background: var(--bg-section);
}

.pq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.pq-left h2 {
    font-family: var(--font-title);
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.pq-left p {
    color: var(--text-soft);
    font-size: 1rem;
}

.pq-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.pq-item:hover {
    border-color: var(--primary);
}

.pq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.pq-item h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.pq-item p {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* ==========================================  TECH STACK  */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.tech-item {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.tech-item:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-3px);
}

.tech-emoji {
    font-size: 1.4rem;
}

/* ==========================================  CONTACTO  */
#contacto {
    background: radial-gradient(ellipse at 80% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-left h2 {
    font-family: var(--font-title);
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.contact-left p {
    color: var(--text-soft);
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.ci-icon {
    font-size: 1.2rem;
}

/* Form */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.93rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-group select option {
    background: #0d1420;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(40, 200, 64, 0.1);
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: 10px;
    color: #28c840;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* ==========================================  FOOTER  */
#footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-section);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.75rem;
    max-width: 240px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links h4 {
    font-family: var(--font-title);
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================  REVEAL ANIMATIONS  */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================  EDUCATIONAL / CONCEPTOS  */
#conceptos {
    background: var(--bg-section);
}

.concept-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.concept-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-soft);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.concept-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.concept-tab.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(112, 0, 255, 0.12));
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.15);
}

.concept-panels {
    position: relative;
}

.concept-panel {
    display: none;
    animation: fadeUp 0.4s ease;
}

.concept-panel.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.concept-left h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.concept-def {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.concept-def strong {
    color: var(--text-main);
}

.concept-def em {
    color: var(--primary);
    font-style: normal;
}

.concept-cases h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 1.5rem 0 1rem;
}

.case-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.case-item:hover {
    border-color: rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.04);
}

.case-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.case-item strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.case-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* Demo terminal */
.concept-demo {
    background: #090d14;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.demo-header {
    background: #0d1420;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--glass-border);
}

.demo-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-family: monospace;
}

.demo-body {
    padding: 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-line {
    opacity: 0;
    animation: typeIn 0.4s ease forwards;
    color: var(--text-soft);
}

.concept-panel.active .demo-line {
    animation-delay: 0.1s;
}

.concept-panel.active .anim-delay-1 {
    animation-delay: 0.4s;
}

.concept-panel.active .anim-delay-2 {
    animation-delay: 0.7s;
}

.concept-panel.active .anim-delay-3 {
    animation-delay: 1.0s;
}

.concept-panel.active .anim-delay-4 {
    animation-delay: 1.3s;
}

.concept-panel.active .anim-delay-5 {
    animation-delay: 1.6s;
}

.concept-panel.active .anim-delay-6 {
    animation-delay: 1.9s;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dm-kw {
    color: var(--primary);
    font-weight: 700;
}

.dm-ok {
    color: #28c840;
}

.dm-val {
    color: #a855f7;
}

.dm-neutral {
    color: var(--text-muted);
}

/* n8n mini flow */
.demo-flow {
    align-items: center;
}

.mini-flow-node {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid;
}

.mini-flow-node.trigger {
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--primary);
    background: rgba(0, 229, 255, 0.06);
}

.mini-flow-node.ai {
    border-color: rgba(112, 0, 255, 0.4);
    color: #a855f7;
    background: rgba(112, 0, 255, 0.06);
}

.mini-flow-node.output {
    border-color: rgba(40, 200, 64, 0.4);
    color: #28c840;
    background: rgba(40, 200, 64, 0.06);
}

.mini-flow-node.split {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.mini-flow-arrow {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Web comparison */
.demo-compare {
    display: flex;
    gap: 0.75rem;
}

.cmp-col {
    flex: 1;
    border-radius: 8px;
    padding: 0.75rem;
}

.cmp-col.bad {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cmp-col.good {
    background: rgba(40, 200, 64, 0.06);
    border: 1px solid rgba(40, 200, 64, 0.2);
}

.cmp-label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cmp-col.bad .cmp-label {
    color: #ef4444;
}

.cmp-col.good .cmp-label {
    color: #28c840;
}

.cmp-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.2rem 0;
}

/* Stats row */
.concept-stat-row {
    display: flex;
    gap: 1rem;
}

.c-stat {
    flex: 1;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.85rem;
    text-align: center;
}

.c-stat strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--primary);
}

.c-stat span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* CTA inline */
.concept-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-soft);
    font-size: 1rem;
}

.cta-inline {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.cta-inline:hover {
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

/* ==========================================  MID CTA BAND  */
#mid-cta {
    padding: 0;
}

.mid-cta-band {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(112, 0, 255, 0.12));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.mid-cta-text h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    margin: 0.4rem 0 0.5rem;
}

.mid-cta-text p {
    color: var(--text-soft);
    font-size: 0.93rem;
    margin: 0;
}

/* ==========================================  TESTIMONIOS  */
#testimonios {
    background: var(--bg-section);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.testi-featured {
    border-color: rgba(0, 229, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(112, 0, 255, 0.05));
}

.testi-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.testi-header>div:nth-child(2) {
    flex: 1;
}

.testi-header strong {
    display: block;
    font-size: 0.9rem;
}

.testi-header span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.testi-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    white-space: nowrap;
}

.testi-quote {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.65;
    flex-grow: 1;
    font-style: italic;
    margin: 0;
}

.testi-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.testi-metric {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary);
}

.testi-result span:last-child {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Metrics band */
.metrics-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    flex-wrap: wrap;
}

.metric-item {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.metric-num {
    display: block;
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric-div {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* ==========================================  PRECIOS  */
#precios {
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.pricing-popular {
    border-color: rgba(0, 229, 255, 0.4);
    background: linear-gradient(160deg, rgba(0, 229, 255, 0.06), rgba(112, 0, 255, 0.06));
    transform: scale(1.03);
}

.pricing-popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-name {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.pricing-price {
    font-family: var(--font-title);
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-top: 0.4rem;
    display: inline-block;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-weight: 400;
}

.pricing-desc {
    color: var(--text-soft);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.pricing-features li.feat-off {
    color: var(--text-muted);
    opacity: 0.5;
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    transition: var(--transition);
    margin-top: auto;
}

.btn-pricing:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 229, 255, 0.06);
}

.btn-pricing-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000 !important;
    border: none;
    font-weight: 700;
}

.btn-pricing-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================  FAQ  */
#faq {
    background: var(--bg-section);
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item.open {
    border-color: rgba(0, 229, 255, 0.3);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1.3rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.25s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--primary);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* ==========================================  RESPONSIVE  */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .pq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
        background: linear-gradient(to bottom, var(--primary), var(--secondary));
    }

    .concept-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-popular {
        transform: none;
    }

    .pricing-popular:hover {
        transform: translateY(-4px);
    }

    .mid-cta-band {
        flex-direction: column;
        text-align: center;
    }

    .metrics-band {
        gap: 1rem;
    }

    .metric-div {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(3, 5, 8, 0.98);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    #hero h1 {
        font-size: 2.4rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}