body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: #f8f9fa;
    /* Removemos scroll-behavior: smooth para usar nuestro JavaScript personalizado */
}

.hero-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/pattern.svg");
    opacity: 0.5;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.service-card {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    border: 1px solid #333;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: #ff3d00;
}

.testimonial-card {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    border-color: #ff3d00;
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px 5px rgba(255, 61, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

.glow-effect:hover::after {
    opacity: 1;
}

.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 61, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: glitter 10s linear infinite;
}

@keyframes glitter {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(50%) translateY(50%) rotate(360deg);
    }
}

.project-card {
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-content {
    position: relative;
    z-index: 2;
}

.pulse-btn {
    position: relative;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 61, 0, 0.4);
    border-radius: 50px;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ff3d00;
    transition: width 0.3s ease;
}

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

.nav-link.active-nav {
    color: #f97316 !important;
}

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

.talent-card:hover .talent-overlay {
    opacity: 1;
}

.talent-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 140px 0 40px;
    }

    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .floating {
        transform: scale(0.9);
    }

    .wave-divider {
        bottom: -2px;
    }

    .wave-divider svg {
        height: 40px;
    }

    /* Smaller language switcher */
    #language-toggle-mobile.language-switch {
        transform: scale(0.8);
        transform-origin: left center;
    }

    /* Balance nav items for centering logo */
    .hamburger-container {
        width: 72px; /* Matches scaled language switcher */
        display: flex;
        justify-content: flex-end;
    }


    
    /* Mobile menu open state */
    .mobile-menu.open {
        max-height: 800px;
        opacity:1;
    }

    /* Hamburger icon animation */
    #menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #menu-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    #menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Estilos específicos para proyectos al estilo PixelDubbing */
.project-item {
    position: relative;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item .aspect-w-16 {
    position: relative;
    width: 100%;
}

.project-item .aspect-h-9 {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.project-item .h-64 {
    height: 16rem;
}

.project-item .bg-gradient-to-br {
    transition: all 0.3s ease;
}

.project-item:hover .bg-gradient-to-br {
    transform: scale(1.02);
}

.project-item a {
    position: relative;
    overflow: hidden;
}

.project-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.project-item:hover a::before {
    left: 100%;
}

/* Responsive para proyectos */
@media (max-width: 768px) {
    .project-item h3 {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .project-item .w-16.h-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .project-item .w-8.h-8 {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Estilos específicos para clientes */
.client-item {
    position: relative;
    transition: all 0.3s ease;
}

.client-item:hover {
    transform: translateY(-3px);
}

.client-item a {
    text-decoration: none;
}

.client-item .bg-gradient-to-br {
    background: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to));
}

/* Responsive para clientes */
@media (max-width: 768px) {
    .client-item h3 {
        font-size: 1.125rem;
    }
    
    .client-item .w-16.h-16 {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .client-item .w-8.h-8 {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Estilos mejorados para tarjetas de proyectos */
.project-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

/* Estilos mejorados para tarjetas de clientes */
.client-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-card:hover {
    transform: translateY(-12px) scale(1.03);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

/* Animaciones adicionales */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.5s ease-out;
}

/* Efectos de hover mejorados */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hover-glow:hover::after {
    left: 100%;
}

/* Estilos para el botón de WhatsApp */
#whatsapp-btn {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    #whatsapp-btn {
        bottom: 1rem;
        right: 1rem;
    }
    
    #whatsapp-btn a {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    #whatsapp-btn svg {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    #whatsapp-btn .absolute.right-20 {
        right: 4rem;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Indicador de progreso de scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* Efectos de transición mejorados para enlaces */
a[href^="#"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a[href^="#"]:active {
    transform: scale(0.95);
}

/* Animación de pulso para secciones al llegar */
.section-highlight {
    animation: sectionPulse 0.6s ease-out;
}

@keyframes sectionPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.01);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Efecto de ondas al hacer scroll */
.scroll-wave {
    position: relative;
    overflow: hidden;
}

.scroll-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    animation: scrollWave 2s ease-in-out;
}

@keyframes scrollWave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animación ripple para enlaces */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mejoras adicionales para transiciones suaves */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimización para animaciones */
.nav-link,
a[href^="#"],
.service-card,
.project-card {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Estilos para el switch de cambio de idioma */
.language-switch {
    margin-right: 1rem;
    cursor: pointer;
    user-select: none;
}

.switch-container {
    position: relative;
    display: inline-block;
}

.switch-track {
    position: relative;
    width: 80px;
    height: 36px;
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 20px;
    border: 2px solid #4b5563;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.switch-track:hover {
    border-color: #f97316;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 12px rgba(249, 115, 22, 0.3);
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.switch-thumb .flag-icon {
    font-size: 14px;
    transition: all 0.3s ease;
}

.switch-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 1;
}

.label-left,
.label-right {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.label-left {
    margin-left: 2px;
}

.label-right {
    margin-right: 2px;
}

/* Estado activo para español */
.language-switch.spanish .switch-thumb {
    left: 2px;
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    box-shadow: 
        0 2px 8px rgba(251, 191, 36, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-switch.spanish .label-left {
    color: #f97316;
    font-weight: 700;
}

.language-switch.spanish .switch-track {
    background: linear-gradient(135deg, #1f2937, #374151);
}

/* Estado activo para inglés */
.language-switch.english .switch-thumb {
    left: 46px;
    background: linear-gradient(135deg, #dbeafe, #3b82f6);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-switch.english .label-right {
    color: #3b82f6;
    font-weight: 700;
}

.language-switch.english .switch-track {
    background: linear-gradient(135deg, #1f2937, #374151);
}

/* Estado inicial por defecto (inglés) */
.language-switch .switch-thumb {
    left: 46px;
    background: linear-gradient(135deg, #dbeafe, #3b82f6);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-switch .label-right {
    color: #3b82f6;
    font-weight: 700;
}

/* Efectos de hover */
.language-switch:hover .switch-thumb {
    transform: scale(1.05);
}

.language-switch:active .switch-thumb {
    transform: scale(0.95);
}

/* Animación de cambio */
.language-switch.switching .switch-thumb {
    animation: switchBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes switchBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Efecto de destello al cambiar */
.switch-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 115, 22, 0.3), 
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.language-switch.switching .switch-track::before {
    left: 100%;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .language-switch {
        margin-right: 0;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }
}

/* Transición suave para cambio de idioma */
body {
    transition: opacity 0.2s ease;
}

/* Indicador de idioma activo */
.language-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #f97316;
    border-radius: 1px;
    transition: all 0.3s ease;
}

#portfolio-video {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.video-container {
    border: 2px solid #ff3d00;
    padding: 5px;
    background-color: #000;
}