:root {
    /* Theme Variables - Default to Light (Cream) */
    --bg-canvas: #fcfcf9;
    --bg-window: #ffffff;
    --bg-header: #f8f8f6;
    --bg-ui-float: #ffffff;

    --text-primary: #121212;
    --text-secondary: #666666;
    --text-tertiary: #a0a09a;

    --border-ui: rgba(0, 0, 0, 0.08);
    --border-active: rgba(0, 0, 0, 0.15);

    --figma-blue: #18a0fb;
    --figma-selection: rgba(24, 160, 251, 0.15);
    --figma-folder: #18a0fb;

    --shadow-soft: 0 4px 20px -4px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
    --shadow-window: 0 12px 40px -10px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.2);
    --shadow-float: 0 8px 16px rgba(0, 0, 0, 0.08);

    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;

    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-serif: "Instrument Serif", serif;
    --font-hand: "Gochi Hand", cursive;

    --tab-height: 40px;
}

[data-theme="night"] {
    --bg-canvas: #1c1c1e;
    --bg-window: #2c2c2e;
    --bg-header: #3a3a3c;
    --bg-ui-float: #3a3a3c;

    --text-primary: #f2f2ee;
    --text-secondary: #a0a0a0;
    --text-tertiary: #71717a;

    --border-ui: rgba(255, 255, 255, 0.1);
    --border-active: rgba(255, 255, 255, 0.2);

    --figma-selection: rgba(24, 160, 251, 0.25);

    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Selection stylized */
::selection {
    background: var(--figma-blue);
    color: white;
}

.selection-mark {
    background: var(--figma-selection);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Background grid */
.canvas-bg {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(var(--border-ui) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 2;
    /* no lo subas a 9999, así no “ensucia” modales */
}

/* Theme toggle */
.theme-switch {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1200;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    padding: 4px;
    border-radius: 100px;
    display: flex;
    gap: 2px;
    box-shadow: var(--shadow-soft);
}

.theme-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.theme-btn.active {
    background: var(--text-primary);
    color: var(--bg-canvas);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    padding: 24px;
}

.hero-content {
    text-align: center;
    z-index: 10;
    cursor: default;
    max-width: 980px;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 34px;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-canvas);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background: var(--bg-window);
    color: var(--text-primary);
    border: 1px solid var(--border-ui);
}

.btn:hover {
    box-shadow: var(--shadow-window);
}

/* Windows */
.window-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.window {
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-window);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.window.active {
    opacity: 1;
    transform: translateY(0);
}

.window-header {
    height: 44px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-ui);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.9;
}

.red {
    background: #ff5f57;
}

.yellow {
    background: #febc2e;
}

.green {
    background: #28c840;
}

.title-tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Global window body padding (si alguna ventana no trae inline padding) */
.window-body {
    padding: 40px;
}

/* Works: browser header, chips, tabs */
.browser-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-ui);
    padding: 8px 16px 0;
    /* No bottom padding para que las tabs toquen el borde */
    display: flex;
    align-items: flex-end;
    /* Alineadas abajo */
    justify-content: space-between;
    gap: 32px;
    min-height: 48px;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    /* Espacio para el filtro que no toca el borde */
}

.tabs-side {
    margin-left: auto;
    padding-bottom: 0;
    /* Las tabs sí tocan el borde */
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.tabs-side::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.nav-label {
    font-size: 9px;
    font-weight: 900;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Filtros: Chips discretos */
.filter-chips {
    display: flex;
    gap: 6px;
}

.chip {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border-ui);
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: var(--bg-window);
}

.chip.active {
    background: var(--figma-selection);
    border-color: var(--figma-blue);
    color: var(--figma-blue);
}

/* Tabs: Estilo Chrome Browser */
.browser-tabs-container {
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.browser-tab {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    top: 1px;
    /* Solapado con el borde del header */
}

[data-theme="night"] .browser-tab {
    background: rgba(255, 255, 255, 0.05);
}

.browser-tab:hover {
    background: rgba(0, 0, 0, 0.06);
}

.browser-tab.active {
    background: var(--bg-window);
    color: var(--figma-blue);
    border: 1px solid var(--border-ui);
    border-bottom: 1px solid var(--bg-window);
    /* Oculta el borde inferior */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
    z-index: 2;
}

.tab-favicon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.browser-tab.active .tab-favicon {
    background: var(--figma-blue);
}

.tab-close {
    font-size: 16px;
    opacity: 0.3;
    font-weight: 400;
    margin-left: 4px;
}

.browser-tab:hover .tab-close {
    opacity: 0.6;
}

/* Project viewer layout */
.project-viewer-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    align-items: start;
    min-width: 0;
}

.gallery-side {
    min-width: 0;
}

.main-image-container {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-ui);
    background: var(--bg-header);
}

.main-img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.thumb-img {
    width: 84px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-ui);
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.15s ease;
}

.thumb-img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.thumb-img.active {
    border-color: var(--figma-blue);
    box-shadow: 0 0 0 3px var(--figma-selection);
    opacity: 1;
}

.details-side {
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 16px;
    padding: 22px;
}

.project-type {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--figma-selection);
    color: var(--figma-blue);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.project-tagline {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.detail-block {
    margin-top: 14px;
}

.detail-block label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.detail-block p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.skill-chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-ui);
    background: var(--bg-window);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
    min-width: 0;
}

.about-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-ui);
    background: var(--bg-header);
}

.about-photo {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    font-weight: 900;
    font-size: 12px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-soft);
}

.about-copy h2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.about-steps {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

/* Profile (PROFILE.LOG) */
.profile-intro {
    max-width: 720px;
}

.profile-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 16px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    position: relative;
    align-items: start;
    min-height: auto;
    /* ✅ evita el “aire” gigante */
}

.profile-folders-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-folder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.18s ease;
    font-weight: 800;
    font-size: 14px;
    position: relative;
}

.profile-folder:hover {
    background: var(--bg-window);
    border-color: var(--border-active);
    transform: translateY(-1px);
}

.profile-folder.active {
    background: var(--figma-selection);
    border-color: var(--figma-blue);
    color: var(--figma-blue);
}

.open-check {
    margin-left: auto;
    font-size: 12px;
    opacity: 0;
    font-weight: 900;
}

.profile-folder.active .open-check {
    opacity: 1;
}

.profile-viewer-side {
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: var(--radius-lg);
    padding: 26px;
    position: relative;
    min-height: 320px;
}

.timeline-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.timeline-item {
    border-left: 2px solid var(--border-ui);
    padding-left: 18px;
    position: relative;
}

.timeline-title {
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 4px;
}

.timeline-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Tools window floating */
.tools-window {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 360px;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-window);
    z-index: 50;

    /* ✅ mejor que display:none */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tools-window.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tools-grid-compact {
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tools-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tools-row label {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-ui);
    padding-bottom: 4px;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-badge {
    padding: 6px 10px;
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-secondary);
}

.tools-annotation {
    padding: 10px 18px 16px;
    font-family: var(--font-hand);
    color: var(--figma-blue);
    font-size: 14px;
    opacity: 0.85;
}

/* Shake Animation */
.shake-anim {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Before/After placeholders */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.mock-container {
    border-radius: 14px;
    background: var(--bg-header);
    padding: 20px;
    min-height: 360px;
    border: 1px solid var(--border-ui);
}

/* Contact */
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-col {
    display: grid;
    gap: 10px;
}

.form-col label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border-ui);
    background: var(--bg-window);
    border-radius: 12px;
    padding: 12px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--figma-blue);
    box-shadow: 0 0 0 3px var(--figma-selection);
}

.full-col {
    grid-column: 1 / -1;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.palette-window {
    width: min(720px, calc(100vw - 48px));
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: 16px;
    box-shadow: var(--shadow-window);
    overflow: hidden;
}

.palette-header {
    padding: 14px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-ui);
}

#palette-input {
    width: 100%;
    border: 1px solid var(--border-ui);
    background: var(--bg-window);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
}

.palette-results {
    max-height: 320px;
    overflow: auto;
    padding: 10px;
}

.palette-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
}

.palette-item:hover {
    background: var(--bg-header);
    border-color: var(--border-ui);
}

.palette-item-title {
    font-weight: 900;
}

.palette-item-meta {
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 700;
}

/* Case viewer tweaks */
.viewer-window {
    width: min(900px, calc(100vw - 48px));
    height: min(650px, calc(100vh - 120px));
}

.viewer-tabs .tab.active {
    color: var(--figma-blue);
}

#viewer-content {
    padding: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    box-shadow: var(--shadow-soft);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    z-index: 4000;
    transition: all 0.22s ease;
}

.toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-tertiary);
    padding: 40px 20px 60px;
    font-weight: 700;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .project-viewer-layout {
        grid-template-columns: 1fr;
    }

    .details-side {
        margin-top: 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .window-body {
        padding: 22px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    /* Tools window como sheet */
    .tools-window {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(110%);
        opacity: 1;
        /* visible pero fuera de pantalla */
        visibility: visible;
        pointer-events: none;
    }

    .tools-window.active {
        transform: translateY(0);
        pointer-events: auto;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HERO FIGMA (NO-TOUCH SAFE)
   Pegar al FINAL de style.css
========================= */

.hero.hero-figma {
    position: relative;
    overflow: hidden;
}

.hero-content-figma {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
}

.hero-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--figma-selection);
    color: var(--figma-blue);
    border: 1px solid var(--border-ui);
    font-weight: 700;
    font-size: 12px;
}

.hero-kicker {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 700;
}

.hero-title {
    margin-top: 8px;
}

.hero-subtitle {
    margin-top: 18px;
}

.hero-cta .btn i {
    width: 18px;
    height: 18px;
}

/* palabra “fluyen” azul como la referencia */
.accent-blue {
    color: var(--figma-blue);
    position: relative;
}

/* Floats */
.hero-floats {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Tarjetitas flotantes */
.float-card {
    position: absolute;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

/* Paleta izquierda */
.float-palette {
    left: 72px;
    top: 170px;
    width: 54px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.pal-sq {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-ui);
}

.pal-blue {
    background: var(--figma-blue);
}

.pal-red {
    background: #ff5f57;
}

.pal-green {
    background: #28c840;
}

/* Tag Paloma */
.float-tag {
    position: absolute;
    left: 160px;
    top: 520px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--figma-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.float-tag .tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
}

/* Nota derecha */
.float-note {
    position: absolute;
    right: 190px;
    top: 190px;
    max-width: 240px;
    padding: 12px 14px;
    background: var(--figma-selection);
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    color: var(--figma-blue);
    font-size: 13px;
    font-weight: 700;
}

/* Export panel derecha */
.float-export {
    right: 150px;
    top: 520px;
    width: 150px;
    padding: 12px 12px;
}

.export-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.export-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 0;
    border-top: 1px solid var(--border-ui);
}

.export-row-last {
    border-bottom: none;
}

.export-meta {
    color: var(--text-tertiary);
    font-weight: 800;
}

/* Responsive: ocultar floats en móvil para que no molesten */
@media (max-width: 900px) {
    .hero-floats {
        display: none;
    }
}

/* =========================
   HERO MOTION + HOVER PALOMA
   Pegar al FINAL de style.css
========================= */

/* Animaciones suaves */
@keyframes floaty {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatySlow {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-10px) translateX(3px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Aplica movimiento a los floats */
.hero.hero-figma .float-palette {
    animation: floaty 6.5s ease-in-out infinite;
}

.hero.hero-figma .float-note {
    animation: floatySlow 7.5s ease-in-out infinite;
}

.hero.hero-figma .float-export {
    animation: floaty 8.5s ease-in-out infinite;
}

/* Tag Paloma con “respiración” */
.hero.hero-figma .float-tag {
    animation: floaty 5.8s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, width .2s ease;
    cursor: pointer;
    pointer-events: auto;
    /* importante: permite hover/click */
}

/* Hover en el hero: pequeño “parallax” */
.hero.hero-figma:hover .float-palette {
    transform: translateY(-6px) translateX(-4px) !important;
}

.hero.hero-figma:hover .float-note {
    transform: translateY(-10px) translateX(6px) !important;
}

.hero.hero-figma:hover .float-export {
    transform: translateY(-6px) translateX(4px) !important;
}

/* Hover del tag: que “diga Paloma” */
.hero.hero-figma .float-tag::after {
    content: "Paloma";
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
    margin-left: 6px;
}

.hero.hero-figma .float-tag:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: var(--shadow-window);
    filter: saturate(1.05);
}

.hero.hero-figma .float-tag:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Si ya pone “Paloma” dentro, en hover lo deja como “Paloma — UX/UI” */
.hero.hero-figma .float-tag:hover::before {
    content: "Paloma — UX/UI";
    position: absolute;
    left: 0;
    top: -44px;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    box-shadow: var(--shadow-soft);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Micro-interacción en CTAs */
.hero.hero-figma .btn {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hero.hero-figma .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hero.hero-figma .btn:active {
    transform: translateY(0px) scale(.98);
}

/* ==================================================
   AG-HERO FIGMA CANVAS (SURGEON FIX)
   ================================================== */
.ag-canvas {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
}

.ag-canvas-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.ag-content {
    position: relative;
    z-index: 50;
    pointer-events: none;
    width: 100%;
    max-width: 1000px;
}

.ag-content>* {
    pointer-events: auto;
}

.ag-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--figma-blue);
    margin-bottom: 20px;
    text-align: center;
}

.ag-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 24px;
}

.ag-subline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px;
}

.ag-cta {
    justify-content: center;
}

/* Float UI Base - FORCE COMPACT */
.float-ui {
    position: absolute !important;
    width: max-content;
    max-width: 320px;
    pointer-events: auto;
    user-select: none;
    cursor: grab;
    transition: transform 0.2s ease;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    box-shadow: var(--shadow-window);
    touch-action: none;
    will-change: left, top, transform;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.float-ui.dragging {
    transition: none !important;
    opacity: 0.9;
    z-index: 200 !important;
    cursor: grabbing !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2) !important;
    --px: 0px !important;
    --py: 0px !important;
}

/* Initial Positions (Safe Zone avoidance) */
.ag-palette {
    top: 12%;
    left: 4%;
    width: 56px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ag-swatch {
    height: 32px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ag-id {
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    color: var(--text-tertiary);
}

.ag-chip {
    top: 82%;
    left: 6%;
    background: var(--text-primary);
    color: var(--bg-canvas);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.ag-chip-dot {
    width: 6px;
    height: 6px;
    background: #00FF00;
    border-radius: 50%;
}

.ag-comment {
    top: 42%;
    left: 4%;
    width: 220px;
    background: #FFF9C4;
    padding: 16px;
    border-radius: 2px 14px 14px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1e68b;
}

.ag-comment-body {
    font-family: var(--font-hand);
    font-size: 15px;
    color: #857B26;
    line-height: 1.2;
    margin-bottom: 8px;

    transition: all 0.3s ease;
    will-change: transform, opacity;
}
@keyframes comment-pop {
    0% {
        transform: scale(0.95) translateY(6px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.ag-comment.pop {
    animation: comment-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ag-comment-user {
    font-size: 9px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.ag-export {
    top: 62%;
    right: 4%;
    width: 160px;
    padding: 16px;
}

.ag-export-head {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-ui);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.ag-export-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 0;
}

.ag-meta {
    color: var(--text-tertiary);
    font-weight: 800;
}

.ag-export-btn {
    margin-top: 12px;
    width: 100%;
    padding: 8px;
    background: var(--figma-selection);
    color: var(--figma-blue);
    font-size: 10px;
    font-weight: 900;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ag-tag {
    top: 20%;
    right: 6%;
    background: #A259FF;
    color: white;
    padding: 6px 12px 6px 6px;
    border-radius: 4px 14px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.ag-tag-cursor {
    width: 10px;
    height: 10px;
    background: white;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 900px) {
    .ag-canvas-floats {
        display: none;
    }

    .ag-canvas {
        min-height: auto;
        padding: 80px 24px;
    }
}

/* ABOUT DESKTOP COLLAGE */
.about-desktop {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: var(--bg-header);
    padding: 40px;
    user-select: none;
}

.about-header {
    margin-bottom: 40px;
}

.about-title-large {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.about-subtitle-group {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.about-label-bold {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-tertiary);
}

.about-name-tag {
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--figma-blue);
    transform: rotate(-2deg);
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 120px;
}

.about-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.about-folder:hover {
    transform: scale(1.05);
}

.about-folder-icon {
    width: 48px;
    height: 38px;
    background: var(--figma-blue);
    border-radius: 4px;
    position: relative;
    box-shadow: 2px 2px 0 var(--border-ui);
}

.about-folder-icon::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 20px;
    height: 6px;
    background: var(--figma-blue);
    border-radius: 2px 2px 0 0;
}

.about-folder-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
}

.about-photo-window {
    position: absolute;
    top: 52%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    box-shadow: var(--shadow-window);
    z-index: 10;
}

.about-window-top {
    height: 32px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-ui);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.about-dots {
    display: flex;
    gap: 6px;
}

.about-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-ui);
}

.about-photo-element {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 0 0 11px 11px;
}

.about-note {
    position: absolute;
    padding: 20px;
    width: 160px;
    font-family: var(--font-hand);
    font-size: 14px;
    box-shadow: var(--shadow-soft);
    z-index: 15;
    border-radius: 2px;
}

.about-note-1 {
    top: 150px;
    right: 80px;
    background: #fff9c4;
    transform: rotate(3deg);
    color: #444;
}

.about-note-2 {
    bottom: 120px;
    left: 40px;
    background: #ffecb3;
    transform: rotate(-2deg);
    color: #444;
}

.about-note-3 {
    top: 400px;
    right: 180px;
    background: #e1f5fe;
    transform: rotate(1deg);
    color: #444;
}

.about-pantone {
    position: absolute;
    background: white;
    padding: 8px;
    width: 80px;
    border: 1px solid var(--border-ui);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.about-color {
    width: 100%;
    height: 60px;
}

.about-p-label {
    font-size: 8px;
    font-weight: 900;
    color: #121212;
}

.about-pantone-1 {
    top: 100px;
    left: 300px;
    transform: rotate(-5deg);
}

.about-pantone-2 {
    bottom: 60px;
    right: 60px;
    transform: rotate(12deg);
}

.about-thumb {
    position: absolute;
    width: 100px;
    height: 70px;
    background: var(--border-ui);
    border-radius: 4px;
    border: 1px solid var(--bg-window);
    z-index: 2;
}

.about-thumb-1 {
    top: 40px;
    left: 450px;
    transform: rotate(5deg);
}

.about-thumb-2 {
    bottom: 40px;
    left: 350px;
    transform: rotate(-8deg);
}

.about-pixel-cursor {
    position: absolute;
    top: 60px;
    left: 480px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L0 14L4 10L6.5 15.5L8.5 14.5L6 9L11 9L0 0Z' fill='black'/%3E%3C/svg%3E") no-repeat;
    z-index: 20;
    pointer-events: none;
}

.about-volume-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 120px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-vol-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.about-vol-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 999px;
}

.about-actions {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.about-mini-btn {
    padding: 8px 14px;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.about-mini-btn:hover {
    background: var(--text-primary);
    color: var(--bg-canvas);
}

@media (max-width: 900px) {
    .about-desktop {
        min-height: auto;
        padding: 32px;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .about-sidebar {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .about-photo-window {
        position: static;
        width: 100%;
        transform: none;
    }

    .about-note,
    .about-pantone,
    .about-thumb,
    .about-pixel-cursor,
    .about-volume-overlay {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 10px;
    }

    .about-actions {
        position: static;
        justify-content: center;
        width: 100%;
    }

    .about-header {
        text-align: center;
    }

    .about-subtitle-group {
        justify-content: center;
    }
}

/* REFINEMENTS: PHOTO & CARDS */
.about-photo-window {
    width: 380px;
    height: 480px;
    /* Un poco más vertical */
    display: flex;
    flex-direction: column;
}

.about-window-content {
    flex: 1;
    background: var(--bg-header);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Foto completa */
    border-radius: 4px;
}

/* New Content Cards */
.about-card {
    position: absolute;
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    z-index: 12;
    overflow: hidden;
    width: 220px;
    transition: all 0.25s ease;
}

.about-card-head {
    background: var(--bg-header);
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-ui);
}

.about-card-body {
    padding: 14px;
}

.about-card-title {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 8px;
}

.about-card-list,
.about-card-check {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.about-card-list li {
    margin-bottom: 4px;
}

.about-card-list li::before {
    content: "•";
    color: var(--figma-blue);
    margin-right: 8px;
    font-weight: 900;
}

.about-card-check li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-card-check li::before {
    content: "✓";
    color: #28c840;
    font-weight: 900;
}

.about-card-meta {
    display: block;
    margin-top: 10px;
    font-size: 9px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Positions */
.about-card-value {
    top: 60px;
    right: 260px;
    transform: rotate(-1deg);
}

.about-card-deliverables {
    bottom: 80px;
    left: 160px;
    transform: rotate(2deg);
    width: 180px;
}

/* Micro-interactions */
.about-folder:hover {
    transform: translateY(-3px) scale(1.02);
}

.about-folder:hover .about-folder-icon {
    box-shadow: 4px 4px 0 var(--border-ui);
}

.about-note:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 50;
}

.about-card:hover {
    border-color: var(--figma-blue);
    transform: translateY(-2px) rotate(0deg);
    box-shadow: var(--shadow-window);
    z-index: 50;
}

@media (max-width: 900px) {
    .about-card {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 10px;
    }

    .about-photo-window {
        height: auto;
    }
}
/* ABOUT COLLAGE V3 - MANIFESTO & HUMOR */
.about-card-manifesto {
    width: 290px;
    top: 60px;
    right: 40px;
    transform: rotate(1deg);
}

.about-manifesto-quote {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.about-card-ship {
    width: 200px;
    bottom: 80px;
    right: 60px;
    transform: rotate(-1deg);
}

.about-note-humor {
    bottom: 80px;
    left: 40px;
    background: #fce4ec; /* Pink Post-it */
    transform: rotate(-3deg);
    width: 150px;
    padding: 16px;
    font-family: var(--font-hand);
    color: #c2185b;
    z-index: 20;
}

.about-note-humor p { margin-bottom: 4px; line-height: 1.2; }

/* Refined Photo Window to minimize crop and center "you" */
.about-photo-window {
    width: 440px;
    height: 520px;
}

.about-window-content {
    background: var(--bg-header);
    padding: 12px;
}

/* --- CLEANING & HIERARCHY OVERRIDES (ABOUT SECTION) --- */
.about-header {
    position: relative;
    z-index: 100;
}

.about-photo-window {
    top: 58% !important; /* Liberar zona superior para el t�tulo */
    left: 42% !important; /* Centrado desplazado para balancear cards */
    width: 380px !important;
    height: 480px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 40 !important;
    display: flex;
    flex-direction: column;
}

.about-window-content {
    flex: 1;
    background: var(--bg-header) !important;
    padding: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo-element {
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* Foto completa sin recortes feos */
    border-radius: 4px;
}

/* Safe Area: Manifesto (Arriba derecha) */
.about-card-manifesto {
    top: 40px !important;
    right: 40px !important;
    width: 340px !important;
    z-index: 50 !important;
    transform: rotate(1deg) !important;
}

/* Safe Area: What I Ship (Abajo derecha, sobre botones) */
.about-card-ship {
    bottom: 110px !important;
    right: 40px !important;
    width: 240px !important;
    z-index: 51 !important;
    transform: rotate(-1.5deg) !important;
}

/* Safe Area: CTAs */
.about-actions {
    z-index: 100 !important;
}

/* Decoration: Move to edges and lower priority */
.about-note-1 { top: 40% !important; right: 2% !important; transform: rotate(4deg) !important; z-index: 10 !important; opacity: 0.85; }
.about-note-2 { bottom: 6% !important; left: 16% !important; transform: rotate(-2deg) !important; z-index: 10 !important; opacity: 0.85; }
.about-note-3 { top: 72% !important; right: 32% !important; transform: rotate(2deg) !important; z-index: 10 !important; opacity: 0.85; }
.about-note-humor { bottom: 30% !important; left: 4% !important; z-index: 10 !important; opacity: 0.9; }

/* Pantones & Thumbs: Background layer */
.about-pantone-1 { top: 22% !important; left: 32% !important; z-index: 5 !important; opacity: 0.4; }
.about-pantone-2 { top: 12% !important; right: 22% !important; z-index: 5 !important; opacity: 0.4; }
.about-thumb-1 { top: 8% !important; left: 45% !important; z-index: 5 !important; opacity: 0.25; }
.about-thumb-2 { bottom: 12% !important; left: 42% !important; z-index: 5 !important; opacity: 0.25; }
.about-pixel-cursor { top: 10% !important; left: 48% !important; z-index: 110 !important; }

/* MOBILE CLEANUP: No superposiciones */
@media (max-width: 900px) {
    .about-desktop {
        padding: 30px 20px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .about-header, .about-sidebar, .about-photo-window, .about-card, .about-note, .about-actions {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        margin: 0 !important;
    }
    .about-photo-window { height: auto !important; min-height: 400px; }
    .about-window-content { padding: 10px !important; }
    
    /* Ocultar ruidos decorativos en m�vil */
    .about-note:not(.about-note-humor),
    .about-note-humor,
    .about-pantone, 
    .about-thumb, 
    .about-pixel-cursor, 
    .about-volume-overlay {
        display: none !important;
    }
    
    .about-card { display: block !important; }
    .about-sidebar { order: 2; }
    .about-photo-window { order: 1; }
    .about-card-manifesto { order: 3; }
    .about-card-ship { order: 4; }
    .about-actions { order: 5; }
}

/* --- FOLDER & NOTE REFINEMENTS --- */
.about-folder-label {
    font-weight: 800 !important;
    text-transform: capitalize;
}

.about-folder:hover {
    transform: translateY(-2px) !important;
}

/* Nota: De lo complejo a lo claro */
.about-note-2 {
    background: #fff6b8 !important;
    color: #121212 !important; /* Force dark text for readability */
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 18px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.05) !important;
    opacity: 1 !important;
    line-height: 1.4 !important;
    z-index: 60 !important; /* Above decoration, below manifesto */
    bottom: 12% !important;
    left: 20% !important;
}

.about-note-2::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 10%;
    width: 80%;
    height: 8px;
    background: rgba(255, 214, 0, 0.3);
    z-index: -1;
}

@media (max-width: 900px) {
    .about-sidebar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        justify-items: center !important;
    }
}

/* --- NOTION-LIKE PROFILE SECTION --- */
.selection-mark {
    background: rgba(24, 160, 251, 0.15);
    padding: 0 4px;
    border-radius: 4px;
    border-bottom: 2px solid var(--figma-blue);
}

.profile-hand-note {
    font-family: var(--font-hand);
    font-size: 16px;
    color: var(--figma-blue);
    margin-left: 15px;
    font-weight: 400;
    opacity: 0.8;
}

.profile-folders-side {
    border-right: 1px solid var(--border-ui);
    padding-right: 20px;
}

.profile-folder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin-bottom: 4px;
}

.profile-folder:hover {
    background: var(--bg-header);
    color: var(--text-primary);
}

.profile-folder.active {
    background: rgba(24, 160, 251, 0.08);
    color: var(--figma-blue);
    border-left: 3px solid var(--figma-blue);
}

.p-icon {
    font-size: 16px;
    filter: grayscale(0.5);
    transition: filter 0.2s;
}

.profile-folder.active .p-icon {
    filter: grayscale(0);
}

/* --- TOOLS WINDOW REFINEMENT --- */
.tools-inner-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.tools-categorized-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tools-cat-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.tools-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tool-item-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 8px;
    transition: all 0.2s;
}

.tool-item-chip:hover {
    border-color: var(--figma-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.tool-logo-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.tool-name-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tool Colors */
.t-figma { background: #F24E1E; }
.t-ds { background: #1ABCFE; }
.t-pr { background: #9999FF; }
.t-gpt { background: #10a37f; }
.t-gemini { background: #4285f4; }
.t-claude { background: #da7756; }
.t-envato { background: #81b441; }
.t-ag { background: #121212; }
.t-nb { background: #ffe135; color: #121212; }
.t-ps { background: #31A8FF; }
.t-ai { background: #FF9A00; }
.t-wp { background: #21759b; }
.t-default { background: var(--text-tertiary); }

@media (max-width: 900px) {
    .tools-list-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-layout { flex-direction: column; }
    .profile-folders-side { border-right: none; border-bottom: 1px solid var(--border-ui); padding-right: 0; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
}

/* --- TOOLS WINDOW PREMIUM LOOK --- */
.tools-window {
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    box-shadow: var(--shadow-window);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 440px !important; /* Aumentar un poco para el grid */
}

.tools-window .window-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-ui);
}

.tools-cat-group {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-ui);
}

.tools-cat-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- TOOLS WINDOW: MAC APP STYLE --- */
.tools-window {
    width: 460px !important;
    max-height: 520px !important;
    display: flex;
    flex-direction: column;
}

.tools-inner-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-window);
}

.tools-cat-block {
    margin-bottom: 32px;
}

.tools-cat-block:last-child {
    margin-bottom: 0;
}

.tools-cat-header {
    display: block;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-ui);
}

.tools-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    padding: 12px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--figma-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: var(--bg-window);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
}

.tool-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Tool Color Overrides */
.t-figma { background: linear-gradient(135deg, #A259FF, #F24E1E); }
.t-ds { background: #1ABCFE; }
.t-pr { background: #9999FF; }
.t-gpt { background: #10A37F; }
.t-gemini { background: #4285F4; }
.t-claude { background: #D97757; }
.t-envato { background: #81B441; }
.t-ag { background: #000000; }
.t-nb { background: #FFE135; color: #121212 !important; }
.t-ps { background: #31A8FF; }
.t-ai { background: #FF9A00; }
.t-wp { background: #21759B; }
.t-default { background: var(--text-tertiary); }

@media (max-width: 900px) {
    .tools-window {
        width: 100% !important;
        max-height: none !important;
        position: static !important;
        margin-top: 20px;
        transform: none !important;
    }
    .tools-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- TOOLS POP-UP SYSTEM --- */
.tools-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 900;
    border-radius: 20px; /* Mac style matching viewer */
}

.tools-overlay.active {
    display: block;
    animation: simple-fade 0.3s ease;
}

.tools-window {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95);
    visibility: hidden;
    opacity: 0;
    z-index: 1000 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    margin: 0 !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.25);
}

.tools-window.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.tools-window .window-header {
    cursor: default !important; /* No more drag */
}

@keyframes simple-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tool Grid Refinement */
.tools-inner-content {
    max-height: 400px;
    overflow-y: auto;
}

.tools-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 10px 0;
}

.tool-card {
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--figma-blue);
    background: var(--bg-window);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tool-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tool Colors (Re-check) */
.t-figma { background: #A259FF; }
.t-ps { background: #31A8FF; }
.t-ai { background: #FF9A00; }
.t-wp { background: #21759B; }
.t-gpt { background: #10A37F; }
.t-gemini { background: #4285F4; }
.t-claude { background: #D97757; }
.t-envato { background: #1BB36A; }
.t-ag { background: #121212; }
.t-nb { background: #FFE135; color: #121212 !important; }
.t-ds { background: #00B4FF; }
.t-pr { background: #00D37F; }

@media (max-width: 768px) {
    .tools-window {
        width: 90% !important;
        max-width: 360px;
    }
    .tools-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- WORKFLOW SECTION --- */
#workflow { margin-bottom: 80px; }

.workflow-tabs {
    display: flex;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-ui);
    padding: 0 20px;
    gap: 8px;
    overflow-x: auto;
}

.wf-tab {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-tab.active {
    color: var(--figma-blue);
    border-bottom-color: var(--figma-blue);
    background: rgba(24, 160, 251, 0.05);
}

.wf-step {
    font-size: 10px;
    opacity: 0.5;
    font-weight: 900;
}

.workflow-body { padding: 40px !important; }

.wf-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.wf-visual {
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(var(--border-ui) 1px, transparent 1px);
    background-size: 20px 20px;
}

.wf-copy h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.wf-punchline {
    font-size: 16px;
    color: var(--figma-blue);
    font-weight: 700;
    margin-bottom: 24px;
}

.wf-checklist {
    list-style: none;
    padding: 0;
}

.wf-checklist li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-ui);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf-checklist li::before {
    content: '?';
    color: var(--figma-blue);
    font-weight: 900;
}

.wf-hand-note {
    position: absolute;
    font-family: var(--font-hand);
    color: var(--figma-blue);
    font-size: 14px;
    pointer-events: none;
    white-space: nowrap;
}

/* Artefacts base */
.wf-artefact-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diag-map .node { padding: 10px 15px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.node.error { background: #ff5f57; color: white; transform: rotate(-2deg); }
.node.win { background: #28c840; color: white; transform: rotate(3deg); margin-left: 20px; }

.arch-flow { display: flex; align-items: center; gap: 15px; }
.flow-box { padding: 12px; border: 2px solid var(--text-primary); font-size: 11px; font-weight: 900; border-radius: 4px; }
.flow-line { width: 30px; height: 2px; background: var(--text-primary); }

.proto-screen { width: 140px; height: 220px; border: 2px solid var(--text-primary); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.proto-nav { height: 15px; background: var(--border-ui); border-radius: 4px; }
.proto-hero { flex: 1; background: var(--border-ui); border-radius: 8px; }
.proto-btn { height: 25px; background: var(--figma-blue); border-radius: 20px; }

.sys-tokens { display: flex; gap: 10px; }
.token { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border-ui); }
.token.t1 { background: var(--figma-blue); }
.token.t2 { background: #ff9a00; }
.token.t3 { background: #0acf83; }

.hand-specs { width: 180px; height: 120px; border: 1px dashed var(--figma-blue); position: relative; }
.spec-v { position: absolute; left: -15px; top: 0; height: 100%; border-left: 1px solid var(--figma-blue); }
.spec-h { position: absolute; left: 0; bottom: -15px; width: 100%; border-bottom: 1px solid var(--figma-blue); }

@media (max-width: 900px) {
    .wf-content-layout { grid-template-columns: 1fr; gap: 24px; }
    .wf-visual { height: 240px; }
}

/* --- WORKFLOW: INTERACTIVE FLOW CANVAS --- */
.wf-visual {
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    height: 380px !important; /* M�s alto para el canvas */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(var(--border-ui) 1px, transparent 1px), linear-gradient(90deg, var(--border-ui) 1px, transparent 1px);
    background-size: 20px 20px;
}

.wf-flow-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.wf-flow-line-main {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-ui);
    z-index: 1;
    transform: translateY(-50%);
}

.wf-flow-nodes {
    display: flex;
    justify-content: space-between;
    width: 90%;
    z-index: 2;
    position: relative;
}

.wf-flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-flow-circle {
    width: 52px;
    height: 52px;
    background: var(--bg-window);
    border: 2px solid var(--border-ui);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--text-tertiary);
    transition: all 0.3s;
    position: relative;
}

.wf-flow-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all 0.3s;
}

/* States: Active */
.wf-flow-item.active .wf-flow-circle {
    border-color: var(--figma-blue);
    background: rgba(24, 160, 251, 0.1);
    color: var(--figma-blue);
    box-shadow: 0 0 20px rgba(24, 160, 251, 0.3);
    transform: scale(1.15);
}

.wf-flow-item.active .wf-flow-label {
    color: var(--figma-blue);
    transform: translateY(2px);
}

/* States: Done */
.wf-flow-item.done .wf-flow-circle {
    background: #e1f5e6;
    border-color: #28c840;
    color: #28c840;
}

.wf-flow-item.done .wf-flow-circle::after {
    content: '?';
    position: absolute;
    font-size: 10px;
    top: -2px;
    right: -2px;
    background: #28c840;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-header);
}

.wf-flow-item.done .wf-flow-label {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Output Chips */
.wf-output-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.wf-chip {
    padding: 4px 10px;
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
}

@media (max-width: 900px) {
    .wf-visual { height: auto !important; padding: 40px; }
    .wf-flow-line-main { display: none; }
    .wf-flow-nodes {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        width: 100%;
    }
    .wf-flow-item {
        flex-direction: row;
        gap: 20px;
    }
}

/* --- WORKFLOW: FIGMA-STYLE FLOWCHART --- */
.wf-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: radial-gradient(var(--border-ui) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: var(--bg-header); /* Fondo grid puntos */
    min-height: 400px;
    overflow: hidden;
}

.wf-node {
    position: absolute;
    width: 120px;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    background: white;
}

.wf-decision {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #000;
    transform: rotate(45deg);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-decision .decision-text {
    transform: rotate(-45deg);
    font-size: 9px;
    font-weight: 900;
    text-align: center;
    width: 80px;
}

.node-blue { background: #e3f2fd !important; }
.node-lila { background: #f3e5f5 !important; }
.node-rosa { background: #fce4ec !important; }
.node-turquesa { background: #e0f2f1 !important; }
.node-verde { background: #e8f5e9 !important; }
.node-celeste { background: #e0f7fa !important; }

.node-small {
    width: 85px;
    padding: 8px;
    font-size: 9px;
    border-width: 1.5px;
}

/* Connectors */
.wf-arrow-h {
    position: absolute;
    height: 2px;
    background: #000;
    z-index: 1;
}
.wf-arrow-h::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #000;
}

.wf-line-v {
    position: absolute;
    width: 2px;
    background: #000;
    z-index: 1;
}

.wf-path-label, .wf-path-label-v {
    position: absolute;
    font-size: 9px;
    font-weight: 900;
    background: white;
    padding: 2px 4px;
    border: 1px solid #000;
    border-radius: 4px;
}
.wf-path-label { top: -14px; left: 50%; transform: translateX(-50%); }
.wf-path-label-v { left: -14px; top: 50%; transform: translateY(-50%); }

/* Elbow connector for loopback */
.wf-elbow-loop {
    position: absolute;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    border-radius: 0 12px 12px 0;
    z-index: 1;
}

/* Highlight Active Step */
.wf-node.active, .wf-decision.active {
    box-shadow: 0 0 0 4px rgba(24, 160, 251, 0.3);
    border-color: var(--figma-blue) !important;
    transform: translateY(-2px);
}
.wf-decision.active { transform: rotate(45deg) scale(1.05); }

/* Mobile fallback */
@media (max-width: 900px) {
    .wf-canvas {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 40px 20px;
        height: auto;
        overflow: visible;
    }
    .wf-node, .wf-decision {
        position: static !important;
        width: 100% !important;
        max-width: 280px;
        transform: none !important;
    }
    .wf-decision {
        height: auto;
        padding: 20px;
        border-radius: 12px;
    }
    .wf-decision .decision-text {
        transform: none;
        font-size: 11px;
    }
    .wf-arrow-h, .wf-line-v, .wf-elbow-loop, .wf-path-label, .wf-path-label-v {
        display: none;
    }
}

/* Checkmark for done nodes */
.wf-node.done::after, .wf-decision.done::after {
    content: '?';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28c840;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    z-index: 10;
    transform: rotate(-45deg); /* Neutralizar rotaci�n si es decision */
}
.wf-node.done::after { transform: none; }

/* --- PROJECT IMPACT BLOCK --- */
.project-impact-block label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.impact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 8px;
    transition: all 0.2s;
}

.impact-item:hover {
    border-color: var(--figma-blue);
    transform: translateX(4px);
}

.impact-dot {
    width: 6px;
    height: 6px;
    background: var(--figma-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.impact-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.impact-disclaimer {
    display: block;
    margin-top: 10px;
    font-size: 9px;
    font-style: italic;
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* --- CASE VIEWER STYLES --- */
.viewer-body {
    padding: 40px !important;
    background: var(--bg-card);
}

.case-section {
    max-width: 650px;
    margin: 0 auto;
}

.case-section h4 {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--figma-blue);
    margin-bottom: 12px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-section h4::before {
    content: "";
    width: 12px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.case-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.case-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-section li {
    font-size: 13px;
    padding: 10px 16px;
    background: var(--bg-header);
    border: 1px solid var(--border-ui);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.case-section li::before {
    content: "?";
    color: var(--figma-blue);
    font-size: 12px;
}

.viewer-tabs .tab {
    transition: all 0.2s;
    color: var(--text-tertiary);
    position: relative;
    border-right: 1px solid var(--border-ui) !important;
}

.viewer-tabs .tab:hover {
    background: var(--bg-card) !important;
    color: var(--text-primary);
}

.viewer-tabs .tab.active {
    background: var(--bg-card) !important;
    color: var(--figma-blue) !important;
}

.viewer-tabs .tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--figma-blue);
}

/* --- QUICK CONTACT LINKS --- */
.quick-contact-row {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-ui);
}

.quick-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-quick {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-window);
    border: 1px solid var(--border-ui);
    border-radius: 999px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quick:hover {
    border-color: var(--figma-blue);
    background: var(--bg-header);
    color: var(--figma-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-quick i {
    width: 14px;
    height: 14px;
}

[data-theme="night"] .btn-quick {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="night"] .btn-quick:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* --- WORKFLOW PLAYBOOK REFACTORED --- */
.wf-visual {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fafafa !important;
    min-height: 400px;
}

.wf-canvas {
    width: 800px !important;
    height: 350px !important;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
}

.wf-canvas [data-step] {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.wf-canvas [data-step].is-ghost {
    opacity: 0.15 !important;
    filter: grayscale(0.8) !important;
    transform: scale(0.96) !important;
    pointer-events: none;
}

.wf-canvas [data-step].is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1) !important;
    pointer-events: auto;
}

/* Figma-style High Contrast Colors */
.node-blue.is-visible { background: #3B82F6 !important; color: #fff !important; }
.node-lila.is-visible { background: #8B5CF6 !important; color: #fff !important; }
.node-rosa.is-visible { background: #EC4899 !important; color: #fff !important; }
.node-turquesa.is-visible { background: #14B8A6 !important; color: #fff !important; }
.node-verde.is-visible { background: #22C55E !important; color: #fff !important; }
.node-celeste.is-visible { background: #60A5FA !important; color: #fff !important; }

/* Arrows & Lines */
.wf-arrow-h.is-visible, .wf-line-v.is-visible {
    background: #111 !important;
}

.wf-elbow-loop.is-visible {
    border-color: #111 !important;
    border-width: 3px !important;
}

.wf-path-label, .wf-path-label-v {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    font-size: 8px !important;
    text-transform: uppercase;
}

/* Micro-animation for active state */
.wf-node.active, .wf-decision.active {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4), 4px 4px 0 #000 !important;
    transform: translateY(-4px) !important;
    z-index: 20 !important;
}

/* --- WORKFLOW: UPSIZING NODES & FIGMA FEEL --- */
.wf-visual {
    height: clamp(450px, 50vh, 600px) !important;
    padding: 0 !important;
    background: #fff !important;
}

.wf-node {
    width: 140px !important;
    min-height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-width: 2px !important;
}

.wf-decision {
    width: 120px !important;
    height: 120px !important;
}

.wf-decision .decision-text {
    width: 100px !important;
    font-size: 11px !important;
    line-height: 1.2;
}

.node-small {
    width: 100px !important;
    min-height: 38px !important;
    font-size: 11px !important;
}

.wf-arrow-h, .wf-line-v {
    height: 2px !important;
}

.wf-line-v {
    width: 2px !important;
}

/* Adjust labels for larger layout */
.wf-path-label {
    font-size: 10px !important;
    padding: 3px 8px !important;
}

/* Redefine Arrow tips for better visibility */
.wf-arrow-h::after {
    border-left-width: 10px !important;
    border-top-width: 6px !important;
    border-bottom-width: 6px !important;
}

@media (max-width: 900px) {
    .wf-canvas {
        transform: none !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding-bottom: 60px;
    }
}

/* --- WORKFLOW: SIMPLE FLEX FLOW (FINAL) --- */
.wf-visual {
    height: auto !important;
    min-height: 480px !important;
    background: #fff !important;
    padding: 40px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.wf-simple {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.wf-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.wf-step-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.wf-node {
    height: 52px;
    min-width: 130px;
    padding: 0 20px;
    border: 2px solid #111;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    box-shadow: 4px 4px 0 #111;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.wf-diamond-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-diamond {
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    transform: rotate(45deg);
    border-radius: 8px !important;
}

.wf-diamond .diamond-text {
    transform: rotate(-45deg);
    display: block;
    width: 100%;
    text-align: center;
}

.wf-connector {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    opacity: 0.3;
    user-select: none;
}

.wf-tag {
    position: absolute;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    background: #111;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
}

.wf-tag.yes { top: 50%; right: -25px; transform: translateY(-50%); }
.wf-tag.no { bottom: -25px; left: 50%; transform: translateX(-50%); }

.wf-branch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 16px;
    position: relative;
    margin-top: 20px;
    transition: all 0.4s ease;
}

.wf-branch-line {
    position: absolute;
    top: -42px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #111;
    opacity: 0.2;
}

.wf-back-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--figma-blue);
    text-transform: uppercase;
    margin-left: 10px;
}

/* Visibility & Highlighting */
[data-step] {
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.is-ghost {
    opacity: 0.12 !important;
    filter: grayscale(0.8) !important;
    transform: scale(0.95);
    pointer-events: none;
}

.is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1);
    pointer-events: auto;
}

/* Active Highlight */
.wf-node.active, .wf-diamond-wrap.active .wf-node {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4), 4px 4px 0 #111 !important;
    transform: translateY(-4px);
    z-index: 10;
}

/* Figma Style Node Colors */
.node-blue { background: #3B82F6 !important; color: #fff !important; }
.node-lila { background: #8B5CF6 !important; color: #fff !important; }
.node-rosa { background: #EC4899 !important; color: #fff !important; }
.node-turquesa { background: #14B8A6 !important; color: #fff !important; }
.node-verde { background: #22C55E !important; color: #fff !important; }
.node-celeste { background: #60A5FA !important; color: #fff !important; }

.node-small {
    height: 38px;
    min-width: 90px;
    font-size: 11px;
    padding: 0 12px;
}

/* Responsive Stack */
@media (max-width: 900px) {
    .wf-main-row {
        flex-direction: column;
        gap: 20px;
    }
    .wf-connector {
        transform: rotate(90deg);
    }
    .wf-branch-row {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }
    .wf-branch-line {
        display: none;
    }
    .wf-simple {
        gap: 30px;
    }
}

/* --- WORKFLOW STEPPER (NEW) --- */
.wf-stepper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    position: relative;
    max-width: 400px;
}

.wf-stepper .wf-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px !important;
    background: var(--bg-window) !important;
    border: 1px solid var(--border-ui) !important;
    border-radius: 14px !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    width: 100% !important;
    z-index: 1 !important;
    opacity: 1 !important;
}

.wf-stepper .wf-step:hover {
    background: var(--bg-header) !important;
    transform: translateX(4px);
    border-color: var(--text-tertiary) !important;
}

.wf-step-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border-ui);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: var(--bg-window);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.wf-step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wf-step-number {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: var(--text-tertiary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    opacity: 1 !important;
}

.wf-step-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

/* Vertical Connectors */
.wf-stepper .wf-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 44px;
    bottom: -15px;
    width: 1.5px;
    background: var(--border-ui);
    z-index: 0;
}

/* Status: Done */
.wf-stepper .wf-step.done {
    border-color: rgba(40, 200, 64, 0.2) !important;
    background: rgba(40, 200, 64, 0.03) !important;
}

.wf-stepper .wf-step.done .wf-step-marker {
    background: #28c840 !important;
    border-color: #28c840 !important;
    color: white !important;
}

.wf-stepper .wf-step.done .wf-step-marker::after {
    content: '?';
    font-weight: 800;
}

.wf-stepper .wf-step.done .wf-step-name {
    color: var(--text-secondary) !important;
}

.wf-stepper .wf-step.done::before {
    background: #28c840 !important;
}

/* Status: Active */
.wf-stepper .wf-step.active {
    border-color: var(--figma-blue) !important;
    background: var(--figma-selection) !important;
    box-shadow: 0 4px 12px rgba(24, 160, 251, 0.1) !important;
}

.wf-stepper .wf-step.active .wf-step-marker {
    border-color: var(--figma-blue) !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 4px rgba(24, 160, 251, 0.1) !important;
}

.wf-stepper .wf-step.active .wf-step-name {
    color: var(--figma-blue) !important;
}

/* Status: Next */
.wf-stepper .wf-step.next {
    opacity: 0.7 !important;
}

[data-theme='night'] .wf-stepper .wf-step.active {
    background: rgba(24, 160, 251, 0.15) !important;
}


.timeline-bullets { margin-top: 8px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; list-style: disc; padding-left: 18px; }


/* Impact Section */
.impact-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.impact-item { display: flex; align-items: flex-start; gap: 10px; }
.impact-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--figma-blue); margin-top: 6px; flex-shrink: 0; }
.impact-text { font-size: 14px; color: var(--text-secondary); line-height: 1.4; font-weight: 500; }

/* Confidential / NDA Styles */
.is-confidential .main-img, 
.is-confidential .thumb-img { 
    filter: blur(15px); 
    transform: scale(1.05); 
    transition: filter 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.main-image-container {
    position: relative;
    overflow: hidden;
}

.confidential-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.nda-badge {
    background: #ff5f57;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.confidential-overlay p {
    margin: 2px 0;
    font-size: 14px;
    max-width: 240px;
    line-height: 1.4;
}

/* Surgical Reset of NDA Styles */
.project-viewer-layout.confidential-active .main-img { 
    filter: blur(12px) !important; 
    transform: scale(1.03) !important; 
    pointer-events: none !important;
}

.project-viewer-layout.confidential-active .thumb-img {
    filter: blur(6px) !important;
}

.confidential-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 10;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-viewer-layout.confidential-active .confidential-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}


/* Custom Tabs */
.browser-tab { position:relative; padding-right:28px; transition: all 0.2s; }
.tab-close { position:absolute; right:10px; top:50%; transform:translateY(-50%); opacity:0.35; cursor:pointer; font-size: 16px; transition: opacity 0.2s; z-index: 10; padding: 4px; }
.browser-tab:hover .tab-close { opacity:0.85; }
.tab-add { min-width:40px; justify-content:center; padding: 0 16px; font-weight:800; font-size:16px; margin-left:8px; }


/* Confidential Blur */
.is-confidential { filter: blur(12px) !important; pointer-events: none; transition: filter 0.3s ease; }
.thumb-img.is-confidential { filter: blur(4px) !important; }

/* About Photo Adjustment */
.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 92%;
  display: block;
}

@media (max-width: 768px) {
  .about-photo-img {
    object-position: center 85%;
  }
}

/* About Photo Correction - Contain */
.about-photo-frame { display: flex !important; align-items: center !important; justify-content: center !important; background: var(--bg-window); overflow: hidden; }
.about-photo-img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center center !important; display: block !important; }




