/* ===================================
   CSS Variables & Base Styles
   =================================== */
:root {
    --primary: #8655FF;
    --primary-light: #a67fff;
    --primary-dark: #6b3fd9;
    --dark: #160F50;
    --dark-light: #2a1f6b;
    --white: #FFFFFF;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --gradient-hero: linear-gradient(135deg, var(--dark) 0%, #1a1354 50%, var(--dark-light) 100%);

    --shadow-sm: 0 2px 8px rgba(22, 15, 80, 0.08);
    --shadow-md: 0 4px 20px rgba(22, 15, 80, 0.12);
    --shadow-lg: 0 8px 40px rgba(22, 15, 80, 0.16);
    --shadow-primary: 0 4px 20px rgba(134, 85, 255, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom cursor experience */
}

/* Custom Cursor Styles */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
    display: none;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    display: none;
}

@media (min-width: 768px) {

    .custom-cursor,
    .custom-cursor-dot {
        display: block !important;
        opacity: 1 !important;
    }
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(134, 85, 255, 0.1);
    border-color: var(--primary-light);
}

.custom-cursor-dot.active {
    transform: translate(-50%, -50%) scale(1.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

/* Logo image: white on dark bg, original colors on white bg */
.logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar.scrolled .logo-img {
    filter: none;
}

/* Footer logo stays white (dark background) */
.footer-logo-img {
    filter: brightness(0) invert(1) !important;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

@media (min-width: 769px) {
    .navbar.scrolled .nav-link {
        color: var(--dark);
    }
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
}

@keyframes firefly-float-1 {

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

    33% {
        transform: translate(25vw, 15vh) scale(1.2) rotate(120deg);
        opacity: 0.5;
    }

    66% {
        transform: translate(-15vw, 25vh) scale(0.8) rotate(240deg);
        opacity: 0.3;
    }
}

@keyframes firefly-float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1.1) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: translate(-25vw, -20vh) scale(0.7) rotate(-180deg);
        opacity: 0.1;
    }
}

@keyframes firefly-float-3 {

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

    25% {
        transform: translate(20vw, -20vh) scale(1.1) rotate(90deg);
        opacity: 0.6;
    }

    50% {
        transform: translate(30vw, 10vh) scale(0.9) rotate(180deg);
        opacity: 0.2;
    }

    75% {
        transform: translate(10vw, 30vh) scale(1.2) rotate(270deg);
        opacity: 0.4;
    }
}

@keyframes firefly-float-4 {

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

    33% {
        transform: translate(-20vw, 20vh) scale(1.3);
        opacity: 0.1;
    }

    66% {
        transform: translate(25vw, -15vh) scale(0.7);
        opacity: 0.5;
    }
}


.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: firefly-float-1 15s infinite ease-in-out alternate;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: var(--primary-light);
    bottom: -150px;
    left: -100px;
    animation: firefly-float-2 12s infinite ease-in-out alternate;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-dark);
    top: 15%;
    left: 15%;
    animation: firefly-float-3 18s infinite ease-in-out alternate;
}

.shape-4 {
    width: 400px;
    height: 400px;
    background: #5a35cc;
    bottom: 10%;
    right: 10%;
    animation: firefly-float-4 14s infinite ease-in-out alternate;
}


.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(134, 85, 255, 0.2);
    border: 1px solid rgba(134, 85, 255, 0.3);
    border-radius: var(--radius-xl);
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-line {
    display: block;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 3.6em;
    display: block;
    word-wrap: break-word;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(134, 85, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===================================
   Preloader & Custom Cursor
   =================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 80px;
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-bar {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: loadingBar 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {

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

    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 20px var(--primary);
    }
}

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

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}



/* Global Confetti */
.confetti-canvas-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999 !important;
    /* Force on top of everything */
}

/* ===================================
   Global Styles & Interactions
   =================================== */
@media (min-width: 1025px) {

    html,
    body,
    a,
    button {
        cursor: none !important;
    }

    /* Tilt Effect Base */
    .service-card,
    .product-card,
    .testimonial-card {
        transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
        transform-style: preserve-3d;
        perspective: 1000px;
    }

    /* Magnetic Buttons Base */
    .btn {
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
        will-change: transform;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(134, 85, 255, 0.1);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 120px 0;
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: var(--gradient-dark);
    color: var(--white);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: var(--white);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(134, 85, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-card.featured .service-icon {
    background: rgba(134, 85, 255, 0.3);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 6px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

/* ===================================
   Catalog Section
   =================================== */
.catalog {
    padding: 120px 0;
}

.catalog-filters {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 48px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.filter-btn {
    padding: 10px 22px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-image:hover .product-img-bg {
    transform: scale(1.05);
}

/* Image Zoom Button */
.btn-zoom-image {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.product-image:hover .btn-zoom-image {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.btn-zoom-image:hover {
    background: var(--primary);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 1024px) {
    .btn-zoom-image {
        opacity: 1;
        pointer-events: all;
        transform: none;
        top: 10px;
        left: auto;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    .product-image:hover .btn-zoom-image {
        transform: none;
    }
    .btn-zoom-image:hover {
        transform: scale(1.05);
    }
}

.product-card.hidden {
    display: none;
}

/* ===================================
   Zoom Modal Styles
   =================================== */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zoom-modal.active {
    visibility: visible;
    opacity: 1;
}

.zoom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.zoom-modal-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2;
}

.zoom-modal-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.zoom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.zoom-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-card:hover .product-placeholder {
    transform: scale(1.05);
}

.product-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
    cursor: default;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
}

.product-icon {
    font-size: 4rem;
}

.digital-1 {
    background: linear-gradient(135deg, #8655FF 0%, #a67fff 100%);
}

.digital-2 {
    background: linear-gradient(135deg, #5a35cc 0%, #8655FF 100%);
}

.digital-3 {
    background: linear-gradient(135deg, #a67fff 0%, #c9b3ff 100%);
}

.digital-4 {
    background: linear-gradient(135deg, #160F50 0%, #2a1f6b 100%);
}

.digital-5 {
    background: linear-gradient(135deg, #6b3fd9 0%, #8655FF 100%);
}

.fisico-1 {
    background: linear-gradient(135deg, #160F50 0%, #8655FF 100%);
}

.fisico-2 {
    background: linear-gradient(135deg, #2a1f6b 0%, #5a35cc 100%);
}

.fisico-3 {
    background: linear-gradient(135deg, #8655FF 0%, #160F50 100%);
}

.fisico-4 {
    background: linear-gradient(135deg, #5a35cc 0%, #a67fff 100%);
}

.fisico-5 {
    background: linear-gradient(135deg, #a67fff 0%, #8655FF 100%);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: rgba(134, 85, 255, 0.9);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.product-tag.cat-impresion {
    background: rgba(22, 15, 80, 0.85);
}

.product-tag.cat-packaging {
    background: rgba(180, 120, 50, 0.85);
}

.product-tag.cat-senalizacion {
    background: rgba(50, 50, 50, 0.85);
}

.product-tag.cat-vinilo {
    background: rgba(30, 120, 180, 0.85);
}

.product-tag.cat-digital {
    background: rgba(134, 85, 255, 0.9);
}

.product-tag.cat-espacios {
    background: rgba(34, 120, 80, 0.85);
}

.product-tag.cat-diseno {
    background: rgba(200, 60, 130, 0.85);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.product-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(134, 85, 255, 0.06);
    border: 1px solid rgba(134, 85, 255, 0.12);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-600);
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* Product Buy/Quote Button */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 20px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-buy:hover {
    background: #22c35e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    color: #fff;
}

.btn-buy svg {
    flex-shrink: 0;
}

/* WhatsApp Section */
.whatsapp-cta {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.whatsapp-cta::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 120%;
    background: linear-gradient(90deg, transparent, rgba(134, 85, 255, 0.05));
    transform: skewX(-15deg);
}

.whatsapp-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.whatsapp-content .section-badge {
    background: rgba(134, 85, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(134, 85, 255, 0.2);
}

.whatsapp-content .section-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.whatsapp-content .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: 0;
}

.whatsapp-features {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.whatsapp-feature {
    display: flex;
    align-items: center;
    gap: 20px;
}

.whatsapp-feature .feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.whatsapp-feature:hover .feature-icon {
    background: rgba(134, 85, 255, 0.2);
    border-color: var(--primary-light);
    transform: scale(1.1);
}

.whatsapp-feature h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.whatsapp-feature p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 18px 40px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
    width: fit-content;
}

.btn-whatsapp svg {
    margin-right: 12px;
}

.btn-whatsapp:hover {
    background: #22c35e;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-mockup {
    position: relative;
    padding: 20px;
}

.chat-bg {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.chat-bubble {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.5;
    animation: fadeInUp 0.5s ease-out backwards;
}

.chat-bubble.received {
    background: var(--white);
    color: var(--dark);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-bubble:nth-child(2) {
    animation-delay: 0.2s;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: #128C7E;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Los estilos de autenticación de usuario y carrito han sido removidos */


/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 120px 0;
    background: var(--gray-100);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(134, 85, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.social-links,
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: all 0.4s ease;
    z-index: 2;
}

/* Efectos por Red Social */
.social-link.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
}

.social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(214, 36, 159, 0.4);
}

.social-link.tiktok:hover {
    background: #000000;
    border-color: #fe2c55;
    box-shadow: 0 0 20px rgba(254, 44, 85, 0.4);
}

.social-link.pexels:hover {
    background: #05a081;
    border-color: #05a081;
    box-shadow: 0 0 20px rgba(5, 160, 129, 0.4);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {

    .quoter-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .whatsapp-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: left;
    }

    .whatsapp-content .section-title {
        font-size: 2.5rem;
    }

    .whatsapp-content .section-subtitle {
        margin-bottom: 30px;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .chat-bg {
        padding: 30px 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-menu .nav-link {
        color: var(--white);
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span {
        background: var(--white) !important;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .catalog-filters {
        flex-direction: row;
        width: 100%;
        margin-bottom: 20px;
    }

    .filter-btn {
        width: auto;
    }

    .contact-form {
        padding: 24px;
    }

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

/* ===================================
   Animations & Utilities
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typing indicator for chat */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

/* Quote result styling */
.quote-result {
    background: linear-gradient(135deg, rgba(134, 85, 255, 0.1), rgba(22, 15, 80, 0.1));
    border: 1px solid rgba(134, 85, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}

.quote-result h5 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.quote-result .quote-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

/* ===================================
   Portfolio Section & Marquee
   =================================== */
.portfolio-section {
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-light);
}

.portfolio-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.portfolio-marquee-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-marquee-container::-webkit-scrollbar {
    display: none;
}

.portfolio-marquee {
    display: flex;
    white-space: nowrap;
    /* animation: marquee 60s linear infinite; - Disabled to avoid repeats */
    gap: 30px;
    padding: 0 15px;
    width: max-content;
    will-change: transform;
}

.portfolio-marquee.paused {
    animation-play-state: paused;
}

/* Portfolio Navigation Controls */
.portfolio-nav-controls {
    display: none;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .portfolio-nav-controls {
        display: flex;
    }
}

.portfolio-nav-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 20px rgba(134, 85, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.portfolio-nav-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(134, 85, 255, 0.6);
}


.portfolio-nav-btn svg {
    width: 24px;
    height: 24px;
}

.portfolio-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.portfolio-item {
    flex: 0 0 400px;
    height: 500px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.portfolio-item img,
.portfolio-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover .portfolio-video-bg {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 15, 80, 0.9) 0%, rgba(22, 15, 80, 0.4) 50%, rgba(22, 15, 80, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.portfolio-client {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.3s;
}

.portfolio-item:hover .portfolio-category,
.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-client {
    transform: translateY(0);
}

/* ===================================
   Project Modal (Behance Style)
   =================================== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-modal.active {
    visibility: visible;
    opacity: 1;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 15, 80, 0.95);
    backdrop-filter: blur(10px);
}

.project-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 0;
    z-index: 10;
}

.project-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.3s ease;
}

.project-modal-close:hover {
    transform: rotate(90deg);
}

.project-modal-close svg {
    width: 24px;
    height: 24px;
}

.project-modal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.project-header .section-badge {
    background: rgba(134, 85, 255, 0.2);
    border-color: rgba(134, 85, 255, 0.4);
    color: var(--primary-light);
    margin-bottom: 20px;
}

.project-header h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-meta strong {
    color: white;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.project-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 80px;
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.project-main-image,
.gallery-video {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    background: #000;
}

.gallery-video {
    margin-bottom: 0px;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-gallery img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.project-footer {
    padding: 100px 0 60px;
    text-align: center;
}

.project-footer h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2.5rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .portfolio-item {
        flex: 0 0 300px;
        height: 400px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(134, 85, 255, 0.1);
}

.testimonial-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    padding: 15px 15px 0 15px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.testimonial-content {
    padding: 25px 25px 10px;
    flex-grow: 1;
}

.testimonial-comment {
    color: #8c5dff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 3em;
}

.testimonial-footer {
    padding: 0 25px;
}

.testimonial-business {
    background: #8c5dff;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    width: 100%;
    font-size: 1rem;
    text-transform: capitalize;
    box-shadow: 0 8px 20px rgba(140, 93, 255, 0.3);
}

.testimonial-client {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testimonial-card {
        border-radius: 30px;
    }
}

/* Scrollable Catalog Filters */
.catalog-filters {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    -webkit-overflow-scrolling: touch;
}

.catalog-filters::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-btn {
    white-space: nowrap;
    padding: 10px 20px;
    border: 1px solid rgba(134, 85, 255, 0.3);
    background: transparent;
    border-radius: 30px;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(134, 85, 255, 0.1);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(134, 85, 255, 0.4);
}