/* =========================================================
   RANG · Rafael A. Niño G.
   Estilos propios, sin dependencias externas.
   ========================================================= */

:root {
    --menta: #2edeb4;
    --menta-2: #5ee7ff;
    --menta-soft: rgba(46, 222, 180, 0.12);
    --bg: #06090d;
    --card: rgba(16, 24, 34, 0.72);
    --card-solid: #0e151e;
    --card-hover: #111c28;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #e9eef2;
    --muted: rgba(233, 238, 242, 0.55);
    --faint: rgba(233, 238, 242, 0.32);
    --warn: #f5c451;

    --radius: 20px;
    --radius-sm: 12px;
    --gap: 12px;
    --topbar-h: 64px;
    --tabbar-h: 64px;

    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 2px solid var(--menta);
    outline-offset: 3px;
    border-radius: 8px;
}

::selection { background: var(--menta); color: var(--bg); }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.mono { font-family: var(--mono); }
.accent { color: var(--menta); }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.grad {
    background: linear-gradient(100deg, var(--menta), var(--menta-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ico {
    width: 18px; height: 18px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.ico-xs { width: 13px; height: 13px; vertical-align: -2px; }
.ico-lg { width: 26px; height: 26px; }
.ico-muted { color: var(--faint); }

.dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--menta);
    box-shadow: 0 0 0 0 rgba(46, 222, 180, 0.6);
    animation: ping 2.2s infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(46, 222, 180, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(46, 222, 180, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 222, 180, 0); }
}

/* ---------- Fondo ---------- */
.bg-glow {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% -5%, rgba(46, 222, 180, 0.13), transparent 70%),
        radial-gradient(500px 380px at -10% 30%, rgba(94, 231, 255, 0.07), transparent 70%),
        radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 22px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}

.progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
}
.progress span {
    display: block; height: 100%; width: 100%;
    background: linear-gradient(90deg, var(--menta), var(--menta-2));
    transform-origin: left;
    transform: scaleX(0);
}

/* ---------- Barra superior ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    height: var(--topbar-h);
    background: rgba(6, 9, 13, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.06em; font-size: 0.9rem; }
.brand img { border-radius: 8px; border: 1px solid var(--line-strong); }
.topnav { display: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border-radius: 999px;
    font-size: 0.875rem; font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
.btn-primary { background: var(--menta); color: #04110d; }
.btn-primary:hover { background: #4ff0c8; }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--menta); color: var(--menta); }
.topbar-cta { display: none; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--menta); color: var(--menta); }

/* ---------- Secciones ---------- */
.section { padding-block: 28px; }
.hero { padding-top: 20px; }

.section-head {
    display: flex; flex-direction: column; gap: 14px;
    margin-bottom: 16px;
}
.eyebrow { font-size: 0.72rem; color: var(--menta); letter-spacing: 0.2em; }
.section-head h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }

.label {
    display: block;
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--faint);
}

/* ---------- Tarjetas ---------- */
.card {
    position: relative;
    isolation: isolate;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
/* Foco de luz que sigue al puntero */
.card::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(46, 222, 180, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
@media (hover: hover) {
    .card:hover { border-color: rgba(46, 222, 180, 0.35); background: var(--card-hover); }
    .card:hover::before { opacity: 1; }
    a.card:hover, .project:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8); }
}
a.card:active, .project:active { transform: scale(0.985); }

.icon-box {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    display: grid; place-items: center;
    background: var(--menta-soft);
    color: var(--menta);
    border: 1px solid rgba(46, 222, 180, 0.18);
    flex-shrink: 0;
}
.icon-box .ico { width: 20px; height: 20px; }

.card-head { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--gap); grid-auto-flow: dense; }

.hero-grid { grid-template-columns: repeat(2, 1fr); }
.span-intro, .span-now, .span-stack { grid-column: span 2; }

.card-intro { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.pill {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 0.75rem;
    background: var(--menta-soft); color: var(--menta);
    border: 1px solid rgba(46, 222, 180, 0.2);
}
.card-intro h1 { font-size: clamp(2.1rem, 9vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); }
.lead { color: var(--muted); max-width: 52ch; font-size: 0.98rem; }
.lead strong { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.card-clock { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.clock { font-size: clamp(1.7rem, 8vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock .sec { color: var(--faint); font-size: 0.55em; margin-left: 2px; }
.card-clock .small .dot { margin-right: 6px; vertical-align: 1px; }

.card-stat { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.7rem; font-weight: 700; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }

.card-now { display: flex; align-items: center; gap: 14px; }
.now-text { margin-top: 4px; font-size: 0.95rem; }

.card-stack { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack li {
    padding: 5px 11px; border-radius: 999px;
    font-family: var(--mono); font-size: 0.72rem;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}
.stack li:hover { border-color: var(--menta); color: var(--menta); }

.card-social {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    min-height: 116px;
}
.card-social .corner { position: absolute; top: 18px; right: 18px; color: var(--faint); transition: color 0.2s, transform 0.3s var(--ease); }
.card-social:hover .corner { color: var(--menta); transform: translate(2px, -2px); }

/* ---------- Filtros ---------- */
.chips {
    display: flex; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
    margin-inline: -16px; padding-inline: 16px; padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; scroll-snap-align: start;
    min-height: 38px; padding: 0 16px;
    border-radius: 999px;
    font-size: 0.8125rem; font-weight: 500;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.is-active { background: var(--menta); border-color: var(--menta); color: #04110d; font-weight: 700; }

[data-cat].is-hidden { display: none; }
[data-cat].is-entering { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.empty { padding: 20px 0; }

/* ---------- Habilidades ---------- */
.grid { display: grid; gap: var(--gap); }
.skills-grid { grid-template-columns: 1fr; }
.skill {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px; row-gap: 2px;
    align-items: start;
    padding: 16px;
}
.skill .icon-box { grid-row: span 2; }
.skill h3 { font-size: 0.95rem; font-weight: 650; }
.skill p { font-size: 0.84rem; color: var(--muted); line-height: 1.45; }

/* ---------- Proyectos ---------- */
.projects-grid { grid-template-columns: 1fr; }
.project { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.project h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.project-kind { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.project > p:not(.project-kind) { color: var(--muted); font-size: 0.9rem; }

.status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 600;
    padding: 5px 10px; border-radius: 999px;
    border: 1px solid currentColor;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--menta); background: rgba(46, 222, 180, 0.08); }
.status-dev { color: var(--warn); background: rgba(245, 196, 81, 0.08); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tags li {
    font-family: var(--mono); font-size: 0.7rem;
    padding: 4px 9px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--muted);
}

.project-foot {
    margin-top: auto; padding-top: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-top: 1px solid var(--line);
}
/* El botón cubre toda la tarjeta; el enlace externo queda por encima */
.project-open { font-size: 0.82rem; font-weight: 600; color: var(--menta); min-height: 36px; }
.project-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.link-out {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.8rem; font-weight: 600;
    padding: 7px 12px; border-radius: 999px;
    border: 1px solid var(--line-strong);
    transition: border-color 0.2s, color 0.2s;
}
.link-out .ico { width: 14px; height: 14px; }
.link-out:hover { border-color: var(--menta); color: var(--menta); }

/* ---------- Novedades ---------- */
.timeline { display: grid; gap: var(--gap); position: relative; }
.post { display: flex; flex-direction: column; gap: 8px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.post-head img { border-radius: 50%; border: 1px solid var(--line-strong); }
.post-author { font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; gap: 4px; }
.tag-mini {
    margin-left: auto;
    font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--menta); background: var(--menta-soft);
    padding: 4px 9px; border-radius: 6px;
}
.post h3 { font-size: 1.05rem; }
.post p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Contacto ---------- */
.contact-grid { grid-template-columns: repeat(3, 1fr); }
.span-mail { grid-column: span 3; }
.card-mail { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; }
.mail-addr { font-size: clamp(1.35rem, 6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; word-break: break-all; }
.contact-grid .card-social { min-height: 100px; padding: 16px; }

/* ---------- Pie ---------- */
.footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 28px 20px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
}
.to-top {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    transition: border-color 0.2s, color 0.2s;
}
.to-top:hover { border-color: var(--menta); color: var(--menta); }

/* ---------- Barra inferior (móvil) ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(6, 9, 13, 0.88);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid var(--line);
}
.tabbar a {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 0.66rem; font-weight: 500;
    color: var(--faint);
    transition: color 0.2s;
}
.tabbar a .ico { width: 21px; height: 21px; transition: transform 0.3s var(--ease); }
.tabbar a::before {
    content: ""; position: absolute; top: 0; left: 50%;
    width: 22px; height: 2px; border-radius: 0 0 2px 2px;
    background: var(--menta);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s var(--ease);
}
.tabbar a.is-active { color: var(--menta); }
.tabbar a.is-active::before { transform: translateX(-50%) scaleX(1); }
.tabbar a.is-active .ico { transform: translateY(-1px); }

/* ---------- Hoja de detalle ---------- */
.sheet {
    padding: 0; border: 0;
    background: transparent; color: var(--text);
    width: 100%; max-width: 100%;
    max-height: 88vh; max-height: 88dvh;
    margin: auto auto 0;
    overflow: visible;
}
.sheet::backdrop { background: rgba(2, 4, 6, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-inner {
    background: var(--card-solid);
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
    max-height: 88vh; max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sheet[open] .sheet-inner { animation: sheet-up 0.4s var(--ease); }
.sheet[open]::backdrop { animation: fade 0.3s ease; }
.sheet.is-closing .sheet-inner { animation: sheet-down 0.25s ease forwards; }
.sheet.is-closing::backdrop { animation: fade 0.25s ease reverse forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.sheet-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 16px; }
.sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sheet-head h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.sheet-head .icon-btn { margin-left: auto; }
.sheet-body { color: var(--muted); font-size: 0.95rem; display: grid; gap: 12px; }
.sheet-body ul { display: grid; gap: 8px; }
.sheet-body li { position: relative; padding-left: 20px; }
.sheet-body li::before {
    content: ""; position: absolute; left: 2px; top: 0.6em;
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--menta);
}
.sheet-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sheet-foot:empty { display: none; }
.sheet-foot .tags { width: 100%; margin-bottom: 6px; }

/* ---------- Aviso ---------- */
.toast {
    position: fixed; left: 50%; z-index: 70;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
    transform: translate(-50%, 20px);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    background: var(--menta); color: #04110d;
    font-size: 0.85rem; font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.35s var(--ease);
    box-shadow: 0 10px 30px -10px rgba(46, 222, 180, 0.5);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animación de entrada ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.35s;
    transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (hover: hover) {
    .js a.card[data-reveal].is-visible:hover, .js .project[data-reveal].is-visible:hover { transform: translateY(-3px); }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
    .wrap { padding-inline: 24px; }
    .chips { margin-inline: 0; padding-inline: 0; }

    .hero-grid { grid-template-columns: repeat(4, 1fr); }
    .span-intro { grid-column: span 4; }
    .span-clock, .span-stat, .span-now, .span-stack, .span-social { grid-column: span 2; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .skill { grid-template-columns: 1fr; padding: 20px; row-gap: 6px; }
    .skill .icon-box { grid-row: auto; margin-bottom: 8px; }

    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .span-p-lg { grid-column: span 2; }

    .contact-grid { grid-template-columns: repeat(6, 1fr); }
    .span-mail { grid-column: span 6; }
    .span-csoc { grid-column: span 2; }

    .sheet { max-width: 560px; margin: auto; }
    .sheet-inner { border-radius: 24px; border-bottom: 1px solid var(--line-strong); padding: 24px 26px 26px; }
    .sheet-grip { display: none; }
    .sheet[open] .sheet-inner { animation: sheet-in 0.35s var(--ease); }
    .sheet.is-closing .sheet-inner { animation: sheet-out 0.2s ease forwards; }
    @keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
    @keyframes sheet-out { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
}

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 1024px) {
    :root { --gap: 16px; }
    body { padding-bottom: 0; }
    .tabbar { display: none; }
    .toast { bottom: 28px; }

    .topnav { display: flex; gap: 4px; }
    .topnav a {
        position: relative;
        font-size: 0.85rem; color: var(--muted);
        padding: 8px 14px; border-radius: 999px;
        transition: color 0.2s, background 0.2s;
    }
    .topnav a:hover { color: var(--text); }
    .topnav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
    .topbar-cta { display: inline-flex; }

    .section { padding-block: 56px; }
    .hero { padding-top: 40px; }
    .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }

    .hero-grid { grid-template-columns: repeat(12, 1fr); }
    .span-intro { grid-column: span 8; grid-row: span 2; }
    .span-clock, .span-stat { grid-column: span 4; }
    .span-now, .span-stack { grid-column: span 4; }
    .span-social { grid-column: span 2; }
    .card-intro { padding: 40px; justify-content: center; }
    .card { padding: 24px; }

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

    .projects-grid { grid-template-columns: repeat(6, 1fr); }
    .span-p-lg { grid-column: span 4; }
    .span-p-sm, .span-p-md { grid-column: span 2; }
    .span-p-lg h3 { font-size: 1.6rem; }

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

    .contact-grid { grid-template-columns: repeat(12, 1fr); }
    .span-mail { grid-column: span 6; }
    .span-csoc { grid-column: span 2; }
    .contact-grid .card-social { min-height: auto; padding: 24px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
