.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--text);
    color: var(--surface-strong);
    font-weight: 750;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--accent-bright);
    outline-offset: 3px;
}

/* =========================================================
    VARIABLES
========================================================= */

:root {
    --bg: #f0eee9;
    --bg-secondary: #e8e5df;
    --surface: #f8f7f3;
    --surface-strong: #ffffff;
    --surface-soft: #ebe8e2;

    --text: #151922;
    --text-secondary: #4c5563;
    --text-muted: #727b87;

    --border: rgba(24, 32, 44, 0.12);
    --border-strong: rgba(24, 32, 44, 0.2);

    /* Azul intenso */
    --highlight: #f59e0b;
    --accent: #174ea6;
    --accent-strong: #0d3b82;
    --accent-bright: #2563eb;
    --accent-light: #dbeafe;
    --accent-soft: rgba(37, 99, 235, 0.1);

    --success: #16803c;
    --success-bg: #dff5e7;

    --warning: #b45309;
    --warning-bg: #fff0d5;

    --hero-gradient:
        radial-gradient(circle at 15% 10%,
            rgba(37, 99, 235, 0.08),
            transparent 28%),
        radial-gradient(circle at 85% 25%,
            rgba(251, 191, 36, 0.08),
            transparent 24%),
        linear-gradient(135deg,
            #f1efea 0%,
            #e9e7e2 55%,
            #eee9e2 100%);

    --section-gradient:
        linear-gradient(180deg,
            #e8e6e1 0%,
            #eeece7 48%,
            #e8e5df 100%);

    --shadow-sm:
        0 4px 16px rgba(25, 32, 44, 0.07);

    --shadow:
        0 14px 40px rgba(25, 32, 44, 0.1);

    --shadow-hover:
        0 20px 50px rgba(25, 32, 44, 0.16);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;

    --container: 1120px;
    --header-height: 74px;

    color-scheme: light;
}

html.dark {
    --bg: #121314;
    --bg-secondary: #181a1c;
    --surface: #1b1d20;
    --surface-strong: #202327;
    --surface-soft: #25282c;

    --text: #f3f5f7;
    --text-secondary: #b7bec8;
    --text-muted: #89919d;

    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    --accent: #4f8df7;
    --accent-strong: #2865c7;
    --accent-bright: #60a5fa;
    --accent-light: #172f55;
    --accent-soft: rgba(79, 141, 247, 0.12);

    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.1);

    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.1);

    --hero-gradient:
        radial-gradient(circle at 12% 15%,
            rgba(37, 99, 235, 0.13),
            transparent 28%),
        radial-gradient(circle at 88% 20%,
            rgba(251, 191, 36, 0.06),
            transparent 22%),
        linear-gradient(135deg,
            #121314 0%,
            #17191b 55%,
            #141617 100%);

    --section-gradient:
        linear-gradient(180deg,
            #181a1c 0%,
            #141617 50%,
            #181a1c 100%);

    --shadow-sm:
        0 4px 18px rgba(0, 0, 0, 0.2);

    --shadow:
        0 18px 45px rgba(0, 0, 0, 0.25);

    --shadow-hover:
        0 24px 55px rgba(0, 0, 0, 0.35);

    color-scheme: dark;
}

/* =========================================================
    RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(circle at 50% -10%,
            var(--accent-soft),
            transparent 32%),
        var(--bg);

    color: var(--text);
    line-height: 1.6;
    transition:
        background 0.35s ease,
        color 0.35s ease;
}

body::selection {
    background: var(--accent);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* =========================================================
    HEADER
========================================================= */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;

    height: var(--header-height);

    background: color-mix(in srgb,
            var(--bg) 88%,
            transparent);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--border);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: grid;
    place-items: center;
    overflow: hidden;

    border-radius: 11px;

    color: white;

    /*background: linear-gradient(135deg, #0d3b82, #2563eb);*/

    box-shadow: 0 7px 20px rgba(37, 99, 235, 0.28);
}

.logo-mark img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    position: relative;

    padding: 8px 12px;

    color: var(--text-secondary);

    font-size: 0.9rem;
    font-weight: 600;

    border-radius: 10px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--accent-soft);
}

.nav-links a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 3px;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(90deg,
            var(--accent-strong),
            var(--accent-bright));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-button,
.language-button {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.icon-button:hover,
.language-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.language-button {
    width: 43px;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.theme-icon {
    width: 20px;
    height: 20px;
}

#moonIcon {
    display: none;
}

html.dark #sunIcon {
    display: none;
}

html.dark #moonIcon {
    display: block;
}

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

.hero {
    min-height: auto;

    display: flex;
    align-items: center;

    padding: 204px 0 76px;

    background: var(--hero-gradient);

    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    display: block;
    mix-blend-mode: normal;
}

.hero::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -180px;
    top: 18%;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(37, 99, 235, 0.11),
            transparent 70%);

    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    background-image:
        radial-gradient(circle at 7% 20%, rgba(37, 99, 235, 0.95) 0 3px, transparent 4px),
        radial-gradient(circle at 15% 70%, rgba(34, 211, 238, 0.85) 0 2.5px, transparent 4px),
        radial-gradient(circle at 26% 34%, rgba(37, 99, 235, 0.8) 0 2.5px, transparent 4px),
        radial-gradient(circle at 39% 76%, rgba(34, 211, 238, 0.8) 0 3px, transparent 4px),
        radial-gradient(circle at 51% 18%, rgba(37, 99, 235, 0.9) 0 2.5px, transparent 4px),
        radial-gradient(circle at 64% 62%, rgba(34, 211, 238, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 76% 27%, rgba(37, 99, 235, 0.9) 0 3px, transparent 4px),
        radial-gradient(circle at 90% 74%, rgba(34, 211, 238, 0.85) 0 2.5px, transparent 4px),
        radial-gradient(circle at 84% 88%, rgba(37, 99, 235, 0.7) 0 2px, transparent 4px),
        radial-gradient(circle at 20% 14%, rgba(34, 211, 238, 0.65) 0 2px, transparent 4px);
    animation: heroParticleDrift 5s ease-in-out infinite alternate;
}

@keyframes heroParticleDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(0, -8px, 0) scale(1.015);
    }
}

.hero-grid {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    padding-top: 0;
    text-align: center;
}

.availability {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 7px 12px;

    margin: 0 auto 25px;

    color: var(--success);

    background: var(--success-bg);

    border: 1px solid color-mix(in srgb,
            var(--success) 22%,
            transparent);

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 700;
}

.availability-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.12);
}

.hero h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    font-size:
        clamp(1.9rem, 4vw, 3rem);

    line-height: 0.98;
    letter-spacing: -0.065em;

    font-weight: 850;

    margin-bottom: 18px;
}

.hero h1 span {
    display: inline;
}

.hero-greeting {
    display: inline;
    color: var(--text);
}

.hero-name {
    display: inline;
    color: var(--accent);
}

html.dark .hero-role {
    color: var(--accent-bright);
}

.hero-description {
    max-width: 650px;

    color: var(--text-secondary);

    font-size:
        clamp(1.05rem, 2vw, 1.25rem);

    line-height: 1.75;

    margin: 0 auto 20px;
}

.hero-highlight {
    color: var(--highlight);
    font-weight: 700;
}

.hero-description strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 46px;

    padding: 0 18px;

    border-radius: 12px;

    font-size: 0.9rem;
    font-weight: 750;

    border: 1px solid transparent;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;

    background:
        linear-gradient(135deg,
            #0d3b82,
            #2563eb);

    box-shadow:
        0 10px 25px rgba(23, 78, 166, 0.25);
}

.button-primary:hover {
    box-shadow:
        0 15px 32px rgba(23, 78, 166, 0.34);
}

.button-secondary {
    background: var(--surface);
    color: var(--text);

    border-color: var(--border-strong);
}

.button-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.button svg {
    width: 17px;
    height: 17px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(100%, 430px);

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--surface) 94%, transparent),
            color-mix(in srgb, var(--surface-soft) 92%, transparent));

    box-shadow: var(--shadow);

    transform: rotate(1deg);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.hero-card-dots {
    display: flex;
    gap: 6px;
}

.hero-card-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}

.hero-card-dots span:nth-child(1) {
    background: #fb7185;
}

.hero-card-dots span:nth-child(2) {
    background: #fbbf24;
}

.hero-card-dots span:nth-child(3) {
    background: #34d399;
}

.hero-card-label {
    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-illustration {
    width: 100%;
    max-width: 360px;

    margin: 10px auto 0;

    border-radius: 16px;

    object-fit: contain;

    filter:
        drop-shadow(0 18px 25px rgba(0, 0, 0, 0.1));
}

/* =========================================================
    SECTIONS
========================================================= */

section {
    position: relative;
}

.section {
    padding: 56px 0;
}

.section:nth-of-type(even) {
    background: var(--section-gradient);
}

.section-heading {
    max-width: 760px;

    margin-bottom: 55px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--text);

    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-transform: none;

    margin-bottom: 16px;
}

.section-kicker-icon {
    width: 34px;
    height: 34px;

    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;

    color: var(--accent);
}

.section-kicker-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.section-description {
    color: var(--text-secondary);

    max-width: 670px;

    font-size: 1rem;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;

    align-items: start;
}

.about-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}

.about-card h3 {
    margin-bottom: 12px;

    font-size: 1.2rem;
}

.about-card p {
    color: var(--text-secondary);

    margin-bottom: 14px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-highlight {
    padding: 25px;

    border-radius: var(--radius);

    background:
        linear-gradient(145deg,
            var(--accent-soft),
            transparent);

    border: 1px solid color-mix(in srgb,
            var(--accent) 18%,
            transparent);
}

.about-highlight strong {
    color: var(--accent);
}

/* =========================================================
    TECHNOLOGIES
========================================================= */

.tech-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.tech-card {
    padding: 23px;

    border-radius: var(--radius);

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-5px);

    border-color:
        color-mix(in srgb,
            var(--accent) 35%,
            var(--border));

    box-shadow: var(--shadow);
}

.tech-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    margin-bottom: 17px;

    border-radius: 12px;

    color: var(--accent);

    background:
        linear-gradient(145deg,
            var(--accent-soft),
            color-mix(in srgb,
                var(--accent-light) 65%,
                transparent));

    border: 1px solid color-mix(in srgb,
            var(--accent) 15%,
            transparent);
}

.tech-icon svg {
    width: 21px;
    height: 21px;
}

.tech-card h3 {
    margin-bottom: 12px;

    font-size: 1rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.tech-pill {
    list-style: none;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 650;
    border: 1px solid var(--border);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tech-pill:hover {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    background: var(--accent-soft);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.10);
}

/* =========================================================
    EXPERIENCE
========================================================= */

.timeline {
    position: relative;

    max-width: 900px;

    margin: 0 auto;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 8px;
    top: 8px;
    bottom: 8px;

    width: 2px;

    background:
        linear-gradient(180deg,
            var(--accent),
            color-mix(in srgb,
                var(--accent) 20%,
                transparent));
}

.timeline-item {
    position: relative;

    padding-left: 43px;

    margin-bottom: 45px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;

    left: 0;
    top: 5px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--bg);

    border: 4px solid var(--accent);

    box-shadow:
        0 0 0 5px var(--accent-soft);
}

.timeline-item:first-child .timeline-dot {
    animation: timelinePulse 1.45s ease-in-out infinite;
}

.timeline-item:first-child .timeline-dot::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--accent-bright);
    transform: scale(0.25);
    opacity: 0.95;
    box-shadow: 0 0 10px 3px var(--accent-bright);
    animation: timelineCore 1.45s ease-in-out infinite;
}

@keyframes timelinePulse {

    0%,
    100% {
        box-shadow:
            0 0 0 5px var(--accent-soft),
            0 0 0 0 rgba(37, 99, 235, 0);
    }

    45% {
        box-shadow:
            0 0 0 5px var(--accent-soft),
            0 0 0 9px rgba(37, 99, 235, 0.12),
            0 0 20px 5px rgba(37, 99, 235, 0.2);
    }

    70% {
        box-shadow:
            0 0 0 5px var(--accent-soft),
            0 0 0 17px rgba(37, 99, 235, 0),
            0 0 26px 7px rgba(37, 99, 235, 0);
    }
}

@keyframes timelineCore {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.25);
        box-shadow: 0 0 5px 1px var(--accent-bright);
    }

    35% {
        opacity: 1;
        transform: scale(0.9);
        box-shadow: 0 0 12px 4px var(--accent-bright);
    }

    70% {
        opacity: 0.35;
        transform: scale(0.45);
        box-shadow: 0 0 7px 2px var(--accent-bright);
    }
}

@media (prefers-reduced-motion: reduce) {

    .timeline-item:first-child .timeline-dot,
    .timeline-item:first-child .timeline-dot::after {
        animation: none;
    }
}

.timeline-date {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--accent);

    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-content {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-bottom: 3px;

    font-size: 1.18rem;
}

.timeline-company {
    /*color: var(--text-muted);*/
    font-size: 0.9rem;
    font-weight: 650;

    margin-bottom: 13px;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* =========================================================
    PROJECT FILTERS
========================================================= */

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 32px;
}

.filter-button {
    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--text-secondary);

    cursor: pointer;

    font-size: 0.78rem;
    font-weight: 750;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.filter-button:hover {
    transform: translateY(-1px);

    color: var(--accent);

    border-color: var(--accent);

    background: var(--accent-soft);
}

.filter-button.active {
    color: white;

    background:
        linear-gradient(135deg,
            #0d3b82,
            #2563eb);

    border-color: transparent;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.2);
}

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

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    display: flex;
    flex-direction: column;

    min-height: 0;

    overflow: hidden;

    border-radius: var(--radius-lg);

    border: 1px solid var(--border);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    border-color:
        color-mix(in srgb,
            var(--accent) 30%,
            var(--border));

    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;

    min-height: 270px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            #d9dee7,
            #eef0f2);
}

html.dark .project-image {
    background:
        linear-gradient(145deg,
            #22272e,
            #151719);
}

.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(135deg,
            rgba(37, 99, 235, 0.13),
            transparent 50%);

    pointer-events: none;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;

    min-height: 270px;

    display: grid;
    place-items: center;

    padding: 35px;

    text-align: center;
}

.project-preview {
    width: min(100%, 360px);

    border-radius: 13px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.17);

    overflow: hidden;
}

.preview-browser {
    background: #111827;

    padding: 9px 11px;

    display: flex;
    gap: 5px;
}

.preview-browser span {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}

.preview-browser span:nth-child(1) {
    background: #fb7185;
}

.preview-browser span:nth-child(2) {
    background: #fbbf24;
}

.preview-browser span:nth-child(3) {
    background: #34d399;
}

.preview-content {
    min-height: 175px;

    padding: 25px;

    background:
        linear-gradient(145deg,
            #f8fafc,
            #dbeafe);

    color: #172033;

    text-align: left;
}

.preview-content .line {
    width: 75%;
    height: 8px;

    margin-bottom: 12px;

    border-radius: 99px;

    background: #2563eb;
    opacity: 0.7;
}

.preview-content .line.small {
    width: 48%;
    background: #94a3b8;
}

.preview-content .blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    margin-top: 22px;
}

.preview-content .blocks div {
    height: 55px;

    border-radius: 8px;

    background: white;

    border: 1px solid #cbd5e1;
}

.project-content {
    display: flex;
    flex-direction: column;

    padding: 32px;
}

.project-title {
    font-size: 1.45rem;
    line-height: 1.2;

    letter-spacing: -0.025em;

    margin-bottom: 13px;
}

.project-description {
    color: var(--text-secondary);

    font-size: 0.93rem;

    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 24px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 9px;

    border-radius: 7px;

    color: var(--accent);

    background: var(--accent-soft);

    border: 1px solid color-mix(in srgb,
            var(--accent) 13%,
            transparent);

    font-size: 0.73rem;
    font-weight: 750;
}

.project-footer {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
}

/* Botones inspirados en Code / Preview */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 38px;

    padding: 0 12px;

    border-radius: 9px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    color: var(--text);

    font-size: 0.78rem;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.project-link:hover {
    transform: translateY(-2px);

    color: var(--accent);

    border-color: var(--accent);

    background: var(--accent-soft);
}

.project-link.primary {
    color: white;

    border-color: transparent;

    background:
        linear-gradient(135deg,
            #123d82,
            #2563eb);

    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.18);
}

.project-link.primary:hover {
    color: white;

    background:
        linear-gradient(135deg,
            #0d326e,
            #1d4ed8);
}

.project-link svg {
    width: 15px;
    height: 15px;
}

.projects-actions {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 35px;
}

.projects-actions .button {
    cursor: pointer;
}

/* =========================================================
   SITIOS ÚTILES
========================================================= */

.useful-sites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.useful-site-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.useful-site-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    box-shadow: var(--shadow);
}

.useful-site-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    overflow: hidden;
}

.useful-site-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.useful-site-card h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.useful-site-card p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.useful-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 7px;
    min-height: 38px;
    margin-top: auto;
    padding: 0 12px;
    border-radius: 9px;
    color: #fff;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #123d82, #2563eb);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.useful-site-link svg {
    width: 15px;
    height: 15px;
}

.useful-site-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #0d326e, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

/* =========================================================
    SERVICIOS
========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-width: 0;
    padding: 27px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    box-shadow: var(--shadow);
}

.service-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-card h3 {
    margin-bottom: 10px;

    font-size: 1.12rem;
}

.service-card p {
    color: var(--text-secondary);

    font-size: 0.9rem;
}

/* =========================================================
    CONTACT
========================================================= */

.contact-box {
    position: relative;

    overflow: hidden;

    padding: 55px;

    border-radius: var(--radius-lg);

    border: 1px solid color-mix(in srgb,
            var(--accent) 25%,
            var(--border));

    background:
        radial-gradient(circle at 90% 10%,
            rgba(37, 99, 235, 0.16),
            transparent 28%),
        linear-gradient(135deg,
            var(--surface),
            var(--surface-soft));

    box-shadow: var(--shadow);
}

.contact-box h2 {
    max-width: 650px;

    font-size:
        clamp(2rem, 4vw, 3.4rem);

    line-height: 1.05;

    letter-spacing: -0.045em;

    margin-bottom: 17px;
}

.contact-box p {
    max-width: 650px;

    color: var(--text-secondary);

    margin-bottom: 27px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 20px;

    color: var(--accent);

    font-weight: 750;
}

.contact-email:hover {
    text-decoration: underline;
}

/* =========================================================
    FOOTER
========================================================= */

footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);

    background: var(--bg);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-copy {
    color: var(--text);

    font-size: 0.78rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--text-secondary);

    font-size: 0.78rem;
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--accent);
}

/* =========================================================
    SCROLL TOP
========================================================= */

#scrollTop {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 900;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 1px solid color-mix(in srgb,
            var(--accent) 25%,
            var(--border));

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(135deg,
            #0d3b82,
            #2563eb);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.25);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

#scrollTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTop:hover {
    transform: translateY(-3px);
}

#scrollTop svg {
    width: 19px;
    height: 19px;
}

/* =========================================================
    MOBILE
========================================================= */

@media (max-width: 950px) {
    .nav-links {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero-visual {
        justify-content: center;
    }

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

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

    .services-grid,
    .useful-sites-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 46px 0;
    }

    .hero {
        min-height: auto;
        padding: 194px 0 72px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .section-kicker {
        font-size: 1.4rem;
    }

    .section-kicker-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .section-kicker-icon svg {
        width: 28px;
        height: 28px;
    }

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

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

    .project-image {
        min-height: 190px;
    }

    .project-image-placeholder {
        min-height: 190px;
    }

    .project-content {
        padding: 22px;
    }

    .contact-box {
        padding: 35px 25px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .header {
        height: 65px;
    }

    .logo {
        font-size: 0.95rem;
        gap: 8px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 9px;
    }

    .logo-mark img {
        width: 32px;
        height: 32px;
        max-width: 32px;
        max-height: 32px;
    }

    .logo>span:not(.logo-mark) {
        display: inline;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        padding: 186px 0 70px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .button {
        width: auto;
    }

    .project-footer {
        flex-wrap: wrap;
    }

    .project-link {
        flex: 1;
        justify-content: center;
    }

    #scrollTop {
        right: 18px;
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-content,
    .service-card,
    .tech-pill,
    .useful-site-card {
        transition: none;
    }
}
