/* =========================================================================
   TERRANOVA EXIM S.A.C. (terranovaexim.com)
   Paleta Corporativa Exclusiva: Midnight Sapphire, Electric Cyan & Terracotta Copper
   + Slider Carrusel 3D Interactivo de Productos en el Hero
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --tn-navy-950: #060A17;
    --tn-navy-900: #0B132B;
    --tn-navy-800: #162247;
    --tn-cyan-500: #0EA5E9;
    --tn-cyan-400: #38BDF8;
    --tn-copper-500: #F97316;
    --tn-copper-400: #FB923C;
    --tn-copper-300: #FDBA74;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: #060A17;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F97316, #0284C7);
    border-radius: 9999px;
}

/* 3D Perspective & Tilt Cards */
.perspective-container {
    perspective: 1400px;
}

.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 28px 60px -15px rgba(2, 6, 23, 0.65), 0 0 28px -5px rgba(56, 189, 248, 0.32);
}

.tilt-depth-1 {
    transform: translateZ(22px);
}

.tilt-depth-2 {
    transform: translateZ(42px);
}

.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.22), transparent 65%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 20;
}

.tilt-card:hover .tilt-glare {
    opacity: 1;
}

/* =========================================================================
   HERO 3D PRODUCT SLIDER / CAROUSEL (DRAGGABLE 360° CYLINDER)
   ========================================================================= */
.hero-3d-slider-stage {
    perspective: 1300px;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    touch-action: pan-y;
}

.hero-3d-slider-stage:active {
    cursor: grabbing;
}

.hero-3d-carousel-ring {
    position: relative;
    width: 210px;
    height: 275px;
    margin: 0 auto;
    transform-style: preserve-3d;
    will-change: transform;
}

@media (max-width: 640px) {
    .hero-3d-carousel-ring {
        width: 175px;
        height: 235px;
    }
}

.hero-3d-slide-card {
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(6, 10, 23, 0.98));
    border: 1.5px solid rgba(56, 189, 248, 0.42);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 22px rgba(14, 165, 233, 0.18);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.hero-3d-slide-card.is-front-slide {
    border-color: rgba(249, 115, 22, 0.95);
    box-shadow: 0 25px 55px -8px rgba(0, 0, 0, 0.85), 0 0 32px rgba(249, 115, 22, 0.45);
}

.hero-3d-slide-card img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* 3D Floating Animations */
@keyframes float3D {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-12px) rotateX(4deg) rotateY(-4deg);
    }
}

@keyframes pulseGlowCopper {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45);
    }
    50% {
        box-shadow: 0 0 28px 6px rgba(56, 189, 248, 0.3);
    }
}

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

.animate-float-3d {
    animation: float3D 6s ease-in-out infinite;
}

.animate-glow-gold {
    animation: pulseGlowCopper 3.5s infinite;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}

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

/* Terracotta Copper & Electric Cyan Gradients */
.text-gold-gradient {
    background: linear-gradient(135deg, #FDBA74 0%, #F97316 50%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 55%, #EA580C 100%);
    color: #FFFFFF !important;
}

.bg-emerald-luxury {
    background: radial-gradient(circle at 20% 20%, #172554 0%, #0B132B 55%, #050814 100%);
}

/* Glass Panels */
.glass-dark {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.glass-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

/* 3D Canvas Containers */
#hero3dCanvas,
#packaging3dCanvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    cursor: grab;
}

#hero3dCanvas:active,
#packaging3dCanvas:active {
    cursor: grabbing;
}
