:root {
    --ink: #f4f6f1;
    --muted: #a9b2ad;
    --paper: #050706;
    --surface: rgba(19, 25, 23, 0.92);
    --line: rgba(244, 246, 241, 0.16);
    --accent: #8fae3f;
    --accent-deep: #b7d56a;
    --coral: #f0785d;
    --nav: #000000;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--paper);
    background-image: radial-gradient(rgba(197, 244, 103, 0.08) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    color: var(--ink);
    font-family: "Muli", sans-serif;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    background: var(--coral);
    content: "";
    height: 8px;
    left: 0;
    position: fixed;
    top: 0;
    transform: scaleX(0);
    transform-origin: left;
    width: 100%;
    z-index: 1100;
}

body.is-scrolling::before {
    transform: scaleX(var(--scroll-progress, 0));
}

h1,
h2,
h3,
.top-nav-brand {
    font-family: "Saira Extra Condensed", sans-serif;
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
}

h1 {
    color: var(--ink);
    font-size: clamp(3.6rem, 6vw, 5.8rem);
    margin-bottom: 0.8rem;
}

h2 {
    color: var(--ink);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
}

h3 {
    color: var(--ink);
    font-size: 2rem;
}

a {
    color: var(--accent-deep);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--coral);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.btn-soft:focus-visible,
.credential-link:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
    border-radius: 2px;
}

.text-primary {
    color: var(--coral) !important;
}

.bg-primary {
    background-color: var(--nav) !important;
}

.top-nav {
    background-color: var(--nav);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    min-height: 72px;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-nav-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1400px;
    min-height: 72px;
    padding: 0.5rem 1.5rem;
    position: relative;
    width: 100%;
}

.top-nav-brand {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 1.6rem;
    margin: 0;
}

.top-nav-menu {
    display: flex !important;
    flex: 0 1 auto;
    justify-content: center !important;
    min-width: 0;
}

.top-nav-list {
    align-items: center;
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    overflow: visible;
    padding: 0;
    white-space: nowrap;
}

.top-nav .nav-link {
    border-left: 2px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.65rem;
    text-transform: uppercase;
}

.top-nav .nav-link:hover,
.top-nav .nav-link.is-active {
    background: rgba(143, 174, 63, 0.18);
    border-radius: 3px;
    border-color: var(--accent);
    color: var(--accent);
}

.top-nav-controls {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.mobile-nav-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    display: none;
    font-size: 1rem;
    height: 40px;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 40px;
}

.mobile-nav-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.resume-section {
    display: none;
    min-height: auto;
    padding: 2.75rem 3rem 4.5rem;
    position: relative;
    scroll-margin-top: 76px;
}

.resume-section.is-selected {
    display: block;
}

body.view-ready hr {
    display: none;
}

#sobre-mi {
    min-height: auto;
    padding-top: 3rem;
}

.resume-section-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1050px;
    position: relative;
    width: 100%;
}

.subheading {
    color: var(--accent-deep);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credential-link {
    color: var(--accent-deep);
    display: inline-block;
    font-size: 0.75rem;
    margin-left: 0.45rem;
    padding: 0.15rem 0.25rem;
    vertical-align: middle;
}

.credential-link:hover {
    color: var(--coral);
}

#certificaciones .credential-link {
    color: var(--accent-deep);
}

#certificaciones .credential-link:hover {
    color: var(--coral);
}

.lead {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 760px;
}

.hero-layout {
    align-items: center;
    display: flex;
    gap: 2.5rem;
}

.hero-photo,
.hero-photo-fallback {
    border: 3px solid rgba(197, 244, 103, 0.45);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--accent), 0 20px 45px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    height: 176px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 176px;
}

.hero-photo:hover,
.hero-photo-fallback:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--coral), 0 24px 55px rgba(0, 0, 0, 0.45);
    transform: scale(1.06) rotate(-1deg);
}

.hero-photo-fallback {
    align-items: center;
    background: var(--coral);
    color: #fff;
    display: flex;
    font-family: "Saira Extra Condensed", sans-serif;
    font-size: 3.6rem;
    justify-content: center;
}

.hero-text {
    min-width: 0;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.btn-download {
    align-items: center;
    background: var(--accent);
    color: #050706;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.5rem;
    letter-spacing: 0.06em;
    padding: 0.75rem 1.2rem;
    text-transform: uppercase;
}

.btn-download:hover {
    background: var(--coral);
    color: #fff;
}

.lang-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.35rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.9rem;
}

.lang-toggle:hover {
    border-color: var(--accent-deep);
    color: var(--accent-deep);
}

@media (max-width: 640px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-photo,
    .hero-photo-fallback {
        height: 130px;
        width: 130px;
    }

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

.social-icon {
    align-items: center;
    background: var(--ink);
    border-radius: 50%;
    color: var(--accent);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 44px;
}

.social-icon:hover {
    background: var(--coral);
    color: #fff;
    transform: translateY(-4px) rotate(-8deg);
}

hr {
    border-color: var(--line);
}

.resume-section .d-flex.flex-column.flex-md-row {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.8rem;
}

.resume-section .d-flex.flex-column.flex-md-row:last-child {
    border-bottom: 0;
}

.flex-shrink-0 .text-primary {
    background: #385522;
    color: #f4f6f1 !important;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
}

.fa-ul {
    color: var(--muted);
}

.fa-ul .fa-li {
    color: var(--coral);
}

.dev-icons {
    color: var(--ink);
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    margin: 0;
    max-width: 720px;
}

.dev-icons .list-inline-item {
    align-items: center;
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    font-size: clamp(2rem, 4vw, 2.8rem);
    justify-content: center;
    margin: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.dev-icons .list-inline-item i {
    display: block;
    line-height: 1;
}

.dev-icons .list-inline-item:hover {
    color: var(--coral);
    transform: translateY(-5px);
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(23, 33, 33, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 1.6rem;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card::after {
    background: var(--accent);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    width: 0;
    transition: width 0.25s ease;
}

.project-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.project-card:hover::after {
    width: 100%;
}

.project-card--featured {
    background: var(--surface);
}

.project-card__head {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.project-icon {
    align-items: center;
    background: var(--accent);
    border-radius: 50%;
    color: var(--ink);
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
}

.project-title {
    font-size: 1.8rem;
    margin: 0;
}

.project-desc {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 1.3rem 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.45rem;
}

.project-actions {
    margin-top: auto;
    padding-top: 1.3rem;
}

.btn-soft {
    background: #385522;
    color: #f4f6f1;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.8rem;
    text-transform: uppercase;
}

.btn-soft:hover {
    background: var(--accent);
    color: #050706;
}

#certificaciones .fa-ul li {
    margin-bottom: 0.75rem;
}

#contacto {
    min-height: auto;
    padding-bottom: 6rem;
}

#contacto .lead {
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0;
}

.theme-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    height: 40px;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 40px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.lang-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.35rem;
    height: 40px;
    letter-spacing: 0.06em;
    padding: 0 0.85rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
    border-color: var(--accent-deep);
    color: var(--accent-deep);
}

/* -------------------------------------------------------------
   Menú Móvil Desplegable (Drawer)
   ------------------------------------------------------------- */
.mobile-nav-drawer {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.25s ease;
    z-index: 1200;
}

.mobile-nav-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    inset: 0;
    position: absolute;
}

.mobile-nav-panel {
    background: var(--paper);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.is-open .mobile-nav-panel {
    transform: translateY(0);
}

.mobile-nav-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
}

.mobile-nav-brand-title {
    color: var(--ink);
    font-family: "Saira Extra Condensed", sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-nav-close {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    height: 38px;
    justify-content: center;
    transition: all 0.2s ease;
    width: 38px;
}

.mobile-nav-close:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.mobile-nav-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
}

.mobile-nav-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    padding: 1rem 0.5rem;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mobile-nav-card__icon {
    align-items: center;
    background: rgba(143, 174, 63, 0.12);
    border-radius: 50%;
    color: var(--accent);
    display: flex;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 42px;
}

.mobile-nav-card__label {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-nav-card:hover,
.mobile-nav-card.is-active {
    background: rgba(143, 174, 63, 0.16);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.mobile-nav-card.is-active .mobile-nav-card__icon {
    background: var(--accent);
    color: #050706;
}

.mobile-nav-card.is-active .mobile-nav-card__label {
    color: var(--accent-deep);
}

/* -------------------------------------------------------------
   Sección Diplomas & Grid
   ------------------------------------------------------------- */
.diplomas-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.filter-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #050706;
}

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

.diploma-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.diploma-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    transform: translateY(-4px);
}

.diploma-card__thumb {
    aspect-ratio: 16 / 11;
    background: #111;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.diploma-card__thumb img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
    width: 100%;
}

.diploma-card:hover .diploma-card__thumb img {
    transform: scale(1.05);
}

.diploma-card__overlay {
    align-items: center;
    background: rgba(5, 7, 6, 0.75);
    color: #fff;
    display: flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 0.5rem;
    inset: 0;
    justify-content: center;
    letter-spacing: 0.05em;
    opacity: 0;
    position: absolute;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}

.diploma-card:hover .diploma-card__overlay {
    opacity: 1;
}

.diploma-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
    padding: 1.15rem;
}

.diploma-card__badge {
    align-self: flex-start;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    text-transform: uppercase;
}

.badge-software { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-redes    { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-gestion  { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-tecnico  { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-idiomas  { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

.diploma-card__title {
    color: var(--ink);
    font-family: "Muli", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.diploma-card__meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.diploma-card__btn {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-size: 0.75rem;
    font-weight: 800;
    gap: 0.4rem;
    justify-content: center;
    letter-spacing: 0.05em;
    margin-top: 0.6rem;
    padding: 0.55rem 0.8rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    width: 100%;
}

.diploma-card:hover .diploma-card__btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #050706;
}

/* -------------------------------------------------------------
   Visor de Diplomas (Modal / Dialog Lightbox)
   ------------------------------------------------------------- */
.diploma-dialog {
    background: transparent;
    border: 0;
    margin: auto;
    max-height: 96vh;
    max-width: 96vw;
    padding: 0;
    width: auto;
}

.diploma-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.diploma-dialog__content {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    max-width: 960px;
    overflow: hidden;
    width: 92vw;
}

.diploma-dialog__header {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.4rem;
}

.diploma-dialog__inst {
    color: var(--accent);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.diploma-dialog__title {
    color: var(--ink);
    font-family: "Muli", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.diploma-dialog__close {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    height: 38px;
    justify-content: center;
    transition: all 0.2s ease;
    width: 38px;
}

.diploma-dialog__close:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.diploma-dialog__body {
    align-items: center;
    background: #000;
    display: flex;
    justify-content: center;
    max-height: 68vh;
    overflow: auto;
    padding: 0.5rem;
}

.diploma-dialog__img {
    height: auto;
    max-height: 66vh;
    max-width: 100%;
    object-fit: contain;
}

.diploma-dialog__footer {
    align-items: center;
    background: var(--surface);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    padding: 0.9rem 1.4rem;
}

.diploma-dialog__meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.diploma-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.back-to-top {
    align-items: center;
    background: var(--coral);
    border-radius: 50%;
    bottom: 1.5rem;
    color: #fff;
    display: flex;
    height: 42px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 1.5rem;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    width: 42px;
    z-index: 1040;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--ink);
    color: var(--accent);
}

.theme-toggle:hover {
    background: var(--coral);
    color: #fff;
    transform: rotate(20deg);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode {
    --ink: #f4f6f1;
    --muted: #b9c2bc;
    --paper: #000000;
    --surface: rgba(16, 22, 20, 0.94);
    --line: rgba(244, 246, 241, 0.14);
    --accent-deep: #c4e477;
    --nav: #000000;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none !important;
    }

    .mobile-nav-drawer {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .top-nav-menu {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: inline-flex !important;
    }

    .top-nav-brand {
        display: block !important;
        font-size: 1.4rem;
    }

    .resume-section {
        min-height: auto;
        padding: 5.25rem 1.4rem 4rem;
    }

    #sobre-mi {
        min-height: auto;
        padding-top: 5.25rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 3.6rem;
    }

    .top-nav-inner {
        padding: 0.5rem 0.85rem;
    }

    .top-nav-brand {
        font-size: 1.25rem;
    }

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

    .project-card {
        min-height: auto;
    }

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

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }

    .diploma-dialog__content {
        max-height: 94vh;
        width: 95vw;
    }

    .diploma-dialog__header {
        padding: 0.8rem 1rem;
    }

    .diploma-dialog__footer {
        padding: 0.8rem 1rem;
    }
}

@media print {
    body {
        background: #ffffff !important;
        color: #111111 !important;
    }

    .top-nav,
    .mobile-nav-drawer,
    .diploma-dialog,
    .theme-toggle,
    .lang-toggle,
    .back-to-top,
    .diplomas-filters,
    .btn-download,
    .project-actions,
    .diploma-card__btn,
    .diploma-card__overlay {
        display: none !important;
    }

    .resume-section {
        display: block !important;
        page-break-after: always;
        padding: 1.5cm 1cm !important;
    }

    .resume-section-content {
        max-width: 100% !important;
    }

    a {
        color: #111111 !important;
        text-decoration: underline !important;
    }
}

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