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

:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --primary: #7C3AED;
    --primary-glow: rgba(124, 58, 237, 0.3);
    --secondary: #10B981;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

canvas {
    max-width: 100% !important;
}

h1,
h2,
h3 {
    font-family: var(--font-headings);
    font-weight: 800;
}

/* Glassmorphism utility */
.glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(28px);
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Hero */
#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger Menu */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

#menu-toggle:checked~header .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle:checked~header .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked~header .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 900;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#menu-toggle:checked~.mobile-overlay {
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75vw;
    max-width: 300px;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--surface-border);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6rem 2rem 2rem;
    display: none;
    flex-direction: column;
    gap: 0;
}

#menu-toggle:checked~.mobile-drawer {
    transform: translateX(0);
}

.mobile-drawer a {
    display: block;
    font-family: var(--font-headings);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dim);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-border);
    transition: color 0.2s ease;
}

.mobile-drawer a:hover {
    color: var(--text-main);
}

.mobile-drawer .drawer-lang {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.mobile-drawer .drawer-lang a {
    font-size: 0.85rem;
    font-family: var(--font-body);
    padding: 0.3rem 0;
    border: none;
}

.mobile-drawer .drawer-lang .active {
    color: var(--primary);
}

header nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

header nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
}

header nav a:hover {
    color: white;
}

header nav a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--surface-border);
}

.lang-switcher span.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.lang-switcher a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.lang-switcher a:hover {
    color: white;
}

.lang-switcher .separator {
    color: var(--surface-border);
    font-weight: 400;
}

/* Tabs System */
.tabs-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 4rem;
}

.tabs-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    padding: 6px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    position: relative;
    z-index: 2;
    padding: 12px 30px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: var(--primary);
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    z-index: 1;
}

/* Category Labels */
.category-label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    z-index: 10;
}

/* Filter Chips */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    padding: 0 5%;
}

.filter-chip {
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}




/* Projects Grid */
.projects {
    padding: 100px 5%;
}

/* Bio Section */
.bio-section {
    padding: 100px 5%;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .bio-section {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    .bio-section {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    header nav {
        display: none;
    }

    header .lang-switcher {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-overlay,
    .mobile-drawer {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

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

    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 360px) {
    header nav {
        display: none;
    }
}

.bio-content {
    max-width: 1400px;
    margin: 0;
}

.bio-content p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.bio-content strong {
    color: white;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: left;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: #111;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.9));
    opacity: 0.8;
}

.project-card .content {
    padding: 2rem;
}

.project-card .tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.9);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.project-card.hidden,
.outcome-card.hidden {
    display: none !important;
}

/* Skills */
.skills-container {
    padding: 100px 5%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skill-category.glass {
    padding: 2rem;
    border-radius: 16px;
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.3rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 0.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.skill-bar {
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Certifications */
.certs-section {
    padding: 100px 5%;
}

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

.cert-card {
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.cert-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
    border-color: var(--secondary);
}

.cert-card h3 {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: white;
}

.cert-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* About page */
.about-page main {
    padding-top: 96px;
}

.about-hero {
    min-height: 64vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 5rem;
    background:
        radial-gradient(ellipse at 20% 25%, rgba(124, 58, 237, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
}

.about-hero-inner {
    width: min(100%, 1080px);
}

.about-kicker {
    color: var(--secondary);
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.about-hero h1 {
    max-width: 980px;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.about-hero p {
    max-width: 720px;
    margin-top: 1.5rem;
    color: var(--text-dim);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.about-page .bio-section,
.about-page .skills-container,
.about-page .certs-section,
.education-logos {
    padding: 100px 5%;
}

.about-page .bio-section {
    align-items: flex-start;
}

.about-page .section-title {
    max-width: 1400px;
}

.education-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1000px;
}

.education-logo-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .about-page main {
        padding-top: 76px;
    }

    .about-hero {
        min-height: auto;
        padding: 6rem 5% 4rem;
    }

    .about-page .bio-section,
    .about-page .skills-container,
    .about-page .certs-section,
    .education-logos {
        padding: 72px 5%;
    }
}

/* Stats */
.stats-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    padding: 2rem 0 3rem;
    width: 100%;
    max-width: 1400px;
}

.stat-item {
    padding: 1rem 0;
    text-align: left;
    border: none;
    background: none;
    border-radius: 0;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1;
    letter-spacing: -0.03em;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin-top: 0.8rem;
    font-weight: 400;
}

/* Footer */
.site-footer {
    padding: clamp(3rem, 6vw, 5rem) 5% 2rem;
    background:
        radial-gradient(ellipse at 18% 0%, rgba(124, 58, 237, 0.22) 0%, transparent 42%),
        radial-gradient(ellipse at 88% 35%, rgba(16, 185, 129, 0.12) 0%, transparent 36%),
        #030303;
    border-top: 1px solid var(--surface-border);
    text-align: left;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-footer-main {
    max-width: 820px;
}

.footer-eyebrow {
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer h2 {
    max-width: 620px;
    font-size: clamp(1.8rem, 3.6vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0;
    color: #fff;
}

.site-footer-main p:not(.footer-eyebrow) {
    max-width: 560px;
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.65;
}

.footer-actions {
    display: flex;
    flex-direction: row;
    gap: 1.35rem;
    align-items: center;
    min-width: auto;
}

.footer-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-actions a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.footer-actions a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.72);
}

.socials {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    margin: 3rem 0;
}

.socials a {
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.socials a:hover {
    opacity: 1;
    color: var(--primary);
}

@media (max-width: 768px) {
    .site-footer-inner,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-actions a {
        width: auto;
    }
}

.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-height: 52px;
    padding: 0;
    border-radius: 999px;
    background: #25D366;
    color: #03140a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.28);
    font-family: var(--font-headings);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    flex: 0 0 auto;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    background: #2BE572;
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.36);
}

.whatsapp-float:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* ======================== 
   OUTCOME CARDS (ENTREGABLES)
   ======================== */

.outcome-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.outcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.oc-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.oc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.outcome-card:hover .oc-image {
    transform: scale(1.05);
}

.oc-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oc-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.oc-project-name {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oc-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-family: var(--font-headings);
    line-height: 1.2;
}

.oc-summary {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.oc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.oc-tags span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.oc-highlight {
    background: rgba(124, 58, 237, 0.05);
    border-left: 2px solid var(--primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.oc-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
}

.oc-quote::before {
    content: '"';
    color: var(--primary);
    font-size: 1.2em;
    font-family: serif;
}

.oc-quote::after {
    content: '"';
    color: var(--primary);
    font-size: 1.2em;
    font-family: serif;
}

.oc-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.oc-metric-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-headings);
}

.oc-metric-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.oc-footer {
    margin-top: auto;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.2rem;
}

.oc-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: transparent;
    color: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.outcome-card:hover .oc-button {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========================
   COMMENTS SECTION
   ======================== */

.comments-section {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    position: relative;
}

.comments-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12%;
    height: 100%;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.comments-section .section-title {
    text-align: left;
    padding-left: 5%;
    padding-right: 5%;
}

.comments-track-container {
    width: 100%;
    padding: 0 5%;
    overflow: hidden;
}

.comments-track {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comments-track::-webkit-scrollbar {
    display: none;
}

.comment-card {
    flex: 0 0 450px;
    width: 450px;
    height: 200px;
    scroll-snap-align: start;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.comment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--primary-glow);
}

.comment-author {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: white;
    margin: 0;
}

.comment-role {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.comment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.25rem 0;
}

.comment-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.comment-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.8);
}

.comment-read-more {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
}

/* ========================
   COMMENT MODAL (Desktop)
   ======================== */

.comment-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.comment-modal-overlay.active {
    display: block;
}

.comment-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: min(560px, 90vw);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    padding: 2rem;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.comment-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.cm-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.cm-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.cm-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cm-content h4 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: white;
    margin: 0;
}

.cm-content p#cm-author-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.cm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.25rem 0;
}

.cm-text {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}

/* ========================
   BOTTOM SHEET
   ======================== */

.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .js-enabled .reveal,
    .js-enabled .reveal.active {
        opacity: 1;
        transform: none;
    }

    .skill-progress {
        transform: none !important;
    }
}

.bs-header {
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--surface-border);
}

.bs-handle {
    width: 40px;
    height: 4px;
    background: var(--surface-border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.bs-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bs-content {
    padding: 2rem 5%;
    overflow-y: auto;
}

.bs-author-info {
    margin-bottom: 1.5rem;
}

#bs-author-name {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.2rem;
}

#bs-author-role {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.bs-tags {
    margin-bottom: 1.5rem;
}

#bs-impact-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--primary);
    border-radius: 100px;
    color: white;
    display: inline-block;
}

.bs-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    white-space: pre-wrap;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .comment-card {
        flex: 0 0 85%;
        min-width: auto;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
        min-height: 52px;
    }
}

/* ======================== 
   HOME RESTRUCTURE CUSTOM STYLES
   ======================== */

header nav a.active {
    color: white;
}

header nav a.active::after {
    width: 100%;
}

.mobile-drawer a.active {
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

/* Hero Instagram Avatar */
.instagram-avatar {
    margin-bottom: 2rem;
    display: inline-flex;
    position: relative;
    z-index: 10;
}

.avatar-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 4px;
    box-shadow: 0 0 30px rgba(220, 39, 67, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.avatar-ring:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 45px rgba(220, 39, 67, 0.7);
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

/* Section Trust: Horizontal Marquee */
.section-trust {
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.trust-title {
    text-align: center;
    padding: 0 5%;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-family: var(--font-headings);
    font-weight: 700;
}

.companies-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

/* Logo image items in marquee */
.marquee-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    height: 70px;
    padding: 1rem 1.4rem;
    flex-shrink: 0;
    opacity: 0.72;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.marquee-logo-item img {
    max-height: 38px;
    width: auto;
    max-width: 132px;
    object-fit: contain;
    display: block;
}

.marquee-logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.085);
}

/* Keep old text items if used elsewhere */
.marquee-item {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dim);
    opacity: 0.3;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.marquee-item:hover {
    opacity: 0.9;
    color: var(--primary);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Bio / Sobre mí Columns */
.bio-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 1400px;
    width: 100%;
}

.bio-section .section-title {
    width: 100%;
    max-width: 1400px;
}

.bio-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bio-left p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.text-highlight {
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.36), rgba(16, 185, 129, 0.2));
    border-radius: 8px;
    padding: 0.08em 0.24em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.bio-right {
    display: flex;
    flex-direction: column;
}

.bio-right h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 0.5rem;
}

.personal-projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.personal-project-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.personal-project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Icon box on the left */
.pp-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease;
}

.personal-project-card:hover .pp-icon {
    transform: scale(1.08) rotate(-3deg);
}

.pp-icon.pp-icon--purple {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.pp-icon.pp-icon--teal {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Text content on the right */
.pp-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.pp-content h4 {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .bio-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ======================== 
   HEADER RE-ALIGNMENT AND CTA STYLES
   ======================== */

.header-left {
    display: flex;
    align-items: center;
    gap: 3.5rem; /* space between Logo and Nav list */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.contact-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    background: white;
    color: var(--bg-color);
}

@media (max-width: 768px) {
    .contact-nav-btn {
        display: none;
    }
    
    .header-left nav {
        display: none;
    }
}

/* ======================== 
   HERO TWO-COLUMN LEFT-ALIGNED STYLES & ANIMATIONS
   ======================== */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 5% 60px;
    height: auto;
}

.hero-columns-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    gap: 4rem;
}

.hero-left {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-left h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-main);
    opacity: 0.8;
    max-width: 600px;
    margin-bottom: 1.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
}

.hero-experience {
    font-size: 1.1rem;
    color: var(--secondary);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    z-index: 10;
}

.hero-ctas .secondary-cta {
    background: transparent;
    border-color: var(--surface-border);
}

.hero-right {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right-animation {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1/1;
    position: relative;
}

.architect-svg {
    width: 100%;
    height: 100%;
}

/* Lime Green Software/Design Architect Diagram Keyframes & Animations */
.central-square {
    animation: squarePulse 4s ease-in-out infinite;
    transform-origin: 250px 250px;
}

@keyframes squarePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 15px rgba(163, 230, 53, 0.4)) drop-shadow(0 8px 16px rgba(163, 230, 53, 0.2)); 
    }
    50% { 
        transform: scale(1.04) rotate(1deg); 
        filter: drop-shadow(0 0 25px rgba(163, 230, 53, 0.7)) drop-shadow(0 12px 24px rgba(163, 230, 53, 0.4)); 
    }
}

.connecting-lines line {
    stroke-dasharray: 8 4;
    animation: dashLineFlow 2s linear infinite;
}

@keyframes dashLineFlow {
    to { stroke-dashoffset: -12; }
}

/* Staggered float animations for outer nodes */
.float-node-1 {
    animation: floatElement 4s ease-in-out infinite;
    transform-origin: 250px 250px;
}

.float-node-2 {
    animation: floatElement 4.5s ease-in-out infinite 0.5s;
    transform-origin: 250px 250px;
}

.float-node-3 {
    animation: floatElement 4s ease-in-out infinite 1s;
    transform-origin: 250px 250px;
}

.float-node-4 {
    animation: floatElement 5s ease-in-out infinite 0.25s;
    transform-origin: 250px 250px;
}

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

/* Desktop Only Responsive Rule for Animation Column */
@media (max-width: 992px) {
    .hero-columns-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .hero-left {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .hero-right {
        display: none; /* Hidden on tablet and mobile */
    }
    
    .hero {
        padding-top: 140px;
    }
}
