/* ================================================
   ASERRADERO ZULIA — PROFESSIONAL STYLES
   Inspired by David Marcano Portfolio
   ================================================ */

/* Core Cursor */
@media (pointer: fine) {
    body, a, button, .cursor-pointer, .gallery-item {
        cursor: none !important;
    }
}

/* Gold Stroke hover effect */
.hover-stroke-gold {
    color: transparent;
    -webkit-text-stroke: 2px #c8922a;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}
.hover-stroke-gold:hover {
    color: #c8922a;
    -webkit-text-stroke: 0px transparent;
}

/* Navbar glassmorphism on scroll */
#navbar.scrolled {
    background: rgba(10, 7, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 146, 42, 0.15);
}

/* Gallery item hover line */
.gallery-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, #c8922a, transparent);
    transition: width 0.5s ease;
}
.gallery-item {
    position: relative;
}
.gallery-item:hover::before {
    width: 100%;
}

/* Info cards lift */
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(200, 146, 42, 0.15);
}

/* Grain noise texture */
#grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0705;
}
::-webkit-scrollbar-thumb {
    background: #8b6010;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8922a;
}

/* Canvas pointer events */
#bg-canvas {
    pointer-events: none;
}

#pallet3d {
    pointer-events: auto !important;
    touch-action: none;
    cursor: grab;
}

#pallet3d:active {
    cursor: grabbing;
}

/* Section titles gradient animation */
.section-title {
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Nosotros counter glow */
#counter1, #counter2, #counter3 {
    text-shadow: 0 0 30px rgba(200, 146, 42, 0.4);
}

/* ================================================
   ESTIBAS — TABS
   ================================================ */
.pallet-tab {
    color: #9ca3af;
    border-color: rgba(200, 146, 42, 0.2);
    background: transparent;
}
.pallet-tab:hover {
    color: #e8b84b;
    border-color: rgba(200, 146, 42, 0.5);
    background: rgba(200, 146, 42, 0.05);
}
.pallet-tab.active-tab {
    color: #0a0705;
    background: #c8922a;
    border-color: #c8922a;
}

/* Table rows */
.pallet-row td {
    transition: color 0.2s ease;
}

/* Pallet content transition */
.pallet-content {
    animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
