/* assets/css/main.css */
/* Design tokens + estilos compartidos — cifrid.com */

:root {
    /* ── Colores ── */
    --color-primary: #3381E6;
    --color-accent: #339BE6;
    --color-blue: #004AAD;
    --color-blue-mid: #0769FA;
    --color-cyan: #52D1DC;
    --color-dark: #020608;

    /* ── z-index (escala normalizada) ── */
    --z-content: 10;
    --z-scroll-top: 40;
    --z-header: 50;
    --z-modal: 60;

    /* ── Breakpoints (referencia para JS/docs) ── */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;

    /* ── Tipografía ── */
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-mono: 'DM Mono', 'Courier New', monospace;
}

/* ── Base ── */
body { font-family: var(--font-body); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* ── Fade-in-up (patrón unificado: transition + .visible) ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero blur blob ── */
.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

/* ── Blob float (hero decorativo) ── */
@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
.animate-blob { animation: blob-float 7s infinite; }
.animate-blob-delay { animation: blob-float 7s infinite 2s; }

/* ── Float-y (index hero images) ── */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.animate-float { animation: float-y 4s ease-in-out infinite; }
.animate-float-delay { animation: float-y 4s ease-in-out infinite 1s; }
.animate-float-delay2 { animation: float-y 4s ease-in-out infinite 2s; }

/* ── Gradient divider ── */
.gradient-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue-mid), var(--color-cyan));
    border-radius: 2px;
}

/* ── Tag gris (gradient text clip) ── */
.tag-gris {
    background: linear-gradient(90deg, #303641 0%, #4285F4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0px 1px 0px rgba(66, 133, 244, 0.2));
    font-weight: 700;
}

/* ── Gradient counter background (bci report) ── */
.gradient-counter-bg {
    background: linear-gradient(135deg, var(--color-blue-mid) 0%, var(--color-cyan) 50%, var(--color-blue-mid) 100%);
}

/* ── Counter number transition ── */
.counter-number {
    transition: all 0.3s ease;
}

/* ── Flywheel hub (bci report, md+ only) ── */
.flywheel-hub { display: none; }
@media (min-width: 768px) {
    .flywheel-hub { display: flex; }
}

/* ── Code block (terminal style) ── */
.code-block {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}
.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    color: #e2e8f0;
}
.code-block .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}
.code-block .code-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.code-comment { color: #64748b; }
.code-key { color: #7dd3fc; }
.code-value { color: #86efac; }
