/* ============================================
   PILIO - Renacer Digital Web & SEO
   Estilos Premium, Minimalistas y Artísticos
   ============================================ */

/* Variables CSS */
:root {
    --primary-color: #3e4999;
    --primary-dark: #2d3a7a;
    --primary-light: #5c6bc7;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 64px rgba(62, 73, 153, 0.15);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--gray-600);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xs) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-fast);
    line-height: 1;
    justify-content: center;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    align-self: center;
}

.navbar .logo-img {
    transform: translateY(4px) translateX(12px);
    position: relative;
}

.footer-logo {
    width: 44px;
    height: 44px;
}

.logo-text {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    line-height: 1;
    display: flex;
    align-items: center;
    align-self: center;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu.active {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md) 0;
    z-index: 999;
}

.nav-link {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--gray-700);
    position: relative;
    padding: var(--spacing-xs) 0;
}

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

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

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

.cta-nav {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    font-weight: 600;
}

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

.cta-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: #0a0e27;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(250, 250, 250, 0.05) 20%,
            rgba(250, 250, 250, 0.15) 40%,
            rgba(250, 250, 250, 0.4) 60%,
            rgba(250, 250, 250, 0.75) 80%,
            #fafafa 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    contain: layout style;
}

/* --- Mesh gradient base --- */
.hero-gradient {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(62, 73, 180, 0.7) 0%, transparent 55%),
        radial-gradient(ellipse 60% 55% at 80% 80%, rgba(120, 80, 220, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 60% 40%, rgba(50, 60, 140, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 10% 90%, rgba(80, 60, 200, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 55% 40% at 90% 20%, rgba(100, 70, 210, 0.35) 0%, transparent 50%);
    animation: mesh-drift 20s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

/* Grain / noise texture */
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Bottom fade to white */
.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.6) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* GPU-friendly: only animates transform */
@keyframes mesh-drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1) translateZ(0);
    }

    25% {
        transform: translate(30px, -20px) scale(1.04) translateZ(0);
    }

    50% {
        transform: translate(-20px, 25px) scale(1.02) translateZ(0);
    }

    75% {
        transform: translate(15px, 15px) scale(1.05) translateZ(0);
    }
}

/* --- Star-like particles --- */
.hero-particles {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(2px 2px at 8% 10%, rgba(160, 140, 255, 0.7), transparent),
        radial-gradient(2px 2px at 42% 15%, rgba(120, 100, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 22% 35%, rgba(180, 160, 255, 0.5), transparent),
        radial-gradient(2px 2px at 35% 42%, rgba(140, 120, 255, 0.6), transparent),
        radial-gradient(1px 1px at 15% 22%, rgba(200, 180, 255, 0.4), transparent),
        radial-gradient(2.5px 2.5px at 30% 8%, rgba(130, 110, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 45% 32%, rgba(170, 150, 255, 0.5), transparent),
        radial-gradient(1px 1px at 5% 40%, rgba(150, 130, 255, 0.45), transparent),
        radial-gradient(2px 2px at 25% 25%, rgba(180, 160, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 12% 45%, rgba(160, 140, 255, 0.4), transparent);
    animation: stars-move 18s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    opacity: 0.9;
}

.hero-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(3px 3px at 10% 12%, rgba(200, 190, 255, 0.8), transparent),
        radial-gradient(2px 2px at 32% 20%, rgba(170, 160, 255, 0.65), transparent),
        radial-gradient(4px 4px at 40% 38%, rgba(150, 140, 255, 0.7), transparent),
        radial-gradient(2px 2px at 20% 28%, rgba(190, 180, 255, 0.55), transparent),
        radial-gradient(3px 3px at 5% 35%, rgba(180, 170, 255, 0.6), transparent),
        radial-gradient(2px 2px at 28% 8%, rgba(210, 200, 255, 0.5), transparent);
    animation: stars-move-reverse 25s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    opacity: 0.7;
}

.hero-particles::after {
    display: none;
}

/* GPU-friendly: only animates transform */
@keyframes stars-move {
    0% {
        transform: translate(0, 0) translateZ(0);
    }

    100% {
        transform: translate(25%, 20%) translateZ(0);
    }
}

@keyframes stars-move-reverse {
    0% {
        transform: translate(0, 0) translateZ(0);
    }

    100% {
        transform: translate(-15%, -20%) translateZ(0);
    }
}

/* --- Aurora waves --- */
.hero-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-waves::before,
.hero-waves::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.hero-waves::before {
    width: 160%;
    height: 160%;
    top: -40%;
    left: -30%;
    background: radial-gradient(ellipse at center, rgba(80, 70, 220, 0.35) 0%, rgba(62, 73, 180, 0.15) 35%, transparent 65%);
    animation: aurora-1 18s ease-in-out infinite;
}

.hero-waves::after {
    width: 140%;
    height: 140%;
    bottom: -35%;
    right: -25%;
    background: radial-gradient(ellipse at center, rgba(120, 80, 220, 0.3) 0%, rgba(80, 60, 200, 0.12) 35%, transparent 65%);
    animation: aurora-2 22s ease-in-out infinite;
}

@keyframes aurora-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg) translateZ(0);
        opacity: 0.6;
    }

    33% {
        transform: translate(50px, -40px) scale(1.1) rotate(40deg) translateZ(0);
        opacity: 0.85;
    }

    66% {
        transform: translate(-30px, 25px) scale(1.05) rotate(-20deg) translateZ(0);
        opacity: 0.7;
    }
}

@keyframes aurora-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg) translateZ(0);
        opacity: 0.5;
    }

    40% {
        transform: translate(-50px, 45px) scale(1.15) rotate(-60deg) translateZ(0);
        opacity: 0.8;
    }

    70% {
        transform: translate(35px, -30px) scale(1.08) rotate(30deg) translateZ(0);
        opacity: 0.6;
    }
}

/* --- Vivid orbs --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.orb-1 {
    width: 500px;
    height: 500px;
    top: 5%;
    left: -5%;
    background: radial-gradient(circle, rgba(90, 70, 230, 0.8) 0%, rgba(62, 73, 180, 0.3) 45%, transparent 70%);
    animation: orb-drift-1 16s ease-in-out infinite;
}

.orb-2 {
    width: 450px;
    height: 450px;
    bottom: 5%;
    right: -5%;
    background: radial-gradient(circle, rgba(140, 90, 240, 0.7) 0%, rgba(100, 70, 210, 0.25) 45%, transparent 70%);
    animation: orb-drift-2 20s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(70, 60, 200, 0.6) 0%, rgba(120, 80, 220, 0.2) 45%, transparent 70%);
    animation: orb-drift-3 24s ease-in-out infinite;
}

@keyframes orb-drift-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) translateZ(0);
        opacity: 0.6;
    }

    30% {
        transform: translate(60px, -50px) scale(1.1) translateZ(0);
        opacity: 0.85;
    }

    60% {
        transform: translate(30px, 30px) scale(1.03) translateZ(0);
        opacity: 0.7;
    }
}

@keyframes orb-drift-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) translateZ(0);
        opacity: 0.5;
    }

    35% {
        transform: translate(-70px, 55px) scale(1.15) translateZ(0);
        opacity: 0.8;
    }

    70% {
        transform: translate(-30px, -40px) scale(1.05) translateZ(0);
        opacity: 0.6;
    }
}

@keyframes orb-drift-3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.9) translateZ(0);
        opacity: 0.4;
    }

    25% {
        transform: translate(-50%, -50%) translate(45px, -30px) scale(1.05) translateZ(0);
        opacity: 0.65;
    }

    50% {
        transform: translate(-50%, -50%) translate(-35px, 45px) scale(1.15) translateZ(0);
        opacity: 0.75;
    }

    75% {
        transform: translate(-50%, -50%) translate(20px, 20px) scale(1) translateZ(0);
        opacity: 0.5;
    }
}



/* --- Hero dark text overrides --- */
.hero .title-line {
    background: linear-gradient(135deg, #ffffff 0%, rgba(220, 215, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .title-line:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(180, 170, 255, 1) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .title-accent {
    background: linear-gradient(135deg, rgba(160, 140, 255, 1) 0%, rgba(200, 180, 255, 1) 50%, rgba(140, 120, 255, 1) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
}

.hero .title-accent:hover {
    background-position: 100% 0;
    filter: none;
}

.hero .hero-subtitle {
    color: rgba(200, 195, 230, 0.85);
}

.hero .btn-secondary {
    background: transparent;
    border: 1px solid rgba(180, 170, 255, 0.4);
    color: rgba(220, 215, 255, 0.9);
}

.hero .btn-secondary:hover {
    border-color: rgba(180, 170, 255, 0.7);
    background: rgba(140, 120, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(120, 100, 255, 0.25);
}

.hero .btn-primary {
    background: linear-gradient(135deg, rgba(100, 80, 220, 1), rgba(140, 100, 255, 1));
    box-shadow: 0 4px 20px rgba(120, 80, 255, 0.4);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, rgba(100, 80, 220, 1), rgba(140, 100, 255, 1));
    box-shadow: 0 8px 40px rgba(120, 80, 255, 0.6);
    transform: translateY(-2px);
}



.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 800px;
    cursor: default;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    align-items: center;
    text-align: center;
}

.title-line {
    display: block;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    position: relative;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.1;
}

.title-line:hover {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-color) 50%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    display: block;
    font-weight: 900;
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3rem);
    animation: none;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
    transition: all 0.4s ease;
    cursor: default;
}

.title-accent:hover {
    background-position: 100% 0;
    filter: none;
}

@keyframes title-glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(62, 73, 153, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(62, 73, 153, 0.5)) drop-shadow(0 0 50px rgba(62, 73, 153, 0.3));
    }
}


.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--gray-600);
    max-width: 600px;
    line-height: 1.8;
    position: relative;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-cta .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.hero-cta .btn:hover::before {
    left: 100%;
}

.hero-cta .btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(62, 73, 153, 0.25);
}

.hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, rgba(100, 80, 220, 1), rgba(140, 100, 255, 1));
    box-shadow: 0 12px 40px rgba(120, 80, 255, 0.5);
}

@keyframes btn-pulse {

    0%,
    100% {
        box-shadow: 0 12px 40px rgba(62, 73, 153, 0.35);
    }

    50% {
        box-shadow: 0 12px 50px rgba(62, 73, 153, 0.5), 0 0 30px rgba(62, 73, 153, 0.3);
    }
}

.hero-cta .btn-secondary:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 30px rgba(62, 73, 153, 0.2);
    transform: translateY(-4px) scale(1.05);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    opacity: 0;
    animation: hero-visual-entrance 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    z-index: -1;
    pointer-events: none;
    filter: blur(2px);
    mix-blend-mode: soft-light;
    overflow: visible;
}

@keyframes hero-visual-entrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) rotateY(15deg);
        filter: blur(4px);
    }

    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
        filter: blur(2px);
    }
}

.visual-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 600px;
    min-height: 600px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: -1;
    opacity: 0.5;
}

.visual-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(62, 73, 153, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

#butterfly-video-container {
    width: 100%;
    height: 100%;
    min-width: 600px;
    min-height: 600px;
    max-width: 750px;
    max-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: -1;
    opacity: 0.6;
    filter: brightness(1.1) contrast(0.9) saturate(0.8);
}

#butterfly-video-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: -1;
    background: transparent;
    object-fit: contain;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
    opacity: 0.7;
    filter: blur(1.5px) brightness(1.15) contrast(0.85);
    mix-blend-mode: soft-light;
}

@media (max-width: 768px) {
    #butterfly-video-container {
        max-width: 500px;
        max-height: 500px;
        min-width: 450px;
        min-height: 450px;
        opacity: 0.5;
    }

    .visual-container {
        height: 500px;
        opacity: 0.4;
    }

    #butterfly-video-canvas {
        opacity: 0.6;
        filter: blur(2px) brightness(1.1) contrast(0.8);
    }

    .hero-visual {
        filter: blur(3px);
    }
}

@media (max-width: 480px) {
    #butterfly-video-container {
        max-width: 400px;
        max-height: 400px;
        min-width: 350px;
        min-height: 350px;
        opacity: 0.4;
    }

    .visual-container {
        height: 400px;
        opacity: 0.35;
    }

    #butterfly-video-canvas {
        opacity: 0.5;
        filter: blur(2.5px) brightness(1.05) contrast(0.75);
    }

    .hero-visual {
        filter: blur(4px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    animation: scroll-indicator-fade-in 1s ease-out 2s forwards;
}

@keyframes scroll-indicator-fade-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-arrow:hover {
    border-color: var(--primary-light);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(62, 73, 153, 0.3);
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll-bounce 2s infinite;
    box-shadow: 0 0 10px rgba(62, 73, 153, 0.5);
}

@keyframes scroll-bounce {

    0%,
    100% {
        top: 8px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        top: 20px;
        opacity: 0.6;
        transform: translateX(-50%) scale(0.8);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.section-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Problema Section */
.problema-section {
    background: var(--gray-50);
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.problema-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.problema-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    margin-bottom: var(--spacing-sm);
}

.problema-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
}

.problema-card p {
    font-size: 1rem;
    color: var(--gray-600);
}

.before-after-container {
    margin-top: var(--spacing-xl);
    display: none;
}

.before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.before-section,
.after-section {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    width: 100%;
}

.before-section .ba-visual,
.after-section .ba-visual {
    width: 100%;
    overflow: hidden;
}

.ba-label {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.before-section .ba-label {
    color: var(--gray-400);
}

.after-section .ba-label {
    color: var(--primary-color);
    position: relative;
}

.ba-visual {
    height: auto;
    border-radius: 12px;
    padding: 0;
    padding-top: 36px;
    display: block;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

.ba-visual:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Browser mockup chrome */
.before-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid #d0d0d0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.before-visual::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F57;
    box-shadow: 20px 0 0 #FFBD2E, 40px 0 0 #28CA42;
    z-index: 3;
}

.before-visual {
    background: var(--gray-50);
}

.before-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    position: relative;
    filter: brightness(0.92) contrast(0.93) grayscale(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: filter 0.4s ease;
}

.before-visual:hover .before-image {
    filter: brightness(0.92) contrast(0.93) grayscale(1);
    transform: translateZ(0);
}

.after-image {
    width: 105%;
    height: auto;
    max-width: none;
    display: block;
    margin: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%) translateY(-3%) translateZ(0);
    object-fit: contain;
    object-position: center top;
    filter: brightness(1.06) contrast(1.08) saturate(1.08);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transition: filter 0.4s ease;
}

.after-visual:hover .after-image {
    filter: brightness(1.08) contrast(1.1) saturate(1.1);
    transform: translateX(-50%) translateY(-3%) translateZ(0) scale(1.01);
}

.after-visual {
    background: var(--white);
    box-shadow: 0 16px 48px rgba(62, 73, 153, 0.16),
        0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(62, 73, 153, 0.12);
}

.after-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid #d0d0d0;
    z-index: 2;
}

.after-visual::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F57;
    box-shadow: 20px 0 0 #FFBD2E, 40px 0 0 #28CA42;
    z-index: 3;
}


.arrow-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* Solución Section */
.solucion-section {
    position: relative;
    overflow: hidden;
}

.solucion-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.solucion-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 73, 153, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.solucion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.solucion-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.transformation-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.transform-circle {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    animation: pulse 3s ease-in-out infinite;
}

.circle-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.circle-2 {
    width: 66.67%;
    height: 66.67%;
    animation-delay: 1s;
}

.circle-3 {
    width: 33.33%;
    height: 33.33%;
    animation-delay: 2s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.transform-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.transform-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.solucion-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.solucion-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.solucion-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    min-width: 80px;
}

.solucion-details h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
}

.solucion-details p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* Beneficios Section */
.beneficios-section {
    background: var(--white);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.beneficio-card {
    background: var(--gray-50);
    padding: var(--spacing-md);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.beneficio-icon {
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
}

.beneficio-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.beneficio-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.beneficio-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.growth-chart {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: 16px;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    max-width: 120px;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 8px 8px 0 0;
    transition: height 1s ease;
    min-height: 20px;
}

.bar-label {
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    text-align: center;
}

.chart-description {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-600);
}

/* Trabajamos Section */
.trabajamos-section {
    position: relative;
    overflow: hidden;
}

.trabajamos-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(62, 73, 153, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 0;
}

.process-timeline {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    flex: 1;
    padding-top: var(--spacing-xs);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    padding: var(--spacing-xl) 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-highlighted {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.faq-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(62, 73, 153, 0.02);
}

.faq-question h3 {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
    padding-right: var(--spacing-sm);
    line-height: 1.4;
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 var(--spacing-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
    padding-top: var(--spacing-xs);
}

.faq-expand-container {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.faq-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-primary);
    position: relative;
}

.faq-expand-btn span {
    display: inline-block;
}

.faq-expand-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-expand-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.expand-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 20px;
    height: 20px;
}

.faq-expand-btn.active .expand-icon {
    transform: rotate(180deg);
}

.faq-additional {
    margin-top: var(--spacing-md);
    display: none;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-additional.show {
    display: flex;
    animation: faq-expand 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faq-expand {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-additional .faq-item {
    animation: faq-item-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.faq-additional .faq-item:nth-child(1) {
    animation-delay: 0.05s;
}

.faq-additional .faq-item:nth-child(2) {
    animation-delay: 0.1s;
}

.faq-additional .faq-item:nth-child(3) {
    animation-delay: 0.15s;
}

.faq-additional .faq-item:nth-child(4) {
    animation-delay: 0.2s;
}

.faq-additional .faq-item:nth-child(5) {
    animation-delay: 0.25s;
}

.faq-additional .faq-item:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes faq-item-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: var(--spacing-lg) 0;
    }

    .faq-question {
        padding: var(--spacing-sm) var(--spacing-sm);
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 var(--spacing-sm);
    }

    .faq-item.active .faq-answer {
        padding: 0 var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
    }

    .faq-answer p {
        font-size: 0.875rem;
    }

    .faq-expand-btn {
        font-size: 0.875rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Contacto Section */
.contacto-section {
    background: var(--gray-50);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.contacto-text .section-header {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
}

.info-item p {
    font-size: 1rem;
    color: var(--gray-600);
}

.contacto-form {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: var(--spacing-lg);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(62, 73, 153, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(62, 73, 153, 0.1);
    position: relative;
    overflow: hidden;
}

.contacto-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 1;
}

.form-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 300;
    margin: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    position: relative;
}

.form-group label {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-300), transparent);
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
    font-weight: 300;
    transition: color 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 12px rgba(62, 73, 153, 0.08);
    transform: translateY(-1px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(62, 73, 153, 0.1), 0 4px 16px rgba(62, 73, 153, 0.15);
    transform: translateY(-2px);
    background: var(--white);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: var(--gray-500);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Efecto de línea animada en focus */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.form-group:focus-within::after {
    transform: scaleX(1);
}

/* Botón de envío mejorado */
.contacto-form .btn-primary {
    margin-top: var(--spacing-sm);
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(62, 73, 153, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contacto-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.contacto-form .btn-primary:hover::before {
    left: 100%;
}

.contacto-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(62, 73, 153, 0.35);
    background: var(--primary-dark);
}

.contacto-form .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 73, 153, 0.3);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo-container {
    justify-content: flex-start;
}

.footer-brand .logo-img.footer-logo {
    transform: translateY(2px) translateX(-10px);
    position: relative;
}

.footer-brand .logo-text {
    transform: translateX(-24px);
}

.footer-brand p {
    margin-top: var(--spacing-xs);
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Efecto de brillo adicional en hero */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 73, 153, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: hero-glow-pulse 8s ease-in-out infinite;
}

@keyframes hero-glow-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-up {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skip Navigation (accesibilidad y SEO) */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-nav:focus {
    top: 0;
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Fallback sin JavaScript: todo el contenido visible */
.no-js .preloader {
    display: none !important;
}

.no-js .fade-in,
.no-js .fade-in-up,
.no-js .fade-in-left,
.no-js .fade-in-right,
.no-js .slide-in-up {
    opacity: 1 !important;
    transform: none !important;
}

/* Parallax */
.parallax-bg {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .solucion-content {
        grid-template-columns: 1fr;
    }

    .contacto-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-2xl: 5rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .problema-grid,
    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .before-after {
        flex-direction: column;
    }

    .chart-container {
        height: 200px;
        gap: 4px;
    }

    .bar-label {
        font-size: 0.7rem;
    }

    .beneficio-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .visual-container {
        height: 300px;
    }

    .transformation-animation {
        width: 250px;
        height: 250px;
    }

    .chart-container {
        gap: 2px;
        padding: 0 4px;
    }

    .bar-label {
        font-size: 0.65rem;
    }

    .growth-chart {
        padding: var(--spacing-sm);
    }
}