/* ============================================
   HERO V2 + NAVBAR REFINEMENT (2026-04-15)
   Patrones: Supahero "Hero SaaS B2B" (split) + CTA Gallery (dual CTA) + social proof real.
   Respeta Web Interface Guidelines: text-wrap balance, transition explicito,
   prefers-reduced-motion, focus-visible, touch-action, color-scheme dark.
   Paleta + logo intactos.
   ============================================ */

html { color-scheme: dark; }

/* --- Navbar refinement (morphing on scroll) --- */
.navbar {
    padding: 18px 0;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 22, 40, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 212, 255, 0.04), 0 8px 32px -8px rgba(0, 0, 0, 0.4);
}
.nav-container { max-width: 1280px; padding: 0 32px; }
.nav-logo-img { height: 40px; transition: height 0.3s var(--ease); }
.navbar.scrolled .nav-logo-img { height: 36px; }
.nav-links { gap: 36px; }
.nav-links a {
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: color 0.2s var(--ease);
    position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after { bottom: -6px; height: 1.5px; background: var(--blue); box-shadow: 0 0 8px rgba(0, 212, 255, 0.4); }
.nav-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

/* --- Hero container --- */
.hero-split {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 140px 0 120px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-split .hero-overlay {
    background:
        radial-gradient(ellipse 60% 50% at 85% 25%, rgba(124, 58, 237, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 10% 70%, rgba(0, 212, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 30% 30% at 50% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
}
.hero-split .hero-content {
    max-width: 1280px;
    padding: 0 32px;
    width: 100%;
    text-align: left;
    margin: 0 auto;
}

/* --- Split grid --- */
.hero-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
    width: 100%;
}
.hero-copy { min-width: 0; }

/* --- Eyebrow pill con dot pulsante --- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 999px;
    color: var(--gray-200);
    font-family: var(--font-main);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: clamp(28px, 4vw, 40px);
}
.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--blue);
    animation: eyebrowPulse 2.4s ease-in-out infinite;
}
@keyframes eyebrowPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow-dot { animation: none; }
}

/* --- Titulo --- */
.hero-split .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--white);
    margin-bottom: clamp(28px, 3vw, 40px);
    text-align: left;
    text-wrap: balance;
    background: none;
    -webkit-text-fill-color: var(--white);
}
.hero-title-highlight {
    display: inline-block;
    position: relative;
    color: var(--blue);
    background: linear-gradient(135deg, var(--blue), var(--violet-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title-highlight {
        background: none;
        color: var(--blue);
        -webkit-text-fill-color: var(--blue);
    }
}

/* --- Subtitulo --- */
.hero-split .hero-subtitle {
    font-family: var(--font-main);
    font-size: clamp(1.08rem, 1.4vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-200);
    max-width: 50ch;
    margin: 0 0 clamp(40px, 4.5vw, 56px) 0;
    text-align: left;
    text-wrap: pretty;
}

/* --- Dual CTA (CTA Gallery pattern) --- */
.hero-split .hero-ctas {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: clamp(40px, 5vw, 56px);
    align-items: center;
}

.btn-primary-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--black);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.005em;
    text-decoration: none;
    border-radius: 999px;
    border: 0;
    box-shadow: 0 14px 36px -8px rgba(0, 212, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease), filter 0.25s var(--ease);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 54px;
    position: relative;
    overflow: hidden;
}
.btn-primary-v2::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}
.btn-primary-v2:hover::before { left: 100%; }
.btn-primary-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px -8px rgba(0, 212, 255, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    filter: brightness(1.08);
}
.btn-primary-v2:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}
.btn-primary-v2 svg { transition: transform 0.25s var(--ease); flex-shrink: 0; }
.btn-primary-v2:hover svg { transform: translateX(4px); }

.btn-ghost-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-200);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 4px;
    text-decoration: none;
    transition: color 0.2s var(--ease), gap 0.2s var(--ease);
    touch-action: manipulation;
    border-radius: 4px;
}
.btn-ghost-v2:hover { color: var(--blue); gap: 12px; }
.btn-ghost-v2:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
    .btn-primary-v2, .btn-ghost-v2, .btn-primary-v2 svg { transition: none; }
    .btn-primary-v2:hover { transform: none; }
    .btn-ghost-v2:hover { gap: 8px; }
}

/* --- Social proof strip --- */
.hero-proof {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-proof-label {
    font-family: var(--font-main);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 600;
}
.hero-proof-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 0;
    margin: 0;
}
.hero-proof-list a {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--gray-200);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.25s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
    touch-action: manipulation;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-proof-list a:hover {
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--white);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 20px -4px rgba(0, 212, 255, 0.15);
    transform: translateY(-1px);
}
.hero-proof-list a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* --- Visual derecha: 2 cards stacked con tilt --- */
.hero-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    min-height: 360px;
    perspective: 1200px;
}
.hero-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 8px 24px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s var(--ease);
    width: 82%;
}
.hero-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}
.hero-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 31, 56, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-card-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    flex-shrink: 0;
}
.hero-card-back {
    top: 0;
    right: 0;
    transform: translate(2%, -14px) rotate(3.5deg);
    opacity: 0.92;
    z-index: 1;
}
.hero-card-front {
    bottom: 0;
    left: 0;
    transform: translate(-4%, 18px) rotate(-3deg);
    z-index: 2;
}
.hero-visual:hover .hero-card-back {
    transform: translate(5%, -24px) rotate(5deg);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 40px -8px rgba(124, 58, 237, 0.12);
}
.hero-visual:hover .hero-card-front {
    transform: translate(-7%, 10px) rotate(-4.5deg);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 40px -8px rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.18);
}
@media (prefers-reduced-motion: reduce) {
    .hero-card { transition: none; }
    .hero-visual:hover .hero-card-back,
    .hero-visual:hover .hero-card-front { transform: inherit; }
}

/* --- Scroll indicator minimal --- */
.hero-split .hero-scroll-v2 {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 14px;
    transition: color 0.2s var(--ease);
    border-radius: 999px;
}
.hero-split .hero-scroll-v2:hover { color: var(--white); }
.hero-split .hero-scroll-v2:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; color: var(--white); }
.hero-split .hero-scroll-v2 .scroll-arrow { display: none; }
.hero-scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { transform: translateY(-2px); opacity: 0.6; }
    50% { transform: translateY(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-dot { animation: none; }
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero-visual {
        margin: 0 auto;
        max-width: 520px;
        width: 100%;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 14px 0; }
    .nav-container { padding: 0 20px; }
    .hero-split { padding: 112px 0 80px; min-height: auto; }
    .hero-split .hero-content { padding: 0 20px; }
    .hero-split-grid { gap: 48px; }
    .hero-split .hero-title { font-size: clamp(2.6rem, 11vw, 4rem); line-height: 0.98; letter-spacing: -0.03em; }
    .hero-split .hero-subtitle { font-size: 1.02rem; line-height: 1.6; color: var(--gray-200); max-width: none; }
    .hero-split .hero-ctas { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 40px; }
    .btn-primary-v2 { justify-content: center; width: 100%; padding: 17px 24px; font-size: 1rem; }
    .btn-ghost-v2 { justify-content: center; }
    .hero-proof { padding-top: 28px; gap: 12px; }
    .hero-proof-label { font-size: 0.68rem; }
    .hero-proof-list a { font-size: 0.82rem; padding: 7px 12px; }
    .hero-visual { min-height: 280px; aspect-ratio: 5 / 4; max-width: 480px; }
    .hero-split .hero-scroll-v2 { display: none; }
}

@media (max-width: 480px) {
    .hero-split { padding: 96px 0 60px; }
    .hero-split-grid { gap: 36px; }
    .hero-visual { max-width: 360px; min-height: 240px; }
    .hero-card-back { transform: translate(2%, -10px) rotate(3deg); }
    .hero-card-front { transform: translate(-4%, 12px) rotate(-2.5deg); }
}
