/* ═══════════════════════════════════════════════════════════
   CRUDO DC v3 — Cyberpunk Criollo · Rigor Editorial
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Paleta Cyberpunk Criollo */
    --bg: #1A1612;          /* Sombras de Barichara */
    --muro: #241F1A;        /* Adobe oscuro */
    --oro: #D4941A;         /* Oro Muisca */
    --turq: #5BB89A;        /* Neón digital (acentos IA) */
    
    /* Tipografías */
    --fm: 'Space Mono', monospace;
    --fb: 'Lora', Georgia, serif;
    
    /* Utilidades */
    --trans: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base & Reseteos ─────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    cursor: none; /* Oculta cursor nativo en desktop */
}

body {
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--oro);
    color: #000;
}

/* ── Cursors (Interacción Boutique) ──────────────────────── */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--oro);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border: 1px solid rgba(212, 148, 26, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    margin-top: -12px;
    margin-left: -12px;
}

.cursor-ring.hovered {
    width: 50px;
    height: 50px;
    border-color: var(--oro);
    margin-top: -22px;
    margin-left: -22px;
    background: rgba(212, 148, 26, 0.05);
}

@media (max-width: 768px) {
    .cursor, .cursor-ring { display: none; }
    html { cursor: auto; }
}

/* ── Expeditions (Data-Cards Cyberpunk) ──────────────────── */
.expedition-card {
    position: relative;
    overflow: hidden;
}

/* Watermark de código en el fondo de la tarjeta */
.expedition-card::after {
    content: "SYS.REQ.00" counter(expeditions);
    counter-increment: expeditions;
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-family: var(--fm);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    font-weight: bold;
    z-index: 0;
}

.expedition-card > * {
    position: relative;
    z-index: 10;
}

/* ── Shop (Tratamiento de Imagen) ────────────────────────── */
.product-card img {
    filter: grayscale(80%) sepia(10%) contrast(120%);
}

.product-card:hover img {
    filter: grayscale(0%) sepia(0%) contrast(100%);
}

/* ── Chatbot UI ──────────────────────────────────────────── */
#chatWindow.open {
    transform: translateY(0);
}

.msg-bub {
    max-width: 85%;
    padding: 10px;
    border: 1px solid transparent;
}

.msg-bub.bot {
    align-self: flex-start;
    border-left-color: var(--oro);
    background: rgba(212, 148, 26, 0.05);
}

.msg-bub.user {
    align-self: flex-end;
    border-right-color: rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.05);
    text-align: right;
}

/* Animación de tipiado */
.typing-dots span {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--oro);
    margin-right: 3px;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ── Supresión Absoluta de Legados (Aliados/Partners) ────── */
#aliados, 
.partners, 
.sponsors, 
#partners-section {
    display: none !important;
}
/* ── Parallax Sutil del Hero (Optimizado) ────── */
#hero-video {
    /* Escalamos al 105% para tener margen de movimiento sin mostrar los bordes */
    transform: scale(1.05);
    /* Le decimos al navegador que esto se va a mover para que use la tarjeta gráfica (Hardware Acceleration) */
    will-change: transform; 
}