/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* Animaciones normalizadas por tipo de efecto */
/* Transiciones suaves para interacciones básicas */
*,
*::before,
*::after {
    transition-duration: 0.2s;
}

/* Animaciones de hover para elementos interactivos */
.btn,
.service-card,
.portfolio-item,
.nav-link,
.filter-btn {
    transition-duration: 0.3s;
}

/* Animaciones de entrada y efectos especiales */
.hero-title,
.gradient-text-big,
.typing-text,
.typing-highlight {
    animation-duration: 1.5s;
}

/* Animaciones de fondo y ambientales - reducidas para móvil */
.paint-drop,
.hero::before,
.hero::after {
    animation-duration: 6s;
}

/* Animaciones de carga y feedback */
.preloader,
.loading-shimmer {
    animation-duration: 1s;
}

/* DESACTIVAR TODAS LAS ANIMACIONES EN MÓVIL */
@media (max-width: 768px) {
    /* Eliminar completamente transiciones y animaciones */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Mantener solo hover básico sin animaciones */
    .btn:hover,
    .service-card:hover,
    .portfolio-item:hover,
    .nav-link:hover,
    .filter-btn:hover {
        transition: none !important;
        animation: none !important;
    }
    
    /* Desactivar animaciones específicas */
    .paint-drop {
        animation: none !important;
        display: none;
    }
    
    .hero::before,
    .hero::after {
        animation: none !important;
    }
    
    /* WhatsApp flotante SIN ANIMACIÓN */
    .whatsapp-float,
    .whatsapp-float-btn,
    .whatsapp-float-btn:hover,
    .whatsapp-float-btn:active {
        animation: none !important;
        transition: none !important;
    }
    
    /* Elementos interactivos sin animaciones */
    .portfolio-item,
    .service-card,
    .testimonial-card,
    .preloader,
    .lightbox {
        will-change: auto !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Chat widget sin animaciones */
    .chat-widget,
    .chat-toggle,
    .chat-window {
        animation: none !important;
        transition: none !important;
    }
    
    /* Menú móvil - solo transición mínima */
    .nav-menu {
        transition: left 0.15s ease !important;
        animation: none !important;
    }
    
    .nav-overlay {
        transition: opacity 0.15s ease !important;
        animation: none !important;
    }
    
    .hamburger {
        transition: none !important;
        animation: none !important;
    }
    
    /* Optimizar rendimiento en móviles */
    .portfolio-item,
    .service-card {
        will-change: auto;
        /* allow transforms if needed */
    }
}

/* Optimizaciones para pantallas muy pequeñas */
@media (max-width: 480px) {
    /* Preloader desactivado completamente */
    .preloader {
        animation: none !important;
        display: none !important;
    }
    
    .hero-desktop {
        display: none !important;
    }
    
    /* GARANTIZAR que NO hay animaciones */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* REGLA ESPECÍFICA PARA WHATSAPP Y ELEMENTOS FLOTANTES EN MÓVIL */
@media (max-width: 768px) {
    /* WhatsApp flotante completamente estático */
    .whatsapp-float-btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .whatsapp-float-btn:hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4) !important;
    }
    
    .whatsapp-float-btn::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 0 !important;
    }
    
    .whatsapp-float-btn:hover::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 0 !important;
    }
    
    /* Chat widget estático */
    .chat-toggle {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Eliminar animaciones de keyframes específicos en móvil */
    @keyframes whatsappFloat { 
        0%, 100% { transform: none !important; }
    }
    
    @keyframes rotate { 
        0%, 100% { transform: none !important; }
    }
}

/* Optimización de renderizado */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration para elementos animados */
.portfolio-item,
.service-card,
.testimonial-card,
.preloader,
.lightbox {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimización de imágenes */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: bicubic;
}

/* Asegurar compatibilidad de Font Awesome en todos los dispositivos */
.fa,
.fas,
.fa-solid,
.far,
.fa-regular,
.fab,
.fa-brands {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

.fas,
.fa-solid,
.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
}

.fas,
.fa-solid {
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Ajustes generales para la sección de inicio */
#inicio {
    transform: translateX(0) translateY(0);
}

/* Heading */
#testimonios .section-header h2 {
    color: #ffffff;
}

/* Paragraph */
#testimonios .section-header p {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Testimonios */
#testimonios {
    transform: translateX(0px) translateY(0px);
    background-color: #cdd819 !important;
}

@media (max-width: 1700px) {
    .header {
        min-height: 98px;
    }

    .nav-menu li a {
        font-size: 16px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    #inicio .hero-mobile-top {
        transform: translateX(5px) translateY(160px);
        padding-top: 40px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    #inicio .hero-mobile-top {
        min-height: 384px;
        transform: translateX(5px) translateY(200px); /* Aumentado aún más */
        padding-top: 60px; /* Más padding */
        margin-top: 30px; /* Más margen */
    }

    #inicio strong {
        transform: translateX(13px) translateY(-6px);
    }
}

@media (max-width: 320px) {
    #inicio strong {
        text-shadow: none;
        transform: translateX(13px) translateY(-6px);
    }

    #inicio .hero-mobile-top {
        min-height: 491px;
        transform: translateX(5px) translateY(220px); /* Máximo espacio */
        padding-top: 70px; /* Máximo padding */
        margin-top: 40px; /* Máximo margen */
    }
}

@media (min-width: 481px) {
    #servicios {
        padding-top: 0;
    }
}

@media (min-width: 1025px) {
    #inicio {
        transform: translateX(4px) translateY(-114px);
        padding-bottom: 0 !important;
        height: 832px !important;
    }

    #inicio.hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 0;
    }

    #inicio .hero-container {
        max-width: 1100px;
        padding: 0 2.5rem;
        gap: var(--spacing-lg);
    }

    #inicio .hero-content {
        max-width: 480px;
        padding: 1.25rem;
    }

    #inicio .hero-image {
        max-width: 400px;
    }

    #inicio .hero-desktop {
        transform: translateX(3px) translateY(54px);
    }

    #inicio .hero-title .typing-text {
        width: 131%;
        transform: translateX(3px) translateY(109px) !important;
        position: relative;
        top: -48px;
    }

    #inicio .hero-title .gradient-text-big {
        transform: translateX(8px) translateY(6px);
        width: 172%;
    }

    #inicio .hero-buttons .btn-primary {
        transform: translateX(-6px) translateY(-62px);
    }

    #inicio .hero-buttons .btn-secondary {
        position: relative;
        top: -66px;
    }
}

/* ====== NORMALIZACIÓN COMPLETA DE ANIMACIONES ====== */

/* Sobrescribir animaciones específicas con duraciones apropiadas */

/* 1. TRANSICIONES HOVER - Rápidas y responsivas */
.service-card,
.portfolio-item,
.btn,
.nav-link,
.filter-btn,
.hamburger,
.stat {
    transition-duration: 0.4s !important;
    animation-duration: 0.4s !important;
}

/* 2. ANIMACIONES DE TEXTO HERO - Moderadas para legibilidad */
.gradient-text-big {
    animation: rainbowShift 4s ease-in-out infinite !important;
}

.typing-text {
    animation: typeIn 2.5s ease-out 0.8s forwards !important;
}

.typing-highlight {
    animation: typeIn 2.5s ease-out 3s forwards !important;
}

/* 3. ANIMACIONES DE FONDO - Lentas y ambientales */
.paint-drop {
    animation-duration: 12s !important;
}

.hero::before {
    animation: float 8s ease-in-out infinite !important;
}

.hero::after {
    animation: paintDrips 25s linear infinite !important;
}

/* 4. EFECTOS VISUALES - Moderados */
.about-shape::before {
    animation: spin 20s linear infinite !important;
}

.about-shape::after {
    animation: spin 25s linear infinite reverse !important;
}

/* 5. ANIMACIONES DE FEEDBACK - Rápidas pero visibles */
.btn-primary:hover {
    animation: pulse 2.5s infinite !important;
}

.portfolio-overlay i {
    animation: bounce 2s infinite !important;
}

/* 6. ANIMACIONES DE CARGA - Estándar */
.preloader {
    animation-duration: 1.5s !important;
}

.loading-shimmer {
    animation: loading-shimmer 2s infinite !important;
}

/* 7. EFECTOS ESPECIALES - Suaves */
.logo-modern:hover .paint-drop {
    animation-duration: 2s !important;
}

.logo-modern:hover .logo-main {
    animation: logoGlow 1.5s ease-in-out !important;
}

/* 8. ANIMACIONES DE CHAT Y WIDGETS */

/* Fin de normalización de animaciones */

/* Lazy loading styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* Placeholder para imágenes que se están cargando */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reset optimizado */
* {
    margin: 0;
    padding: 0;
}

:root {
    /* Colors EXACTOS del logo CARpinturas.cl */
    --logo-purple: #8E4EC6;
    --logo-blue: #4A90E2;
    --logo-green: #7ED321;
    --logo-yellow: #F5A623;
    --logo-orange: #FF6B35;
    --logo-red: #D0021B;
    --logo-lime: #9BC53D;
    --logo-gray: #4A4A4A;
    --logo-dark-gray: #2C2C2C;
    --logo-light-gray: #F5F5F5;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Aliases for compatibility */
    --dark-gray: #2C2C2C;
    --dark-navy: #1a202c;
    
    /* Primary color aliases */
    --primary-purple: var(--logo-purple);
    --primary-blue: var(--logo-blue);
    --primary-green: var(--logo-green);
    --primary-yellow: var(--logo-yellow);
    --primary-orange: var(--logo-orange);
    --primary-red: var(--logo-red);
    --primary-pink: var(--logo-pink);
    --primary-gradient: linear-gradient(135deg, var(--logo-purple), var(--logo-blue));
    
    /* Nuevos gradientes basados en el logo */
    --logo-house-gradient: linear-gradient(135deg, var(--logo-purple), var(--logo-blue), var(--logo-green), var(--logo-yellow), var(--logo-orange), var(--logo-red));
    --logo-drip-gradient-1: linear-gradient(180deg, var(--logo-purple), transparent);
    --logo-drip-gradient-2: linear-gradient(180deg, var(--logo-blue), transparent);
    --logo-drip-gradient-3: linear-gradient(180deg, var(--logo-green), transparent);
    --logo-drip-gradient-4: linear-gradient(180deg, var(--logo-yellow), transparent);
    --logo-drip-gradient-5: linear-gradient(180deg, var(--logo-orange), transparent);
    --logo-drip-gradient-6: linear-gradient(180deg, var(--logo-red), transparent);
    
    /* Dark Mode Variables */
    --bg-primary-dark: #0F172A;
    --bg-secondary-dark: #1E293B;
    --text-primary-dark: #F8FAFC;
    --text-secondary-dark: #CBD5E1;
    
    /* Advanced Gradient combinations */
    --gradient-primary: var(--primary-gradient);
    --gradient-secondary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-yellow) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 50%, var(--primary-pink) 100%);
    --gradient-rainbow: linear-gradient(135deg, 
        var(--primary-purple) 0%, 
        var(--primary-blue) 20%, 
        var(--primary-green) 40%, 
        var(--primary-yellow) 60%, 
        var(--primary-orange) 80%, 
        var(--primary-red) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-gray) 100%);
    
    /* Mobile viewport height fix */
    --vh: 1vh;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    
    /* Enhanced Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 35px 60px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 30px rgba(106, 76, 147, 0.3);
    --shadow-glow: 0 0 20px rgba(106, 76, 147, 0.4);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: auto; /* Navegación directa sin animaciones */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--logo-gray);
    overflow-x: hidden;
    background: 
        radial-gradient(circle at 10% 20%, rgba(184, 230, 49, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(233, 30, 99, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(103, 58, 183, 0.02) 0%, transparent 70%),
        linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(106, 76, 147, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(61, 90, 128, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(152, 216, 200, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header limpio y funcional */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* LOGO REAL PNG - Estilos profesionales basados en tu logo auténtico */
.logo-real {
    height: 55px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

.logo-real:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.footer-logo-img {
    height: 90px;
    filter: brightness(1.1) drop-shadow(0 4px 15px rgba(255, 255, 255, 0.1));
}

/* PALETA DE COLORES basada en tu logo real */
:root {
    /* Colores extraídos del logo CARpinturas.cl */
    --logo-purple: #8B5BBF;      /* Morado del techo */
    --logo-blue: #4A6DC7;        /* Azul del techo */
    --logo-lime: #B8E631;        /* Verde lima brillante */
    --logo-pink: #E91E63;        /* Rosa vibrante */
    --logo-violet: #673AB7;      /* Violeta */
    --logo-cyan: #2196F3;        /* Azul claro */
    --logo-green: #4CAF50;       /* Verde */
    --logo-orange: #FF9800;      /* Naranja */
    --logo-red: #F44336;         /* Rojo */
    --logo-magenta: #9C27B0;     /* Magenta */
    --logo-gray: #5A5A5A;        /* Gris del texto CAR */
    --logo-green-cl: #9BC53D;    /* Verde del .cl */
    
    /* Colores derivados para el sitio web */
    --primary-gradient: linear-gradient(135deg, var(--logo-purple), var(--logo-blue));
    --accent-rainbow: linear-gradient(90deg, 
        var(--logo-lime), var(--logo-pink), var(--logo-violet), 
        var(--logo-cyan), var(--logo-green), var(--logo-orange), 
        var(--logo-red), var(--logo-magenta));
    --text-primary: var(--logo-gray);
    --accent-color: var(--logo-green-cl);
}

.logo-paint-drops {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 45px;
    position: relative;
}

.paint-drop {
    width: 8px;
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: paintDrip 3s ease-in-out infinite;
    transform-origin: bottom;
}

.paint-drop::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.8;
}

.drop-1 {
    height: 35px;
    background: var(--logo-purple);
    animation-delay: 0s;
}

.drop-2 {
    height: 40px;
    background: var(--logo-blue);
    animation-delay: 0.2s;
}

.drop-3 {
    height: 45px;
    background: var(--logo-green);
    animation-delay: 0.4s;
}

.drop-4 {
    height: 38px;
    background: var(--logo-yellow);
    animation-delay: 0.6s;
}

.drop-5 {
    height: 42px;
    background: var(--logo-orange);
    animation-delay: 0.8s;
}

@keyframes paintDrip {
    0%, 100% { 
        transform: scaleY(1); 
        filter: brightness(1);
    }
    50% { 
        transform: scaleY(1.1); 
        filter: brightness(1.2);
    }
}

.logo-text {
    display: flex;
    align-items: baseline;
    font-family: var(--font-family);
    line-height: 1;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: -1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-script {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--dark-gray);
    font-style: italic;
    margin-left: -2px;
    position: relative;
}

.logo-script::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--logo-green), var(--logo-yellow));
    border-radius: 1px;
}

.logo-domain {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--logo-lime);
    margin-left: 2px;
}

.logo-subtitle {
    position: absolute;
    bottom: -18px;
    left: 60px;
    font-size: 0.7rem;
    color: var(--medium-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Footer version adjustments */
.footer-version {
    margin-bottom: 1rem;
}

.footer-version .logo-main,
.footer-version .logo-script {
    color: var(--white);
}

.footer-version .logo-main {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-version .logo-subtitle {
    color: var(--light-gray);
}

/* Hover effects */
.logo-modern:hover .paint-drop {
    animation-duration: 1s;
}

.logo-modern:hover .logo-main {
    animation: logoGlow 1s ease-in-out;
}

@keyframes logoGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(106, 76, 147, 0.5)); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-text {
        flex-direction: column;
        gap: -5px;
    }
    
    .logo-main, .logo-script {
        font-size: 1.4rem;
    }
    
    .logo-domain {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .logo-paint-drops {
        height: 35px;
    }
    
    .paint-drop {
        width: 6px;
    }
    
    .drop-1 { height: 25px; }
    .drop-2 { height: 30px; }
    .drop-3 { height: 35px; }
    .drop-4 { height: 28px; }
    .drop-5 { height: 32px; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

/* Reset navigation links completely */
.header .nav-menu .nav-link {
    text-decoration: none !important;
    color: #2C2C2C !important;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block;
    outline: none;
    text-shadow: none;
    font-family: inherit;
    line-height: normal;
}

.header .nav-menu .nav-link:hover {
    color: #8E4EC6;
    background: rgba(142, 78, 198, 0.1);
    transform: translateY(-2px);
}

.header .nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8E4EC6;
    transition: width 0.3s ease;
}

.header .nav-menu .nav-link:hover::after {
    width: 100%;
}

.header .nav-menu .nav-link.active {
    background: rgba(142, 78, 198, 0.1);
    color: #8E4EC6;
}

.header .nav-menu .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(142, 78, 198, 0.1);
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background: var(--logo-blue);
    margin: 4px 0;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

/* Hamburger menu animations */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Hero Section - Con imagen de fondo paintbrush y parallax mejorado */
.hero {
    height: 70vh; /* Reducido de 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
        url('../images/paintbrush-4577578_1920.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
    padding: 60px 2rem 0; /* Reducido de 80px */
    margin-top: -60px; /* Ajustado proporcionalmente */
    transition: transform 0.1s ease-out;
    min-height: 100vh;
    width: 100%;
}

/* Asegurar que la imagen de fondo siempre sea visible */
.hero {
    /* Fallback para casos donde la imagen no carga */
    background-color: #4a90e2 !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Efectos decorativos sutiles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 195, 74, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 40%);
    z-index: 4;
    pointer-events: none;
}

.hero-desktop {
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-mobile {
    display: none;
    width: 100%;
    position: relative;
    z-index: 6;
    color: #ffffff;
    padding-top: 120px; /* Más espacio para el header fijo */
}

.hero-mobile-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    color: #ffffff;
}

.hero-mobile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.hero-mobile-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-mobile-title strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--logo-lime), var(--logo-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-mobile-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hero-mobile-figure {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.hero-mobile-figure img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.hero-mobile-figure-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.hero-mobile-buttons .btn {
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-mobile-form {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(74, 144, 226, 0.25);
    border: 1px solid rgba(74, 144, 226, 0.22);
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    color: var(--logo-gray);
}

.hero-mobile-form .hero-form-header h3 {
    color: var(--logo-purple);
}

.hero-mobile-form .hero-form-header p {
    color: var(--logo-blue);
}

@keyframes float {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    justify-items: center;
    overflow: visible;
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 10;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    color: white;
}

/* Gotas de pintura flotantes */
.paint-drops {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.paint-drop {
    position: absolute;
    width: 15px;
    height: 20px;
    border-radius: 50% 50% 50% 0;
    animation: dropFall 8s linear infinite;
}

.paint-drop:nth-child(1) { left: 10%; background: var(--logo-lime); animation-delay: 0s; }
.paint-drop:nth-child(2) { left: 20%; background: var(--logo-pink); animation-delay: 1s; }
.paint-drop:nth-child(3) { left: 30%; background: var(--logo-violet); animation-delay: 2s; }
.paint-drop:nth-child(4) { left: 40%; background: var(--logo-cyan); animation-delay: 3s; }
.paint-drop:nth-child(5) { left: 50%; background: var(--logo-green); animation-delay: 4s; }
.paint-drop:nth-child(6) { left: 60%; background: var(--logo-orange); animation-delay: 5s; }
.paint-drop:nth-child(7) { left: 70%; background: var(--logo-red); animation-delay: 6s; }
.paint-drop:nth-child(8) { left: 80%; background: var(--logo-magenta); animation-delay: 7s; }

@keyframes colorSplash {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}

@keyframes dropFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: white;
    position: relative;
    text-shadow: 1px 3px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    letter-spacing: -0.5px;
}

.gradient-text-big {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
    display: block;
    width: 100%;
    background: linear-gradient(135deg, 
        #A8E34F 0%,
        #7ED321 30%,
        #9BC53D 60%,
        #B8E631 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 3s ease-in-out infinite;
    text-shadow: none;
    display: block;
    margin-top: 0.5rem;
}

@keyframes rainbowShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.typing-text {
    opacity: 0;
    animation: typeIn 2s ease-out 0.5s forwards;
    display: block;
    text-align: center;
    width: 100%;
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.typing-highlight {
    opacity: 0;
    animation: typeIn 2s ease-out 2.5s forwards;
}

.gradient-text {
    background: var(--accent-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: none;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* .hero-description - Ya no se usa, texto movido a section-subtitle */
/*
.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.98);
    margin: 2rem auto 0 auto;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
    max-width: 580px;
    background: rgba(60, 60, 60, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: slideUpFade 1.5s ease-out 3.5s forwards;
    transform: translateY(20px);
}
*/

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-buttons .btn {
    flex: 0 0 auto;
    min-width: 200px;
    margin: 0.5rem;
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md) !important;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn:active,
.btn:focus {
    outline: none;
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #A8E34F 0%, #7ED321 100%);
    color: white !important;
    box-shadow: 0 8px 25px rgba(168, 227, 79, 0.4);
    position: relative;
    overflow: hidden;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.4s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 35px rgba(168, 227, 79, 0.6);
    filter: brightness(1.08);
    background: linear-gradient(135deg, #B8E631 0%, #9BC53D 100%) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:active,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--logo-lime) 0%, var(--logo-green) 100%) !important;
    color: white !important;
    transform: scale(0.98);
    box-shadow: 0 8px 20px rgba(184, 230, 49, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-3px) scale(1.07); }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: white !important;
}

.btn-secondary:active,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: scale(0.98);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 450px;
    max-width: 500px;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    z-index: 10;
}

.hero-shape {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 15;
}

/* Mini formulario de contacto en hero - MEJORADO */
.hero-contact-form {
    position: static;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.8rem 2rem; /* Aumentado de 1.2rem 1.5rem */
    width: 380px; /* Aumentado de 280px */
    max-width: 85%;
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.25);
    border: 1px solid rgba(74, 144, 226, 0.3);
    z-index: 5; /* Reducido de 20 para evitar solapamiento */
    margin: 0 auto;
    transform: scale(1.0); /* Aumentado de 0.85 */
    transition: all 0.3s ease;
}

.hero-contact-form:hover {
    transform: scale(1.05); /* Aumentado proporcionalmente */
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.35);
}

.hero-form-header {
    text-align: center;
    margin-bottom: 1.2rem; /* Aumentado de 0.8rem */
}

.hero-form-header h3 {
    font-size: 1.3rem; /* Aumentado de 1.1rem */
    font-weight: 700;
    color: var(--logo-purple);
    margin: 0 0 0.4rem 0; /* Aumentado de 0.2rem */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-form-header p {
    font-size: 0.8rem;
    color: var(--logo-blue);
    margin: 0;
    font-weight: 500;
}

.hero-form-group {
    margin-bottom: 1rem; /* Restaurado de 0.7rem */
}

.hero-form-group input,
.hero-form-group select {
    width: 100%;
    padding: 1rem 1.2rem; /* Aumentado de 0.7rem 1rem */
    border: 1px solid rgba(74, 144, 226, 0.25);
    border-radius: 12px;
    font-size: 1rem; /* Aumentado de 0.9rem */
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-gray);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.hero-form-group input:hover,
.hero-form-group select:hover {
    border-color: rgba(74, 144, 226, 0.4);
    transform: translateY(-1px);
}

.hero-form-group input:focus,
.hero-form-group select:focus {
    outline: none;
    border-color: #7ED321;
    box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.15);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px) scale(1.01);
}

.hero-form-btn {
    width: 100%;
    background: linear-gradient(135deg, #5B7BD5, #7B68EE);
    color: white;
    border: none;
    padding: 1rem 1.5rem; /* Restaurado tamaño original */
    border-radius: 12px;
    font-size: 1rem; /* Restaurado de 0.95rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem; /* Restaurado de 0.8rem */
    position: relative;
    overflow: hidden;
}

.hero-form-btn::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.4s ease;
}

.hero-form-btn:hover::before {
    left: 100%;
}

.hero-form-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
    background: linear-gradient(135deg, #6B7FE0, #8A7BF3);
}

.hero-form-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Animación rápida eliminada para mejor performance */

/* .hero-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(106, 76, 147, 0.3) 0%, 
        rgba(74, 144, 226, 0.2) 50%, 
        rgba(126, 211, 33, 0.3) 100%);
    z-index: 1;
} */

/* Overlay elements removed for centered form */

/* After element removed for centered form */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animaciones inspiradas en el LOGO */
@keyframes houseFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1; 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
        opacity: 0.15; 
    }
}

@keyframes paintDrips {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

@keyframes logoColorShift {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-rainbow);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem !important;
    color: var(--dark-gray) !important;
    max-width: 650px;
    margin: 1rem auto 0 auto !important;
    background: transparent !important;
    padding: 1.5rem 2.5rem !important;
    border-radius: 15px !important;
    border: 2px solid rgba(74, 144, 226, 0.3) !important;
    box-shadow: none !important;
    text-align: center !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    display: block !important;
}

/* Services Section */
.services .section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 650px;
    margin: 2rem auto 3rem auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 1.8rem 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    box-shadow: none !important;
    text-align: center;
    font-weight: 600;
    line-height: 1.6;
    position: relative;
}

/* Sobrescribir cualquier fondo en subtítulos de servicios */
#servicios .section-subtitle {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.services {
    padding: 2rem 0 4rem 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        #ffffff;
    margin-top: 0.5rem;
    clear: both;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1rem;
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

/* Gradientes más sutiles para service cards - mejor legibilidad */
.service-card:nth-child(1) .service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 78, 198, 0.15), rgba(74, 144, 226, 0.15));
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.service-card:nth-child(2) .service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.15), rgba(155, 197, 61, 0.15));
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.service-card:nth-child(3) .service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(208, 2, 27, 0.15));
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.service-card:nth-child(4) .service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(142, 78, 198, 0.15));
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.service-content {
    padding: 1.5rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 12px 12px;
}

/* Forma de GOTA de pintura inspirada en el logo */
/* Efectos problemáticos removidos para mejor legibilidad */

/* Efecto hover problemático eliminado */

/* Colores del ARCOÍRIS de tu logo real */
.service-card:nth-child(1) {
    border-color: var(--logo-lime);
}

.service-card:nth-child(1)::before {
    background: linear-gradient(135deg, var(--logo-lime), var(--logo-pink));
}

.service-card:nth-child(2) {
    border-color: var(--logo-violet);
}

.service-card:nth-child(2)::before {
    background: linear-gradient(135deg, var(--logo-violet), var(--logo-cyan));
}

.service-card:nth-child(3) {
    border-color: var(--logo-green);
}

.service-card:nth-child(3)::before {
    background: linear-gradient(135deg, var(--logo-green), var(--logo-orange));
}

.service-card:nth-child(4) {
    border-color: var(--logo-red);
}

.service-card:nth-child(4)::before {
    background: linear-gradient(135deg, var(--logo-red), var(--logo-magenta));
}

.service-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card:nth-child(1) .service-icon {
    background: var(--logo-purple);
    box-shadow: 0 8px 20px rgba(142, 78, 198, 0.3);
}

.service-card:nth-child(2) .service-icon {
    background: var(--logo-blue);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.service-card:nth-child(3) .service-icon {
    background: var(--logo-green);
    box-shadow: 0 8px 20px rgba(126, 211, 33, 0.3);
}

.service-card:nth-child(4) .service-icon {
    background: var(--logo-orange);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    position: relative;
    z-index: 10;
    text-shadow: none;
    background: white;
    padding: 0.2rem 0;
    border-radius: 4px;
}

.service-description {
    color: #555555;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.service-features {
    list-style: none;
    text-align: left;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.service-features li {
    padding: 0.3rem 0;
    color: #444444;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    z-index: 10;
    font-weight: 500;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    z-index: 3;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, transparent 50%),
        #f5f6f7;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.about::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--logo-lime) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--logo-violet) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite reverse;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat:nth-child(1) { border-color: var(--logo-lime); }
.stat:nth-child(2) { border-color: var(--logo-violet); }
.stat:nth-child(3) { border-color: var(--logo-orange); }

.stat:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat:nth-child(1):hover { background: linear-gradient(135deg, rgba(184, 230, 49, 0.1), rgba(255, 255, 255, 0.9)); }
.stat:nth-child(2):hover { background: linear-gradient(135deg, rgba(103, 58, 183, 0.1), rgba(255, 255, 255, 0.9)); }
.stat:nth-child(3):hover { background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 255, 255, 0.9)); }

.stat::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.6s ease;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Estilos para iconos de estadísticas */
.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stat:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, var(--logo-lime), var(--logo-green));
    color: white;
    box-shadow: 0 4px 15px rgba(155, 197, 61, 0.3);
}

.stat:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, var(--logo-violet), var(--logo-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.3);
}

.stat:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-red));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.stat:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat:nth-child(1) .stat-number { color: var(--logo-lime); }
.stat:nth-child(2) .stat-number { color: var(--logo-violet); }
.stat:nth-child(3) .stat-number { color: var(--logo-orange); }

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
    height: 400px;
}

.about-shape {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(15deg) rotateX(-5deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.about-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.about-shape:hover {
    transform: perspective(1000px) rotateY(8deg) rotateX(-2deg) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.about-shape::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    animation: spin 15s linear infinite;
}

.about-shape::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 120%;
    height: 120%;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0;
    animation: spin 20s linear infinite reverse;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        #ffffff;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filter-btn {
    padding: 1rem 2rem;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 700;
    font-size: 0.95rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-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.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--logo-purple), var(--logo-blue), var(--logo-cyan));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(142, 78, 198, 0.4);
}

.filter-btn:hover {
    background: linear-gradient(135deg, var(--logo-lime), var(--logo-orange));
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(184, 230, 49, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-2xl);
}

.portfolio-item:hover::before {
    opacity: 0.05;
}

.portfolio-image {
    height: 280px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    cursor: pointer;
    color: var(--white);
}

.portfolio-image:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.portfolio-overlay span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-placeholder {
    color: var(--white);
    font-weight: 600;
    padding: var(--spacing-md);
    text-align: center;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.portfolio-info {
    padding: var(--spacing-md);
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.portfolio-info p {
    color: #6c757d;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, transparent 50%),
        #f5f6f7;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.contact::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(142, 78, 198, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(61, 90, 128, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 800px;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-item:nth-child(1) .contact-icon {
    background: linear-gradient(135deg, var(--logo-purple), var(--logo-blue));
    box-shadow: 0 8px 25px rgba(106, 76, 147, 0.3);
}

.contact-item:nth-child(2) .contact-icon {
    background: linear-gradient(135deg, var(--logo-blue), var(--logo-cyan));
    box-shadow: 0 8px 25px rgba(61, 90, 128, 0.3);
}

.contact-item:nth-child(3) .contact-icon {
    background: linear-gradient(135deg, var(--logo-green), var(--logo-lime));
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.contact-details h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-details p {
    color: #5a6c7d;
    line-height: 1.6;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(142, 78, 198, 0.15);
    border-radius: 1.2rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font-family);
    color: var(--dark-gray);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, var(--logo-purple), var(--logo-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--logo-purple);
    box-shadow: 0 0 0 4px rgba(142, 78, 198, 0.1), 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

/* Prevenir fondos grises del autocompletado del navegador */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--dark-gray) !important;
    background-color: white !important;
    background: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Para Firefox */
.form-group input:-moz-autofill {
    background-color: white !important;
    background: white !important;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(142, 78, 198, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select {
    color: rgba(30, 41, 59, 0.6);
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--logo-purple);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 78, 198, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Validation States */
.form-group input.valid,
.form-group textarea.valid {
    border-color: var(--logo-green);
    box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Button State */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit.loading {
    color: transparent;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Footer */
.footer {
    background: 
        linear-gradient(135deg, var(--logo-purple) 0%, var(--logo-blue) 100%),
        radial-gradient(circle at 20% 80%, var(--logo-pink) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--logo-lime) 0%, transparent 50%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 76, 147, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(61, 90, 128, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Footer logo styles handled by .footer-version class above */

.footer-description {
    color: var(--light-gray);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.social-link::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.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        min-height: 75vh;
        padding: 100px 0 60px;
    }
    
    .hero-container {
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
        text-align: center;
    }
    
    .typing-text {
        font-size: 2.8rem;
    }
    
    .gradient-text-big {
        font-size: 3.5rem;
        text-align: center;
        line-height: 1.1;
    }
    
    .hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 99999;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.25s ease-in-out;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
        border-right: 2px solid var(--logo-blue);
        padding: 2rem 1rem;
        gap: 0.5rem;
        z-index: 99998;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
        box-shadow: 2px 0 25px rgba(0, 0, 0, 0.2);
        z-index: 99998;
    }

    /* Hero responsive improvements */
    .hero-mobile-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        text-align: center;
    }
    
    .hero-mobile-title strong {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-mobile-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero-mobile-chip {
        font-size: 0.8rem !important;
        text-align: center;
    }
    
    /* Reset positioning for better mobile flow */
    #inicio .hero-mobile-top h1,
    #inicio .hero-mobile-top p {
        position: static !important;
        top: auto !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 0 2rem;
        max-width: 100%;
        justify-items: center;
    }
    
    .hero {
        min-height: 85vh;
        padding: 120px 1rem 80px;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 2rem;
        max-width: 90%;
        align-items: center;
    }
    
    .hero-image {
        height: 350px;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .typing-text {
        font-size: 2.4rem;
    }
    
    .gradient-text-big {
        font-size: 3.2rem;
    }
    
    /* .hero-description - Ya no se usa
    .hero-description {
        font-size: 1.1rem;
        margin: 1.5rem auto 0 auto;
        padding: 1rem 1.3rem;
        max-width: 95%;
        background: rgba(60, 60, 60, 0.8);
        border-radius: 10px;
    }
    */
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .gradient-text-big {
        font-size: 2.5rem;
    }
    
    /* .hero-description - Ya no se usa
    .hero-description {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
        margin: 1rem auto 0 auto;
        border-radius: 8px;
        max-width: 90%;
    }
    */
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carousel mejorado para pantallas muy pequeñas */
    .testimonials-carousel {
        height: 240px;
        margin: 0 0.5rem;
        background: linear-gradient(135deg, 
            rgba(74, 144, 226, 0.15) 0%, 
            rgba(142, 78, 198, 0.15) 100%);
        border: 2px solid rgba(74, 144, 226, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        max-width: 95%;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem !important;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(248, 250, 252, 1) 100%) !important;
        border: 2px solid rgba(74, 144, 226, 0.5) !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Reforzar z-index específicamente para 480px */
    .hamburger {
        z-index: 99999 !important;
        position: relative !important;
    }
    
    .nav-menu {
        z-index: 99998 !important;
        background: rgba(255, 255, 255, 0.99) !important;
        backdrop-filter: blur(15px) !important;
    }
    
    .nav-menu.active {
        z-index: 99998 !important;
    }
    
    .nav-overlay {
        z-index: 99997 !important;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Animaciones de service-card y portfolio-item removidas para carga inmediata */

/* Animaciones de contacto removidas para carga inmediata */

/* Hover Effects */
.service-icon:hover {
    animation: pulse 2s infinite;
}

.hero-title .highlight {
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    animation: rainbow 3s ease infinite;
}

/* Loading Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, var(--logo-purple) 0%, var(--logo-blue) 30%, var(--logo-cyan) 60%, var(--logo-lime) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.08) 3px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    animation: paintSplash 6s linear infinite;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-animation {
    margin-bottom: 2rem;
}

.paint-brush {
    font-size: 5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: paintAnimation 2s ease-in-out infinite, shimmer 3s linear infinite;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.loading-text {
    font-size: 2.2rem;
    font-weight: 800;
    animation: glow 2s ease-in-out infinite alternate;
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.preloader-main {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.preloader-script {
    color: var(--white);
    font-style: italic;
    margin-left: -2px;
}

.preloader-domain {
    color: var(--primary-green);
    margin-left: 2px;
}

.loading-bar {
    width: 350px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loadingShine 2s linear infinite;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--logo-purple) 0%,
        var(--logo-pink) 25%,
        var(--logo-cyan) 50%,
        var(--logo-lime) 75%,
        var(--logo-orange) 100%);
    background-size: 200% 100%;
    width: 0%;
    animation: loadProgress 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               progressFlow 2s linear infinite;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes paintAnimation {
    0%, 100% { 
        transform: rotate(-15deg) scale(1) translateY(0px);
    }
    25% { 
        transform: rotate(5deg) scale(1.05) translateY(-10px);
    }
    50% { 
        transform: rotate(15deg) scale(1.1) translateY(-5px);
    }
    75% { 
        transform: rotate(-5deg) scale(1.05) translateY(-8px);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes paintSplash {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-30px) rotate(90deg); }
    50% { transform: translateX(-15px) translateY(25px) rotate(180deg); }
    75% { transform: translateX(25px) translateY(-20px) rotate(270deg); }
    100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

@keyframes glow {
    0% { 
        filter: brightness(1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% { 
        filter: brightness(1.4);
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

@keyframes loadProgress {
    0% { 
        width: 0%;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    }
    100% { 
        width: 100%;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

@keyframes progressFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes loadingShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) and (hover: none) {
    /* Reduce motion for better mobile performance */
    *, *::before, *::after {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Optimize touch targets */
    .btn, button, .nav-link, .filter-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 1rem 1.5rem;
    }
    
    /* Improve mobile hero section */
    .hero {
        min-height: 70vh;
        padding: 100px 1rem 60px;
    }
    
    .hero-content {
        padding: 1rem;
        text-align: center;
    }
    
    .gradient-text-big {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    /* Mobile portfolio optimizations */
    .portfolio-filter {
        gap: 0.5rem;
        padding: 0.5rem;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile testimonials */
    .testimonials-carousel {
        height: 280px;
        touch-action: pan-y;
        background: linear-gradient(135deg, 
            rgba(74, 144, 226, 0.1) 0%, 
            rgba(142, 78, 198, 0.1) 100%);
        border: 1px solid rgba(74, 144, 226, 0.2);
        max-width: 90%;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(248, 250, 252, 0.95) 100%) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border: 2px solid rgba(74, 144, 226, 0.4) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
    }
    
    .testimonial-card.active {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(248, 250, 252, 0.98) 100%) !important;
        border-color: var(--logo-blue) !important;
        box-shadow: 0 20px 50px rgba(74, 144, 226, 0.3) !important;
    }
    
    .testimonial-controls {
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Mobile contact improvements */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile WhatsApp button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        z-index: 9998;
    }
    
    .whatsapp-float-btn {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltips on mobile */
    }
    
    /* Mobile chat widget positioning */
    .chat-widget {
        bottom: 20px;
        left: 20px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        left: 20px;
        right: 20px;
        bottom: 90px;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input {
        padding: 0.8rem;
        gap: 0.5rem;
    }
    
    .chat-input input {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .send-message {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    /* Enhance touch interactions */
    .service-card:active,
    .portfolio-item:active,
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Disable hover effects that don't work on touch */
    .service-card:hover,
    .portfolio-item:hover,
    .contact-item:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Enable active states instead */
    .service-card:active {
        transform: scale(0.98);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: var(--accent-rainbow);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 15px rgba(184, 230, 49, 0.6);
    background-size: 200% 100%;
    animation: progressRainbow 3s linear infinite;
}

/* WHATSAPP FLOTANTE - Mejora de contacto */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    color: white;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: whatsappFloat 4s ease-in-out infinite;
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 45px rgba(37, 211, 102, 0.7);
    background: linear-gradient(135deg, #128C7E, #075E54);
}

.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: conic-gradient(from 0deg, #25D366, #128C7E, #075E54, #25D366);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.whatsapp-float-btn:hover::before {
    opacity: 1;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(40, 40, 40, 0.9));
    backdrop-filter: blur(15px);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(15px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.whatsapp-contact {
    border: 2px solid #25D366;
    border-radius: 12px;
    padding: 1rem;
    background: rgba(37, 211, 102, 0.05);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@keyframes whatsappFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
    25% { 
        transform: translateY(-8px) rotate(2deg);
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    }
    50% { 
        transform: translateY(-5px) rotate(0deg);
        box-shadow: 0 20px 40px rgba(37, 211, 102, 0.6);
    }
    75% { 
        transform: translateY(-8px) rotate(-2deg);
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Scroll Animations - DESHABILITADAS para carga inmediata */
.service-card,
.about-stat,
.portfolio-item,
.contact-item,
.section-title,
.section-subtitle,
.hero-content,
.hero-image {
    opacity: 1 !important;
    transform: translateY(0) !important;
    /* Animaciones eliminadas para carga instantánea */
}

/* Todas las animaciones de entrada han sido deshabilitadas para carga inmediata */

/* Keyframes de slideInStagger eliminados */

@keyframes progressRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ANIMACIONES DE SCROLL */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        #ffffff;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 1700px) {
    #testimonios.testimonials {
        background: #b6e233;
        border-top: none;
        border-bottom: none;
    }

    #testimonios.testimonials::before,
    #testimonios.testimonials::after {
        opacity: 0.08;
        color: rgba(0, 0, 0, 0.2);
    }

    #testimonios .section-title,
    #testimonios .section-subtitle {
        color: #1f2d16;
    }

    #testimonios .testimonial-card {
        box-shadow: 0 20px 45px rgba(39, 63, 20, 0.25);
    }
}

/* Título más pequeño para testimonios */
.testimonials .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.testimonials .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.testimonials::before {
    content: '💬';
    position: absolute;
    top: 10%;
    right: 15%;
    font-size: 4rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.testimonials::after {
    content: '⭐';
    position: absolute;
    bottom: 15%;
    left: 10%;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite reverse;
}

.testimonials-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    height: 320px;
    perspective: 1200px;
    overflow: hidden;
    border-radius: 1.5rem;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(184, 230, 49, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateX(100px) rotateY(15deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
    z-index: 3;
    border-color: var(--logo-lime);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.testimonial-card.prev {
    opacity: 0.4;
    transform: translateX(-120px) rotateY(-25deg) scale(0.85);
    z-index: 1;
}

.testimonial-card.next {
    opacity: 0.4;
    transform: translateX(120px) rotateY(25deg) scale(0.85);
    z-index: 1;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
    justify-content: center;
}

.stars i {
    color: var(--logo-orange);
    font-size: 1.5rem;
    animation: starTwinkle 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
    text-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.stars i:nth-child(1) { --i: 0; }
.stars i:nth-child(2) { --i: 1; }
.stars i:nth-child(3) { --i: 2; }
.stars i:nth-child(4) { --i: 3; }
.stars i:nth-child(5) { --i: 4; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-purple);
    position: absolute;
    top: -2rem;
    left: -1rem;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.author-info h4 {
    margin: 0;
    color: var(--dark-gray);
    font-weight: 600;
}

.author-info span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.testimonial-prev,
.testimonial-next {
    background: linear-gradient(135deg, var(--logo-purple), var(--logo-blue));
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(142, 78, 198, 0.3);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.testimonial-prev::before,
.testimonial-next::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.5s ease;
}

.testimonial-prev:hover::before,
.testimonial-next:hover::before {
    left: 100%;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(142, 78, 198, 0.5);
    background: linear-gradient(135deg, var(--logo-lime), var(--logo-orange));
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(106, 76, 147, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--logo-lime), var(--logo-purple));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.dot:hover {
    transform: scale(1.3);
    background: rgba(142, 78, 198, 0.6);
}

.dot.active::before {
    width: 100%;
    height: 100%;
}

.dot.active {
    background: var(--primary-purple);
    transform: scale(1.2);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9999;
}

.chat-toggle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    /* animation: chatPulse 3s ease-in-out infinite; */
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.chat-toggle:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, var(--logo-red), var(--logo-magenta));
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/*
@keyframes chatPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
    25% { 
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
    }
    50% { 
        transform: scale(1.08) rotate(0deg);
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
    }
    75% { 
        transform: scale(1.05) rotate(-2deg);
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
    }
}
*/

@keyframes headerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 380px;
    height: 520px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(30px) translateX(-20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chat-window.open {
    display: flex;
    transform: scale(1) translateY(0) translateX(0);
    opacity: 1;
}

.chat-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-red));
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: headerShine 3s linear infinite;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.chat-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.online-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    margin-left: auto;
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-red));
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--logo-red), var(--logo-magenta));
}

/* Chat Messages Styles */
.message {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    animation: messageSlide 0.3s ease-out;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-red));
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
    color: white;
}

.message-content {
    max-width: 70%;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    display: block;
    margin-top: 0.3rem;
}

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 0.2rem;
    padding: 0.5rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--logo-orange);
    border-radius: 50%;
    /* animation: typingBounce 1.4s infinite; */
}

/* 
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
*/

/* Quick replies */
.chat-quick-replies {
    padding: 1rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quick-reply {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.quick-reply:hover {
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-red));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}
*/

/* Chat Input Styles */
.chat-input {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.chat-input input:focus {
    border-color: var(--logo-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    background: rgba(255, 255, 255, 1);
}

.chat-input input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.send-message {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-red));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.send-message:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.send-message:active {
    transform: scale(0.95);
}

.message {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.message-avatar {
    width: 30px;
    height: 30px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.message-content {
    background: rgba(106, 76, 147, 0.1);
    padding: 0.75rem;
    border-radius: 1rem 1rem 1rem 0.25rem;
    max-width: 80%;
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-quick-replies {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-reply {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-reply:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.chat-input {
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    outline: none;
}

.send-message {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-message:hover {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.lightbox-modal.open {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-modal.open .lightbox-container {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--gradient-accent);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    width: 600px;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.lightbox-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.lightbox-info {
    text-align: center;
    color: var(--white);
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: var(--shadow-lg);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.1);
    background: var(--gradient-accent);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .lightbox-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .lightbox-image {
        width: 100%;
        height: 250px;
    }
    
    .lightbox-nav {
        padding: 0 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Advanced Micro-Interactions */
.interactive-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-8px) rotate(1deg);
}

/* Enhanced Button Hover Effects */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(142, 78, 198, 0.3);
}

.btn:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* Ripple Effect - Protegido contra conflictos */
.ripple {
    position: relative;
    overflow: hidden;
}

/* Asegurar que los botones mantengan su border-radius */
.btn.ripple {
    border-radius: var(--border-radius-md) !important;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Portfolio Hover */
.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(
        135deg,
        rgba(142, 78, 198, 0.95) 0%,
        rgba(74, 144, 226, 0.95) 50%,
        rgba(126, 211, 33, 0.95) 100%
    );
}

.portfolio-item:hover .portfolio-title {
    transform: translateY(-20px);
    font-size: 1.4rem;
}

.portfolio-item:hover .portfolio-category {
    transform: translateY(20px);
    opacity: 0.8;
}

/* Enhanced Social Links */
.social-link {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.2) rotate(10deg);
}

/* Advanced Loading States */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

/* ===== RESPONSIVE MOBILE IMPROVEMENTS ===== */

/* Mobile First - Extra Small Devices (phones, 480px and down) */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    /* Disable only heavy animations for mobile performance */
    .hero::before,
    .hero::after,
    .paint-drop,
    .hero-shape::before,
    .hero-shape::after,
    .service-card::before,
    .service-card::after,
    .portfolio-item::before,
    .portfolio-item::after {
        animation: none !important;
    }

    /* Reduce transition duration for better performance */
    * {
        transition-duration: 0.2s !important;
    }

    /* Keep essential text animations */
    .gradient-text-big,
    .typing-text {
        animation-duration: 3s !important;
    }

    /* Disable pseudo-element animations */
    .hero::before,
    .hero::after {
        display: none !important;
    }

    .paint-drop {
        display: none !important;
    }

    /* Optimize mobile performance */
    .hero-image {
        will-change: auto !important;
    }
    
    /* Disable expensive filters and effects */
    *[style*="filter"],
    *[style*="backdrop-filter"] {
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Disable all backdrop-filter on mobile for performance */
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Simplify shadows for performance */
    .service-card,
    .portfolio-item,
    .contact-card,
    .testimonial-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Optimize scroll performance */
    body {
        -webkit-overflow-scrolling: touch !important;
        overflow-x: hidden !important;
    }
    
    /* Remove expensive transforms and 3D acceleration */
    * {
        transform: none !important;
        transform-style: flat !important;
        perspective: none !important;
        will-change: auto !important;
    }
    
    /* Allow only essential transforms */
    .hamburger span,
    .nav-menu,
    .gradient-text-big,
    .typing-text {
        transform: initial !important;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: auto !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
    
    /* Disable complex gradients on mobile */
    .service-card,
    .portfolio-item {
        background-image: none !important;
        background: #ffffff !important;
    }
    
    /* Reset text-shadow and font-weight to default for normal text */
    h1, h2, h3, h4, h5, h6, p, span, a, button {
        text-shadow: none !important;
    }
    
    /* Ensure normal font-weights for body text */
    p, span:not(.gradient-text-big):not(.typing-text), 
    .service-card h3, .service-card p,
    .portfolio-info h3, .portfolio-info p,
    .section-title, .section-subtitle {
        font-weight: normal !important;
    }
    
    /* Restore proper heading weights */
    h1 { font-weight: 700 !important; }
    h2 { font-weight: 600 !important; }
    h3 { font-weight: 500 !important; }
    
    /* Ensure font-family stays consistent */
    * {
        font-family: inherit !important;
    }
    
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-weight: 400 !important;
        font-synthesis: none !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
    
    /* Keep essential gradient text shadow */
    .gradient-text-big {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 1), 
            0 0 10px rgba(255, 255, 79, 0.6) !important;
    }
    
    /* Keep typing text shadow for visibility */
    .typing-text {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    }

    .hero-shape .hero-overlay {
        animation: spin 40s linear infinite !important;
    }

    .hero-shape::after {
        animation: spin 50s linear infinite reverse !important;
    }

    .about-shape::before {
        animation: spin 30s linear infinite !important;
    }

    .about-shape::after {
        animation: spin 40s linear infinite reverse !important;
    }

    /* Disable very fast spinning animations */
    .loading-spinner {
        animation: spin 3s linear infinite !important;
    }

    /* Asegurar scroll correcto en móvil */
    body {
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: auto !important; /* Disable smooth scroll for performance */
    }
    
    /* Separación entre secciones principales en móvil */
    section {
        position: relative;
        clear: both;
        contain: layout style !important; /* CSS Containment for performance */
    }
    
    /* Optimize viewport rendering */
    .hero,
    .services,
    .portfolio,
    .about,
    .contact {
        contain: layout style !important;
        transform: translateZ(0) !important; /* Force GPU acceleration only where needed */
    }
    
    /* Lazy load optimization */
    .portfolio-item,
    .service-card {
        content-visibility: auto !important;
        contain-intrinsic-size: 300px !important;
    }
    
    /* Disable expensive CSS features */
    * {
        font-variant-ligatures: none !important;
        text-rendering: optimizeSpeed !important;
    }

    /* Typography */
    h1, .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6) !important;
        color: white !important;
    }

    .gradient-text-big {
        font-size: 2.5rem !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6) !important;
        /* Gradiente más brillante y contrastante para móvil */
        background: linear-gradient(135deg, 
            #C8FF4F 0%,    /* Más brillante */
            #9ED321 30%,   /* Más brillante */
            #BBEF3D 60%,   /* Más brillante */ 
            #D8FF31 100%)  /* Más brillante */
            !important;
        background-size: 400% 400% !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        animation: rainbowShift 3s ease-in-out infinite !important;
        /* Agregar respaldo con color sólido brillante */
        color: #B8E631 !important;
        font-weight: 900 !important;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Header adjustments */
    .header {
        padding: 0.5rem 0;
        backdrop-filter: blur(20px);
    }

    .nav-container {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .logo-container {
        transform: scale(0.8);
    }

    /* Navigation mobile menu */
    .nav-menu {
        top: 80px;
        padding: 2rem 1rem;
        gap: 1rem;
        background: rgb(255, 255, 255) !important; /* Fondo completamente sólido */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: 2px solid var(--logo-blue);
        border-bottom: 1px solid rgba(74, 144, 226, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    }

    .nav-menu .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        width: 90%;
        margin: 0 auto 0.5rem auto;
        text-align: center;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        color: var(--logo-dark-gray);
        border: 1px solid rgba(74, 144, 226, 0.15);
        transition: all 0.2s ease;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
        display: block;
    }

    .nav-menu .nav-link:hover {
        background: var(--logo-blue);
        color: white;
        transform: scale(1.02);
        box-shadow: 0 3px 12px rgba(74, 144, 226, 0.3);
        border-color: var(--logo-blue);
    }

    .nav-menu .nav-link.active {
        background: var(--logo-blue);
        color: white;
        box-shadow: 0 3px 12px rgba(74, 144, 226, 0.25);
        transform: scale(1.02);
    }

    /* Configuraciones específicas para hamburger y menú en 480px */
    .hamburger {
        z-index: 99999 !important;
        position: relative !important;
        display: flex !important;
    }
    
    .nav-menu {
        z-index: 99998 !important;
    }
    
    .nav-menu.active {
        z-index: 99998 !important;
    }

    /* Overlay para menú móvil */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 99997;
        pointer-events: none;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Hero section */
    .hero {
        min-height: 90vh; /* Reducido de 100vh para evitar solapamiento */
        height: auto; /* Permitir que crezca según el contenido */
        padding: 70px 0 60px; /* Padding optimizado */
        margin-bottom: 4rem; /* Agregado margen inferior para separar de servicios */
        background: 
            linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
            url('../images/paintbrush-4577578_1920.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        display: flex !important;
        align-items: flex-start !important; /* Cambió de center a flex-start */
        justify-content: center !important;
        overflow: visible !important; /* Asegurar que el contenido sea visible */
    }

    .hero-container {
        padding: 0 1rem 1rem 1rem; /* Reducido padding bottom */
        gap: 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Cambió de space-evenly a flex-start */
        min-height: calc(85vh - 130px); /* Reducido para evitar solapamiento */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.5) !important;
        color: white !important;
    }

    .hero-image {
        height: auto;
        min-height: 350px; /* Aumentado para dar más espacio al formulario */
        margin-top: 1rem;
        padding: 0 0.5rem 2rem 0.5rem; /* Agregado padding bottom */
        display: flex;
        align-items: flex-start; /* Cambió de center a flex-start */
        justify-content: center;
        width: 100%;
        overflow: visible; /* Asegurar que el contenido no se corte */
    }
    
    .hero-shape {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start; /* Cambió de center a flex-start */
        min-height: 320px; /* Altura mínima para contener el formulario completo */
        overflow: visible;
    }

    /* Hero Buttons - Mejora específica */
    .hero-buttons {
        gap: 1rem !important;
        margin-top: 1.5rem !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-buttons .btn {
        width: 250px !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin: 0.3rem 0 !important;
        text-align: center !important;
    }

    /* General Buttons */
    .cta-button, .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.5rem;
    }

    /* Services section */
    .services {
        padding: 6rem 0 3rem 0; /* Aumentado padding superior para evitar solapamiento */
        margin-top: 2rem; /* Agregado margen superior adicional */
    }

    .services-container {
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    /* About section */
    .about {
        padding: 3rem 0;
    }

    .about-container {
        padding: 0 1rem;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Portfolio section */
    .portfolio {
        padding: 3rem 0;
    }

    .portfolio-container {
        padding: 0 1rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin: 0.25rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item {
        height: 200px;
    }

    /* Testimonials */
    .testimonials {
        padding: 2.5rem 0;
        background: #cdd819 !important; /* Mantener el color verde en móvil */
    }
    
    /* Asegurar color verde en todas las variantes móviles */
    #testimonios,
    #testimonios.testimonials,
    .testimonials {
        background-color: #cdd819 !important;
        background: #cdd819 !important;
    }
    
    .testimonials .section-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #ffffff !important; /* Texto blanco para contraste */
    }
    
    .testimonials .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        color: #ffffff !important; /* Texto blanco para contraste */
    }

    .testimonials-container {
        padding: 0 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    /* Reglas adicionales para asegurar color verde en móvil */
    @media (max-width: 768px) {
        #testimonios,
        .testimonials {
            background: #cdd819 !important;
            background-color: #cdd819 !important;
        }
    }
    
    @media (max-width: 480px) {
        #testimonios,
        .testimonials {
            background: #cdd819 !important;
            background-color: #cdd819 !important;
        }
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .nav-dots {
        gap: 0.5rem;
    }

    /* Contact section - Complete mobile optimization */
    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-info {
        order: 2;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 1rem;
        flex-direction: row;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .contact-form {
        order: 1;
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    /* Chat widget mobile optimizations */
    .chat-toggle {
        width: 50px;
        height: 50px;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 9999;
    }

    .chat-window {
        width: calc(100vw - 20px);
        height: 70vh;
        bottom: 10px;
        right: 10px;
        left: 10px;
        border-radius: 15px;
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .message {
        margin-bottom: 1rem;
    }

    .chat-input-container {
        padding: 1rem;
        gap: 0.5rem;
    }

    .chat-input {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .send-button {
        width: 40px;
        height: 40px;
    }

    .quick-replies {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .quick-reply-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Lightbox mobile optimizations */
    .lightbox-content {
        width: 95vw;
        height: 80vh;
        margin: 10vh auto;
    }

    .lightbox-image {
        height: 60vh;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    /* WhatsApp button mobile */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 15px;
        font-size: 1.2rem;
    }

    /* Particles mobile optimization */
    #particles-js {
        opacity: 0.3;
    }

    /* Scroll improvements for mobile */
    html {
        scroll-padding-top: 70px;
    }

    /* Touch improvements */
    .portfolio-item,
    .service-card,
    .testimonial-card,
    .cta-button,
    .btn-primary,
    .filter-btn,
    .nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Small tablets and large phones (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Moderate animation slowdown for tablets */
    .hero::before {
        animation: houseFloat 9s ease-in-out infinite !important;
    }

    .hero::after {
        animation: paintDrips 30s linear infinite !important;
    }

    .paint-drop {
        animation: dropFall 12s linear infinite !important;
    }

    /* Hero overlay animations removed for centered form */

    .hero-title {
        font-size: 2.5rem;
    }

    .gradient-text-big {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        padding: 0 1.5rem;
    }

    /* Contact section for tablets */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Medium devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-container {
        padding: 0 2rem;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 40px;
    }

    .chat-window {
        height: 90vh;
        width: 350px;
        right: 15px;
        left: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-paint-drops,
    .service-icon,
    .testimonial-avatar {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimization for low-end devices */
.reduce-animations * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.reduce-animations *:hover {
    transform: none !important;
}

/* Dark mode support - DISABLED to prevent conflicts */
/*
@media (prefers-color-scheme: dark) {
    .nav-menu {
        background: rgba(30, 30, 30, 0.95);
        color: white;
    }

    .nav-link {
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }

    .chat-window {
        background: rgba(30, 30, 30, 0.95);
        color: white;
    }
}
*/

/* Optimizaciones específicas para móviles y caché */
@media screen and (max-width: 768px) {
    /* Reducir efectos y animaciones para mejor performance */
    .reduce-animations {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }

    /* Optimizar imágenes en móviles */
    .portfolio-image,
    .service-image,
    .hero-background,
    .hero {
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        image-rendering: -webkit-optimize-contrast;
    }

    /* Reducir blur y efectos costosos */
    .hero::before {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.82);
    }
    
    /* Mejorar visibilidad del menú móvil */
    .nav-menu {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    /* Optimizar scroll */
    .portfolio-grid {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Optimizaciones para dispositivos de baja potencia */
@media screen and (max-width: 480px) {
    /* Simplificar gradientes pero mantener imagen de fondo del hero */
    .service-card,
    .portfolio-item {
        background-image: none !important;
        background: #ffffff !important;
    }
    
    /* Optimize portfolio images loading */
    .portfolio-item img {
        content-visibility: auto !important;
        contain-intrinsic-size: 250px 200px !important;
        image-rendering: optimizeSpeed !important;
        transform: translateZ(0) !important;
    }
    
    /* Reduce image quality on mobile for faster loading */
    .portfolio-grid {
        image-rendering: optimizeSpeed !important;
    }
    
    /* Mantener imagen de fondo del hero pero simplificar overlays */
    .hero {
        background: 
            linear-gradient(rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.6)),
            url('../images/paintbrush-4577578_1920.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        overflow: visible !important;
    }

    /* Reducir sombras */
    .service-card,
    .portfolio-item,
    .testimonial-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #inicio .hero-buttons .btn {
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
    }

    #inicio .hero-contact-form {
        box-shadow: 0 14px 32px rgba(9, 18, 32, 0.3);
    }

    /* Optimizar texto */
    h1, h2, h3 {
        text-shadow: none;
    }
}

/* Soporte para conexiones lentas */
@media (prefers-reduced-data: reduce) {
    /* Deshabilitar imágenes de fondo no críticas */
    .hero::before,
    .service-card::before,
    .portfolio-item::before {
        display: none;
    }

    /* Simplificar efectos */
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Optimización de memoria */
@supports (content-visibility: auto) {
    .portfolio-item:not(.visible),
    .service-card:not(.visible),
    .testimonial-card:not(.visible) {
        content-visibility: auto;
        contain-intrinsic-size: 300px;
    }
}

/* Animación para hero description */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra Small Devices (phones, 320px and down) - Fallback adicional */
@media (max-width: 320px) {
    .hero {
        background: linear-gradient(170deg, #0f1d2f 0%, #1c314f 50%, #224571 100%) !important;
        min-height: 80vh !important;
        height: auto !important;
        padding: 90px 0.75rem 60px !important;
        margin-bottom: 2.5rem !important;
        overflow: visible !important;
    }

    .hero-desktop {
        display: none !important;
    }

    .hero-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-mobile-title {
        font-size: 1.8rem;
    }

    .hero-mobile-title strong {
        font-size: 1.9rem;
    }

    .hero-mobile-figure img {
        height: 180px;
    }

    .hero-mobile-form {
        padding: 1.25rem 1rem;
    }
    
    .hero-contact-form {
        width: 95% !important;
        max-width: 280px !important;
        padding: 1rem !important;
        transform: scale(0.95) !important;
    }
    
    .hero-form-header h3 {
        font-size: 0.9rem !important;
    }
    
    .hero-form-header p {
        font-size: 0.8rem !important;
    }
    
    .hero-form-group input,
    .hero-form-group select {
        padding: 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .hero-form-btn {
        padding: 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    .hero-buttons .btn {
        width: 220px !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
    }
}

/* Portfolio Load More Button */
.portfolio-load-more {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    width: 100%;
    display: block;
    position: relative;
    z-index: 10;
}

#loadMoreBtn {
    background: #4A90E2; /* Fallback color */
    background: linear-gradient(135deg, var(--logo-blue, #4A90E2) 0%, var(--logo-purple, #8E4EC6) 100%);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--logo-purple, #8E4EC6) 0%, var(--logo-blue, #4A90E2) 100%);
}

#loadMoreBtn span,
#loadMoreBtn i {
    color: white !important;
    transition: transform 0.3s ease;
}

#loadMoreBtn:hover i {
    transform: translateY(2px);
}

/* Portfolio Hidden Items */
.portfolio-hidden {
    display: none !important;
}

.portfolio-hidden.show {
    display: block !important;
}

/* ============================================ */
/* RESPONSIVE HERO SECTION - CLEAN VERSION */
/* ============================================ */

/* Desktop and Large Screens - Default styles work well */

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 110px 1.5rem 70px;
        margin-top: -40px;
    }

    #inicio .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    #inicio .hero-content {
        order: 1;
        width: min(90%, 620px);
        padding: 0;
        align-items: center;
    }

    #inicio .hero-image {
        order: 2;
        width: 100%;
        height: auto;
        padding: 0;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }

    #inicio .hero-image .hero-shape {
        width: 100%;
        max-width: 420px;
    }

    #inicio .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }

    #inicio .hero-title .gradient-text-big {
        font-size: 2.8rem !important;
    }

    #inicio .hero-title .typing-text {
        font-size: 1.2rem;
    }

    #inicio .hero-buttons {
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    #inicio .hero-buttons .btn {
        min-width: 220px;
    }

    #inicio .hero-content p {
        max-width: 520px;
    }

    #inicio .hero-contact-form {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero {
        padding: 120px 1.25rem 60px;
    }

    #inicio {
        padding: 0;
    }

    #inicio .hero-content {
        width: 100%;
        gap: 1.2rem;
    }

    #inicio .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    #inicio .hero-title .gradient-text-big {
        font-size: 2.1rem !important;
        line-height: 1.2;
    }

    #inicio .hero-title .typing-text {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    #inicio .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    #inicio .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    #inicio .hero-image {
        margin-top: 0.5rem;
    }

    #inicio .hero-contact-form {
        width: 100%;
        max-width: 360px;
        padding: 1.25rem;
        border-radius: 16px;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }

    .chat-widget {
        bottom: 78px;
        left: 16px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero {
        padding: 110px 1rem 50px;
        margin-top: -30px;
    }

    #inicio .hero-title {
        font-size: 1.6rem;
    }

    #inicio .hero-title .gradient-text-big {
        font-size: 1.8rem !important;
        text-shadow: none;
    }

    #inicio .hero-title .typing-text {
        font-size: 0.85rem;
    }

    #inicio .hero-buttons .btn {
        max-width: 260px;
        font-size: 0.85rem;
    }

    #inicio .hero-contact-form {
        padding: 1rem;
        max-width: 320px;
    }

    .whatsapp-float-btn {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }

    .chat-toggle {
        width: 56px;
        height: 56px;
    }

    .chat-widget {
        bottom: 72px;
    }

    /* Asegurar z-index del menú móvil en 480px */
    .hamburger {
        z-index: 99999 !important;
        position: relative !important;
        display: flex !important;
    }
    
    .nav-menu {
        z-index: 99998 !important;
        background: rgba(255, 255, 255, 0.99) !important;
    }
    
    .nav-menu.active {
        z-index: 99998 !important;
        background: rgba(255, 255, 255, 0.99) !important;
    }
    
    .nav-overlay {
        display: none !important; /* Desactivar overlay en 480px */
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .nav-overlay.active {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Better responsive hero layout for 480px */
    .hero-mobile {
        gap: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .hero-mobile-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-mobile-title strong {
        font-size: 2rem !important;
        margin-top: 0.5rem !important;
    }
    
    .hero-mobile-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        max-width: 95% !important;
        margin: 0 auto 1rem auto !important;
    }
    
    .hero-mobile-chip {
        font-size: 0.75rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    /* Remove fixed positioning for natural flow */
    #inicio .hero-mobile-top h1,
    #inicio .hero-mobile-top p {
        position: static !important;
        top: auto !important;
    }
    
    /* Button improvements */
    #inicio .hero-mobile-buttons .btn-primary{
        height: 48px !important;
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .hero-mobile-buttons {
        gap: 0.75rem !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-mobile-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
    }
}

@media (max-width: 900px) {
    .hero {
        display: block;
        min-height: auto;
        height: auto;
        padding: 120px 1.5rem 80px;
        margin-top: -40px;
        background:
            linear-gradient(160deg, rgba(12, 23, 38, 0.88) 0%, rgba(21, 42, 68, 0.75) 45%, rgba(26, 56, 92, 0.62) 100%),
            url('../images/paintbrush-4577578_1920.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: visible;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(4, 23, 44, 0.88) 100%);
    }

    .hero::after {
        background: none;
    }

    #inicio .hero-title,
    #inicio .hero-title .typing-text,
    #inicio .hero-title .gradient-text-big {
        text-shadow: none;
    }

    #inicio .hero-container {
        min-height: auto;
    }

    #inicio .hero-buttons .btn {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
        transform: none !important;
    }

    #inicio .hero-contact-form {
        box-shadow: 0 18px 40px rgba(9, 18, 32, 0.35);
        border-color: rgba(74, 144, 226, 0.22);
    }

    .hero-mobile-title,
    .hero-mobile-title strong {
        text-shadow: none;
    }
}

@media (max-width: 900px) {
    .hero-desktop {
        display: none !important;
        height: 0;
        overflow: hidden;
        visibility: hidden;
    }

    .hero-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 1.75rem;
    }

    .hero-mobile-title {
        font-size: 2.3rem;
    }

    .hero-mobile-title strong {
        font-size: 2.5rem;
    }

    .hero-mobile-figure img {
        height: 220px;
    }

    .hero-contact-form.hero-mobile-form {
        width: 100%;
        max-width: 100% !important;
        transform: none;
    }

    .hero-contact-form.hero-mobile-form:hover {
        transform: none;
    }

    /* Better hero mobile layout for tablets */
    .hero-mobile {
        gap: 2rem !important;
        max-width: 100% !important;
    }
    
    .hero-mobile-title {
        font-size: 2.2rem !important;
        text-align: center !important;
    }
    
    .hero-mobile-title strong {
        font-size: 2.4rem !important;
    }
    
    .hero-mobile-subtitle {
        font-size: 1rem !important;
        text-align: center !important;
        max-width: 85% !important;
        margin: 0 auto !important;
    }
    
    .hero-mobile-buttons {
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    .hero-mobile-buttons .btn {
        flex: 0 0 auto !important;
        min-width: 200px !important;
    }
}

@media (max-width: 540px) {
    .hero {
        padding: 110px 1.25rem 70px;
    }

    .hero-mobile-title {
        font-size: 2rem;
    }

    .hero-mobile-title strong {
        font-size: 2.2rem;
    }

    .hero-mobile-chip {
        font-size: 0.75rem;
    }

    .hero-mobile-figure img {
        height: 200px;
    }

    .hero-mobile-form {
        padding: 1.5rem 1.25rem;
    }
}

/* Extra Small Devices (320px and down) */
@media (max-width: 320px) {
    .hero-mobile-title {
        font-size: 1.6rem !important;
    }
    
    .hero-mobile-title strong {
        font-size: 1.8rem !important;
    }
    
    .hero-mobile-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-mobile-chip {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .hero-mobile-buttons .btn {
        font-size: 0.85rem !important;
        padding: 0.65rem 1.25rem !important;
        height: 44px !important;
    }
    
    .hero-mobile-form {
        padding: 1rem !important;
    }
}

/* ===== BEFORE AND AFTER SECTION ===== */
.before-after-section {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 1) 0%, 
        rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.before-after-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(74, 144, 226, 0.05) 0%, 
        transparent 70%);
    animation: rotate 60s linear infinite;
    pointer-events: none;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.before-after-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.before-after-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--logo-blue), var(--logo-cyan), var(--logo-lime));
    border-radius: 20px 20px 0 0;
}

.before-after-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.before-after-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.before-image, .after-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.before-image img, .after-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.before-after-item:hover .before-image img,
.before-after-item:hover .after-image img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.before-label {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.after-label {
    background: linear-gradient(135deg, #10ac84, #00d2d3);
    color: white;
}

.before-after-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.divider-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, 
        var(--logo-blue) 0%, 
        var(--logo-cyan) 50%, 
        var(--logo-lime) 100%);
    border-radius: 2px;
}

.divider-icon {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

.divider-icon i {
    color: var(--logo-blue);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.before-after-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--logo-blue), var(--logo-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.before-after-info p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design for Before After */
@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .before-after-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .before-after-divider {
        transform: rotate(90deg);
        min-width: auto;
        min-height: 60px;
    }
    
    .divider-line {
        width: 100px;
        height: 2px;
    }
    
    .before-after-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .before-after-section {
        padding: 60px 0;
    }
    
    .before-after-grid {
        gap: 1.5rem;
    }
    
    .before-after-item {
        padding: 1.25rem;
    }
    
    .before-image img, .after-image img {
        height: 150px;
    }
    
    .before-after-info h3 {
        font-size: 1.25rem;
    }
    
    .divider-icon {
        width: 40px;
        height: 40px;
    }
    
    .divider-icon i {
        font-size: 1rem;
    }
}

/* ===== CAROUSEL ANTES Y DESPUÉS ===== */
.before-after-carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden !important; /* Forzar ocultar slides fuera del área visible */
    margin: 2rem 0;
    padding: 0 80px; /* Espacio para los controles */
    box-sizing: border-box;
    border-radius: 20px;
}

/* FORZAR FUNCIONAMIENTO EN MÓVILES */
@media (max-width: 768px) {
    .before-after-carousel-container {
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
        padding: 0 60px !important;
        margin: 1rem 0 !important;
        min-height: 500px !important; /* Aumentar altura mínima */
    }
    
    .before-after-carousel {
        display: flex !important;
        width: 1000% !important;
        min-height: 450px !important; /* Altura mínima para el carousel */
        transition: transform 0.5s ease !important;
        will-change: transform !important;
        -webkit-transform: translateX(0%) !important;
        -moz-transform: translateX(0%) !important;
        -ms-transform: translateX(0%) !important;
        transform: translateX(0%) !important;
    }
    
    .before-after-slide {
        flex: 0 0 10% !important;
        width: 10% !important;
        min-width: 10% !important;
        min-height: 400px !important; /* Altura mínima para cada slide */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 10px !important; /* Padding interno */
        box-sizing: border-box !important;
    }
    
    /* Ajustar el contenido interno de cada slide */
    .before-after-slide .before-after-container {
        height: auto !important;
        min-height: 300px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
    }
    
    .before-after-slide .before-image,
    .before-after-slide .after-image {
        height: 120px !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    
    .before-after-slide .before-image img,
    .before-after-slide .after-image img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    
    .before-after-slide .before-after-info {
        margin-top: 10px !important;
        text-align: center !important;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1.1em !important;
        margin-bottom: 8px !important;
    }
    
    .before-after-slide .before-after-info p {
        font-size: 0.9em !important;
        line-height: 1.4 !important;
    }
    
    /* Mejorar controles táctiles para móviles reales */
    .carousel-control {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        touch-action: manipulation !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
    
    .indicator {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        touch-action: manipulation !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
}

/* Contenedor interno para el carousel */
.before-after-carousel-wrapper {
    width: 100%;
    overflow: hidden !important;
    position: relative;
}

/* Regla específica para móvil - Forzar funcionamiento */
@media screen and (max-width: 768px) {
    .before-after-carousel-container {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    /* Allow JS to control transform on mobile: remove forced translateX !important */
    .before-after-carousel {
        /* Keep a smooth transition but without !important so inline styles from JS apply */
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

.before-after-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 1000%; /* 10 slides × 100% */
}

.before-after-slide {
    flex: 0 0 10%; /* 100% / 10 slides */
    opacity: 1; /* Siempre visible */
    padding: 0 1rem;
    box-sizing: border-box;
    min-height: 400px; /* Altura mínima para evitar colapso */
    display: block; /* Por defecto visible */
}

/* Método alternativo para móvil - mostrar/ocultar slides individuales */
@media (max-width: 768px) {
    .before-after-carousel {
        display: block !important; /* Cambiar de flex a block en móvil */
        width: 100% !important;
    }
    
    .before-after-slide {
        display: none; /* Por defecto oculto en móvil */
        width: 100% !important;
        flex: none !important;
        padding: 0 !important;
    }
    
    .before-after-slide:first-child {
        display: block; /* Mostrar el primer slide por defecto */
    }
}

.before-after-slide .before-after-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.before-after-slide .before-after-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.before-after-slide .before-image,
.before-after-slide .after-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.before-after-slide .before-image img,
.before-after-slide .after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.before-after-slide .before-image img:not([src]),
.before-after-slide .after-image img:not([src]) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-slide .before-image img[src=""],
.before-after-slide .after-image img[src=""] {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.before-after-slide .before-after-container:hover .before-image img,
.before-after-slide .before-after-container:hover .after-image img {
    transform: scale(1.05);
}

.before-after-slide .image-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.before-after-slide .after-label {
    background: var(--secondary-color);
}

.before-after-slide .before-after-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.before-after-slide .divider-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.before-after-slide .divider-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.before-after-slide .before-after-info {
    text-align: center;
    margin-top: 2rem;
}

.before-after-slide .before-after-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.before-after-slide .before-after-info p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Controles del Carousel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 102, 0, 0.9); /* Naranja con transparencia */
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background: rgba(255, 102, 0, 1); /* Naranja sólido al hover */
    border-color: var(--white);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.carousel-control.prev {
    left: 20px; /* Más adentro para mejor visibilidad */
}

.carousel-control.next {
    right: 20px; /* Más adentro para mejor visibilidad */
}

.carousel-control i {
    margin: 0;
    line-height: 1;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .before-after-carousel-container {
        padding: 0 60px; /* Menos padding en pantallas medianas */
    }
    
    .before-after-slide .before-after-container {
        padding: 1.8rem;
        gap: 0.8rem;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1.4rem;
    }
    
    .carousel-control {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 992px) {
    .before-after-carousel-container {
        padding: 0 50px;
        margin: 1.5rem 0;
    }
    
    .before-after-slide .before-after-container {
        padding: 1.6rem;
        gap: 0.8rem;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1.35rem;
    }
    
    .before-after-slide .before-after-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .before-after-carousel-container {
        padding: 0 40px;
        margin: 1rem 0;
        overflow: hidden !important; /* Crucial para móvil */
    }
    
    .before-after-carousel {
        width: 1000% !important; /* Forzar 10 slides */
        display: flex !important;
        transition: transform 0.5s ease-in-out !important;
    }
    
    .before-after-slide {
        flex: 0 0 10% !important; /* Forzar proporción */
        width: 10% !important;
        min-height: 500px; /* Altura específica para móvil */
        display: block !important;
    }
    
    .before-after-slide .before-after-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0 0.5rem;
        height: auto;
        min-height: 400px;
    }
    
    .before-after-slide .before-after-divider {
        flex-direction: row;
        margin: 0;
        width: 100%;
        justify-content: center;
    }
    
    .before-after-slide .divider-line {
        width: 80px;
        height: 3px;
    }
    
    .before-after-slide .divider-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .before-after-slide .before-image,
    .before-after-slide .after-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    .before-after-slide .before-image img,
    .before-after-slide .after-image img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        border-radius: 12px;
        display: block !important;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .before-after-slide .before-after-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .carousel-control {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        border-width: 2px;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .carousel-indicators {
        margin-top: 1.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 600px) {
    .before-after-carousel-container {
        padding: 0 35px;
    }
    
    .before-after-slide .before-after-container {
        padding: 1.2rem;
        gap: 1.2rem;
        margin: 0 0.3rem;
    }
    
    .before-after-slide .divider-line {
        width: 70px;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1.2rem;
    }
    
    .before-after-slide .before-after-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .before-after-carousel-container {
        padding: 0 30px !important;
        margin: 0.8rem 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .before-after-carousel {
        width: 1000% !important;
        display: flex !important;
    }
    
    .before-after-slide {
        flex: 0 0 10% !important;
        width: 10% !important;
        min-height: 450px !important;
        display: block !important;
    }
    
    .before-after-slide .before-after-container {
        padding: 1rem;
        margin: 0 0.2rem;
        gap: 1rem;
        border-radius: 12px;
        min-height: 350px;
    }
    
    .before-after-slide .before-image,
    .before-after-slide .after-image {
        max-width: 250px;
        flex-shrink: 0;
    }
    
    .before-after-slide .before-image img,
    .before-after-slide .after-image img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .before-after-slide .divider-line {
        width: 60px;
        height: 2px;
    }
    
    .before-after-slide .divider-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .before-after-slide .before-after-info {
        margin-top: 1.5rem;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }
    
    .before-after-slide .before-after-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .carousel-control {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        border-width: 2px;
    }
    
    .carousel-control.prev {
        left: 5px;
    }
    
    .carousel-control.next {
        right: 5px;
    }
    
    .carousel-indicators {
        margin-top: 1.2rem;
        gap: 0.4rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    .before-after-carousel-container {
        padding: 0 25px !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .before-after-carousel {
        width: 1000% !important;
        display: flex !important;
        /* Allow JS to apply inline transform: remove forced translateX */
        transition: transform 0.5s ease;
    }
    
    .before-after-slide {
        flex: 0 0 10% !important;
        width: 10% !important;
        min-height: 420px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .before-after-slide .before-after-container {
        padding: 0.8rem;
        margin: 0;
        gap: 0.8rem;
        min-height: 320px;
    }
    
    .before-after-slide .before-image,
    .before-after-slide .after-image {
        max-width: 200px;
        flex-shrink: 0;
    }
    
    .before-after-slide .before-image img,
    .before-after-slide .after-image img {
        width: 100% !important;
        height: 160px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .before-after-slide .image-label {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        top: 8px;
        left: 8px;
    }
    
    .before-after-slide .divider-line {
        width: 50px;
    }
    
    .before-after-slide .divider-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .before-after-slide .before-after-info p {
        font-size: 0.75rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .carousel-control.prev {
        left: 2px;
    }
    
    .carousel-control.next {
        right: 2px;
    }
}

/* Landscape para móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .before-after-slide .before-after-container {
        flex-direction: row;
        padding: 1rem;
        gap: 1rem;
    }
    
    .before-after-slide .before-after-divider {
        flex-direction: column;
    }
    
    .before-after-slide .divider-line {
        width: 2px;
        height: 40px;
    }
    
    .before-after-slide .before-image,
    .before-after-slide .after-image {
        max-width: none;
        flex: 1;
    }
    
    .before-after-slide .before-after-info {
        margin-top: 1rem;
    }
    
    .before-after-slide .before-after-info h3 {
        font-size: 1.1rem;
    }
    
    .before-after-slide .before-after-info p {
        font-size: 0.8rem;
    }
}

/* ===== OCULTAR SECCIÓN PORTFOLIO ===== */
/* Ocultar la sección completa del portfolio */
#portfolio,
.portfolio {
    display: none !important;
}

/* Ocultar el enlace del portfolio en el menú de navegación */
.nav-link[href="#portfolio"] {
    display: none !important;
}

/* Ocultar el elemento de lista que contiene el enlace del portfolio */
.nav-link[href="#portfolio"]::parent,
li:has(.nav-link[href="#portfolio"]) {
    display: none !important;
}