/* ==========================================================================
   T-Virtual Web Redesign Style - Inspired by n8n.io & Identity Manual
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette - MSS Asociados Branding */
    --color-primary: #0056b3;        /* Azul */
    --color-primary-dark: #003d82;   /* Darker Blue */
    --color-primary-navy: #800020;   /* Vinotinto Accent */
    --color-bg-dark: #f8f9fa;        /* Light background */
    --color-accent-light: #8e1628;   /* Vinotinto */
    --color-slate: #e9ecef;          /* Light gray surface */
    
    /* Support Colors */
    --color-text-light: #2c3e50;     /* Dark text for light mode */
    --color-text-muted: #6c757d;
    --color-glass-bg: rgba(255, 255, 255, 0.85);
    --color-glass-border: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-headings: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Container Width */
    --container-width: 1200px;
}

/* Reset & Basic Styles */
html {
    scroll-behavior: smooth;
}

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

section[id], div[id] {
    scroll-margin-top: 100px;
}

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

body {
    background-color: var(--color-bg-dark);
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-color: #f8fafc; /* Color base claro devuelto para que no se vea oscuro */
    color: var(--color-text-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   Premium VIP Background Effects 
   ========================================= */

/* Sutil textura de ruido estilo Apple/Premium */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E"); /* Grano equilibrado */
    pointer-events: none;
    z-index: 9999; /* Sobre todo pero no interactuable */
    opacity: 0.8;
}

/* Efecto Aurora Boreal en la cabecera */
.hero {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 86, 179, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(128, 0, 32, 0.12) 0%, transparent 50%);
    filter: blur(60px); /* Blur restaurado para mayor elegancia */
    z-index: -1;
    animation: auroraRotate 8s linear infinite; /* Animación más rápida */
    pointer-events: none;
}

@keyframes auroraRotate {
    0% { transform: rotate(0deg) scale(1) translate(0, 0); }
    33% { transform: rotate(120deg) scale(1.3) translate(5%, 10%); }
    66% { transform: rotate(240deg) scale(0.8) translate(-10%, -5%); }
    100% { transform: rotate(360deg) scale(1) translate(0, 0); }
}

/* Animated Background Lights (Mejoradas para verse VIP) */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-slate);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.25;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 79, 56, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 79, 56, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-light);
    border: 1.5px solid var(--color-glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-primary);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Section Common Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Modern Badge */
.badge-modern {
    display: inline-block;
    background: rgba(2, 148, 232, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(2, 148, 232, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-headings);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Header / Floating Capsule Navbar & Dropdowns (n8n.io style)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-width);
    z-index: 1000;
    background: rgba(18, 18, 26, 0.7); /* Match n8n's dark dashboard tone */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Clean thin border */
    border-radius: 50px;
    padding: 0 1.25rem;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    top: 0.6rem;
    background: rgba(10, 10, 15, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px; /* Perfect n8n menu height */
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 28px; /* Large horizontal logo size */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-grow: 1;
    justify-content: flex-end;
    margin-right: 1.25rem;
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 500;
    color: #a3a7c1; /* Muted color */
    font-size: 0.8rem;
    position: relative;
    padding: 0.3rem 0;
    letter-spacing: 0.1px;
    text-transform: capitalize;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-link:hover, .nav-link.active {
    color: #fff; /* Crisp white on active/hover */
}

.nav-link::after {
    display: none;
}

/* flat link matching n8n sign in option */
.nav-link.highlight {
    background: transparent;
    color: #a3a7c1;
    padding: 0.3rem 0.5rem;
    border-radius: 0;
    border: none;
}

.nav-link.highlight:hover {
    background: transparent;
    color: #fff;
}

/* Header Actions container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Blue gradient CTA button matching brand colors */
#btn-header-cta {
    font-size: 0.78rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0294e8 0%, #0062ae 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 148, 232, 0.3);
    border: none;
    font-weight: 600;
}

#btn-header-cta:hover {
    background: linear-gradient(135deg, #23adfc 0%, #0070c7 100%);
    box-shadow: 0 6px 16px rgba(2, 148, 232, 0.45);
    transform: translateY(-1px);
}

/* Dropdown Menu System */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    font-size: 0.6rem;
    transition: var(--transition-fast);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 12, 33, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    min-width: 200px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 0.75rem 0;
    z-index: 1001;
}

.dropdown-content a {
    color: var(--color-text-muted);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-content a:hover {
    background: rgba(2, 148, 232, 0.1);
    color: var(--color-text-light);
    padding-left: 1.5rem;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.25s ease forwards;
}

.nav-dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Country Selector Inside Nav */
.country-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
    font-family: var(--font-headings);
    font-weight: 500;
    color: #a3a7c1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.country-selector:hover {
    color: #fff;
}

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

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-normal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 86, 179, 0.35) 0%, rgba(128, 0, 32, 0.25) 45%, rgba(0, 180, 216, 0.15) 65%, transparent 80%);
    top: -200px;
    right: -150px;
    pointer-events: none;
    z-index: 1;
    filter: blur(70px);
    animation: alboreadaPulse 10s ease-in-out infinite alternate;
}

@keyframes alboreadaPulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.12) translate(-30px, 20px);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.95) translate(20px, -15px);
        opacity: 0.75;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-num {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Hero Visual & Mockup */
.mockup-container {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mockup-header {
    background: rgba(25, 30, 76, 0.4);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-glass-border);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.mockup-dot:nth-child(1) { background-color: #ff5f56; }
.mockup-dot:nth-child(2) { background-color: #ffbd2e; }
.mockup-dot:nth-child(3) { background-color: #27c93f; }

.mockup-url {
    background: rgba(25, 30, 76, 0.5);
    border-radius: 4px;
    padding: 0.2rem 2rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: 2rem;
    font-family: monospace;
}

/* Dashboard Mockup Inner CSS styling */
.dashboard-preview {
    display: grid;
    grid-template-columns: 60px 1fr;
    height: 320px;
    font-size: 0.8rem;
}

.dash-sidebar {
    background: rgba(25, 30, 76, 0.3);
    border-right: 1px solid var(--color-glass-border);
    padding: 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.side-item {
    width: 28px;
    height: 28px;
    background: rgba(211, 218, 246, 0.1);
    border-radius: 6px;
}

.side-item.active {
    background: var(--color-primary);
}

.dash-main {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-header-row {
    display: flex;
    justify-content: space-between;
}

.dash-title-preview {
    font-weight: 700;
    color: var(--color-primary);
}

.dash-user-preview {
    width: 32px;
    height: 32px;
    background: rgba(211, 218, 246, 0.15);
    border-radius: 50%;
}

.dash-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-card {
    background: rgba(211, 218, 246, 0.05);
    border: 1px solid var(--color-glass-border);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-card-title {
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

.dash-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.dash-card-value small {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.dash-chart-line {
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(2, 148, 232, 0.1) 100%);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.dash-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 12px;
}

.dash-chart-bars span {
    display: inline-block;
    width: 6px;
    border-radius: 2px;
    background: var(--color-primary-dark);
}

.dash-chart-bars span:nth-child(1) { height: 4px; }
.dash-chart-bars span:nth-child(2) { height: 8px; }
.dash-chart-bars span:nth-child(3) { height: 6px; }
.dash-chart-bars span:nth-child(4) { height: 12px; background-color: var(--color-primary); }

.dash-table-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-row {
    height: 10px;
    background: rgba(211, 218, 246, 0.08);
    border-radius: 3px;
}

.table-row.header {
    height: 12px;
    background: rgba(211, 218, 246, 0.15);
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */
.solutions-section {
    padding: 6rem 0;
    background: rgba(25, 30, 76, 0.2);
}

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

.solutions-showcase.split-solutions {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.solution-item {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.solution-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 35px rgba(2, 148, 232, 0.15);
}

.solution-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.solution-item p {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.solution-icon-box {
    display: inline-flex;
    background: rgba(2, 148, 232, 0.1);
    color: var(--color-primary);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.sol-icon {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   Trust Section (Quienes confían en nosotros)
   ========================================================================== */
.trust-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(2, 148, 232, 0.04) 0%, rgba(25, 30, 76, 0.4) 100%);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
}

.trust-container {
    text-align: center;
    max-width: 800px;
}

.trust-content h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.trust-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.trust-highlight {
    font-size: 1.15rem;
    color: var(--color-text-light) !important;
}

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

.trust-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    padding: 2.2rem 1.8rem;
    border-radius: 16px;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.feature-icon-wrapper {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing {
    padding: 6rem 0;
}

.pricing-group-title {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-accent-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.pricing-grid.single-plan {
    display: block;
}

.pricing-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.premium-card {
    border-color: var(--color-primary);
    box-shadow: 0 15px 45px rgba(2, 148, 232, 0.15);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-header-plan {
    text-align: center;
    border-bottom: 1px solid var(--color-glass-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-header-plan h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.price-val-box {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 1rem 0;
}

.price-val-box .price-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-headings);
}

.price-val-box .price-per {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-left: 0.3rem;
    margin-bottom: 0.5rem;
}

.price-sub {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.pricing-features-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.annually-discount {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-features-list ul {
    list-style: none;
}

.pricing-features-list li {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features-list li::before {
    content: '•';
    position: absolute;
    left: 0.3rem;
    color: var(--color-primary);
}

.pricing-features-list li.module-title {
    font-weight: 700;
    color: var(--color-accent-light);
    margin-top: 1.2rem;
    padding-left: 0;
}

.pricing-features-list li.module-title::before {
    display: none;
}

.pricing-features-list li.module-item {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    padding-left: 0;
}

.pricing-features-list li.module-item::before {
    display: none;
}

.pricing-choice-cta {
    text-align: center;
    margin-top: 5rem;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    padding: 3.5rem 2rem;
    border-radius: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-choice-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pricing-choice-cta p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Courses Section
   ========================================================================== */
.courses-section {
    padding: 6rem 0;
    background: rgba(25, 30, 76, 0.2);
}

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

.course-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.course-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(2, 148, 232, 0.1);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.course-card h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.course-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    border-top: 1px solid var(--color-glass-border);
    padding-top: 1rem;
}

/* ==========================================================================
   Noticias Section
   ========================================================================== */
.noticias-section {
    padding: 6rem 0;
}

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

.noticia-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.noticia-card:hover {
    border-color: var(--color-primary);
}

.noticia-image-wrapper {
    width: 100%;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-glass-border);
    background: rgba(25, 30, 76, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
}

.noticia-image-wrapper:hover {
    border-color: rgba(2, 148, 232, 0.4);
    transform: scale(1.02);
}

.noticia-img {
    width: 100%;
    height: 160px;
    display: block;
    cursor: zoom-in;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05);
    transition: var(--transition-normal);
}

.noticia-img:hover {
    filter: brightness(1.05) contrast(1.1);
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.noticia-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.noticia-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.author-info {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-glass-border);
    padding-top: 0.8rem;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(25, 30, 76, 0.8) 0%, rgba(2, 148, 232, 0.08) 100%);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
}

.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-inline {
    display: flex;
    gap: 1rem;
}

.form-group-inline input {
    background: rgba(25, 30, 76, 0.5);
    border: 1px solid var(--color-glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    flex-grow: 1;
}

.form-group-inline input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-check input {
    width: 16px;
    height: 16px;
}

.privacy-check label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Payment Methods Section
   ========================================================================== */
.payment-methods {
    padding: 6rem 0;
}

.payments-box {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.payments-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.payments-box strong {
    color: var(--color-text-light);
}

.payment-ctas {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 6rem 0;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.contact-info {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2, 148, 232, 0.08) 0%, rgba(25, 30, 76, 0.2) 100%);
    border-right: 1px solid var(--color-glass-border);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact-form-wrapper {
    padding: 4rem 3.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    background: rgba(25, 30, 76, 0.4);
    border: 1px solid var(--color-glass-border);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(2, 148, 232, 0.2);
}

.form-status {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.form-status.success {
    color: #27c93f;
}

.form-status.error {
    color: #ff5f56;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    position: relative;
    background: #090b15;
    background-image: radial-gradient(rgba(2, 148, 232, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    border-top: 1px solid var(--color-glass-border);
    padding: 6rem 0 5rem; /* extra bottom space for the floating button */
    overflow: hidden;
}

/* Footer brand rising gradient glow (n8n Style) */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120px);
    width: 90%;
    height: 260px;
    background: radial-gradient(ellipse at center, rgba(2, 148, 232, 0.22) 0%, rgba(0, 98, 174, 0.06) 50%, rgba(7, 9, 19, 0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}

/* Twinkle Sparkle Stars (n8n Style) */
.twinkle-star {
    position: absolute;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    animation: starTwinkle 3.5s infinite ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.8;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    }
}

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

.footer-brand img {
    height: 45px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

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

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(211, 218, 246, 0.08);
    border: 1px solid var(--color-glass-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.social-icons a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--color-glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

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

.mobile-mockup-logo {
    display: none;
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
        filter: drop-shadow(0 0 8px rgba(2, 148, 232, 0.25));
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(2, 148, 232, 0.6));
    }
}

/* ==========================================================================
   Responsive / Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container, .contact-box, .newsletter-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .solutions-showcase, .features-grid, .pricing-grid, .courses-grid, .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-showcase.split-solutions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* === CONTAINER === */
    .container {
        padding: 0 1rem;
    }

    /* === HERO === */
    .hero {
        padding: 7rem 0 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Hide the mockup/visual on mobile – content card is enough */
    .hero-visual {
        display: none !important;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--color-bg-dark);
        border-bottom: 1px solid var(--color-glass-border);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.4rem;
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
    }

    /* Compact but tappable nav items */
    .nav-menu .nav-link,
    .nav-menu .dropdown-toggle,
    .nav-menu .country-selector {
        padding: 0.55rem 0.5rem;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-menu .nav-link:last-child,
    .nav-menu .country-selector:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown .dropdown-content {
        display: none;           /* Hidden by default on mobile */
        position: relative;
        left: 0;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: none;
        padding: 0.2rem 0;
        width: 100%;
        text-align: center;
    }

    /* Show dropdown only when .mobile-open is present on the wrapper */
    .nav-dropdown.mobile-open .dropdown-content {
        display: block;
        animation: none;
    }

    /* Sub-items styling */
    .nav-dropdown.mobile-open .dropdown-content a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        color: var(--color-text-muted);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-dropdown.mobile-open .dropdown-content a:last-child {
        border-bottom: none;
    }

    .nav-dropdown.mobile-open .dropdown-content a:hover,
    .nav-dropdown.mobile-open .dropdown-content a:active {
        color: var(--color-text-light);
        background: rgba(2, 148, 232, 0.08);
    }

    /* Rotate arrow when open */
    .nav-dropdown.mobile-open .dropdown-toggle .arrow {
        transform: rotate(180deg);
        display: inline-block;
        transition: transform 0.2s ease;
    }

    /* Disable CSS :hover on mobile (JS .mobile-open handles it) */
    .nav-dropdown:hover .dropdown-content {
        display: none;
    }

    .nav-dropdown.mobile-open:hover .dropdown-content {
        display: block;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .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);
    }
    
    .hero-content {
        padding: 2rem 1.2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1, h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    h2 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h3 {
        font-size: 1.2rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-ctas {
        flex-direction: column !important;
        gap: 0.8rem !important;
        width: 100%;
        margin-bottom: 3rem !important;
    }
    
    .hero-ctas .btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
    
    .solutions-showcase, .solutions-showcase.split-solutions, .features-grid, .pricing-grid, .courses-grid, .noticias-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-inline {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info, .contact-form-wrapper {
        padding: 2.5rem 1.5rem;
    }

    /* Fully Responsive Browser Mockup on Mobile Views */
    .mockup-container {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        border: 1px solid var(--color-glass-border) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
        margin: 0 auto !important;
    }

    .mockup-header {
        background: rgba(25, 30, 76, 0.4) !important;
        height: auto !important;
        padding: 0.6rem 0.8rem !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        border-bottom: 1px solid var(--color-glass-border) !important;
    }

    .mockup-header::before, .mockup-header::after {
        display: none !important;
    }

    .mockup-dot {
        display: inline-block !important;
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        margin-right: 4px !important;
    }

    .mockup-url {
        display: inline-block !important;
        margin-left: 1.5rem !important;
        padding: 0.15rem 1rem !important;
        font-size: 0.65rem !important;
    }
    .mockup-content {
        height: auto !important;
        aspect-ratio: 16 / 9.5 !important;
        border-radius: 0 !important;
    }

    /* Hide video and display brand logo on mobile viewports */
    #hero-video {
        display: none !important;
    }

    .mobile-mockup-logo {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background: #0b0c16 !important;
        padding: 1.5rem !important;
    }

    .mobile-logo-img {
        max-width: 160px !important;
        height: auto !important;
        opacity: 0.9;
        animation: pulseLogo 3s infinite ease-in-out;
    }

    /* === SECTIONS === */
    section {
        padding: 3.5rem 0 !important;
    }

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

    .section-header h2 {
        font-size: 1.45rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Pricing cards full width */
    .pricing-card {
        padding: 1.8rem 1.2rem;
    }

    /* Trust section */
    .trust-container {
        grid-template-columns: 1fr !important;
    }

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

    /* Ensure footer has enough bottom space so the floating button never covers content */
    .main-footer {
        padding-bottom: 5rem !important;
    }

    /* Floating button on mobile: slightly smaller & safe-area aware */
    #float-login-btn {
        bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
        padding: 0.4rem 0.9rem !important;
        font-size: 0.72rem !important;
        gap: 0.35rem !important;
        box-shadow: 0 3px 12px rgba(2, 148, 232, 0.45), 0 0 0 0 rgba(2, 148, 232, 0.3);
    }

    #float-login-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* === 480px – Very small phones === */
@media (max-width: 480px) {
    .container {
        padding: 0 0.85rem;
    }

    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero-content h1, h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    .hero-ctas {
        flex-direction: column !important;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100% !important;
        justify-content: center;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-num {
        font-size: 1.35rem;
    }

    .badge-modern {
        font-size: 0.7rem;
    }

    /* Footer on very small screens */
    .main-footer {
        padding-bottom: 4.5rem !important;
    }

    /* Floating button on very small phones */
    #float-login-btn {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        padding: 0.38rem 0.85rem !important;
        font-size: 0.7rem !important;
    }
}

/* ==========================================================================
   Module Captures & Lightbox Styling (n8n.io Dark Style)
   ========================================================================== */
.module-capture-wrapper {
    width: 100%;
    margin: 1.2rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-glass-border);
    background: rgba(25, 30, 76, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
}

.module-capture-wrapper:hover {
    border-color: rgba(2, 148, 232, 0.4);
    transform: scale(1.02);
}

.module-capture-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    object-fit: cover;
    max-height: 180px;
    filter: brightness(0.9) contrast(1.1);
    transition: var(--transition-normal);
}

.module-capture-img:hover {
    filter: brightness(1.05) contrast(1.15);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 33, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--color-text-light);
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Simulated Interactive UI Canvas Style (n8n.io Canvas flow)
   ========================================================================== */
.canvas-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 16px 16px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

.canvas-svg-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.flow-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2px;
    stroke-linecap: round;
}

/* Simulated execution pulsing signal animation on paths */
.flow-path.active-pulse {
    stroke: var(--color-primary);
    stroke-dasharray: 8, 120;
    animation: flowPulse 2.5s infinite linear;
    stroke-width: 3px;
}

@keyframes flowPulse {
    to {
        stroke-dashoffset: -128;
    }
}

.flow-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #171822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-headings);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flow-node:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(2, 148, 232, 0.3);
    transform: translateY(-2px);
}

.flow-node.active-neon {
    border-color: #0294e8;
    box-shadow: 0 0 15px rgba(2, 148, 232, 0.45);
}

.flow-node.success-neon {
    border-color: #27c93f;
    box-shadow: 0 0 15px rgba(39, 201, 63, 0.35);
}

.node-icon {
    font-size: 1rem;
}

.node-port {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #394a9e;
    border: 1px solid #101015;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.node-port.input {
    left: -4px;
}

.node-port.output {
    right: -4px;
}

.canvas-status-panel {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(18, 18, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    z-index: 4;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3a7c1;
}

.status-indicator.online {
    background: #27c93f;
    box-shadow: 0 0 8px #27c93f;
    animation: statusPulse 1.5s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Scroll-triggered animations (fade in on scroll class helper)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Global System-Wide Alboreada Background Aura */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 25%, rgba(0, 86, 179, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(128, 0, 32, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(0, 180, 216, 0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: -2;
    animation: globalAlboreadaFlow 18s ease-in-out infinite alternate;
}

@keyframes globalAlboreadaFlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.08) translate(-15px, 20px);
        opacity: 1;
    }
    100% {
        transform: scale(0.96) translate(15px, -15px);
        opacity: 0.85;
    }
}

/* ==========================================================================
   Moving Background Glow Lights / Spotlights (n8n Style)
   ========================================================================== */
.bg-focus-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.55;
}

.bg-focus-light.glow-blue {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.45) 0%, rgba(0, 86, 179, 0) 70%);
    top: 50px;
    right: -250px;
    animation: moveLightBlue 24s infinite alternate ease-in-out;
}

.bg-focus-light.glow-cyan {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.35) 0%, rgba(0, 180, 216, 0) 70%);
    bottom: -150px;
    left: -100px;
    animation: moveLightCyan 18s infinite alternate ease-in-out;
}

.bg-focus-light.glow-magenta {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.30) 0%, rgba(128, 0, 32, 0) 70%);
    top: 40%;
    left: 30%;
    animation: moveLightCyan 22s infinite alternate-reverse ease-in-out;
}

@keyframes moveLightBlue {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50vw, 150px) scale(1.1); /* Sweeps to the center/left */
    }
    100% {
        transform: translate(-100vw, -100px) scale(0.95); /* Finishes far left */
    }
}

@keyframes moveLightCyan {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(180px, -140px) scale(0.95);
    }
    100% {
        transform: translate(-80px, -240px) scale(1.1);
    }
}

/* ==========================================================================
   Floating Sticky "Iniciar Sesión" Button
   ========================================================================== */
#float-login-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 1rem;
    background: linear-gradient(135deg, #0294e8 0%, #0062ae 100%);
    color: #fff;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(2, 148, 232, 0.45), 0 0 0 0 rgba(2, 148, 232, 0.4);
    /* Buzz animation: runs every 4s, quick shake + glow pulse */
    animation: floatBuzz 4s ease-in-out infinite;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#float-login-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

#float-login-btn:hover {
    animation-play-state: paused;
    transform: translateX(-50%) scale(1.07);
    box-shadow: 0 10px 32px rgba(2, 148, 232, 0.75), 0 0 0 6px rgba(2, 148, 232, 0.15);
}

/* Buzz = rapid horizontal micro-shake followed by a glow ring pulse */
@keyframes floatBuzz {
    0%   { transform: translateX(-50%) translateY(0)   scale(1);    box-shadow: 0 6px 24px rgba(2,148,232,0.55), 0 0 0 0   rgba(2,148,232,0.4); }
    /* quick buzz shake */
    88%  { transform: translateX(-50%) translateY(0)   scale(1);    box-shadow: 0 6px 24px rgba(2,148,232,0.55), 0 0 0 0   rgba(2,148,232,0.4); }
    89%  { transform: translateX(calc(-50% - 4px)) translateY(0) scale(1); }
    90%  { transform: translateX(calc(-50% + 4px)) translateY(0) scale(1); }
    91%  { transform: translateX(calc(-50% - 3px)) translateY(0) scale(1); }
    92%  { transform: translateX(calc(-50% + 3px)) translateY(0) scale(1); }
    93%  { transform: translateX(calc(-50% - 2px)) translateY(0) scale(1); }
    94%  { transform: translateX(calc(-50% + 2px)) translateY(0) scale(1); }
    /* glow ring pulse after shake */
    95%  { transform: translateX(-50%) translateY(0) scale(1.04); box-shadow: 0 8px 28px rgba(2,148,232,0.6), 0 0 0 8px  rgba(2,148,232,0.2); }
    97%  { transform: translateX(-50%) translateY(0) scale(1);    box-shadow: 0 6px 24px rgba(2,148,232,0.55), 0 0 0 14px rgba(2,148,232,0.05); }
    100% { transform: translateX(-50%) translateY(0) scale(1);    box-shadow: 0 6px 24px rgba(2,148,232,0.55), 0 0 0 0    rgba(2,148,232,0); }
}

/* =========================================
   Premium Service Content Overrides (Scraped Data)
   ========================================= */

/* Overlap effect: Pull the white card over the image */
section.container > div[style*="padding: 40px; border-radius: 12px;"] {
    position: relative;
    z-index: 100; /* Much higher to ensure it sits on top of hero image */
    margin-top: -80px; 
    padding: 60px 80px !important; 
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 25px 60px -10px rgba(0,0,0,0.12) !important;
}

/* Force the section itself to allow children to overflow over the previous section */
section.container[style*="overflow-x: hidden;"] {
    position: relative;
    z-index: 20;
    overflow-x: visible !important; /* hidden might clip the shadow or overlap */
}

/* Clean up legacy separators */
.vc_separator { display: none !important; }

/* Typography and Spacing */
.single-page-container .wpb_wrapper,
.single-page-container .wpb_wrapper * {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.single-page-container .wpb_wrapper p {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 24px;
}

.single-page-container .wpb_wrapper strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Premium Custom Lists */
.single-page-container .wpb_wrapper ul, 
.single-page-container .wpb_wrapper ol {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.single-page-container .wpb_wrapper ul li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.single-page-container .wpb_wrapper ul li:hover {
    transform: translateX(8px);
    color: #111827;
}

/* Custom Checkmark Icon for lists */
.single-page-container .wpb_wrapper ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #003d82);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,86,179,0.25);
    transition: all 0.3s ease;
}

.single-page-container .wpb_wrapper ul li:hover::before {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary), #5e0018);
    box-shadow: 0 6px 15px rgba(128,0,32,0.35);
}

/* Emphasize the last list item if it contains Contactanos */
.single-page-container .wpb_wrapper ul li:last-child {
    margin-top: 30px;
    font-weight: 600;
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section.container > div[style*="padding: 40px; border-radius: 12px;"] {
        padding: 40px 25px !important;
        margin-top: -40px;
    }
}

/* =========================================
   Center Logo Zoom Overlay
   ========================================= */
#center-logo-overlay {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
}

#center-logo-overlay img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
}

/* =========================================
   USA Services Grid
   ========================================= */
.services-usa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.s-card {
    display: flex;
    flex-direction: column !important; /* Override left/right */
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy hover */
    position: relative;
    z-index: 1;
}

.s-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 2px var(--color-primary);
    z-index: 2;
}

.s-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.s-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.s-card:hover .s-img::after {
    opacity: 1;
}

.s-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.s-card:hover .s-img img {
    transform: scale(1.1);
}

.s-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex: 1;
    background: #ffffff;
    transition: background 0.3s ease;
}

.s-card:hover .s-text {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.s-text h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.s-card:hover .s-text h3 {
    color: var(--color-secondary);
}

.s-text .btn {
    opacity: 0.8;
    transform: translateY(0);
    transition: all 0.3s ease;
    width: 100%;
}

.s-card:hover .s-text .btn {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(2, 148, 232, 0.4);
}

@media (min-width: 992px) {
    .services-usa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   Footer Overrides
   ========================================= */
.footer {
    padding-top: 50px !important; /* Aproximadamente 1 cm a 1.5 cm */
}

/* =========================================
   Componentes VIP Globales (Tarjetas, Grid)
   ========================================= */
.nosotros-vip-container, .vip-container {
    position: relative;
    z-index: 10;
    margin-top: 0;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.nosotros-vip-container *, .vip-container * {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.vip-card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 86, 179, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
.vip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -10px rgba(0, 86, 179, 0.15);
    border-color: rgba(0, 86, 179, 0.25);
}
.card-icon {
    font-size: 2.8rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.08), rgba(128, 0, 32, 0.08));
    width: 85px;
    height: 85px;
    line-height: 85px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,86,179,0.08);
}
.vip-card h3 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.6rem;
}
.vip-card p {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1rem;
}
    font-size: 1.05rem;
}
.why-choose-us-section {
    background: #fff;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}
.section-subtitle {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feature-check {
    background: linear-gradient(135deg, var(--primary), #003d82);
    color: white;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,86,179,0.3);
}
.feature-content h4 {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.feature-content p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .why-choose-us-section {
        padding: 40px 20px;
    }
    .nosotros-vip-container, .vip-container {
        margin-top: -30px;
    }
}

/* Footer Link Enhancements */
.footer-link-item {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}
.footer-link-item:hover {
    color: var(--primary);
    transform: translateX(6px);
}

/* =========================================
   Blog Card Modern Hover Effects
   ========================================= */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(0, 86, 179, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -10px rgba(0, 86, 179, 0.18);
    border-color: rgba(0, 86, 179, 0.25);
}

.blog-card .blog-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-card h3 {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--primary);
}

.blog-card .btn-primary {
    transition: all 0.3s ease;
}

.blog-card .btn-primary i {
    transition: transform 0.3s ease;
}

.blog-card:hover .btn-primary {
    box-shadow: 0 8px 22px rgba(0, 86, 179, 0.35);
    transform: translateY(-2px);
}

.blog-card:hover .btn-primary i {
    transform: translateX(6px);
}


