/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (OKLCH Color Space & Premium Token System)
   ========================================================================== */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    /* Color Palette in OKLCH (OLED-grade pure color rendering) */
    --color-bg: oklch(12.0% 0.015 256.4);       /* Deep space obsidian - slightly lighter for contrast */
    --color-bg-darker: oklch(5.0% 0.005 256.4);   /* Pure ink black - darker for OLED contrast */
    --color-bg-card: oklch(16.0% 0.02 256.4 / 85%); /* Glassmorphic sheet - elevated background */
    --color-border: oklch(100% 0 0 / 14%);         /* Defined hairline border */
    --color-border-glow: oklch(89.37% 0.218 115.35 / 30%); /* Glowing neon border color */
    
    /* Neon Growth Accent (Calibrated high-visibility lime) */
    --color-neon: oklch(89.37% 0.218 115.35);    /* Pure fluorescent lime */
    --color-neon-hover: oklch(92.5% 0.235 115.35);  /* Slightly brighter fluorescent lime for hover */
    --color-neon-dim: oklch(89.37% 0.218 115.35 / 10%);
    --color-neon-glow: oklch(89.37% 0.218 115.35 / 35%);
    
    /* Text Hierarchy */
    --color-text-primary: oklch(98.5% 0.005 256.4);
    --color-text-secondary: oklch(88.0% 0.01 256.4); /* High readability light grey */
    --color-text-muted: oklch(68.0% 0.012 256.4);     /* Muted but legible grey */
    
    /* Typography Scales (Bespoke Editorial scale) */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Lora', Georgia, serif;
    
    /* Spacing & Borders */
    --max-width: 1240px;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    /* Hardware-Accelerated transitions */
    --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    background-color: var(--color-bg);
}

/* Modern cross-browser scrollbar */
html {
    scrollbar-color: var(--color-border) var(--color-bg);
    scrollbar-width: thin;
}

/* Typography rules */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

h1 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

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

/* Layout container */
.section-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.text-center { text-align: center; }
.text-neon { color: var(--color-neon); }
.text-muted { color: var(--color-text-muted); }
.font-semibold { font-weight: 600; }

.text-serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Spacing macro-whitespace (High-end agency standard) */
section {
    padding: 9rem 0;
    position: relative;
}

/* Common Section Header */
.section-header {
    max-width: 820px;
    margin-bottom: 5.5rem;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-neon);
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.75rem;
}

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

/* ==========================================================================
   BUTTONS (Interactive micro-interactions)
   ========================================================================== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 800;
    font-family: var(--font-sans);
    background-color: var(--color-neon);
    color: var(--color-bg-darker);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px var(--color-neon-dim);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Shimmer Light Beam Effect */
.btn-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40px;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: cta-shimmer 5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes cta-shimmer {
    0% {
        left: -100%;
    }
    20% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

.btn-cta:hover {
    background-color: var(--color-neon-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px var(--color-neon-glow);
}

.btn-cta:active {
    transform: translateY(0) scale(1.0);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.btn-small {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 1.25rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--color-neon);
    background-color: rgba(255, 255, 255, 0.02);
    transform: translateY(-1px);
}

/* ==========================================================================
   HEADER / NAVIGATION BAR (Glassmorphism backdrop blurs)
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth), height var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header-blur {
    background-color: rgba(3, 7, 18, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* scrolling status */
#main-header.scrolling {
    background-color: rgba(1, 2, 5, 0.8);
    border-color: var(--color-border);
    height: 70px;
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    height: 32px;
    width: auto;
    display: block;
    transition: transform var(--transition-fast);
}

.site-logo:hover {
    transform: scale(1.02);
}

.footer-logo {
    height: 36px;
    margin-bottom: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.nav-item:hover {
    color: var(--color-neon);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hamburguer menu trigger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   MOBILE POP-OVER DRAWER (Popover API native transitions)
   ========================================================================== */
.mobile-drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    border: none;
    border-left: 1px solid var(--color-border);
    background-color: rgba(1, 2, 5, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 4rem 2.5rem;
    color: var(--color-text-primary);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    transition: transform var(--transition-smooth);
    transform: translateX(100%);
}

.mobile-drawer-container:popover-open {
    transform: translateX(0);
}

/* @starting-style browser fallback definition */
@starting-style {
    .mobile-drawer-container:popover-open {
        transform: translateX(100%);
    }
}

.close-drawer {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-top: 4rem;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 800;
}

.mobile-nav-links a:hover {
    color: var(--color-neon);
}

/* ==========================================================================
   HERO SECTION (Centered editorial layout)
   ========================================================================== */
.hero-section {
    padding-top: 9.5rem;
    padding-bottom: 5.5rem;
    overflow: hidden;
}

.bg-gradient-glow {
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--color-neon-dim) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-one-column {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-one-column .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge-partner .badge-icon {
    font-size: 0.85rem;
    color: var(--color-neon);
}

.badge-partner .badge-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 880px;
    letter-spacing: -0.04em;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.25rem;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 3.25rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.25rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    width: 100%;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   PAIN / EMPATHY SECTION
   ========================================================================== */
.pain-section {
    background-color: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.pain-card {
    padding: 3rem 2.25rem;
    background-color: rgba(255, 255, 255, 0.005);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.pain-icon {
    font-size: 1.85rem;
    margin-bottom: 1.75rem;
}

.pain-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pain-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ==========================================================================
   PILARES DE CRECIMIENTO (Modern CSS Subgrid Alignment)
   ========================================================================== */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem 2.5rem;
}

.pilar-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 3rem 2.25rem;
    position: relative;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    
    /* CSS Subgrid alignment (Strict alignment grid definition) */
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0.75rem;
}

.pilar-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-neon-glow);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.pilar-number {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.015);
    position: absolute;
    top: 1.25rem;
    right: 1.75rem;
    transition: color var(--transition-smooth);
}

.pilar-card:hover .pilar-number {
    color: rgba(201, 243, 29, 0.05);
}

.pilar-card h3 {
    font-size: 1.35rem;
    position: relative;
    z-index: 2;
}

.pilar-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* ==========================================================================
   COMPARATIVA SECTION (High Contrast & Responsiveness)
   ========================================================================== */
.diferencia-section {
    background-color: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.comparativa-desktop-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background-color: rgba(1, 2, 5, 0.3);
}

.comparativa-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    min-width: 900px;
}

.comparativa-table th,
.comparativa-table td {
    padding: 1.75rem 2.25rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.comparativa-table th {
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    background-color: rgba(255, 255, 255, 0.015);
}

.comparativa-table td {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.feature-name {
    font-weight: 700;
    color: var(--color-text-primary);
    width: 20%;
}

th.muted-column {
    color: var(--color-text-secondary) !important;
    opacity: 0.95;
    font-weight: 700;
    width: 25%;
}

td.muted-column {
    color: var(--color-text-muted) !important;
    opacity: 0.8;
    width: 25%;
}

/* Rounded corners for the outer cells matching the wrapper */
.comparativa-table th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.comparativa-table tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-lg);
}

.comparativa-table th.highlight-column {
    border-top-right-radius: var(--radius-lg);
}

.comparativa-table tr:last-child td.highlight-column {
    border-bottom-right-radius: var(--radius-lg);
}

/* Highlight the B2B Growth Partner Column */
.comparativa-table th.highlight-column,
.comparativa-table td.highlight-column {
    width: 30%;
    background-color: oklch(15.5% 0.02 115.35 / 30%);
    color: var(--color-text-primary);
}

.comparativa-table th.highlight-column {
    border-left: 2px solid var(--color-neon);
    border-right: 2px solid var(--color-neon);
    border-top: 2px solid var(--color-neon);
    background-color: oklch(16.5% 0.03 115.35 / 40%);
    position: relative;
}

.comparativa-table td.highlight-column {
    border-left: 2px solid var(--color-neon);
    border-right: 2px solid var(--color-neon);
}

.comparativa-table tr:last-child td.highlight-column {
    border-bottom: 2px solid var(--color-neon);
}

.comparativa-table tr:last-child td {
    border-bottom: none;
}

.comparativa-table tr {
    transition: background-color var(--transition-fast);
}

.comparativa-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.005);
}

.comparativa-table tr:hover td.highlight-column {
    background-color: oklch(17.5% 0.035 115.35 / 40%);
}

.header-highlight-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.highlight-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.highlight-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-neon);
}

.comp-cell-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.comp-cell-content span {
    display: inline-block;
    line-height: 1.45;
}

.recom-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-neon);
    color: var(--color-bg-darker);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px var(--color-neon-glow);
}

.comp-icon-x {
    color: oklch(60% 0.08 20 / 70%);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.comp-icon-check {
    color: var(--color-neon);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Mobile Stack Layout Styles */
.comparativa-mobile-wrapper {
    display: none;
    flex-direction: column;
    gap: 2rem;
}

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

.comp-mobile-card.highlighted-card {
    border: 2px solid var(--color-neon);
    background-color: oklch(15.5% 0.02 115.35 / 35%);
    box-shadow: 0 15px 40px var(--color-neon-glow);
}

.comp-mobile-card.muted-card {
    border-color: var(--color-border);
    opacity: 0.9;
}

.comp-mobile-header {
    margin-bottom: 2rem;
}

.comp-mobile-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.partner-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--color-neon);
    font-weight: 700;
    margin-top: 0.25rem;
}

.comp-mobile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comp-mobile-list li {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.item-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

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

.item-value i {
    vertical-align: middle;
}

/* ==========================================================================
   ECOLOGÍA TÉCNICA (Bento Layout style card structure)
   ========================================================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.tech-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    border-color: var(--color-neon-glow);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-card.bento-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
}

.tech-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.tech-icon-wrapper {
    font-size: 2rem;
    color: var(--color-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--color-neon-dim);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-glow);
    position: relative;
    z-index: 2;
}

.tech-card h3 {
    font-size: 1.45rem;
    position: relative;
    z-index: 2;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Mock Terminal Component inside n8n Bento card */
.mock-terminal {
    background-color: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    align-self: stretch;
}

.terminal-line {
    display: flex;
    gap: 0.6rem;
    line-height: 1.4;
}

.term-time {
    color: var(--color-text-muted);
}

.term-success {
    color: var(--color-neon);
}

.term-info {
    color: oklch(72% 0.12 195); /* Soft technical blue */
}

/* Mock Stats Component inside SEO/Ads Bento card */
.mock-stats {
    background-color: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    align-self: stretch;
    justify-content: center;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 0.75rem;
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-sans);
}

/* ==========================================================================
   METODOLOGÍA (Timeline)
   ========================================================================== */
.roadmap-timeline {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.875rem; /* Centered relative to the 2.75rem badge positioned at left: 0.5rem */
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-neon) 0%, var(--color-border) 75%, transparent 100%);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    padding-left: 4.5rem;
    margin-bottom: 4rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-badge {
    position: absolute;
    top: 0.25rem;
    left: 0.5rem;
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--color-bg);
    border: 2px solid var(--color-neon);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neon);
    box-shadow: 0 0 12px var(--color-neon-glow);
    z-index: 2;
}

.step-content {
    background-color: rgba(255, 255, 255, 0.005);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2.25rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.step-content:hover {
    border-color: var(--color-neon-glow);
    background-color: rgba(255, 255, 255, 0.01);
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   AUDITORÍA SECTION & CAL.COM WIDGET
   ========================================================================== */
.auditoria-section {
    background-color: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
}

.auditoria-single-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auditoria-info.text-center {
    max-width: 820px;
    margin-bottom: 2.25rem; /* spacing between feature badges and calendar widget */
    text-align: center;
}

.auditoria-info h2 {
    font-size: 2.75rem;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

.auditoria-lead {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem; /* spacing between text and badges */
    line-height: 1.6;
}

.diagnostico-features-horizontal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem; /* tighter gaps to prevent wrapping */
    margin-bottom: 0; /* handled by parent margin-bottom */
}

.diag-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 0.65rem 1.4rem;
    border-radius: 9999px; /* premium pill badge look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.diag-feature-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-neon-glow);
}

/* Interactive custom card for booking widget - Full Width version */
.auditoria-calendar-card-wide {
    height: 700px; /* increased to prevent internal scrollbars */
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.calendar-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#my-cal-inline-asesoria-gratuita {
    width: 100%;
    height: 100%;
}

.cal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
    color: var(--color-text-muted);
}

.cal-placeholder i {
    font-size: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3.5rem;
}

.footer-brand {
    max-width: 450px;
}

.footer-brand .logo-text {
    font-size: 1.6rem;
}

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--color-neon);
    border-color: var(--color-neon-glow);
    background-color: rgba(255, 255, 255, 0.03);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

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

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

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

/* ==========================================================================
   DYNAMIC HOVER SPOTLIGHT (High-End Interactive Effect)
   ========================================================================== */
.pain-card, 
.pilar-card, 
.tech-card, 
.step-content {
    position: relative;
    z-index: 1;
}

.pain-card::before, 
.pilar-card::before, 
.tech-card::before, 
.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), var(--color-neon-dim) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.pain-card:hover::before, 
.pilar-card:hover::before, 
.tech-card:hover::before, 
.step-content:hover::before {
    opacity: 1;
}

/* Ensure child contents stay on top of the spotlight glow overlay */
.pain-card > *, 
.tech-card > *,
.step-content > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   MEDIA QUERIES (Responsive layouts)
   ========================================================================== */
@media (max-width: 1024px) {
    section {
        padding: 7rem 0;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .pilares-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-card.bento-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5.5rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.85rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pilar-card {
        grid-row: auto;
        grid-template-rows: auto;
    }
    
    /* Toggle Comparison Display on Mobile */
    .comparativa-desktop-wrapper {
        display: none;
    }
    
    .comparativa-mobile-wrapper {
        display: flex;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 1.5rem;
    }
}
