:root {
    /* Paleta profesional basada en la foto */
    --bg-body: #12151c;
    --bg-sidebar: #1a202b;
    --bg-card: rgba(27, 33, 45, 0.82);
    --bg-card-solid: #1b212d;
    --text-main: #f3f4f6;
    --text-muted: #a8b0bf;
    --border-color: rgba(229, 231, 235, 0.12);
    --glass-blur: blur(16px);

    --primary-blue: #7d8caa;
    --accent-blue: #c99779;
    --primary-green: #7d8caa;
    --primary-green-2: #a9b5d0;
    --primary-gradient: linear-gradient(135deg, #6e758e, #a9b5d0);
    --warm-gradient: linear-gradient(135deg, #976c5c, #c99779);

    --accent-glow: rgba(125, 140, 170, 0.2);
    --grid-opacity: 0.035;
    --grid-glow-opacity: 0.42;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --space-card: 2.5rem;

    --repo-section-bg: rgba(27, 33, 45, 0.55);
    --repo-card-bg: rgba(27, 33, 45, 0.82);
    --repo-stats-bg: rgba(0, 0, 0, 0.2);
    --repo-stat-box-bg: rgba(255, 255, 255, 0.02);

    --hover-lift: translateY(-12px) scale(1.02);
    --hover-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(125, 140, 170, 0.22);
    --transition-card: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-body: #f5f6f8;
    --bg-sidebar: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-solid: #ffffff;
    --text-main: #202531;
    --text-muted: #64748b;
    --border-color: rgba(32, 37, 49, 0.12);

    --primary-blue: #6e758e;
    --accent-blue: #976c5c;
    --primary-green: #6e758e;
    --primary-green-2: #969db4;
    --primary-gradient: linear-gradient(135deg, #6e758e, #969db4);

    --accent-glow: rgba(110, 117, 142, 0.12);
    --grid-opacity: 0.045;
    --grid-glow-opacity: 0.18;

    --repo-section-bg: #ffffff;
    --repo-card-bg: #ffffff;
    --repo-stats-bg: #f3f6fb;
    --repo-stat-box-bg: rgba(125, 140, 170, 0.06);

    --hover-shadow: 0 30px 60px rgba(32, 37, 49, 0.14), 0 0 30px rgba(110, 117, 142, 0.16);
}

/* ==========================================================================
   BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
button,
a,
input,
select {
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 3px;
}

section {
    width: 100%;
    padding: 60px 0;
}

main {
    flex: 1;
    width: calc(100% - 280px);
    min-height: 100vh;
    margin-left: 280px;
    padding: 80px 60px;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   BACKGROUND
   ========================================================================== */

.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-color: var(--bg-body);
    background-image:
        linear-gradient(rgba(125, 140, 170, var(--grid-opacity)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 140, 170, var(--grid-opacity)) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
}

.bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(125, 140, 170, 0.18) 2px, transparent 2px),
        linear-gradient(90deg, rgba(125, 140, 170, 0.18) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: gridGlow 8s linear infinite;
    opacity: var(--grid-glow-opacity);
}

.glow-1,
.glow-2 {
    position: absolute;
    width: 50vw;
    height: 50vh;
}

.glow-1 {
    top: 0;
    left: 0;
    background: radial-gradient(circle at 0% 0%, rgba(125, 140, 170, 0.08), transparent 70%);
}

.glow-2 {
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 100%, rgba(201, 151, 121, 0.08), transparent 70%);
}

@keyframes gridGlow {
    0%, 100% {
        mask-image: radial-gradient(circle at 0% 0%, black 10%, transparent 20%);
    }
    25% {
        mask-image: radial-gradient(circle at 100% 0%, black 10%, transparent 20%);
    }
    50% {
        mask-image: radial-gradient(circle at 100% 100%, black 10%, transparent 20%);
    }
    75% {
        mask-image: radial-gradient(circle at 0% 100%, black 10%, transparent 20%);
    }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

aside {
    width: 280px;
    height: 100vh;
    position: fixed;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
}

aside > div:first-child {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

aside > div:first-child > div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

aside > div:first-child > div > div:first-child,
.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(125, 140, 170, 0.2);
}

aside h1 {
    line-height: 1.1;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f3f4f6, #a9b5d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] aside h1 {
    background: linear-gradient(135deg, #202531, #6e758e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

aside p {
    line-height: 1.2;
    color: var(--text-muted);
}

aside > div:nth-child(2) {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link,
.sidebar-link:link,
.sidebar-link:visited {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

.sidebar-link i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    color: inherit;
}

.sidebar-link span {
    color: inherit;
    text-decoration: none;
}

.sidebar-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
    transform: translateX(5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .sidebar-link:hover {
    background: rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.sidebar-link.active,
.sidebar-link.active:link,
.sidebar-link.active:visited {
    color: var(--primary-green);
    background: rgba(125, 140, 170, 0.14);
    border-color: rgba(125, 140, 170, 0.26);
    box-shadow: 0 10px 24px rgba(125, 140, 170, 0.11);
}

.pdf-icon,
.fa-file-pdf {
    color: #ef4444;
}

.lang-selector {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-selector > div {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.lang-btn {
    min-width: 42px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

/* ==========================================================================
   SISTEMA DE HOVER UNIFICADO
   Aplica a todos los contenedores principales.
   ========================================================================== */

.hero-box,
.skill-item,
.repo-card,
.glass-card,
#projects > .glass-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-card);
    background: var(--bg-card);
    transition: var(--transition-card);
    will-change: transform, box-shadow, border-color;
}

.hero-box::before,
.skill-item::before,
.repo-card::before,
.glass-card::before,
#projects > .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.6s;
}

.hero-box > *,
.skill-item > *,
.repo-card > *,
.glass-card > *,
#projects > .glass-card > * {
    position: relative;
    z-index: 2;
}

.hero-box:hover,
.skill-item:hover,
.repo-card:hover,
.glass-card:hover,
#projects > .glass-card:hover,
[data-aos].hero-box:hover,
[data-aos].skill-item:hover,
[data-aos].repo-card:hover,
[data-aos].glass-card:hover,
[data-aos].aos-animate.hero-box:hover,
[data-aos].aos-animate.skill-item:hover,
[data-aos].aos-animate.repo-card:hover,
[data-aos].aos-animate.glass-card:hover {
    border-color: rgba(125, 140, 170, 0.62) !important;
    transform: var(--hover-lift) !important;
    box-shadow: var(--hover-shadow) !important;
    z-index: 50 !important;
}

.hero-box:hover::before,
.skill-item:hover::before,
.repo-card:hover::before,
.glass-card:hover::before,
#projects > .glass-card:hover::before,
[data-aos].hero-box:hover::before,
[data-aos].skill-item:hover::before,
[data-aos].repo-card:hover::before,
[data-aos].glass-card:hover::before {
    left: 100% !important;
}

.hero-box,
.glass-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-card {
    backdrop-filter: var(--glass-blur);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.section-title i,
.section-title span,
.skill-header i {
    color: var(--primary-green);
}

.btn-primary,
.social-btn,
.repo-demo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    transform: scale(1.08) translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(125, 140, 170, 0.32);
}

.social-btn {
    gap: 10px;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

.social-btn:hover {
    background: rgba(125, 140, 170, 0.12);
    border-color: rgba(125, 140, 170, 0.34);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn i,
.repo-stat-box i,
.tag-blue,
.repo-topic {
    color: var(--accent-blue);
}

.social-btn:hover i {
    color: var(--primary-green);
}

#theme-toggle {
    width: 100%;
    justify-content: center;
    gap: 12px;
}

#email-text.copied {
    color: var(--primary-green);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.hero-box h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-box h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-box p {
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-box [data-t="role_junior"],
.tag-blue {
    display: inline-block;
    width: fit-content;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 100px;
    background: rgba(110, 117, 142, 0.13);
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-box [data-t="hero_desc"] {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-box > div[style*="display: flex"],
.social-row,
.repo-actions,
.repo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-box > div[style*="margin-top: 1.5rem"] {
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.sidebar-link-btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.hero-image-box {
    padding: 1rem;
}

.hero-profile-container {
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    border: 1px solid rgba(125, 140, 170, 0.35);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(18, 21, 28, 0.28);
}

[data-theme="light"] .hero-profile-container {
    box-shadow: 0 18px 45px rgba(32, 37, 49, 0.12);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* ==========================================================================
   SKILL PILLS
   ========================================================================== */

.skills-buttons-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-pill {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(125, 140, 170, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(125, 140, 170, 0.12);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

.skill-pill:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(125, 140, 170, 0.28);
}

/* ==========================================================================
   ABOUT / ENGLISH
   ========================================================================== */

#about h2,
#about h3,
#about p {
    color: var(--text-main);
}

#about p,
.large-muted {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bar-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bar-container,
.repo-language-bar {
    overflow: hidden;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.4);
}

.bar-container {
    height: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--primary-gradient);
    box-shadow: 0 0 10px rgba(125, 140, 170, 0.28);
    transition: width 1.5s cubic-bezier(0.1, 0, 0.1, 1);
}

.bar-fill.perspective {
    background: var(--warm-gradient);
    box-shadow: 0 0 10px rgba(201, 151, 121, 0.26);
}

.level-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 2px;
    color: var(--text-muted);
    font-size: 0.6rem;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */

#repos-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#projects > .glass-card {
    padding: 3rem;
    background: var(--repo-section-bg);
}

.repo-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 2rem;
    align-items: start;
    background: var(--repo-card-bg);
}

.repo-info h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.repo-info p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.repo-info > div:nth-of-type(1),
.repo-info > div:nth-of-type(2) {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.repo-info > div:nth-of-type(1) {
    margin-bottom: 1.5rem;
}

.repo-info > div:nth-of-type(3) {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.repo-topic,
.repo-info span[style*="border-radius: 100px"] {
    padding: 4px 12px;
    border: 1px solid rgba(125, 140, 170, 0.15);
    border-radius: 100px;
    background: rgba(125, 140, 170, 0.12);
    color: var(--accent-blue);
    font-size: 0.8rem;
}

.repo-card > div:last-child,
.repo-stats {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--repo-stats-bg);
}

[data-theme="light"] .repo-card > div:last-child,
[data-theme="light"] .repo-stats {
    border-color: #dbe4f0;
}

.repo-card > div:last-child > div:first-child,
.repo-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.repo-card > div:last-child > div:first-child > div,
.repo-stat-box {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--repo-stat-box-bg);
    text-align: center;
}

.repo-language-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.repo-language-bar div,
.repo-card [style*="height: 100%; width"] {
    height: 100%;
    border-radius: inherit;
    background: var(--primary-gradient) !important;
}

.repo-composition-label,
.repo-language-row,
.repo-no-langs,
[data-theme="light"] .repo-info p,
[data-theme="light"] .repo-info > div:nth-of-type(3),
[data-theme="light"] .repo-composition-label,
[data-theme="light"] .repo-language-row {
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.page-btn {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
}

.page-btn:hover:not(:disabled) {
    border-color: transparent;
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#page-info {
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1400px) {
    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .hero-wrapper > .hero-box:last-child {
        grid-column: span 2;
    }

    .skills-buttons-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .repo-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    :root {
        --space-card: 1.5rem;
    }

    aside {
        width: 80px;
    }

    aside h1,
    aside p,
    .lang-selector span,
    .sidebar-link span {
        display: none;
    }

    main {
        width: calc(100% - 80px);
        margin-left: 80px;
        padding: 40px 20px;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-wrapper > .hero-box:last-child {
        grid-column: span 1;
    }

    .skills-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        display: block;
    }

    aside {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    aside > div:first-child {
        padding: 0.5rem !important;
        border-bottom: 0 !important;
    }

    aside > div:first-child h1,
    aside > div:first-child p,
    aside div[style*="flex: 1"] p,
    .lang-selector,
    #theme-toggle {
        display: none !important;
    }

    aside div[style*="flex: 1"] {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem !important;
        padding: 0 !important;
    }

    aside .sidebar-link {
        padding: 0.5rem !important;
    }

    main {
        width: 100%;
        margin-left: 0;
        padding: 20px;
    }

    section {
        padding: 40px 0;
    }

    .hero-wrapper {
        gap: 1rem;
    }

    .skills-buttons-grid {
        grid-template-columns: 1fr;
    }

    .hero-box,
    .skill-item,
    .repo-card,
    .glass-card {
        border-radius: 24px;
    }

    #projects > .glass-card {
        padding: 1.5rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-card: 1rem;
    }

    .hero-box h1 {
        font-size: 1.8rem !important;
    }

    .hero-profile-container {
        min-height: 200px;
        height: 300px;
    }

    .repo-card {
        padding: 1rem;
    }

    .repo-card > div:last-child > div:first-child,
    .repo-stat-grid {
        grid-template-columns: 1fr;
    }

    .pagination-controls {
        gap: 1rem;
    }
}


/* ==========================================================================
   FINAL UNIFIED HOVER SYSTEM
   Unifica hero, repos, inglés, cards internas y botones tipo skill.
   También elimina delays de AOS en el hero para que el hover responda rápido.
   ========================================================================== */

:root {
    --hover-lift: translateY(-8px) scale(1.01);
    --hover-shadow: 0 18px 35px rgba(0, 0, 0, 0.32), 0 0 18px rgba(125, 140, 170, 0.12);
    --inner-hover-lift: translateY(-5px) scale(1.01);
    --inner-hover-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 18px rgba(125, 140, 170, 0.16);
}

[data-theme="light"] {
    --hover-shadow: 0 18px 35px rgba(32, 37, 49, 0.10), 0 0 18px rgba(110, 117, 142, 0.10);
    --inner-hover-shadow: 0 14px 28px rgba(32, 37, 49, 0.10), 0 0 16px rgba(110, 117, 142, 0.12);
}

/* Quitar la sensación de delay en Hero/AOS */
.hero-box[data-aos],
.skill-item[data-aos],
.repo-card[data-aos],
.glass-card[data-aos] {
    transition-delay: 0s !important;
}

.hero-box[data-aos].aos-animate,
.skill-item[data-aos].aos-animate,
.repo-card[data-aos].aos-animate,
.glass-card[data-aos].aos-animate {
    transition-delay: 0s !important;
}

/* Contenedores principales */
.hero-box,
.skill-item,
.repo-card,
.glass-card,
#projects > .glass-card {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out,
        background-color 0.28s ease !important;
    will-change: transform, box-shadow, border-color !important;
}

/* Elementos internos que también deben tener el mismo lenguaje de hover */
.skill-pill,
.repo-card > div:last-child > div:first-child > div,
.repo-stat-box,
.bar-wrapper,
.bar-container,
.page-btn,
.lang-btn,
.social-btn,
.sidebar-link-btn,
.btn-primary,
.repo-demo-link {
    position: relative !important;
    overflow: hidden !important;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background-color 0.24s ease,
        color 0.24s ease !important;
}

/* Barrido de luz compartido */
.hero-box::before,
.skill-item::before,
.repo-card::before,
.glass-card::before,
#projects > .glass-card::before,
.skill-pill::before,
.repo-card > div:last-child > div:first-child > div::before,
.repo-stat-box::before,
.bar-wrapper::before,
.social-btn::before,
.sidebar-link-btn::before,
.btn-primary::before,
.repo-demo-link::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 1 !important;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent) !important;
    transition: left 0.25s ease !important;
}

.hero-box > *,
.skill-item > *,
.repo-card > *,
.glass-card > *,
#projects > .glass-card > *,
.skill-pill > *,
.repo-card > div:last-child > div:first-child > div > *,
.repo-stat-box > *,
.bar-wrapper > *,
.social-btn > *,
.sidebar-link-btn > *,
.btn-primary > *,
.repo-demo-link > * {
    position: relative !important;
    z-index: 2 !important;
}

/* Hover principal: hero, inglés, repos y contenedores grandes */
.hero-box:hover,
.skill-item:hover,
.repo-card:hover,
.glass-card:hover,
#projects > .glass-card:hover,
.hero-box[data-aos]:hover,
.skill-item[data-aos]:hover,
.repo-card[data-aos]:hover,
.glass-card[data-aos]:hover,
.hero-box[data-aos].aos-animate:hover,
.skill-item[data-aos].aos-animate:hover,
.repo-card[data-aos].aos-animate:hover,
.glass-card[data-aos].aos-animate:hover {
    border-color: rgba(125, 140, 170, 0.62) !important;
    transform: var(--hover-lift) !important;
    box-shadow: var(--hover-shadow) !important;
    z-index: 50 !important;
}

/* Hover secundario: pills, stats, barras y botones */
.skill-pill:hover,
.repo-card > div:last-child > div:first-child > div:hover,
.repo-stat-box:hover,
.social-btn:hover,
.sidebar-link-btn:hover,
.btn-primary:hover,
.repo-demo-link:hover {
    border-color: rgba(125, 140, 170, 0.42) !important;
    transform: var(--inner-hover-lift) !important;
    box-shadow: var(--inner-hover-shadow) !important;
}

/* Mantener el carácter de los skill pills, pero con la misma animación */
.skill-pill:hover {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}

/* Barrido visible en todos */
.hero-box:hover::before,
.skill-item:hover::before,
.repo-card:hover::before,
.glass-card:hover::before,
#projects > .glass-card:hover::before,
.skill-pill:hover::before,
.repo-card > div:last-child > div:first-child > div:hover::before,
.repo-stat-box:hover::before,
.bar-wrapper:hover::before,
.social-btn:hover::before,
.sidebar-link-btn:hover::before,
.btn-primary:hover::before,
.repo-demo-link:hover::before {
    left: 100% !important;
}

/* Evita saltos raros por hover anidado dentro de repos */
.repo-card:hover .repo-stat-box:hover,
.repo-card:hover > div:last-child > div:first-child > div:hover {
    transform: var(--inner-hover-lift) !important;
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .hero-box,
    .skill-item,
    .repo-card,
    .glass-card,
    #projects > .glass-card,
    .skill-pill,
    .repo-stat-box,
    .bar-wrapper,
    .bar-container,
    .page-btn,
    .lang-btn,
    .social-btn,
    .sidebar-link-btn,
    .btn-primary,
    .repo-demo-link {
        transition: none !important;
    }

    .hero-box:hover,
    .skill-item:hover,
    .repo-card:hover,
    .glass-card:hover,
    #projects > .glass-card:hover,
    .skill-pill:hover,
    .repo-stat-box:hover,
    .bar-wrapper:hover,
    .bar-container:hover {
        transform: none !important;
    }
}


/* ==========================================================================
   NETSCANNER REPO CUSTOM PREVIEW
   Animación personalizada para el repositorio Escaner-de-Red-NetScanner.
   Inspirada en las olas y cola de tiburón del proyecto NetScanner.
   ========================================================================== */

.repo-card-featured-net {
    position: relative;
}

.repo-card-featured-net .repo-info {
    display: flex;
    flex-direction: column;
}

.repo-wave-preview {
    position: relative;
    width: 100%;
    min-height: 140px;
    margin: -0.35rem 0 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(125, 140, 170, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 16% 20%, rgba(6, 182, 212, 0.20), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(125, 140, 170, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.70));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 30px rgba(0, 0, 0, 0.22);
    isolation: isolate;
}

[data-theme="light"] .repo-wave-preview {
    background:
        radial-gradient(circle at 16% 20%, rgba(6, 182, 212, 0.16), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(110, 117, 142, 0.14), transparent 36%),
        linear-gradient(180deg, #f7fbff, #eaf2fb);
    border-color: rgba(110, 117, 142, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 12px 24px rgba(32, 37, 49, 0.08);
}

.repo-wave-label {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.52);
    color: #dffaff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .repo-wave-label {
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    border-color: rgba(110, 117, 142, 0.22);
}

.repo-wave-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.repo-pulse-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.35;
    animation: repoPulseGlow 3.5s ease-in-out infinite;
}

.repo-pulse-glow-1 {
    left: -35px;
    bottom: -30px;
    background: rgba(6, 182, 212, 0.38);
}

.repo-pulse-glow-2 {
    right: -40px;
    top: -35px;
    background: rgba(125, 140, 170, 0.34);
    animation-delay: -1.2s;
}

.repo-liquid-layer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    overflow: visible;
}

.repo-liquid-back {
    height: 54%;
    z-index: 1;
}

.repo-liquid-mid {
    height: 47%;
    z-index: 2;
}

.repo-liquid-front {
    height: 40%;
    z-index: 3;
}

.repo-wave-track {
    position: absolute;
    top: -34px;
    left: 0;
    width: 220%;
    height: 245px;
}

.repo-wave-svg {
    width: 100%;
    height: 100%;
}

.repo-wave-svg path {
    fill: currentColor;
}

.repo-wave-track-1 {
    z-index: 1;
    color: #f87171;
    opacity: 0.42;
    animation: repoWaveMove1 9s linear infinite;
}

.repo-wave-track-2 {
    z-index: 2;
    color: #fbbf24;
    opacity: 0.36;
    animation: repoWaveMove2 12s linear infinite;
}

.repo-wave-track-3 {
    z-index: 3;
    color: #22d3ee;
    opacity: 0.86;
    animation: repoWaveMove3 15s linear infinite;
}

[data-theme="light"] .repo-wave-track-1 {
    color: #ef4444;
    opacity: 0.30;
}

[data-theme="light"] .repo-wave-track-2 {
    color: #f59e0b;
    opacity: 0.26;
}

[data-theme="light"] .repo-wave-track-3 {
    color: #06b6d4;
    opacity: 0.48;
}







@keyframes repoWaveMove1 {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes repoWaveMove2 {
    from { transform: translateX(-45%); }
    to { transform: translateX(0); }
}

@keyframes repoWaveMove3 {
    from { transform: translateX(0); }
    to { transform: translateX(-48%); }
}

@keyframes repoPulseGlow {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.24;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.42;
    }
}




@media (max-width: 1200px) {
    .repo-wave-preview {
        min-height: 118px;
    }
}

@media (max-width: 640px) {
    .repo-wave-preview {
        min-height: 104px;
    }

    .repo-wave-label {
        font-size: 0.64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .repo-wave-track,
    .repo-pulse-glow {
        animation: none !important;
    }
}

/* Ajuste final NetScanner: solo olas, sin tiburones */
.repo-liquid-back {
    height: 48%;
}

.repo-liquid-mid {
    height: 42%;
}

.repo-liquid-front {
    height: 36%;
}

/* ==========================================================================
   NETSCANNER REPO HERO-LIKE LAYOUT
   Info | Animación | Stats en tres columnas.
   ========================================================================== */

.repo-card-featured-net {
    grid-template-columns:
        minmax(300px, 1fr)
        minmax(480px, 1.15fr)
        minmax(240px, 0.65fr) !important;

    gap: 2rem;
    align-items: stretch !important;
}

.repo-card-featured-net .repo-info,
.repo-card-featured-net .repo-wave-column,
.repo-card-featured-net .repo-stats-panel {
    min-width: 0;
}

.repo-card-featured-net .repo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.repo-wave-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.repo-card-featured-net .repo-wave-preview {
    width: 100%;
    min-height: 170px;
    height: 100%;
    margin: 0;
}

.repo-card-featured-net .repo-stats-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-theme="light"] .repo-card-featured-net .repo-stats-panel {
    background: var(--repo-stats-bg) !important;
    border: 1px solid #dbe4f0;
}

@media (max-width: 1450px) {
    .repo-card-featured-net {
        grid-template-columns:
            minmax(280px, 1fr)
            minmax(420px, 1fr) !important;
    }

    .repo-card-featured-net .repo-wave-column {
        grid-column: 1 / -1;
        order: 2;
    }

    .repo-card-featured-net .repo-stats-panel {
        order: 3;
    }

    .repo-card-featured-net .repo-info {
        order: 1;
    }
}

@media (max-width: 1200px) {
    .repo-card-featured-net {
        grid-template-columns: 1fr !important;
    }

    .repo-card-featured-net .repo-wave-column {
        grid-column: auto;
    }

    .repo-card-featured-net .repo-wave-preview {
        min-height: 145px;
    }
}

/* ==========================================================================
   NETSCANNER FLOATING TECH ICONS
   Iconos flotando/saliendo de la superficie para reforzar tecnologías:
   Python, MongoDB, Django y Scapy.
   ========================================================================== */

.repo-floating-tech {
    position: absolute;
    z-index: 8;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42));
    color: #f8fafc;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    animation: repoTechFloat 7s ease-in-out infinite;
}

.repo-floating-tech i {
    font-size: 1rem;
}

.repo-tech-python {
    left: 18%;
    bottom: 16%;
    color: #facc15;
    animation-delay: 0s;
}

.repo-tech-mongodb {
    left: 42%;
    bottom: 10%;
    color: #34d399;
    animation-delay: -1.8s;
}

.repo-tech-django {
    left: 64%;
    bottom: 15%;
    color: #86efac;
    animation-delay: -3.4s;
}

.repo-tech-scapy {
    left: 80%;
    bottom: 12%;
    color: #38bdf8;
    animation-delay: -5.1s;
}

.repo-floating-tech::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.62);
    color: #dbeafe;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

[data-theme="light"] .repo-floating-tech {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.50));
    border-color: rgba(32, 37, 49, 0.12);
    box-shadow:
        0 10px 20px rgba(32, 37, 49, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

[data-theme="light"] .repo-floating-tech::after {
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    border-color: rgba(32, 37, 49, 0.10);
}

@keyframes repoTechFloat {
    0% {
        opacity: 0;
        transform: translateY(34px) scale(0.82) rotate(-6deg);
    }
    12% {
        opacity: 0.88;
    }
    45% {
        opacity: 0.92;
        transform: translateY(-16px) scale(1) rotate(5deg);
    }
    70% {
        opacity: 0.45;
        transform: translateY(-34px) scale(0.94) rotate(-4deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-52px) scale(0.86) rotate(4deg);
    }
}

/* Pequeñas burbujas en la columna de animación */
.repo-wave-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 70%, rgba(255,255,255,0.35) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 62%, rgba(255,255,255,0.30) 0 1.5px, transparent 3px),
        radial-gradient(circle at 72% 74%, rgba(255,255,255,0.28) 0 2px, transparent 3px),
        radial-gradient(circle at 86% 58%, rgba(255,255,255,0.22) 0 1.5px, transparent 3px);
    animation: repoBubbleDrift 4.8s ease-in-out infinite;
    opacity: 0.55;
}

@keyframes repoBubbleDrift {
    0%, 100% {
        transform: translateY(8px);
        opacity: 0.34;
    }
    50% {
        transform: translateY(-16px);
        opacity: 0.62;
    }
}

@media (max-width: 1200px) {
    .repo-floating-tech {
        width: 32px;
        height: 32px;
    }

    .repo-floating-tech::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .repo-floating-tech,
    .repo-wave-scene::after {
        animation: none !important;
        opacity: 0.75;
    }
}

/* ================================================================================
   CENTROPLUS CONNECT PREVIEW
   Preview exclusiva para centroplus-connect:
   mini panel SaaS con dashboard, endpoints Swagger y stack técnico real.
   Mantiene la misma altura que el resto de visualizaciones.
   ================================================================================ */

.repo-centroplus-connect-preview {
    position: relative;
    width: 100%;
    min-height: 170px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.24), transparent 30%),
        radial-gradient(circle at 84% 84%, rgba(14, 165, 233, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(6, 18, 40, 0.96), rgba(15, 23, 42, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 14px 30px rgba(0, 0, 0, 0.22);
    isolation: isolate;
}

.repo-centroplus-connect-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.55;
    mask-image: radial-gradient(circle at 35% 35%, black, transparent 80%);
}

.repo-centroplus-connect-preview::after {
    content: "";
    position: absolute;
    inset: auto -10% -36% 18%;
    height: 70%;
    z-index: 0;
    background:
        radial-gradient(circle at 55% 0%, rgba(37, 99, 235, 0.22), transparent 44%),
        linear-gradient(135deg, rgba(96, 165, 250, 0.10), rgba(14, 165, 233, 0.04));
    transform: rotate(-4deg);
    border-radius: 50%;
    filter: blur(2px);
}

[data-theme="light"] .repo-centroplus-connect-preview {
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at 84% 84%, rgba(14, 165, 233, 0.11), transparent 34%),
        linear-gradient(135deg, #ffffff, #eef6ff);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 12px 24px rgba(32, 37, 49, 0.08);
}

.repo-centroplus-connect-preview > * {
    position: relative;
    z-index: 2;
}

.centroplus-preview-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10, 15, 24, 0.32), transparent 48%),
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.08), transparent 22%);
}

.centroplus-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
}

.centroplus-preview-brand,
.centroplus-api-pill,
.centroplus-tech-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.centroplus-preview-brand {
    gap: 8px;
    color: #eff6ff;
    font-weight: 900;
    line-height: 1;
}

.centroplus-logo-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.centroplus-preview-brand small {
    display: block;
    margin-top: 3px;
    color: #bfdbfe;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.centroplus-api-pill {
    padding: 6px 10px;
    border: 1px solid rgba(191, 219, 254, 0.20);
    background: rgba(15, 23, 42, 0.46);
    color: #dbeafe;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-theme="light"] .centroplus-preview-brand,
[data-theme="light"] .centroplus-api-pill {
    color: #172554;
}

[data-theme="light"] .centroplus-preview-brand small {
    color: #2563eb;
}

[data-theme="light"] .centroplus-api-pill {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(37, 99, 235, 0.16);
}

.centroplus-preview-main {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 10px;
    align-items: stretch;
}

.centroplus-dashboard-zone,
.centroplus-swagger-zone {
    min-width: 0;
    border: 1px solid rgba(191, 219, 254, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .centroplus-dashboard-zone,
[data-theme="light"] .centroplus-swagger-zone {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(37, 99, 235, 0.12);
}

.centroplus-dashboard-zone {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 9px;
}

.centroplus-metric {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 7px;
    padding: 8px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

[data-theme="light"] .centroplus-metric {
    background: rgba(37, 99, 235, 0.045);
}

.centroplus-metric::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    opacity: 0.75;
    transform-origin: left;
    animation: centroplusMetricLoad 3.8s ease-in-out infinite;
}

.centroplus-metric i {
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    font-size: 0.78rem;
}

.centroplus-metric span {
    color: var(--text-muted);
    font-size: 0.56rem;
    font-weight: 900;
}

.centroplus-metric strong {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
}

.metric-activities i { color: #22d3ee; }
.metric-bookings i { color: #fbbf24; }
.metric-incidents i { color: #fb7185; }
.metric-incidents::after { background: linear-gradient(90deg, #fb7185, #f97316); }
.metric-activities::after { animation-delay: -0.9s; }
.metric-bookings::after { animation-delay: -1.8s; }
.metric-incidents::after { animation-delay: -2.7s; }

.centroplus-swagger-zone {
    padding: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.swagger-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
    color: #e0f2fe;
    font-size: 0.60rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.swagger-title-row small {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    font-weight: 950;
}

[data-theme="light"] .swagger-title-row {
    color: #172554;
}

.swagger-endpoint {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 7px;
    min-height: 21px;
    padding: 4px 7px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.56rem;
    font-weight: 850;
    overflow: hidden;
}

[data-theme="light"] .swagger-endpoint {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(37, 99, 235, 0.10);
}

.swagger-endpoint strong {
    display: inline-grid;
    place-items: center;
    min-height: 15px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.48rem;
    font-weight: 950;
}

.swagger-endpoint span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-get strong { background: #3b82f6; }
.endpoint-post strong { background: #22c55e; }
.endpoint-patch strong { background: #f59e0b; }
.endpoint-delete strong { background: #ef4444; }

.centroplus-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    min-height: 28px;
}

.centroplus-tech-row span {
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid rgba(191, 219, 254, 0.16);
    background: rgba(15, 23, 42, 0.52);
    color: #bfdbfe;
    font-size: 0.50rem;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.centroplus-tech-row i {
    color: #c99779;
}

[data-theme="light"] .centroplus-tech-row span {
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(37, 99, 235, 0.14);
}

@keyframes centroplusMetricLoad {
    0%, 100% {
        transform: scaleX(0.58);
        opacity: 0.56;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .repo-centroplus-connect-preview {
        min-height: 170px;
    }
}

@media (max-width: 640px) {
    .repo-centroplus-connect-preview {
        min-height: 260px;
    }

    .centroplus-preview-main {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .centroplus-metric::after {
        animation: none !important;
    }
}

/* ========================================================================== 
   NETSCANNER NETWORK DISCOVERY LAYER
   Capa adicional sobre las olas: router, dispositivos encontrados, IP/MAC
   y estado de escaneo ARP. Mantiene las olas y los iconos de tecnologías.
   ========================================================================== */

.repo-network-overlay {
    position: absolute;
    inset: 38px 14px 12px;
    z-index: 9;
    pointer-events: none;
}

.repo-network-overlay::before,
.repo-network-overlay::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 35px;
    width: 35%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(169, 181, 208, 0.42), transparent);
    transform-origin: left center;
    opacity: 0.75;
    animation: repoNetworkLinePulse 2.8s ease-in-out infinite;
}

.repo-network-overlay::before {
    transform: rotate(18deg);
}

.repo-network-overlay::after {
    transform: rotate(-18deg);
    animation-delay: -1.4s;
}

.repo-network-router {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 88px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 8px 8px 7px;
    border: 1px solid rgba(34, 211, 238, 0.30);
    border-radius: 16px;
    background: rgba(10, 15, 24, 0.58);
    color: #dffaff;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(34, 211, 238, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    animation: repoRouterPulse 3s ease-in-out infinite;
}

.repo-network-router i {
    font-size: 0.95rem;
    color: #22d3ee;
}

.repo-network-router span {
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.repo-network-device {
    position: absolute;
    width: 92px;
    min-height: 54px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 6px;
    row-gap: 1px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(125, 140, 170, 0.24);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.56);
    color: var(--text-main);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: repoDeviceFound 6s ease-in-out infinite;
}

.repo-network-device i {
    grid-row: span 3;
    font-size: 0.95rem;
    color: #a9b5d0;
}

.repo-network-device strong {
    overflow: hidden;
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-network-device span,
.repo-network-device small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.48rem;
    font-weight: 800;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-device-laptop {
    left: 3%;
    top: 46px;
    animation-delay: 0s;
}

.repo-device-phone {
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    animation-delay: -2s;
}

.repo-device-printer {
    right: 3%;
    top: 46px;
    animation-delay: -4s;
}

.repo-device-laptop i { color: #60a5fa; }
.repo-device-phone i { color: #34d399; }
.repo-device-printer i { color: #fbbf24; }

.repo-scan-status {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 94%;
    padding: 5px 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.55);
    color: #dffaff;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.repo-scan-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.65);
    animation: repoScanDot 1.2s ease-in-out infinite;
}

/* Reposicionar un poco los iconos tech para que convivan con los nodos */
.repo-tech-python { left: 14%; bottom: 12%; }
.repo-tech-mongodb { left: 36%; bottom: 8%; }
.repo-tech-django { left: 66%; bottom: 8%; }
.repo-tech-scapy { left: 82%; bottom: 12%; }

[data-theme="light"] .repo-network-router,
[data-theme="light"] .repo-network-device,
[data-theme="light"] .repo-scan-status {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(110, 117, 142, 0.20);
    color: #334155;
    box-shadow:
        0 10px 20px rgba(32, 37, 49, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

@keyframes repoRouterPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.24),
            0 0 18px rgba(34, 211, 238, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
        transform: translateX(-50%) scale(1.04);
        box-shadow:
            0 14px 26px rgba(0, 0, 0, 0.26),
            0 0 26px rgba(34, 211, 238, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
}

@keyframes repoDeviceFound {
    0%, 12% {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
    }
    24%, 72% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0.55;
        transform: translateY(-4px) scale(0.98);
    }
}

.repo-device-phone {
    animation-name: repoDeviceFoundCenter;
}

@keyframes repoDeviceFoundCenter {
    0%, 12% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px) scale(0.92);
    }
    24%, 72% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0.55;
        transform: translateX(-50%) translateY(-4px) scale(0.98);
    }
}

@keyframes repoNetworkLinePulse {
    0%, 100% {
        opacity: 0.28;
    }
    50% {
        opacity: 0.84;
    }
}

@keyframes repoScanDot {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@media (max-width: 1200px) {
    .repo-network-overlay {
        inset: 40px 12px 12px;
    }

    .repo-network-device {
        width: 86px;
    }
}

@media (max-width: 640px) {
    .repo-network-device small,
    .repo-floating-tech::after {
        display: none;
    }

    .repo-network-device {
        width: 74px;
        min-height: 46px;
        padding: 6px;
    }

    .repo-network-device strong,
    .repo-network-device span {
        font-size: 0.45rem;
    }

    .repo-scan-status {
        font-size: 0.48rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .repo-network-router,
    .repo-network-device,
    .repo-network-overlay::before,
    .repo-network-overlay::after,
    .repo-scan-dot {
        animation: none !important;
    }

    .repo-network-device {
        opacity: 1;
    }
}

/* ==========================================================================
   HERO UPGRADE
   Presentación más compacta, foto integrada y skills realistas.
   ========================================================================== */

.hero-wrapper-upgraded {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr) minmax(280px, 0.85fr);
    gap: 1.6rem;
}

.hero-intro-box,
.hero-skills-box,
.hero-profile-box {
    min-height: 100%;
}

.hero-intro-box {
    justify-content: center;
}

.hero-kicker {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(125, 140, 170, 0.20);
    border-radius: 100px;
    background: rgba(110, 117, 142, 0.13);
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-green);
    box-shadow: 0 0 12px rgba(125, 140, 170, 0.6);
}

.hero-description {
    max-width: 62ch;
    margin-bottom: 1.5rem !important;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65 !important;
}

.hero-actions,
.hero-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-social-row {
    margin-top: 1.35rem;
}

.hero-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-stat {
    padding: 0.85rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(125, 140, 170, 0.14), transparent 72%),
        rgba(255, 255, 255, 0.035);
    text-align: center;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

[data-theme="light"] .hero-stat {
    background:
        radial-gradient(circle at 50% 0%, rgba(110, 117, 142, 0.10), transparent 72%),
        rgba(255, 255, 255, 0.76);
}

.hero-stat:hover {
    border-color: rgba(125, 140, 170, 0.42);
    transform: translateY(-4px);
    box-shadow: var(--inner-hover-shadow);
}

.hero-stat strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-stat span {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.hero-profile-box {
    justify-content: space-between;
    padding: 1rem !important;
}

.hero-profile-box::after {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 12%, rgba(169, 181, 208, 0.18), transparent 34%),
        radial-gradient(circle at 82% 88%, rgba(201, 151, 121, 0.14), transparent 36%);
    pointer-events: none;
}

.hero-profile-container {
    position: relative;
    z-index: 2;
    aspect-ratio: 3 / 4;
    min-height: 0;
    height: auto;
    max-height: 430px;
}

.hero-status-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 36px);
    padding: 0.48rem 0.85rem;
    border: 1px solid rgba(125, 140, 170, 0.28);
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.58);
    color: #e2e8f0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .hero-status-badge {
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    border-color: rgba(110, 117, 142, 0.20);
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12), 0 0 16px rgba(52, 211, 153, 0.45);
    animation: heroStatusPulse 2.2s ease-in-out infinite;
}

.hero-photo-caption {
    position: relative;
    z-index: 2;
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

[data-theme="light"] .hero-photo-caption {
    background: rgba(255, 255, 255, 0.72);
}

.hero-skills-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-skills-heading i {
    color: var(--primary-green);
}

.hero-skills-box .skills-buttons-grid {
    gap: 0.65rem;
}

.hero-skills-box .skill-pill {
    justify-content: flex-start;
    padding: 0.82rem 0.95rem;
    font-size: 0.82rem;
}

.hero-skills-box .skill-pill i {
    width: 20px;
    text-align: center;
}

@keyframes heroStatusPulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.78;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@media (max-width: 1400px) {
    .hero-wrapper-upgraded {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .hero-skills-box {
        grid-column: 1 / -1;
    }

    .hero-skills-box .skills-buttons-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .hero-wrapper-upgraded {
        grid-template-columns: 1fr;
    }

    .hero-skills-box {
        grid-column: auto;
    }

    .hero-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-skills-box .skills-buttons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-profile-container {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .hero-actions,
    .hero-social-row {
        flex-direction: column;
    }

    .hero-actions > *,
    .hero-social-row > * {
        width: 100%;
    }

    .hero-mini-stats,
    .hero-skills-box .skills-buttons-grid {
        grid-template-columns: 1fr;
    }

    .hero-status-badge {
        left: 18px;
        right: auto;
    }
}

/* ========================================================================== 
   HERO FINAL POLISH
   Limpia solapes, elimina duplicación visual y reparte mejor la información.
   ========================================================================== */

.hero-wrapper-upgraded {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.75fr) minmax(300px, 0.85fr);
    align-items: stretch;
}

.hero-intro-box {
    justify-content: center;
}

.hero-profile-box {
    justify-content: center;
    gap: 0.9rem;
}

.hero-profile-box::after {
    opacity: 0.7;
}

.hero-status-badge {
    display: none !important;
}

.hero-profile-container {
    width: 100%;
    max-height: 430px;
    margin-inline: auto;
}

.hero-profile-img {
    object-position: center 18%;
}

.hero-photo-caption {
    margin-top: 0;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.hero-mini-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-stat {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-stat strong {
    font-size: 0.98rem;
}

.hero-stat span {
    font-size: 0.68rem;
}

.hero-skills-heading {
    margin-bottom: 1.1rem;
}

.hero-skills-box .skill-pill {
    min-height: 42px;
}

@media (max-width: 1400px) {
    .hero-wrapper-upgraded {
        grid-template-columns: 1fr 0.8fr;
    }

    .hero-skills-box {
        grid-column: 1 / -1;
    }

    .hero-skills-box .skills-buttons-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .hero-wrapper-upgraded {
        grid-template-columns: 1fr;
    }

    .hero-skills-box .skills-buttons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-mini-stats,
    .hero-skills-box .skills-buttons-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo-caption {
        font-size: 0.7rem;
    }
}


/* ==========================================================================
   ABOUT ROADMAP + TECHNOLOGIES
   ========================================================================== */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-card {
    gap: 1rem;
}

.section-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.42rem 0.85rem;
    border: 1px solid rgba(125, 140, 170, 0.22);
    border-radius: 999px;
    background: rgba(125, 140, 170, 0.12);
    color: var(--accent-blue);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-card h3,
.roadmap-card h3,
.tech-card h3 {
    color: var(--text-main);
}

.about-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.focus-grid,
.tech-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.focus-pill,
.tech-chip-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(125, 140, 170, 0.18);
    border-radius: 999px;
    background: rgba(125, 140, 170, 0.10);
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.focus-pill i {
    color: var(--accent-blue);
}

.roadmap-card {
    gap: 1.5rem;
}

.roadmap-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.roadmap-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.roadmap-months,
.roadmap-track {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
}

.roadmap-months {
    margin-left: 170px;
    padding: 0 0.6rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0.85rem 1.25rem;
    align-items: center;
}

.roadmap-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 800;
}

.roadmap-label i {
    width: 18px;
    color: var(--accent-blue);
    text-align: center;
}

.roadmap-track {
    min-height: 42px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(125, 140, 170, 0.14);
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(125,140,170,0.10) 1px, transparent 1px),
        rgba(0, 0, 0, 0.12);
    background-size: 10% 100%;
}

[data-theme="light"] .roadmap-track {
    background:
        linear-gradient(90deg, rgba(110,117,142,0.11) 1px, transparent 1px),
        rgba(125, 140, 170, 0.06);
}

.roadmap-track-stacked {
    min-height: 105px;
    grid-template-rows: repeat(2, 1fr);
    row-gap: 18px;
}

.roadmap-track-projects {
    min-height: 142px;
    grid-template-rows: repeat(4, 1fr);
    row-gap: 8px;
    align-items: center;
    padding-block: 10px;
}

.roadmap-bar {
    grid-column: var(--start) / span var(--span);
    min-width: 0;
    height: 26px;
    margin-inline: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 10px 20px rgba(0, 0, 0, 0.18);
}

.roadmap-track-stacked .roadmap-bar:nth-child(1) {
    grid-row: 1;
}

.roadmap-track-stacked .roadmap-bar:nth-child(2) {
    grid-row: 2;
}

.roadmap-track-projects .roadmap-bar:nth-child(3) {
    grid-row: 3;
}

.roadmap-track-projects .roadmap-bar:nth-child(4) {
    grid-row: 4;
}

.roadmap-track-projects .roadmap-bar {
    height: 22px;
    margin-block: 0;
    align-self: center;
}

.bar-education {
    background: linear-gradient(135deg, #6e758e, #a9b5d0);
}

.bar-tech {
    background: linear-gradient(135deg, #7d8caa, #8ea3c5);
}

.bar-web {
    background: linear-gradient(135deg, #6b8ea8, #8bb8d8);
}

.bar-db {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.bar-project {
    background: linear-gradient(135deg, #976c5c, #c99779);
}

.bar-project.alt {
    background: linear-gradient(135deg, #0e7490, #22d3ee);
}

.bar-practice {
    background: linear-gradient(135deg, #0e7490, #22d3ee);
}

.bar-future {
    border: 1px dashed rgba(255, 255, 255, 0.42);
    background: linear-gradient(135deg, rgba(151, 108, 92, 0.46), rgba(201, 151, 121, 0.32));
    color: #f8fafc;
}

.bar-future.future-2 {
    border-color: rgba(169, 181, 208, 0.42);
    background: linear-gradient(135deg, rgba(110, 117, 142, 0.38), rgba(169, 181, 208, 0.24));
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
}

.tech-card {
    justify-content: flex-start;
    gap: 1.35rem;
    min-height: 158px;
    padding: 2rem !important;
    background:
        radial-gradient(circle at top right, rgba(125, 140, 170, 0.12), transparent 38%),
        var(--bg-card) !important;
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-card-header i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 140, 170, 0.20);
    border-radius: 16px;
    background: rgba(125, 140, 170, 0.14);
    color: var(--accent-blue);
    font-size: 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tech-card h3 {
    font-size: 1.05rem;
}

.tech-chip-list {
    gap: 0.65rem;
}

.tech-chip-list span {
    padding: 0.55rem 0.8rem;
    font-size: 0.78rem;
}

.tech-chip-list span:hover {
    border-color: rgba(125, 140, 170, 0.36);
    background: rgba(125, 140, 170, 0.16);
    transform: translateY(-2px);
}

@media (max-width: 1400px) {
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .roadmap-months {
        margin-left: 0;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-label {
        margin-top: 0.4rem;
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-track-projects {
        min-height: 150px;
    }

    .roadmap-card {
        overflow-x: auto !important;
    }

    .roadmap-months,
    .roadmap-grid {
        min-width: 760px;
    }
}


/* ========================================================================== 
   GITHUB PROFILE + ETSDAM CUSTOM REPO PREVIEWS
   Representaciones visuales para alejandroDonGar y etsdam_alejandro.
   ========================================================================== */

.repo-profile-readme-preview,
.repo-ets-preview {
    position: relative;
    width: 100%;
    min-height: 140px;
    margin: -0.35rem 0 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(125, 140, 170, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 16% 20%, rgba(125, 140, 170, 0.18), transparent 34%),
        radial-gradient(circle at 88% 84%, rgba(201, 151, 121, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 30px rgba(0, 0, 0, 0.22);
    isolation: isolate;
}

[data-theme="light"] .repo-profile-readme-preview,
[data-theme="light"] .repo-ets-preview {
    background:
        radial-gradient(circle at 16% 20%, rgba(110, 117, 142, 0.12), transparent 34%),
        radial-gradient(circle at 88% 84%, rgba(151, 108, 92, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff, #edf2f8);
    border-color: rgba(110, 117, 142, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 12px 24px rgba(32, 37, 49, 0.08);
}

/* GitHub profile / README preview */
.repo-profile-readme-preview {
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
}

.repo-profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(125, 140, 170, 0.16);
    border-radius: 14px 14px 0 0;
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.repo-profile-readme-body {
    min-height: 100px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(125, 140, 170, 0.16);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(0, 0, 0, 0.10);
}

.repo-profile-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto;
}

.repo-profile-avatar {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border: 2px solid rgba(201, 151, 121, 0.24);
    border-radius: 999px;
    background:
        radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.36), transparent 18%),
        var(--primary-gradient);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
    animation: repoProfileFloat 4s ease-in-out infinite;
}

.repo-profile-status-dot {
    position: absolute;
    right: 5px;
    bottom: 9px;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(15, 23, 42, 0.96);
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.45);
}

.repo-profile-content h4 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.repo-profile-content p {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.repo-profile-lines {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.repo-profile-lines span {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.repo-profile-lines span::after {
    content: '';
    display: block;
    width: 55%;
    height: 100%;
    border-radius: inherit;
    background: var(--warm-gradient);
    animation: repoReadmeLine 3.4s ease-in-out infinite;
}

.repo-profile-lines span:nth-child(2)::after {
    width: 74%;
    animation-delay: -0.8s;
}

.repo-profile-lines span:nth-child(3)::after {
    width: 42%;
    animation-delay: -1.6s;
}

.repo-profile-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.repo-profile-techs span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 140, 170, 0.18);
    border-radius: 9px;
    background: rgba(125, 140, 170, 0.14);
    color: var(--accent-blue);
    animation: repoTechPop 3.5s ease-in-out infinite;
}

.repo-profile-techs span:nth-child(2) { animation-delay: -0.3s; }
.repo-profile-techs span:nth-child(3) { animation-delay: -0.6s; }
.repo-profile-techs span:nth-child(4) { animation-delay: -0.9s; }
.repo-profile-techs span:nth-child(5) { animation-delay: -1.2s; }
.repo-profile-techs span:nth-child(6) { animation-delay: -1.5s; }

/* ETS DAM board preview */
.repo-ets-preview {
    padding: 0.95rem;
}

.repo-ets-label {
    position: relative;
    z-index: 5;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.52);
    color: #f3e8ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .repo-ets-label {
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    border-color: rgba(110, 117, 142, 0.22);
}

.repo-ets-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(68px, 1fr));
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.repo-ets-card {
    position: relative;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    overflow: hidden;
    padding: 0.6rem;
    border: 1px solid rgba(125, 140, 170, 0.18);
    border-top: 4px solid #7c1d83;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.13);
    animation: repoEtsCardIn 4s ease-in-out infinite;
}

.repo-ets-card:nth-child(2) { animation-delay: -0.25s; }
.repo-ets-card:nth-child(3) { animation-delay: -0.5s; }
.repo-ets-card:nth-child(4) { animation-delay: -0.75s; }
.repo-ets-card:nth-child(5) { animation-delay: -1s; }
.repo-ets-card:nth-child(6) { animation-delay: -1.25s; }
.repo-ets-card:nth-child(7) { animation-delay: -1.5s; }
.repo-ets-card:nth-child(8) { animation-delay: -1.75s; }
.repo-ets-card:nth-child(9) { animation-delay: -2s; }

.repo-ets-card span {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 6px;
    background: #7c1d83;
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.repo-ets-card strong {
    color: var(--text-main);
    font-size: 0.68rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.repo-ets-card small {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-main);
    font-size: 0.55rem;
    font-weight: 800;
}

.repo-ets-card.workflow strong {
    color: #fff;
}

.repo-ets-card.restricted {
    border-top-color: #8b8b8b;
}

.repo-ets-card.restricted span {
    background: #737373;
}

.repo-ets-card.urgent {
    border-top-color: #ef4444;
}

.repo-ets-card.urgent span {
    background: #7c1d83;
}

[data-theme="light"] .repo-ets-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 18px rgba(32, 37, 49, 0.08);
}

@keyframes repoProfileFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes repoReadmeLine {
    0%, 100% { opacity: 0.55; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(18%); }
}

@keyframes repoTechPop {
    0%, 100% { transform: translateY(0); opacity: 0.76; }
    50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes repoEtsCardIn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 1400px) {
    .repo-ets-board {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
    }
}

@media (max-width: 1200px) {
    .repo-profile-readme-preview,
    .repo-ets-preview {
        min-height: 118px;
    }
}

@media (max-width: 640px) {
    .repo-profile-readme-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .repo-profile-techs {
        justify-content: center;
    }

    .repo-ets-board {
        grid-template-columns: repeat(2, minmax(80px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .repo-profile-avatar,
    .repo-profile-lines span::after,
    .repo-profile-techs span,
    .repo-ets-card {
        animation: none !important;
    }
}


/* ==========================================================================
   ALEJANDRODONGAR CUSTOM PIXEL DISSOLVE
   Efecto exclusivo para el repositorio alejandroDonGar.
   No afecta a NetScanner, CentroPlus ni etsdam_alejandro.
   ========================================================================== */

.repo-profile-pixel-preview {
    isolation: isolate;
}

.profile-pixel-stream {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 12% 24%, rgba(34, 197, 94, 0.18), transparent 30%),
        repeating-conic-gradient(
            from 0deg,
            rgba(34, 197, 94, 0.58) 0% 25%,
            transparent 0% 100%
        ) 0 0 / 14px 14px;
    mix-blend-mode: screen;
    opacity: 0.72;
    mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.56) 58%, transparent 84%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.56) 58%, transparent 84%);
    animation: profilePixelDissolve 5.8s ease-in-out infinite;
}

.repo-profile-pixel-preview:hover .profile-pixel-stream {
    animation-duration: 3.4s;
}

@keyframes profilePixelDissolve {
    0% {
        opacity: 0.82;
        transform: translateX(-3%) scale(1);
        filter: blur(0);
        background-size: 14px 14px;
    }

    38% {
        opacity: 0.48;
        transform: translateX(8%) scale(1.01);
        filter: blur(0.2px);
        background-size: 18px 18px;
    }

    68% {
        opacity: 0.12;
        transform: translateX(20%) scale(1.01);
        filter: blur(0.6px);
        background-size: 26px 26px;
    }

    100% {
        opacity: 0.78;
        transform: translateX(-3%) scale(1);
        filter: blur(0);
        background-size: 14px 14px;
    }
}

[data-theme="light"] .profile-pixel-stream {
    background:
        radial-gradient(circle at 12% 24%, rgba(34, 197, 94, 0.12), transparent 30%),
        repeating-conic-gradient(
            from 0deg,
            rgba(22, 163, 74, 0.32) 0% 25%,
            transparent 0% 100%
        ) 0 0 / 14px 14px;
    opacity: 0.48;
    mix-blend-mode: multiply;
}

@media (max-width: 640px) {
    .profile-pixel-stream {
        background-size: 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-pixel-stream {
        animation: none !important;
        opacity: 0.18;
        transform: none;
    }
}


/* ==========================================================================
   ETSDAM TERMINAL + WORKFLOW PREVIEW
   Sustituye el antiguo temario visual por una mezcla de mini terminal y flujo
   de desarrollo: documentación, Git, IDE, debug, pruebas y optimización.
   ========================================================================== */

.repo-ets-terminal-preview {
    position: relative;
    width: 100%;
    min-height: 140px;
    margin: -0.35rem 0 1.35rem;
    overflow: hidden;
    padding: 0.9rem;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 14% 24%, rgba(168, 85, 247, 0.18), transparent 34%),
        radial-gradient(circle at 86% 80%, rgba(201, 151, 121, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.74));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 30px rgba(0, 0, 0, 0.22);
    isolation: isolate;
}

.repo-ets-terminal-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.35) 1px, transparent 1px);
    background-size: 24px 24px;
    animation: etsGridDrift 10s linear infinite;
}

.repo-ets-terminal-preview::after {
    content: '';
    position: absolute;
    inset: auto -20% -45% 20%;
    height: 85px;
    z-index: 0;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.24);
    filter: blur(34px);
    animation: etsGlowBreath 4.8s ease-in-out infinite;
}

[data-theme="light"] .repo-ets-terminal-preview {
    background:
        radial-gradient(circle at 14% 24%, rgba(168, 85, 247, 0.12), transparent 34%),
        radial-gradient(circle at 86% 80%, rgba(151, 108, 92, 0.10), transparent 36%),
        linear-gradient(180deg, #ffffff, #eef2f8);
    border-color: rgba(110, 117, 142, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 12px 24px rgba(32, 37, 49, 0.08);
}

.repo-ets-terminal-header,
.repo-ets-terminal-body,
.repo-ets-tags {
    position: relative;
    z-index: 2;
}

.repo-ets-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(168, 85, 247, 0.20);
    border-radius: 14px 14px 0 0;
    background: rgba(0, 0, 0, 0.24);
    color: #f3e8ff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-theme="light"] .repo-ets-terminal-header {
    background: rgba(255, 255, 255, 0.68);
    color: #334155;
}

.repo-ets-terminal-header > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.repo-ets-terminal-header small {
    color: var(--text-muted);
    font-size: 0.64rem;
    white-space: nowrap;
}

.repo-ets-window-dots {
    display: inline-flex;
    gap: 0.3rem;
    flex: 0 0 auto;
}

.repo-ets-window-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.repo-ets-window-dots span:nth-child(1) { background: #ef4444; }
.repo-ets-window-dots span:nth-child(2) { background: #f59e0b; }
.repo-ets-window-dots span:nth-child(3) { background: #22c55e; }

.repo-ets-terminal-body {
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(210px, 0.95fr) minmax(220px, 1.05fr);
    gap: 0.9rem;
    padding: 0.8rem;
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .repo-ets-terminal-body {
    background: rgba(255, 255, 255, 0.52);
}

.repo-ets-terminal-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.34rem;
    min-width: 0;
    color: #dbeafe;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.68rem;
    line-height: 1.25;
}

[data-theme="light"] .repo-ets-terminal-lines {
    color: #334155;
}

.repo-ets-terminal-lines p {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(4px);
    animation: etsTerminalLine 7.5s ease-in-out infinite;
}

.repo-ets-terminal-lines p:nth-child(1) { animation-delay: 0s; }
.repo-ets-terminal-lines p:nth-child(2) { animation-delay: 0.45s; }
.repo-ets-terminal-lines p:nth-child(3) { animation-delay: 0.9s; }
.repo-ets-terminal-lines p:nth-child(4) { animation-delay: 1.35s; }
.repo-ets-terminal-lines p:nth-child(5) { animation-delay: 1.8s; }

.repo-ets-terminal-lines i {
    margin-right: 0.35rem;
    color: #22c55e;
}

.repo-ets-prompt {
    color: #c084fc;
    font-weight: 800;
}

.repo-ets-cursor {
    display: inline-block;
    margin-left: 0.15rem;
    color: #fbbf24;
    animation: etsCursorBlink 0.85s steps(2, start) infinite;
}

.repo-ets-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.repo-ets-flow-line {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 46%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(168, 85, 247, 0.16),
        rgba(168, 85, 247, 0.82),
        rgba(201, 151, 121, 0.75));
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.28);
}

.repo-ets-flow-pulse {
    position: absolute;
    top: calc(46% - 5px);
    left: 7%;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.72);
    animation: etsFlowPulse 4.6s ease-in-out infinite;
}

.repo-ets-flow-node {
    position: relative;
    z-index: 2;
    min-width: 0;
    height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.28rem;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 16px;
    background: rgba(20, 26, 38, 0.76);
    color: #f3e8ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 18px rgba(0, 0, 0, 0.18);
    animation: etsNodeFloat 4.4s ease-in-out infinite;
}

[data-theme="light"] .repo-ets-flow-node {
    background: rgba(255, 255, 255, 0.86);
    color: #334155;
    box-shadow: 0 10px 18px rgba(32, 37, 49, 0.08);
}

.repo-ets-flow-node i {
    color: #c084fc;
    font-size: 1rem;
}

.repo-ets-flow-node small {
    color: var(--text-muted);
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.repo-ets-flow-node:nth-of-type(3) { animation-delay: -0.25s; }
.repo-ets-flow-node:nth-of-type(4) { animation-delay: -0.50s; }
.repo-ets-flow-node:nth-of-type(5) { animation-delay: -0.75s; }
.repo-ets-flow-node:nth-of-type(6) { animation-delay: -1s; }
.repo-ets-flow-node:nth-of-type(7) { animation-delay: -1.25s; }
.repo-ets-flow-node:nth-of-type(8) { animation-delay: -1.5s; }

.repo-ets-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.72rem;
}

.repo-ets-tags span {
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.12);
    color: #f3e8ff;
    font-size: 0.62rem;
    font-weight: 800;
}

[data-theme="light"] .repo-ets-tags span {
    color: #334155;
    background: rgba(110, 117, 142, 0.08);
    border-color: rgba(110, 117, 142, 0.18);
}

@keyframes etsTerminalLine {
    0% { opacity: 0; transform: translateY(4px); }
    8%, 76% { opacity: 1; transform: translateY(0); }
    92%, 100% { opacity: 0.72; transform: translateY(0); }
}

@keyframes etsCursorBlink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@keyframes etsFlowPulse {
    0%, 100% { left: 7%; transform: scale(0.92); }
    18% { left: 22%; transform: scale(1.08); }
    36% { left: 38%; transform: scale(0.96); }
    54% { left: 54%; transform: scale(1.08); }
    72% { left: 70%; transform: scale(0.96); }
    90% { left: 86%; transform: scale(1.08); }
}

@keyframes etsNodeFloat {
    0%, 100% { transform: translateY(0); border-color: rgba(168, 85, 247, 0.18); }
    50% { transform: translateY(-3px); border-color: rgba(168, 85, 247, 0.45); }
}

@keyframes etsGridDrift {
    from { background-position: 0 0; }
    to { background-position: 24px 24px; }
}

@keyframes etsGlowBreath {
    0%, 100% { opacity: 0.48; transform: scaleX(0.9); }
    50% { opacity: 0.86; transform: scaleX(1.08); }
}

@media (max-width: 1200px) {
    .repo-ets-terminal-preview {
        min-height: 118px;
    }

    .repo-ets-terminal-body {
        grid-template-columns: 1fr;
    }

    .repo-ets-flow {
        min-height: 64px;
    }
}

@media (max-width: 640px) {
    .repo-ets-terminal-header small {
        display: none;
    }

    .repo-ets-terminal-lines {
        font-size: 0.62rem;
    }

    .repo-ets-flow {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .repo-ets-flow-line,
    .repo-ets-flow-pulse {
        display: none;
    }

    .repo-ets-flow-node {
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .repo-ets-terminal-preview::before,
    .repo-ets-terminal-preview::after,
    .repo-ets-terminal-lines p,
    .repo-ets-cursor,
    .repo-ets-flow-pulse,
    .repo-ets-flow-node {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================================================== 
   GITHUB PROFILE OVERVIEW PREVIEW - alejandroDonGar
   README + actividad tipo contribution graph, sin pixelado fuerte.
   ========================================================================== */

.repo-profile-overview-preview {
    min-height: 178px;
    padding: 0.85rem;
    background:
        radial-gradient(circle at 18% 28%, rgba(34, 197, 94, 0.10), transparent 26%),
        radial-gradient(circle at 88% 82%, rgba(201, 151, 121, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(18, 21, 28, 0.78));
}

.repo-profile-overview-preview::after {
    content: '';
    position: absolute;
    inset: 0.85rem;
    z-index: 0;
    pointer-events: none;
    border-radius: 16px;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(34, 197, 94, 0.12) 0% 25%,
            transparent 0% 100%
        ) 0 0 / 14px 14px;
    opacity: 0.18;
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.18) 55%, transparent 88%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.18) 55%, transparent 88%);
    animation: repoProfileSoftPixels 8s ease-in-out infinite;
}

.repo-profile-overview-preview > * {
    position: relative;
    z-index: 2;
}

.repo-profile-overview-body {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 126px;
    padding: 0.95rem;
}

.repo-profile-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.repo-profile-heading-row h4 {
    margin-bottom: 0.25rem;
}

.repo-profile-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.10);
    color: #bbf7d0;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.repo-profile-live-pill i {
    color: #22c55e;
    font-size: 0.45rem;
    animation: repoProfileLivePulse 1.6s ease-in-out infinite;
}

.repo-profile-overview-content .repo-profile-lines {
    margin-bottom: 0.7rem;
}

.repo-profile-overview-content .repo-profile-lines span:nth-child(1)::after {
    width: 62%;
}

.repo-profile-overview-content .repo-profile-lines span:nth-child(2)::after {
    width: 84%;
}

.repo-profile-overview-content .repo-profile-lines span:nth-child(3)::after {
    width: 52%;
}

.repo-profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.repo-profile-meta-grid div {
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(125, 140, 170, 0.16);
    border-radius: 10px;
    background: rgba(125, 140, 170, 0.10);
    text-align: center;
}

.repo-profile-meta-grid strong,
.repo-profile-meta-grid small {
    display: block;
    line-height: 1.1;
}

.repo-profile-meta-grid strong {
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 900;
}

.repo-profile-meta-grid small {
    margin-top: 0.18rem;
    color: var(--text-muted);
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.repo-profile-activity-panel {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(125, 140, 170, 0.16);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.12);
}

.repo-profile-activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 800;
}

.repo-profile-activity-header span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.repo-profile-activity-header i {
    color: #22c55e;
}

.repo-profile-activity-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
}

.activity-cell {
    aspect-ratio: 1 / 1;
    border-radius: 3px;
    background: rgba(125, 140, 170, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    animation: repoActivityBlink 4.8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.activity-cell.level-1 { background: rgba(34, 197, 94, 0.22); }
.activity-cell.level-2 { background: rgba(34, 197, 94, 0.36); }
.activity-cell.level-3 { background: rgba(34, 197, 94, 0.52); }
.activity-cell.level-4 { background: rgba(34, 197, 94, 0.72); box-shadow: 0 0 10px rgba(34, 197, 94, 0.22); }

[data-theme="light"] .repo-profile-overview-preview {
    background:
        radial-gradient(circle at 18% 28%, rgba(34, 197, 94, 0.08), transparent 26%),
        radial-gradient(circle at 88% 82%, rgba(151, 108, 92, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff, #eef3f8);
}

[data-theme="light"] .repo-profile-overview-preview::after {
    opacity: 0.10;
    mix-blend-mode: multiply;
}

[data-theme="light"] .repo-profile-live-pill {
    color: #166534;
    background: rgba(34, 197, 94, 0.08);
}

[data-theme="light"] .repo-profile-activity-panel,
[data-theme="light"] .repo-profile-meta-grid div {
    background: rgba(110, 117, 142, 0.06);
}

@keyframes repoProfileSoftPixels {
    0%, 100% {
        opacity: 0.14;
        transform: translateX(-2%);
        background-size: 14px 14px;
    }
    50% {
        opacity: 0.24;
        transform: translateX(4%);
        background-size: 18px 18px;
    }
}

@keyframes repoProfileLivePulse {
    0%, 100% { opacity: 0.45; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes repoActivityBlink {
    0%, 100% { filter: brightness(0.85); transform: scale(1); }
    50% { filter: brightness(1.25); transform: scale(1.08); }
}

@media (max-width: 640px) {
    .repo-profile-overview-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .repo-profile-heading-row {
        align-items: center;
        flex-direction: column;
    }

    .repo-profile-techs {
        justify-content: center;
    }

    .repo-profile-activity-grid {
        grid-template-columns: repeat(18, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .repo-profile-overview-preview::after,
    .repo-profile-live-pill i,
    .activity-cell {
        animation: none !important;
    }
}


/* ========================================================================== 
   GITHUB PROFILE PREVIEW COMPACTA
   Versión limpia: README card sin panel de actividad para mantener altura uniforme.
   ========================================================================== */

.repo-profile-compact-preview {
    min-height: 190px !important;
    height: 100%;
    padding-bottom: 0 !important;
}

.repo-profile-compact-preview .repo-profile-topbar {
    min-height: 42px;
}

.repo-profile-compact-body {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: center;
    padding: 1.35rem 1.5rem 1.45rem !important;
}

.repo-profile-compact-preview .repo-profile-avatar {
    width: 86px;
    height: 86px;
}

.repo-profile-compact-preview .repo-profile-status-dot {
    right: 2px;
    bottom: 8px;
}

.repo-profile-compact-preview .repo-profile-heading-row {
    margin-bottom: 0.75rem;
}

.repo-profile-compact-preview .repo-profile-heading-row h4 {
    font-size: clamp(1rem, 1.25vw, 1.35rem);
    line-height: 1.2;
}

.repo-profile-compact-preview .repo-profile-heading-row p {
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.repo-profile-compact-preview .repo-profile-lines {
    gap: 0.42rem;
    margin: 0.8rem 0 0.85rem;
}

.repo-profile-compact-preview .repo-profile-lines span {
    height: 8px;
}

.repo-profile-compact-preview .repo-profile-techs {
    margin-top: 0;
    margin-bottom: 0.9rem;
}

.repo-profile-compact-preview .repo-profile-techs span {
    width: 34px;
    height: 34px;
}

.repo-profile-compact-preview .repo-profile-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.repo-profile-compact-preview .repo-profile-meta-grid div {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
}

.repo-profile-compact-preview .repo-profile-meta-grid strong {
    font-size: 1rem;
}

.repo-profile-compact-preview .repo-profile-meta-grid small {
    font-size: 0.62rem;
}

.repo-profile-compact-preview .repo-profile-activity-panel,
.repo-profile-compact-preview .repo-profile-activity-grid,
.repo-profile-compact-preview .repo-profile-activity-header,
.repo-profile-compact-preview .repo-profile-live-pill {
    display: none !important;
}

@media (max-width: 1450px) {
    .repo-profile-compact-body {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 1rem;
    }

    .repo-profile-compact-preview .repo-profile-avatar {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 768px) {
    .repo-profile-compact-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .repo-profile-compact-preview .repo-profile-avatar-wrap {
        justify-content: center;
    }

    .repo-profile-compact-preview .repo-profile-techs {
        justify-content: center;
    }

    .repo-profile-compact-preview .repo-profile-meta-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================== 
   FIX FINAL: ALTURA UNIFICADA EN PREVIEWS DE REPOS
   Hace que alejandroDonGar y etsdam_alejandro tengan el mismo alto visual
   que su panel de estadísticas, igual que NetScanner y CentroPlus.
   ========================================================================== */

.repo-card-featured-net {
    align-items: stretch !important;
}

.repo-card-featured-net .repo-info,
.repo-card-featured-net .repo-wave-column,
.repo-card-featured-net .repo-stats-panel {
    height: 100% !important;
    min-height: 0 !important;
}

.repo-card-featured-net .repo-wave-column {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
}

.repo-card-featured-net .repo-stats-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.repo-card-featured-net .repo-wave-preview,
.repo-card-featured-net .repo-centroplus-connect-preview,
.repo-card-featured-net .repo-profile-readme-preview,
.repo-card-featured-net .repo-profile-overview-preview,
.repo-card-featured-net .repo-profile-compact-preview,
.repo-card-featured-net .repo-ets-terminal-preview,
.repo-card-featured-net .repo-zeeboard-preview {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
}

.repo-profile-compact-preview,
.repo-ets-terminal-preview {
    display: flex !important;
    flex-direction: column !important;
}

.repo-profile-compact-preview .repo-profile-topbar,
.repo-ets-terminal-header {
    flex: 0 0 auto !important;
}

.repo-profile-compact-body {
    flex: 1 1 auto !important;
    align-content: center !important;
}

.repo-ets-terminal-body {
    flex: 1 1 auto !important;
    align-items: center !important;
}

.repo-ets-tags {
    flex: 0 0 auto !important;
}

@media (max-width: 1450px) {
    .repo-card-featured-net .repo-wave-column,
    .repo-card-featured-net .repo-stats-panel {
        height: auto !important;
    }

    .repo-card-featured-net .repo-wave-preview,
    .repo-card-featured-net .repo-centroplus-connect-preview,
    .repo-card-featured-net .repo-profile-readme-preview,
    .repo-card-featured-net .repo-profile-overview-preview,
    .repo-card-featured-net .repo-profile-compact-preview,
    .repo-card-featured-net .repo-ets-terminal-preview,
.repo-card-featured-net .repo-zeeboard-preview {
        min-height: 220px !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .repo-card-featured-net .repo-wave-preview,
    .repo-card-featured-net .repo-centroplus-connect-preview,
    .repo-card-featured-net .repo-profile-readme-preview,
    .repo-card-featured-net .repo-profile-overview-preview,
    .repo-card-featured-net .repo-profile-compact-preview,
    .repo-card-featured-net .repo-ets-terminal-preview,
.repo-card-featured-net .repo-zeeboard-preview {
        min-height: 200px !important;
    }
}

/* ==========================================================================
   ZEEBOARD REPO CUSTOM PREVIEW V3
   Mockup claro inspirado en la app real: crema, tarjetas suaves, kanban,
   calendario compacto y stack real.
   ========================================================================== */

.repo-card-featured-zee {
    grid-template-columns:
        minmax(300px, 1fr)
        minmax(520px, 1.15fr)
        minmax(240px, 0.65fr) !important;
}

.repo-zeeboard-preview {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(125, 140, 170, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 151, 121, 0.10), transparent 26%),
        radial-gradient(circle at 14% 84%, rgba(125, 140, 170, 0.10), transparent 28%),
        linear-gradient(135deg, rgba(19, 25, 36, 0.78), rgba(18, 21, 28, 0.92));
    color: #17202c;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 30px rgba(0, 0, 0, 0.20);
    isolation: isolate;
}

[data-theme="light"] .repo-zeeboard-preview {
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 151, 121, 0.10), transparent 26%),
        linear-gradient(135deg, #f3eee5, #ede3d6);
    border-color: rgba(32, 37, 49, 0.10);
    box-shadow: 0 12px 26px rgba(32, 37, 49, 0.08);
}

.repo-zeeboard-preview,
.repo-zeeboard-preview * {
    box-sizing: border-box;
}

.repo-zeeboard-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.38;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.040) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, transparent, black 22%, black 82%, transparent);
}

.repo-zeeboard-preview > * {
    position: relative;
    z-index: 1;
}

.zeeboard-window {
    height: 100%;
    min-height: inherit;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0;
    padding: 10px;
}

.zeeboard-mini-sidebar {
    width: auto !important;
    height: auto !important;
    position: static !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px;
    padding: 12px 10px;
    overflow: hidden;
    border: 1px solid #e3d7c6 !important;
    border-right: 0 !important;
    border-radius: 18px 0 0 18px;
    background:
        linear-gradient(180deg, #fbf6ee, #f3eadf) !important;
    color: #17202c !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        6px 0 20px rgba(80, 61, 41, 0.06) !important;
}

.zeeboard-brand-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.zeeboard-brand-row strong,
.zeeboard-brand-row span {
    display: none;
}

.zeeboard-logo {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #172333;
    color: #f6efe5;
    font-size: 0.65rem;
    box-shadow: 0 7px 14px rgba(23, 35, 51, 0.18);
}

.zeeboard-mini-sidebar > span {
    width: 100%;
    overflow: hidden;
    padding: 6px 7px;
    border-radius: 9px;
    color: #5f5147;
    font-size: 0.52rem;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.zeeboard-mini-sidebar > span.active {
    background: #172333;
    color: #ffffff;
    box-shadow: 0 8px 14px rgba(23, 35, 51, 0.14);
}

.zeeboard-board-area {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 13px;
    overflow: hidden;
    border: 1px solid #e3d7c6;
    border-radius: 0 18px 18px 0;
    background:
        radial-gradient(circle at 78% 0%, rgba(235, 211, 182, 0.45), transparent 32%),
        linear-gradient(135deg, #fffaf2 0%, #f8f1e7 54%, #efe1cf 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        0 12px 24px rgba(80, 61, 41, 0.10);
}

.zeeboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.zeeboard-header div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.zeeboard-header small {
    color: #a17860;
    font-size: 0.48rem;
    font-weight: 1000;
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: uppercase;
}

.zeeboard-header strong {
    margin-top: 3px;
    color: #17202c;
    font-size: 0.94rem;
    line-height: 1;
}

.zeeboard-header span {
    color: #7c6f64;
    font-size: 0.52rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zeeboard-header button {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 0;
    border-radius: 12px;
    background: #172333;
    color: #ffffff;
    font-size: 0.60rem;
    font-weight: 1000;
    box-shadow: 0 8px 15px rgba(23, 35, 51, 0.18);
}

.zeeboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.zeeboard-metrics > div {
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid #e1d3bf;
    border-radius: 13px;
    background: rgba(255, 253, 248, 0.72);
    box-shadow: 0 6px 12px rgba(80, 61, 41, 0.045);
}

.zeeboard-metrics small {
    display: block;
    color: #a17860;
    font-size: 0.45rem;
    font-weight: 1000;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.zeeboard-metrics strong {
    display: block;
    margin-top: 3px;
    color: #17202c;
    font-size: 0.88rem;
    line-height: 1;
}

.zeeboard-preview-main {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px;
    gap: 8px;
}

.zeeboard-kanban {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.zeeboard-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
    border: 1px solid #e4d6c3;
    border-radius: 15px;
    background: rgba(255, 250, 242, 0.62);
}

.zeeboard-column-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5f5147;
    font-size: 0.54rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.zeeboard-column-title .dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.75);
}

.zeeboard-column-title .sketch { background: #22c55e; }
.zeeboard-column-title .lineart { background: #f59e0b; }

.zeeboard-commission-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px;
    overflow: hidden;
    border: 1px solid #e5d6c3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 7px 16px rgba(80, 61, 41, 0.07);
    animation: zeeCardFloat 5s ease-in-out infinite;
}

.zeeboard-commission-card.focused {
    animation-delay: -1.6s;
}

.zeeboard-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.zeeboard-card-top strong {
    min-width: 0;
    overflow: hidden;
    color: #17202c;
    font-size: 0.64rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.zeeboard-commission-card p {
    color: #7c6f64;
    font-size: 0.49rem;
    font-weight: 800;
}

.payment {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.42rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.payment.paid { background: #22c55e; }
.payment.unpaid { background: #ef4444; }

.zeeboard-thumb-lines {
    flex: 1 1 auto;
    min-height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border: 1px dashed #ddcbb5;
    border-radius: 11px;
    background:
        linear-gradient(115deg, transparent 32%, rgba(15, 23, 42, 0.07) 33%, transparent 46%),
        rgba(248, 250, 252, 0.66);
}

.zeeboard-thumb-lines span {
    height: 5px;
    border-radius: 999px;
    background: rgba(23, 32, 44, 0.10);
}

.zeeboard-thumb-lines span:nth-child(2) { width: 76%; }
.zeeboard-thumb-lines span:nth-child(3) { width: 54%; }

.zeeboard-progress-row {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 7px;
}

.zeeboard-progress-row span {
    color: #7c6f64;
    font-size: 0.52rem;
    font-weight: 1000;
}

.zeeboard-progress-row div {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfce;
}

.zeeboard-progress-row em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #172333, #7c3aed, #f59e0b);
    animation: zeeProgressPulse 3.5s ease-in-out infinite;
}

.zeeboard-calendar-card {
    min-width: 0;
    width: auto !important;
    height: auto !important;
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    gap: 7px;
    padding: 10px;
    border: 1px solid #e4d6c3 !important;
    border-radius: 15px;
    background: rgba(255, 253, 248, 0.66) !important;
    color: #17202c !important;
    box-shadow: 0 7px 16px rgba(80, 61, 41, 0.06) !important;
}

.zeeboard-calendar-card small {
    color: #a17860;
    font-size: 0.48rem;
    font-weight: 1000;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.zeeboard-calendar-card strong {
    color: #17202c;
    font-size: 0.64rem;
    line-height: 1;
}

.zeeboard-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.zeeboard-days span {
    min-width: 0;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #7c6f64;
    font-size: 0.50rem;
    font-weight: 900;
}

.zeeboard-days .today {
    background: #172333;
    color: #ffffff;
}

.zeeboard-days .due {
    background: #fff0b8;
    color: #8a5a10;
}

.zeeboard-deadline {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff0b8;
    color: #8a5a10;
    font-size: 0.48rem;
    font-weight: 1000;
    text-align: center;
}

.zeeboard-stack {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.zeeboard-stack span {
    padding: 4px 8px;
    border: 1px solid #e4d6c3;
    border-radius: 999px;
    background: rgba(255,255,255,0.70);
    color: #8a6a58;
    font-size: 0.47rem;
    font-weight: 1000;
}

@keyframes zeeCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes zeeProgressPulse {
    0%, 100% { filter: brightness(0.96); }
    50% { filter: brightness(1.15); }
}

@media (max-width: 1450px) {
    .repo-card-featured-zee {
        grid-template-columns:
            minmax(280px, 1fr)
            minmax(420px, 1fr) !important;
    }

    .repo-card-featured-zee .repo-wave-column {
        grid-column: 1 / -1;
        order: 2;
    }

    .repo-card-featured-zee .repo-stats-panel {
        order: 3;
    }

    .repo-card-featured-zee .repo-info {
        order: 1;
    }

    .repo-card-featured-zee .repo-zeeboard-preview {
        min-height: 220px !important;
        height: auto !important;
    }
}

@media (max-width: 1200px) {
    .repo-card-featured-zee {
        grid-template-columns: 1fr !important;
    }

    .repo-card-featured-zee .repo-wave-column {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .zeeboard-window {
        grid-template-columns: 1fr;
    }

    .zeeboard-mini-sidebar {
        display: none !important;
    }

    .zeeboard-preview-main {
        grid-template-columns: 1fr;
    }

    .zeeboard-calendar-card {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zeeboard-commission-card,
    .zeeboard-progress-row em {
        animation: none !important;
    }
}

/* ==========================================================================
   ZEEBOARD SUBTLE MOTION PATCH
   Animaciones discretas para que la preview se sienta viva sin cambiar datos,
   tarjetas ni layout.
   ========================================================================== */

.repo-zeeboard-preview .zeeboard-board-area {
    position: relative;
}

.repo-zeeboard-preview .zeeboard-board-area::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.26;
    background:
        radial-gradient(circle at 82% 10%, rgba(255,255,255,0.42), transparent 18%),
        linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.16) 45%, transparent 62%);
    transform: translateX(-18%);
    animation: zeeBoardAmbientSheen 11s ease-in-out infinite;
}

.zeeboard-header button {
    position: relative;
    overflow: hidden;
    animation: zeeNewButtonBreath 6.5s ease-in-out infinite;
}

.zeeboard-header button::after {
    content: "";
    position: absolute;
    inset: -40% -80%;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.30) 50%, transparent 58%);
    transform: translateX(-65%);
    animation: zeeButtonSheen 8s ease-in-out infinite;
}

.zeeboard-metrics > div {
    animation: zeeMetricSoftEnter 0.9s ease both;
}

.zeeboard-metrics > div:nth-child(2) {
    animation-delay: 0.08s;
}

.zeeboard-metrics > div:nth-child(3) {
    animation-delay: 0.16s;
}

.zeeboard-commission-card {
    animation: zeeCardSoftFloat 8s ease-in-out infinite !important;
}

.zeeboard-commission-card.focused {
    animation-delay: -2.4s !important;
}

.zeeboard-commission-card:hover {
    transform: translateY(-2px);
}

.payment {
    animation: zeePaymentBadgePulse 6.5s ease-in-out infinite;
}

.payment.paid {
    animation-delay: -2s;
}

.payment.unpaid {
    animation-delay: -4s;
}

.zeeboard-thumb-lines {
    position: relative;
    overflow: hidden;
}

.zeeboard-thumb-lines::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 12%, rgba(255,255,255,0.58) 42%, transparent 70%);
    transform: translateX(-120%);
    animation: zeeSketchShimmer 7s ease-in-out infinite;
}

.zeeboard-progress-row div {
    position: relative;
    overflow: hidden;
}

.zeeboard-progress-row em {
    position: relative;
    overflow: hidden;
    animation: zeeProgressSoftGlow 5.8s ease-in-out infinite !important;
}

.zeeboard-progress-row em::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    left: -38px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: zeeProgressSheen 6.2s ease-in-out infinite;
}

.zeeboard-column-title .dot {
    animation: zeeColumnDotPulse 5.5s ease-in-out infinite;
}

.zeeboard-column:nth-child(2) .zeeboard-column-title .dot {
    animation-delay: -2.2s;
}

.zeeboard-days .today {
    animation: zeeCalendarTodayPulse 7s ease-in-out infinite;
}

.zeeboard-stack span {
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.zeeboard-stack span:hover {
    transform: translateY(-1px);
    border-color: rgba(161, 120, 96, 0.34);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 12px rgba(80, 61, 41, 0.08);
}

@keyframes zeeBoardAmbientSheen {
    0%, 100% {
        transform: translateX(-18%);
        opacity: 0.18;
    }
    48% {
        transform: translateX(8%);
        opacity: 0.30;
    }
}

@keyframes zeeNewButtonBreath {
    0%, 100% {
        box-shadow: 0 8px 15px rgba(23, 35, 51, 0.18);
    }
    50% {
        box-shadow: 0 10px 20px rgba(23, 35, 51, 0.24), 0 0 18px rgba(161, 120, 96, 0.12);
    }
}

@keyframes zeeButtonSheen {
    0%, 58%, 100% {
        transform: translateX(-65%);
        opacity: 0;
    }
    68% {
        opacity: 1;
    }
    82% {
        transform: translateX(65%);
        opacity: 0;
    }
}

@keyframes zeeMetricSoftEnter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zeeCardSoftFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 7px 16px rgba(80, 61, 41, 0.07);
    }
    50% {
        transform: translateY(-1.5px);
        box-shadow: 0 9px 18px rgba(80, 61, 41, 0.09);
    }
}

@keyframes zeePaymentBadgePulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.035);
        filter: brightness(1.06);
    }
}

@keyframes zeeSketchShimmer {
    0%, 64%, 100% {
        transform: translateX(-120%);
        opacity: 0;
    }
    74% {
        opacity: 0.85;
    }
    92% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes zeeProgressSoftGlow {
    0%, 100% {
        filter: brightness(0.98) saturate(1);
    }
    50% {
        filter: brightness(1.10) saturate(1.08);
    }
}

@keyframes zeeProgressSheen {
    0%, 48%, 100% {
        left: -38px;
        opacity: 0;
    }
    58% {
        opacity: 0.75;
    }
    78% {
        left: calc(100% + 38px);
        opacity: 0;
    }
}

@keyframes zeeColumnDotPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255,255,255,0.75);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(255,255,255,0.75), 0 0 0 7px rgba(34, 197, 94, 0.09);
    }
}

@keyframes zeeCalendarTodayPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: none;
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 4px 10px rgba(23, 35, 51, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .repo-zeeboard-preview .zeeboard-board-area::after,
    .zeeboard-header button,
    .zeeboard-header button::after,
    .zeeboard-metrics > div,
    .zeeboard-commission-card,
    .payment,
    .zeeboard-thumb-lines::after,
    .zeeboard-progress-row em,
    .zeeboard-progress-row em::after,
    .zeeboard-column-title .dot,
    .zeeboard-days .today {
        animation: none !important;
    }
}
