/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #0c192b;
    --bg-secondary: #122239;
    --bg-tertiary: #1d3150;
    --bg-card: rgba(29, 49, 80, 0.5);
    --bg-card-hover: rgba(29, 49, 80, 0.75);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(198, 160, 62, 0.3);
    --border-glow: rgba(59, 130, 246, 0.15);

    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-hover: #2563eb;
    
    --secondary: #c6a03e;
    --secondary-rgb: 198, 160, 62;
    --secondary-hover: #a58330;
    
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    
    --text-main: #ffffff;
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;

    --font-primary: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --glow-blue: 0 0 30px rgba(59, 130, 246, 0.25);
    --glow-cyan: 0 0 30px rgba(198, 160, 62, 0.25);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

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

/* ==========================================================================
   DECORATIVE BACKGROUND GLOW BLOBS
   ========================================================================== */
.glow-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -999;
}

.glow-bg-1, .glow-bg-2, .glow-bg-3 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(150px);
    opacity: 0.12;
}

.glow-bg-1 {
    top: 5%;
    right: -100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-bg-2 {
    top: 40%;
    left: -200px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.glow-bg-3 {
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.gradient-text {
    color: var(--text-main);
}

.highlight-blue {
    color: var(--primary);
}

.section-tag {
    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.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.section-tag.glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.max-600 {
    max-width: 600px;
}

.max-800 {
    max-width: 800px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 170px;
    padding-bottom: 90px;
    position: relative;
}

.hero-content {
    max-width: 580px;
}

.tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* HERO VISUAL (FLOW MACHINE) */
.hero-visual {
    position: relative;
    width: 100%;
}

.machine-wrapper {
    position: relative;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.machine-card {
    background: rgba(11, 15, 25, 0.9);
    border-radius: 15px;
    padding: 2.25rem 2rem;
    overflow: hidden;
    position: relative;
}

.card-header-tech {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.tech-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

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

.tech-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    letter-spacing: 1px;
}

.machine-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.flow-connector-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;
    transform: translateY(-62%);
    z-index: 1;
    pointer-events: none;
}

.dash-anim {
    stroke-dashoffset: 100;
    animation: dash 5s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-icon {
    width: 22px;
    height: 22px;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0.75rem;
}

.step-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
}

/* Flow Step Interactive States (Triggered by JS script periodically) */
.flow-step.active .step-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.flow-step.active .step-label {
    color: var(--primary);
}

.machine-dashboard-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.dashboard-metric {
    margin-bottom: 1rem;
}

.dashboard-metric:last-child {
    margin-bottom: 0;
}

.metric-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.35rem;
}

.metric-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.metric-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-bar-fill.alert {
    background: linear-gradient(90deg, var(--danger) 0%, #f43f5e 100%);
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-trend {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.metric-trend.up {
    color: var(--success);
}

.metric-trend.positive {
    color: var(--success);
}

/* ==========================================================================
   PROBLEMA SECTION
   ========================================================================== */
.problema-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
}

.problem-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), var(--border-glow);
}

.problem-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.problem-card:hover .problem-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.problem-icon {
    width: 20px;
    height: 20px;
}

.problem-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.problem-card-text {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quote-banner {
    margin-top: 4.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-icon {
    color: rgba(59, 130, 246, 0.15);
    display: inline-flex;
    margin-bottom: 1rem;
}

.quote-icon svg {
    width: 36px;
    height: 36px;
}

.quote-text {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   DIAGNÓSTICO SECTION
   ========================================================================== */
.diagnostico-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.diagnostico-info {
    max-width: 560px;
}

.diagnostico-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.diagnostico-questions-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.diagnostico-questions-list li {
    display: flex;
    gap: 1.25rem;
}

.q-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.q-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.q-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* QUIZ / CALCULATOR BOX */
.diagnostico-quiz-container {
    display: flex;
    justify-content: flex-end;
}

.quiz-box {
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    min-width: 0;
}

.quiz-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px 16px 0 0;
}

.quiz-header {
    margin-bottom: 2rem;
}

.quiz-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.quiz-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.quiz-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Custom Sliders */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    border: 2px solid white;
    transition: var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--secondary);
}

.quiz-select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quiz-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

/* Results Area */
.quiz-results {
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.result-card {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-card.danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.result-card.success {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.result-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.result-value {
    font-size: 1.2rem;
    font-weight: 800;
}

.result-card.danger .result-value {
    color: var(--danger);
}

.result-card.success .result-value {
    color: var(--success);
}

.result-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   METODOLOGIA SECTION
   ========================================================================== */
.metodologia-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.methodology-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.methodology-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), var(--border-glow);
}

.pilar-num {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(198, 160, 62, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
    user-select: none;
    line-height: 1;
    transition: var(--transition-smooth);
}

.methodology-card:hover .pilar-num {
    color: rgba(198, 160, 62, 0.09);
    transform: scale(1.1) rotate(5deg);
}

.pilar-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    position: relative;
}

.pilar-objective-label, .pilar-tools-label, .pilar-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pilar-question {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    border-left: 2px solid var(--secondary);
    padding-left: 0.75rem;
}

.pilar-objective {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.pilar-result {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--secondary);
}

.pilar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.25rem 0;
}

.pilar-tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pilar-tools-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pilar-tools-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: inline-block;
}

/* ==========================================================================
   DIFERENCIAL SECTION
   ========================================================================== */
.diferencial-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.comparison-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.comparison-card.agency {
    border-color: rgba(239, 68, 68, 0.15);
}

.comparison-card.engineering {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.7) 0%, rgba(11, 25, 47, 0.6) 100%);
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.05);
    max-width: 680px;
    width: 100%;
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 2.5rem;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-badge i {
    width: 14px;
    height: 14px;
    animation: spin 10s linear infinite;
    display: inline-flex;
}

.badge-red {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.badge-blue {
    background: var(--primary);
    color: white;
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.comparison-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.icon-x {
    color: var(--danger);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.icon-check {
    color: var(--success);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.comparison-list h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.comparison-list p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 3px;
}

.diferencial-quote {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.gear-spinner {
    color: var(--primary);
    animation: spin 15s linear infinite;
    display: inline-flex;
}

.gear-spinner svg {
    width: 40px;
    height: 40px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.diferencial-quote-text {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 600px;
    color: var(--text-main);
}

/* ==========================================================================
   RESULTADOS SECTION
   ========================================================================== */
.resultados-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.result-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
}

.result-item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), var(--border-glow);
}

.result-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(198, 160, 62, 0.08);
    border: 1px solid rgba(198, 160, 62, 0.15);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.result-item-card:hover .result-icon-box {
    background: rgba(198, 160, 62, 0.15);
    transform: scale(1.05);
}

.result-icon-color {
    width: 20px;
    height: 20px;
}

.result-item-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.result-item-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   CTA / FORM SECTION
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(11, 21, 42, 0.4) 100%);
}

.cta-grid-wrapper {
    align-items: flex-start;
}

.cta-info {
    max-width: 540px;
    padding-top: 1.5rem;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-bullets {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bullet-icon {
    color: var(--secondary);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.bullet-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* FORM STYLING */
.cta-form-container {
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    min-width: 0;
}

.cta-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px 16px 0 0;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.925rem;
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    background: rgba(17, 24, 39, 0.9);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Success Card */
.form-success-box {
    text-align: center;
    padding: 2rem 0;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-wrapper {
    color: var(--success);
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.success-icon {
    width: 60px;
    height: 60px;
}

.form-success-box h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.form-success-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: #05070a;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-grid h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-main);
    padding-left: 4px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li, .footer-contact a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--text-main);
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.separator {
    color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Entry Transitions from left/right */
.fade-in-left {
    opacity: 0;
    transform: translateX(-45px);
    animation: sweepIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(45px);
    animation: sweepIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   RESPONSIVE STYLES (MOBILE-FIRST REFINEMENTS)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }
    
    .hero-container {
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .diagnostico-quiz-container {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }

    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .diferencial-quote-text {
        font-size: 1.35rem;
    }

    /* Header Nav for Mobile */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        z-index: 99;
        display: none;
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        border-top: 1px solid var(--border-color);
        animation: slideDownMenu 0.3s ease-out forwards;
    }

    .nav-menu.active {
        display: flex;
    }

    @keyframes slideDownMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .header-cta {
        display: none; /* Contained or hidden on tablet view */
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hamburger Active State */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Flow Machine adjustments */
    .machine-card {
        padding: 1.5rem 1rem;
    }
    .machine-flow {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem 0;
    }
    .flow-connector-line {
        display: none; /* hide SVG connection lines on vertical stack */
    }
    
    .flow-step {
        width: 100%;
        flex-direction: row;
        gap: 1.25rem;
        text-align: left;
        align-items: center;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        background: rgba(255,255,255,0.01);
        border: 1px solid rgba(255,255,255,0.03);
    }

    .flow-step.active {
        background: rgba(59, 130, 246, 0.05);
        border-color: rgba(59, 130, 246, 0.2);
    }

    .flow-step .step-icon-wrapper {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .flow-step .step-label {
        margin-top: 0;
    }

    .flow-step-meta {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-contact {
        grid-column: span 1;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-form-container {
        padding: 1.5rem;
    }

    .quiz-box {
        padding: 1.5rem;
    }
}
