/* ============================================
   Portfolio - Ramón López Muñoz
   Refactored & Consolidated Styles
   ============================================ */

/* === Base Reset & Typography === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #09080f;
    overflow-x: hidden;
    cursor: none !important;
}

/* === Cursor Hiding === */
*,
*::before,
*::after,
html,
body {
    cursor: none !important;
}

a, button, input, textarea, select, label, [role="button"], .cursor-pointer {
    cursor: none !important;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6, .section-title {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

/* === Gradients === */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #4f46e5 100%);
}

.gradient-bg-hover:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #4338ca 100%);
}

/* === Buttons === */
.btn-glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
}

.btn-glow-secondary:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* === Text Effects === */
.text-stroke {
    -webkit-text-stroke: 2px rgba(139, 92, 246, 0.3);
    color: transparent;
}

/* === Video Container === */
.video-container {
    position: relative;
    overflow: hidden;
}

/* === Scroll Indicator === */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-8px) translateX(-50%); }
}

/* === Marquee Animation === */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-flex;
    animation: marquee-slide 40s linear infinite;
}

@keyframes marquee-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Image Reveal === */
.image-reveal-wrapper {
    clip-path: inset(100% 0 0 0);
}

.image-reveal-wrapper.revealed {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* === Character Animation Wrapper === */
.char-wrap {
    display: inline-block;
    transform-origin: center bottom;
}

/* === Parallax Image === */
.parallax-img {
    will-change: transform;
}

/* === Chatbot Styles === */
.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-bubble {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 48px);
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px -12px rgba(0, 0, 0, 0.4);
    display: none;
    overflow: hidden;
}

.chat-window.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.message {
    padding: 14px 18px;
    border-radius: 18px;
    margin-bottom: 12px;
    max-width: 85%;
    line-height: 1.5;
}

.message.user {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    margin-left: auto;
}

.message.assistant {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

/* === Input Icon === */
.input-icon {
    position: relative;
}

.input-icon svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6366f1;
    pointer-events: none;
}

.input-icon input,
.input-icon textarea {
    padding-left: 48px;
}

/* === Cursor Blob === */
#cursor-blob {
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.6) 50%, rgba(59, 130, 246, 0.5) 100%);
    will-change: left, top;
}

/* Video Section Styles */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(15, 13, 26, 0.3) 0%,
        rgba(15, 13, 26, 0.8) 50%,
        rgba(15, 13, 26, 1) 100%
    );
    z-index: 0;
}

.video-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* Parallax Image Container */
.parallax-container {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 500px;
}

.parallax-image {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    will-change: transform;
}

/* Pinned Section */
.pinned-section {
    position: relative;
    height: 300vh;
}

.pinned-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Horizontal Scroll Gallery */
.horizontal-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.horizontal-scroll-wrapper {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 2rem 0;
}

.horizontal-scroll-item {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

/* Reveal Animations */
.clip-reveal {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.clip-reveal.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Text Split Animation */
.split-text span {
    display: inline-block;
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    transform: translateY(100%);
}

/* Scale on Scroll */
.scale-on-scroll {
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-on-scroll.active {
    transform: scale(1);
    opacity: 1;
}

/* Floating Elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

/* Glow Effects */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.4); }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* Counter Animation */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Image Mask Reveal */
.image-mask {
    position: relative;
    overflow: hidden;
}

.image-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform-origin: right;
}

/* Smooth Card Hover */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

/* Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #3b82f6);
    transform-origin: left;
    z-index: 9999;
}

/* Blur Background */
.blur-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Text Gradient Animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(270deg, #6366f1, #8b5cf6, #3b82f6, #6366f1);
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

/* Smooth underline */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* Stat card */
.stat-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
}

/* Technology badge */
.tech-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
    transform: translateX(-50%);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    border: 3px solid #0f0d1a;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Quote card */
.quote-card {
    position: relative;
    padding-left: 2rem;
}

.quote-card::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(139, 92, 246, 0.3);
    line-height: 1;
}

/* Custom Cursor */
.custom-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999 !important;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    z-index: 999999 !important;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    z-index: 999999 !important;
}

a:hover ~ .custom-cursor .cursor-dot,
button:hover ~ .custom-cursor .cursor-dot {
    width: 16px;
    height: 16px;
    background: #8b5cf6;
}

a:hover ~ .custom-cursor .cursor-ring,
button:hover ~ .custom-cursor .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: #8b5cf6;
}

/* Radio button styles */
.peer:checked ~ span.w-5 {
    border-color: #8b5cf6;
    background-color: #8b5cf6;
}

.peer:checked ~ span.w-5 span.w-2 {
    opacity: 1;
}

/* Tilt card 3D effect */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card > * {
    transform: translateZ(20px);
}

/* Expertise card glow effect */
.expertise-card-wrapper {
    position: relative;
    z-index: 1;
}

.expertise-card-wrapper::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.5) 0%, rgba(139, 92, 246, 0.4) 25%, rgba(59, 130, 246, 0.25) 45%, transparent 65%);
    opacity: 0;
    filter: blur(30px);
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 50px;
    pointer-events: none;
}

.expertise-card-wrapper:hover::before {
    opacity: 1;
}

.expertise-card {
    position: relative;
    z-index: 2;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.expertise-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.25) 0%,
        rgba(139, 92, 246, 0.15) 25%,
        rgba(59, 130, 246, 0.08) 50%,
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.expertise-card:hover::after {
    opacity: 1;
}

/* Methodology inner card glow effect */
.method-inner-card {
    position: relative;
    z-index: 1;
    --mouse-x: 50%;
    --mouse-y: 50%;
    overflow: hidden;
}

.method-inner-card::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.3) 25%, rgba(59, 130, 246, 0.15) 45%, transparent 65%);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 30px;
    pointer-events: none;
}

.method-inner-card:hover::before {
    opacity: 1;
}

.method-inner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.25) 0%,
        rgba(139, 92, 246, 0.15) 25%,
        rgba(59, 130, 246, 0.08) 50%,
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.method-inner-card:hover::after {
    opacity: 1;
}

/* Global cursor blob - positioned via JS */
#cursor-blob {
    will-change: left, top;
}

/* Section gradient backgrounds - more subtle variations */
.section-gradient-1 {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 30%);
}

.section-gradient-2 {
    background: 
        radial-gradient(ellipse at 70% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 35%);
}

.section-gradient-3 {
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 50%, rgba(99, 102, 241, 0.07) 0%, transparent 40%),
        radial-gradient(ellipse at 0% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 35%);
}

.section-gradient-4 {
    background: 
        radial-gradient(ellipse at 90% 10%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
}

/* Person showcase styles */
#person-showcase .person-image {
    transition: opacity 0.5s ease;
}

/* Immersive Video Section */
#immersive-sticky {
    will-change: transform;
}

#immersive-video-el {
    object-fit: cover;
}

.immersive-phase {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Universal hover gradient effect for all interactive elements */
.hover-gradient-setup {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    overflow: hidden;
}

.hover-gradient-setup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.2) 0%,
        rgba(139, 92, 246, 0.1) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.hover-gradient-setup:hover::before {
    opacity: 1;
}

/* Button hover effects */
button, .btn, a.btn {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    overflow: hidden;
}

button::after, .btn::after, a.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        300px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.15) 0%,
        rgba(139, 92, 246, 0.1) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

button:hover::after, .btn:hover::after, a.btn:hover::after {
    opacity: 1;
}

/* Input and form elements hover */
input, textarea, select {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 
        0 0 0 2px rgba(99, 102, 241, 0.3),
        0 0 40px -10px rgba(99, 102, 241, 0.5);
}

/* Card hover glow effect - using wrapper approach to avoid conflicts */
.stat-card, .testimonial-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
}

.stat-card::before, .testimonial-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(
        500px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.4) 0%,
        rgba(139, 92, 246, 0.2) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: inherit;
    filter: blur(20px);
    pointer-events: none;
}

.stat-card:hover::before, .testimonial-card:hover::before {
    opacity: 1;
}

.stat-card::after, .testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.15) 0%,
        rgba(139, 92, 246, 0.08) 35%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.stat-card:hover::after, .testimonial-card:hover::after {
    opacity: 1;
}

/* Booking card - with cursor-following gradient and outer glow */
.booking-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    overflow: visible;
}

.booking-card::before {
    content: '';
    position: absolute;
    inset: -50px;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.4) 0%,
        rgba(139, 92, 246, 0.25) 20%,
        rgba(59, 130, 246, 0.12) 40%,
        transparent 60%
    );
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 50px;
    pointer-events: none;
}

.booking-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        500px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.18) 0%,
        rgba(139, 92, 246, 0.1) 30%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.booking-card:hover::before,
.booking-card.is-hovered::before {
    opacity: 1;
}

.booking-card:hover::after,
.booking-card.is-hovered::after {
    opacity: 1;
}

.booking-card > * {
    position: relative;
    z-index: 1;
}

/* Project and service cards - with cursor-following gradient */
.project-card, .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Internal gradient that follows cursor */
.project-card::after, .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        350px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.2) 0%,
        rgba(139, 92, 246, 0.1) 30%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::after, .service-card:hover::after {
    opacity: 1;
}

.project-card:hover, .service-card:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 0 80px rgba(139, 92, 246, 0.08);
}

/* Methodology cards - cursor following gradient */
.methodology-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    overflow: hidden;
}

.methodology-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.15) 0%,
        rgba(139, 92, 246, 0.08) 35%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.methodology-card:hover::before {
    opacity: 1;
}

.methodology-card > * {
    position: relative;
    z-index: 1;
}

/* Magnetic button effect */
.magnetic-btn, .magnetic-setup {
    transition: transform 0.2s ease-out;
}

/* Nav links hover */
nav a, .nav-item a {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
}

nav a::after, .nav-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(99, 102, 241, 0.8) 50%,
        transparent 100%
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after, .nav-item a:hover::after {
    transform: scaleX(1);
}

/* CTA section blob animation */
.cta-blob {
    animation: blob-float 8s ease-in-out infinite;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-45%, -55%) scale(1.1) rotate(60deg);
    }
    66% {
        transform: translate(-55%, -45%) scale(0.9) rotate(120deg);
    }
}

/* Footer link hover */
footer a {
    position: relative;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #8b5cf6;
}

/* Booking form container */
.booking-form, #booking form {
    position: relative;
}

.booking-form::before, #booking form::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.3) 0%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(59, 130, 246, 0.3) 100%
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.booking-form:hover::before, #booking form:hover::before {
    opacity: 1;
}

/* Chat booking form styles */
.chat-booking-form {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 8px;
}

.chat-booking-form input,
.chat-booking-form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-booking-form input:focus,
.chat-booking-form select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.chat-booking-form input::placeholder {
    color: #9ca3af;
}

.chat-booking-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

.chat-booking-form select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.chat-booking-form button {
    margin-top: 4px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .parallax-container {
        height: 50vh;
    }
    
    .horizontal-scroll-item {
        width: 300px;
        height: 220px;
    }
    
    .pinned-section {
        height: auto;
    }
    
    .pinned-content {
        position: relative;
        height: auto;
        min-height: 100vh;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* Modern Flatpickr Calendar Styles */
.flatpickr-calendar {
    background: rgba(15, 15, 30, 0.98) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    padding: 20px !important;
    font-family: inherit !important;
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: auto !important;
}

.flatpickr-calendar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at top,
        rgba(99, 102, 241, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.flatpickr-months {
    padding: 0 10px 15px !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 10px;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    height: 40px !important;
}

.flatpickr-current-month {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    padding: 0 !important;
    cursor: auto !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: #fff !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.flatpickr-current-month input.cur-year {
    color: #a5b4fc !important;
    font-weight: 600 !important;
    cursor: text !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #a5b4fc !important;
    padding: 8px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    fill: #fff !important;
}

.flatpickr-weekdays {
    background: transparent !important;
    padding: 10px 0 !important;
}

.flatpickr-weekday {
    color: rgba(165, 180, 252, 0.7) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hide weekend days (Saturday and Sunday) - class added via onDayCreate */
.flatpickr-day.flatpickr-weekend {
    display: none !important;
}

/* Hide weekend headers (Sáb and Dom in Spanish locale) */
.flatpickr-weekdaycontainer span.flatpickr-weekday:nth-child(6),
.flatpickr-weekdaycontainer span.flatpickr-weekday:nth-child(7) {
    display: none !important;
}

.flatpickr-days {
    border: none !important;
}

.dayContainer {
    padding: 5px !important;
    gap: 4px;
}

.flatpickr-day {
    color: #e0e7ff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    height: 42px !important;
    line-height: 42px !important;
    margin: 2px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    cursor: pointer !important;
}

.flatpickr-day:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    color: #fff !important;
    transform: scale(1.05);
}

.flatpickr-day.today {
    border: 2px solid rgba(99, 102, 241, 0.5) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.flatpickr-day.today:hover {
    background: rgba(99, 102, 241, 0.3) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3) !important;
    transform: scale(1.08);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
    opacity: 0.4 !important;
    text-decoration: line-through !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.25) !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.numInputWrapper {
    background: transparent !important;
}

.numInputWrapper:hover {
    background: rgba(99, 102, 241, 0.1) !important;
}

.numInputWrapper span {
    border: none !important;
}

.numInputWrapper span:hover {
    background: rgba(99, 102, 241, 0.2) !important;
}

.numInputWrapper span:after {
    border-color: #a5b4fc transparent transparent !important;
}

.numInputWrapper span.arrowUp:after {
    border-bottom-color: #a5b4fc !important;
}

.flatpickr-time {
    border-top: 1px solid rgba(99, 102, 241, 0.2) !important;
    margin-top: 10px;
    padding-top: 10px;
}

.flatpickr-time input {
    color: #fff !important;
    font-weight: 600 !important;
    cursor: text !important;
}

.flatpickr-time .flatpickr-am-pm {
    color: #a5b4fc !important;
    font-weight: 600 !important;
}
