/* ==========================================================================
   FORMATACIÓN DE PRESENTACIÓN: ECOSISTEMA EMBODIED AI
   Paleta Metálica de Alto Brillo: Oro (Dorado), Plata Pulida (Chrome) y Cobre Fulgurante
   Ponencia Technology Camp 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Fondos de aleación profunda / carbón titanio */
    --bg-dark: #07090e;
    --card-bg: #0f1420;
    --card-border: #1e2738;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-faint: #64748b;

    /* ---- METALES NOBLES DE ALTO BRILLO ---- */
    
    /* 1. ORO (Dorado Radiante) */
    --gold-light: #fff59d;
    --gold: #f59e0b;
    --gold-rich: #d97706;
    --gold-dark: #92400e;
    --gold-glow: rgba(245, 158, 11, 0.55);

    /* 2. PLATA (Plateado Cromo / Titanio Brillante) */
    --silver-pure: #ffffff;
    --silver-light: #f8fafc;
    --silver: #e2e8f0;
    --silver-metal: #cbd5e1;
    --silver-dark: #94a3b8;
    --silver-glow: rgba(255, 255, 255, 0.55);
    --silver-plate: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(203, 213, 225, 0.08) 50%, rgba(255, 255, 255, 0.18) 100%);

    /* 3. COBRE (Cobre Fulgurante / Fuego Metálico) */
    --copper-light: #ffedd5;
    --copper-bright: #fb923c;
    --copper: #f97316;
    --copper-rich: #ea580c;
    --copper-deep: #9a3412;
    --copper-glow: rgba(249, 115, 22, 0.65);

    /* Aliases temáticos compatibles */
    --cyan: var(--gold-light);
    --blue: var(--copper);
    --purple: var(--silver-pure);
    --green: #22c55e;
    --amber: #f59e0b;

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 5.5rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.65;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Resplandor ambiental de fundición: Cobre cálido arriba, destello de Plata y halo de Oro */
body::before {
    content: "";
    position: fixed;
    top: -22%;
    left: 50%;
    width: 1200px;
    height: 700px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at 50% 15%,
        rgba(249, 115, 22, 0.14) 0%,    /* Cobre ardiente */
        rgba(245, 158, 11, 0.11) 32%,   /* Oro radiante */
        rgba(255, 255, 255, 0.06) 58%,  /* Plata brillante */
        transparent 78%
    );
    pointer-events: none;
    z-index: 0;
}

/* ---- HUD: Barra de progreso de aleación luminosa ---- */
.deck-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 9997;
    background: linear-gradient(
        90deg,
        #f59e0b 0%,
        #ffffff 22%,
        #f97316 45%,
        #ffffff 68%,
        #ea580c 85%,
        #fff59d 100%
    );
    transform: scaleX(0);
    transform-origin: 0 50%;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.8), 0 0 24px rgba(255, 255, 255, 0.6), 0 0 12px rgba(245, 158, 11, 0.8);
    transition: transform 120ms linear;
}

.deck-hud {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 9996;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    border: 1.5px solid rgba(251, 146, 60, 0.4);
    border-radius: 999px;
    background: rgba(12, 17, 26, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 14px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.deck-counter {
    padding: 0 0.5rem;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}

.deck-counter b {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ---- Indicador de fase: en qué punto del recorrido está la ponencia ---- */
.deck-phase {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.28rem 0.7rem;
    border: 1.5px solid rgba(249, 115, 22, 0.55);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(255, 255, 255, 0.06));
    color: #ffedd5;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    align-self: center;
}

.deck-phase-tag {
    color: rgba(255, 237, 213, 0.7);
    font-size: 0.62rem;
}

.deck-phase b {
    color: #ffffff;
    font-size: 0.84rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.deck-phase-total {
    color: rgba(255, 237, 213, 0.6);
}

.deck-phase-name {
    margin-left: 0.3rem;
    padding-left: 0.55rem;
    border-left: 1px solid rgba(251, 146, 60, 0.45);
    letter-spacing: 0.07em;
    text-transform: none;
    font-size: 0.72rem;
    color: #ffffff;
}

.deck-phase--aside .deck-phase-name {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}


.deck-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 32px;
    padding: 0 0.95rem;
    border: 1.5px solid rgba(249, 115, 22, 0.5);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(255, 255, 255, 0.08));
    color: #ffedd5;
    font: 700 0.75rem/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 220ms ease;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.deck-toggle:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.4), 0 0 12px rgba(249, 115, 22, 0.5);
}

.deck-toggle:focus-visible {
    outline: 3px solid #fb923c;
    outline-offset: 2px;
}

.deck-toggle[aria-pressed="true"] {
    color: #000000;
    border-color: transparent;
    background: linear-gradient(120deg, #ffffff 0%, #fb923c 45%, #f59e0b 100%);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.7), 0 0 10px rgba(255, 255, 255, 0.8);
    font-weight: 800;
}

.deck-toggle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: hudPing 2.4s ease-out infinite;
}

@keyframes hudPing {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

/* Enlace/Botón permanente al Glosario en el HUD superior */
.deck-glosario-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 32px;
    padding: 0 0.85rem;
    border: 1.5px solid rgba(251, 146, 60, 0.5);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(245, 158, 11, 0.12));
    color: #ffedd5;
    font: 700 0.75rem/1 'Inter', system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 220ms ease;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.deck-glosario-link:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 0 12px rgba(249, 115, 22, 0.6);
}

/* Icono Moderno SVG para el Glosario */
.icon-glossary {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.15em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 220ms ease, stroke 220ms ease, filter 220ms ease;
}

.deck-glosario-link .icon-glossary,
.deck-counter .icon-glossary,
.route-glosario-link .icon-glossary {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.18em;
}

.deck-glosario-link:hover .icon-glossary,
.route-glosario-link:hover .icon-glossary {
    transform: scale(1.15);
    stroke: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Enlace/Botón permanente al Repositorio GitHub (awesome-embodied-ai) */
.deck-repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 32px;
    padding: 0 0.85rem;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    color: #f8fafc;
    font: 700 0.75rem/1 'Inter', system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 220ms ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.deck-repo-link:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(249, 115, 22, 0.2));
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 0 10px rgba(249, 115, 22, 0.35);
}

.icon-repo {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 220ms ease;
}

.deck-repo-link:hover .icon-repo,
.demo-citation-repo:hover .icon-repo {
    transform: scale(1.15);
}

/* Navegación lateral por secciones */
.deck-nav {
    position: fixed;
    top: 50%;
    right: 1.35rem;
    z-index: 9995;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateY(-50%);
}

.deck-dot {
    position: relative;
    width: 13px;
    height: 13px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(15, 20, 32, 0.85);
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25);
    transition: transform 260ms cubic-bezier(.22, .8, .28, 1), background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.deck-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    padding: 0.4rem 0.75rem;
    border: 1.5px solid rgba(249, 115, 22, 0.35);
    border-radius: 0.5rem;
    background: rgba(12, 16, 24, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font: 600 0.75rem/1 'Inter', system-ui, sans-serif;
    white-space: nowrap;
    opacity: 0;
    transform: translate(6px, -50%);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 10px rgba(249, 115, 22, 0.2);
}

.deck-dot:hover::after,
.deck-dot:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.deck-dot:hover {
    border-color: #ffffff;
    transform: scale(1.35);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.75);
}

.deck-dot:focus-visible {
    outline: 3px solid #fb923c;
    outline-offset: 3px;
}

.deck-dot[aria-current="true"] {
    border-color: transparent;
    background: linear-gradient(135deg, #ffffff 0%, #fb923c 45%, #f59e0b 100%);
    transform: scale(1.6);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3), 0 0 18px rgba(255, 255, 255, 0.9), 0 0 24px rgba(249, 115, 22, 0.6);
}

/* Pista de teclado inferior */
.deck-hint {
    position: fixed;
    left: 50%;
    bottom: 1.35rem;
    z-index: 9994;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(12, 17, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, 0);
    transition: opacity 500ms ease, transform 500ms ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 12px rgba(255, 255, 255, 0.15);
}

.deck-hint kbd {
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.35rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(203, 213, 225, 0.1));
    color: #ffffff;
    font: 700 0.72rem/1.4 'JetBrains Mono', monospace;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.deck-hint.is-hidden {
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
}

/* ---- Contenedor Principal (Page) ---- */
.page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---- Encabezado Hero (Header) ---- */
header {
    margin-bottom: 3.5rem;
    position: relative;
}

.kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* Badge de cobre ardiente y borde plateado */
.label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffedd5;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(245, 158, 11, 0.16));
    border: 1.5px solid #fb923c;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.kicker .org {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Título H1: Gradiente Tricolor Metálico de Alto Impacto */
h1 {
    text-align: center;
    background: linear-gradient(
        90deg,
        #fff59d 0%,
        #f59e0b 14%,
        #ffffff 28%,
        #cbd5e1 40%,
        #fb923c 54%,
        #ea580c 68%,
        #ffffff 82%,
        #fff59d 100%
    );
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem auto 1rem;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 800;
    max-width: 900px;
    letter-spacing: -0.025em;
    line-height: 1.15;
    animation: gradientFlow 10s linear infinite, heroIn 900ms cubic-bezier(.22, .8, .28, 1) both;
    filter: drop-shadow(0 2px 14px rgba(249, 115, 22, 0.25));
}

@keyframes gradientFlow {
    to { background-position: 260% center; }
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: none; }
}

p.subtitle {
    text-align: center;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.55;
    animation: heroIn 900ms cubic-bezier(.22, .8, .28, 1) 160ms both;
}

.standfirst {
    text-align: center;
    color: #ffffff;
    font-style: italic;
    font-size: 1.05rem;
    max-width: 750px;
    margin: 1.25rem auto 1.75rem;
    padding: 0.95rem 1.6rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(249, 115, 22, 0.06));
    border-radius: 0.85rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 16px rgba(255, 255, 255, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-top: 1.5rem;
}

/* Placa de metal plateado pulido con brillo cromado */
.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(148, 163, 184, 0.1) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 255, 255, 0.2);
}

.byline {
    text-align: center;
    margin-top: 1.5rem;
    color: #cbd5e1;
    font-size: 0.92rem;
}
.byline a {
    color: #fb923c;
    font-weight: 700;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.2s ease;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}
.byline a:hover {
    color: #ffffff;
    border-bottom: none;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
}
.byline span {
    color: #64748b;
}

/* ---- Mapa del recorrido / 6 Pasos Interconectados ---- */
.route-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65rem;
    padding: 1.75rem 1.25rem 1.5rem;
    border: 1.5px solid rgba(251, 146, 60, 0.4);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.18), transparent 42%),
        radial-gradient(circle at 90% 100%, rgba(255, 255, 255, 0.1), transparent 40%),
        #0b0f19;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 24px rgba(249, 115, 22, 0.18);
    margin: 2rem 0 3.5rem;
}

.route-line {
    position: absolute;
    left: 3.5rem;
    right: 3.5rem;
    top: 3.05rem;
    height: 3px;
    overflow: hidden;
    background: linear-gradient(90deg, #f59e0b, #ffffff, #f97316, #ffffff, #f59e0b);
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.7), 0 0 8px rgba(255, 255, 255, 0.6);
}

.route-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: routeSweep 3.5s linear infinite;
}

@keyframes routeSweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(560%); }
}

.route-step {
    position: relative;
    padding-top: 0.35rem;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 1rem;
    padding: 0.5rem 0.4rem;
    transition: background 200ms ease;
}
.route-step:hover {
    background: rgba(255, 255, 255, 0.08);
}

.route-step-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    margin: 0 auto 0.85rem;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #182030 0%, #0e1422 100%);
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 300ms cubic-bezier(.22, .8, .28, 1), border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.route-step:hover .route-step-dot {
    transform: translateY(-4px);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 10px rgba(249, 115, 22, 0.5);
}

.route-step.is-active .route-step-dot {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #ffffff 0%, #fb923c 45%, #f59e0b 100%);
    border-color: transparent;
    color: #000000;
    font-weight: 800;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.8), 0 0 12px rgba(255, 255, 255, 0.9);
}

.route-step strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
}

.route-step p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1.45;
}

.route-loop {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1.5px solid rgba(249, 115, 22, 0.25);
    color: #ffedd5;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.route-loop .icon-glossary {
    width: 1.25em;
    height: 1.25em;
    stroke: #fb923c;
    vertical-align: -0.2em;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.4));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.8));
    }
}

.route-glosario-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.15rem;
    margin-top: 0.35rem;
    border: 1.5px solid rgba(251, 146, 60, 0.45);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(255, 255, 255, 0.08));
    color: #ffedd5;
    font: 700 0.82rem/1 'Inter', system-ui, sans-serif;
    text-decoration: none;
    transition: all 220ms ease;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

.route-glosario-link:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.5), 0 0 14px rgba(249, 115, 22, 0.6);
}

/* ---- Secciones (Sections) ---- */
section {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 1.85rem;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fb923c, #ffffff, #f59e0b, transparent);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 900ms cubic-bezier(.22, .8, .28, 1) 220ms;
}

.section-title.is-visible::after {
    transform: scaleX(1);
}

.section-title .section-number {
    background: linear-gradient(135deg, #ffffff 0%, #fb923c 45%, #ea580c 100%);
    color: #000000;
    font-size: 0.85rem;
    font-weight: 800;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.6), 0 0 8px rgba(255, 255, 255, 0.6);
}

.section-title.is-visible .section-number {
    animation: numberPop 700ms cubic-bezier(.2, .9, .25, 1.2) both, numberHalo 3.4s ease-out 700ms infinite;
}

@keyframes numberPop {
    0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes numberHalo {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
    60%, 100% { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0); }
}

section > .label {
    margin-bottom: 1.25rem;
}

section p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
section p:last-child {
    margin-bottom: 0;
}

.lede {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
}

.muted {
    color: #94a3b8;
    font-size: 0.98rem;
}

/* ---- Cobre Fulgurante: Tesis, Cajas Destacadas y Citas ---- */
.highlight-box,
.thesis,
blockquote.quote {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.16) 0%, rgba(245, 158, 11, 0.08) 55%, rgba(255, 255, 255, 0.04) 100%);
    border-left: 4.5px solid #f97316;
    padding: 1.6rem 2rem;
    border-radius: 0 1rem 1rem 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px -5px rgba(249, 115, 22, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.highlight-box h4,
.thesis::before {
    margin-top: 0;
    color: #fb923c;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.highlight-box a {
    color: #fb923c;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(251, 146, 60, 0.45);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.highlight-box a:hover,
.highlight-box a:focus-visible {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.thesis::before {
    content: "⚡ Tesis central";
}

.thesis {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffff;
}

blockquote.quote p {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 0.8rem;
}

blockquote.quote cite {
    display: block;
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ---- Tarjetas con Bisel Plateado y Brillo de Cobre ---- */
.grid-2,
ul.topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.75rem 0;
}

.card,
ul.topics li {
    background: linear-gradient(180deg, #121826 0%, #0c1018 100%);
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.22, .8, .28, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card:hover,
ul.topics li:hover {
    transform: translateY(-5px);
    border-color: #fb923c;
    box-shadow: 0 20px 40px -5px rgba(249, 115, 22, 0.35), 0 0 18px rgba(255, 255, 255, 0.2);
}

/* Destello plateado cromado al pasar el cursor */
.card::after,
ul.topics li::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    transition: left 780ms cubic-bezier(.22, .8, .28, 1);
}

.card:hover::after,
ul.topics li:hover::after {
    left: 130%;
}

ul.topics b {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

ul.topics b a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.2s ease;
}
ul.topics b a:hover {
    color: #ffedd5;
    border-bottom: none;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

ul.topics .mono {
    margin-bottom: 0.65rem;
    width: fit-content;
}

ul.topics .t-rest {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---- Referencias y Citas (ul.refs) ---- */
ul.refs {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

ul.refs li {
    background: #101624;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.85rem;
    padding: 1.25rem 1.5rem;
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

ul.refs li:hover {
    transform: translateX(4px);
    border-color: #fb923c;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.25);
}

ul.refs .cite {
    font-size: 1rem;
    color: #ffffff;
    display: block;
    line-height: 1.55;
}

ul.refs .cite cite {
    font-style: italic;
    color: #ffedd5;
    text-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
}

ul.refs .gloss {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.88rem;
    color: #cbd5e1;
    border-left: 2.5px solid #f97316;
    padding-left: 0.75rem;
}

/* ---- Enlaces Generales en Cobre Brillante (Sin Subrayado) ---- */
a {
    color: #fb923c;
    text-decoration: none;
    transition: color 180ms ease, text-shadow 180ms ease;
}
a:hover {
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* ---- Enlaces a Conceptos del Glosario en el Texto ---- */
.gloss-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #fb923c;
    text-decoration-thickness: 1.8px;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: inherit;
}

.gloss-link:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
    background: rgba(249, 115, 22, 0.18);
    border-radius: 3px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    padding: 0 2px;
}

/* Resaltado del concepto destino cuando se accede con ancla #def-... */
:target {
    animation: termHighlight 2.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes termHighlight {
    0% {
        background: rgba(249, 115, 22, 0.4);
        border-color: #fb923c !important;
        box-shadow: 0 0 26px rgba(249, 115, 22, 0.7);
        transform: scale(1.02);
    }
    100% {
        background: var(--card-bg);
        border-color: rgba(255, 255, 255, 0.18);
        transform: scale(1);
    }
}

/* ---- Compartir y Botones ---- */
.share-section {
    border-top: 1.5px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 3rem;
}
.share-intro {
    color: var(--text-muted);
}
.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border: 1.5px solid #fb923c;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(245, 158, 11, 0.12));
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.4);
    transition: all 0.2s ease;
}
.share-button:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fb923c 45%, #ea580c 100%);
    color: #000000;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.8), 0 0 12px rgba(255, 255, 255, 0.8);
}
.share-button--secondary {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.share-button--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}
.share-feedback {
    min-height: 1.4em;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: #fb923c;
}

/* ---- Footer ---- */
footer {
    width: 100%;
    max-width: 1000px;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
}

footer .mono {
    background: transparent;
    border: none;
    color: var(--text-faint);
    font-size: 0.8rem;
    padding: 0;
    box-shadow: none;
    text-shadow: none;
}

/* ---- Animación Revelado Progresivo (.reveal) ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(7px);
    transition:
        opacity 760ms cubic-bezier(.22, .8, .28, 1),
        transform 760ms cubic-bezier(.22, .8, .28, 1),
        filter 760ms cubic-bezier(.22, .8, .28, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ---- Modo Presentación (body.deck-mode) ---- */
body.deck-mode section,
body.deck-mode header {
    transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

body.deck-mode section:not(.is-active),
body.deck-mode header:not(.is-active) {
    opacity: 0.26;
    filter: blur(2px);
    transform: scale(0.985);
}

body.deck-mode section.is-active,
body.deck-mode header.is-active {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

@media (max-width: 900px) {
    .deck-counter {
        display: none;
    }
    .deck-nav {
        display: none;
    }
    .deck-toggle {
        display: none;
    }
    .deck-hint {
        display: none;
    }
    .route-map {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .route-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .deck-phase-name {
        display: none;
    }
    .deck-phase--aside .deck-phase-name {
        display: inline;
    }
}

@media (max-width: 640px) {
    .deck-repo-link span {
        display: none;
    }
    .deck-repo-link {
        padding: 0 0.55rem;
    }
}

/* ==========================================================================
   WIDGETS DE INTUICIÓN FÍSICA Y ANIMACIONES INTERACTIVAS
   ========================================================================== */

.interactive-demo {
    position: relative;
    background: linear-gradient(180deg, #111726 0%, #0b0f18 100%);
    border: 1.5px solid rgba(249, 115, 22, 0.4);
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 20px rgba(249, 115, 22, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.interactive-demo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fb923c, #ffffff, #f59e0b, transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    opacity: 0.9;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(245, 158, 11, 0.15));
    border: 1.5px solid #fb923c;
    color: #ffedd5;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
}

.demo-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 10px #f97316, 0 0 16px #ffffff;
    animation: demoDotPulse 1.8s ease-in-out infinite;
}

@keyframes demoDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.demo-header {
    margin-bottom: 1.5rem;
}

.demo-header h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.demo-header p {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin: 0;
}

/* Barra de controles */
.demo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
}

.demo-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-btn {
    background: #151b2a;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.demo-btn:hover {
    background: #20293d;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.demo-btn.is-active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.32), rgba(255, 255, 255, 0.15));
    border-color: #fb923c;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.6);
    font-weight: 700;
}

.demo-btn-accent {
    background: linear-gradient(135deg, #ffffff 0%, #fb923c 45%, #ea580c 100%);
    border: none;
    color: #000000;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.6);
}

.demo-btn-accent:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffedd5 35%, #fb923c 100%);
    color: #000000;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.8), 0 0 14px rgba(249, 115, 22, 0.7);
}

/* Área visual / Canvas */
.demo-viewport {
    position: relative;
    width: 100%;
    min-height: 260px;
    background: #06080d;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.85rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 255, 255, 0.05);
}

.demo-canvas {
    display: block;
    width: 100%;
    height: 260px;
}

/* HUD y paneles de estado */
.demo-hud-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    pointer-events: none;
}

.demo-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    background: rgba(12, 17, 26, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.demo-pill strong {
    color: #fb923c;
}

.demo-pill.pill-danger {
    border-color: rgba(239, 68, 68, 0.7);
    color: #fca5a5;
    background: rgba(45, 10, 15, 0.92);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.demo-pill.pill-success {
    border-color: rgba(34, 197, 94, 0.7);
    color: #86efac;
    background: rgba(10, 40, 20, 0.92);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.demo-pill.pill-warning {
    border-color: rgba(249, 115, 22, 0.7);
    color: #ffedd5;
    background: rgba(45, 25, 10, 0.92);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* Split interactivo */
.demo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.demo-pane {
    background: #0d121c;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.demo-pane-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-pane-title .pane-rate {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(255, 255, 255, 0.15));
    border: 1px solid #fb923c;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.35);
}

/* Pie explicativo del widget */
.demo-takeaway {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0.65rem;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.15), rgba(255, 255, 255, 0.05));
    border-left: 4px solid #f97316;
    font-size: 0.88rem;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.demo-takeaway strong {
    color: #fb923c;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.demo-takeaway-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .demo-split {
        grid-template-columns: 1fr;
    }
    .demo-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .demo-btn-group {
        width: 100%;
        justify-content: stretch;
    }
    .demo-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Citas y referencias académicas dentro de los widgets */
.demo-citation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.75rem 1.15rem;
    background: rgba(14, 19, 29, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.65rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.demo-citation-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-citation-title strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.demo-citation-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.demo-citation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffedd5;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(255, 255, 255, 0.1));
    padding: 0.22rem 0.6rem;
    border-radius: 0.35rem;
    border: 1.5px solid #fb923c;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
}

.demo-citation-link:hover {
    background: linear-gradient(135deg, #ffffff, #fb923c);
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

.demo-citation-link.demo-citation-repo {
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(249, 115, 22, 0.15));
    color: #ffffff;
    font-weight: 700;
}

.demo-citation-link.demo-citation-repo:hover {
    background: linear-gradient(135deg, #ffffff, #f97316);
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
}
