/* Lower home V2 · Portfolio, perfil técnico, contacto y blog */

:root {
    --lower-ink: #07111a;
    --lower-ink-soft: #10222c;
    --lower-paper: #f3eadc;
    --lower-paper-strong: #fff9ed;
    --lower-paper-muted: #d8cbbb;
    --lower-koi: #df4c32;
    --lower-koi-dark: #a93627;
    --lower-copper: #c9793d;
    --lower-sakura: #e5a6b5;
    --lower-line-dark: rgba(7, 17, 26, .14);
    --lower-line-light: rgba(255, 249, 237, .13);
    --lower-shadow: 0 24px 70px rgba(45, 34, 24, .16);
}

/* ========================================================================
   SOBRE MÍ · AVANCE EDITORIAL V21
   La home presenta criterio; la trayectoria completa vive en /sobre-mi.
   ======================================================================== */
.technical-teaser {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(76px, 8vw, 126px) 0;
    color: #f7f0e5;
    background:
        radial-gradient(circle at 76% 20%, rgba(211, 83, 42, .15), transparent 32%),
        linear-gradient(135deg, #061116 0%, #0a171b 55%, #050c10 100%);
}

.technical-teaser__ambient {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .24;
    background:
        linear-gradient(90deg, rgba(5, 12, 16, .98) 0%, rgba(5, 12, 16, .82) 44%, rgba(5, 12, 16, .2) 74%),
        url('../assets/technical-dragon-progression-v8.webp') right 28% / min(72vw, 1340px) auto no-repeat;
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.technical-teaser__shell {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(460px, 1.14fr);
    gap: clamp(42px, 6vw, 96px);
    align-items: center;
}

.technical-teaser__copy { max-width: 650px; }

.technical-teaser__copy .section-tag { color: #ed8655; }

.technical-teaser__copy h2 {
    max-width: 12ch;
    margin: 16px 0 22px;
    font-size: clamp(2.55rem, 5vw, 5.5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.technical-teaser__copy h2 span { color: #ee8654; }

.technical-teaser__copy > p {
    max-width: 60ch;
    margin: 0;
    color: #bdc8c8;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.75;
}

.technical-teaser__proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: clamp(28px, 4vw, 48px) 0 34px;
    overflow: hidden;
    border: 1px solid rgba(247, 240, 229, .13);
    border-radius: 4px 24px 4px 24px;
    background: rgba(247, 240, 229, .13);
}

.technical-teaser__proof > div {
    min-height: 124px;
    padding: 22px 18px;
    background: rgba(6, 17, 22, .86);
    transition: background .35s ease, transform .35s ease;
}

.technical-teaser__proof > div:hover { background: rgba(29, 35, 35, .93); }

.technical-teaser__proof dt {
    color: #f18b59;
    font-family: var(--font-display, inherit);
    font-size: clamp(1.7rem, 2.3vw, 2.45rem);
    line-height: 1;
}

.technical-teaser__proof dd {
    margin: 10px 0 0;
    color: #d7dfdd;
    font-size: .72rem;
    line-height: 1.45;
    letter-spacing: .035em;
}

.technical-teaser__cta { gap: 14px; min-height: 54px; }
.technical-teaser__cta span { transition: transform .3s ease; }
.technical-teaser__cta:hover span { transform: translate(3px, -3px); }

.technical-teaser__visual {
    position: relative;
    display: block;
    min-height: clamp(460px, 47vw, 690px);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(238, 134, 84, .38);
    border-radius: 8px 46px 8px 46px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
}

.technical-teaser__visual::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(3, 10, 14, .91));
}

.technical-teaser__visual::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(255, 246, 228, .14);
    border-radius: 3px 34px 3px 34px;
}

.technical-teaser__visual picture,
.technical-teaser__visual img { width: 100%; height: 100%; }

.technical-teaser__visual picture { position: absolute; inset: 0; }
.technical-teaser__visual img { object-fit: cover; object-position: 58% center; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .7s ease; }
.technical-teaser__visual:hover img { transform: scale(1.035); filter: saturate(1.07); }

.technical-teaser__visual-label {
    position: absolute;
    z-index: 3;
    right: clamp(24px, 4vw, 48px);
    bottom: clamp(24px, 4vw, 48px);
    left: clamp(24px, 4vw, 48px);
}

.technical-teaser__visual-label small,
.technical-teaser__visual-label strong { display: block; }
.technical-teaser__visual-label small { color: #ee8958; font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; }
.technical-teaser__visual-label strong { max-width: 22ch; margin-top: 8px; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.18; }

.technical-teaser__visual > i {
    position: absolute;
    z-index: 3;
    top: 28px;
    right: 28px;
    display: grid;
    width: 48px;
    aspect-ratio: 1;
    place-items: center;
    color: #081317;
    font-style: normal;
    border-radius: 50%;
    background: #ee8654;
    transition: transform .35s ease, background .35s ease;
}

.technical-teaser__visual:hover > i { transform: rotate(45deg); background: #fff0d8; }

/* Popup de Paca: papel de arroz, sello y marco asimétrico neojaponés. */
.paca-dialog-overlay {
    padding: 20px;
    background: rgba(2, 8, 11, .75);
    backdrop-filter: blur(12px) saturate(.8);
}

.paca-dialog {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(92vw, 520px);
    padding: 52px clamp(25px, 5vw, 48px) 42px;
    color: #172126;
    border: 1px solid rgba(211, 86, 43, .65);
    border-radius: 6px 34px 6px 34px;
    background:
        linear-gradient(rgba(255, 249, 237, .94), rgba(248, 239, 221, .97)),
        url('../assets/portfolio-sakura-branch-v4.webp') 80% center / cover no-repeat;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .45), inset 0 0 0 9px rgba(255, 255, 255, .25);
}

.paca-dialog::before,
.paca-dialog::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.paca-dialog::before { inset: 10px; border: 1px solid rgba(30, 38, 39, .12); border-radius: 3px 26px 3px 26px; }
.paca-dialog::after { right: -40px; bottom: -62px; width: 180px; aspect-ratio: 1; border: 34px double rgba(217, 83, 40, .055); border-radius: 50%; }

.paca-dialog-seal {
    position: absolute;
    top: 24px;
    left: 26px;
    display: grid;
    width: 37px;
    aspect-ratio: 1;
    place-items: center;
    color: #fff5e4;
    font: 700 .66rem/1 var(--font-display, sans-serif);
    letter-spacing: -.04em;
    background: #bf492f;
    transform: rotate(-5deg);
}

.paca-dialog-kicker {
    display: block;
    margin: 10px 0 12px;
    color: #aa4a30;
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.paca-dialog-icon { filter: drop-shadow(0 10px 16px rgba(56, 34, 24, .15)); }
.paca-dialog h3 { margin-top: 0; font-size: clamp(1.75rem, 5vw, 2.55rem); line-height: 1; letter-spacing: -.045em; }
.paca-dialog p { color: #4d5657; line-height: 1.65; }
.paca-dialog-actions { margin-top: 28px; }
.paca-dialog-email { color: #8d3d2a; font-weight: 720; }

/* Cascade lock V22 */
.portfolio-v2__controls { gap:5px; padding:5px; border:1px solid rgba(20,31,36,.14); border-radius:999px; background:rgba(255,250,239,.8); box-shadow:0 12px 35px rgba(14,24,29,.09); backdrop-filter:blur(12px); }
.portfolio-v2__controls button { min-width:42px; height:42px; padding:0 12px; border:0; background:transparent; }
.portfolio-v2__controls button:hover:not(:disabled) { color:#fff8ea; background:#b44931; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 7px 18px rgba(126,47,31,.22); }
.portfolio-v2__controls .portfolio-v2__autoplay { min-width:98px; }
.portfolio-v2__autoplay-progress { position:relative; overflow:hidden; width:min(100%,360px); height:3px; margin:-8px 0 22px auto; border-radius:999px; background:rgba(26,39,44,.12); }
.portfolio-v2__autoplay-progress span { display:block; width:100%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#a73d30,#f08a4f,#bf4c32); transform:scaleX(0); transform-origin:left; }
.portfolio-v2__autoplay-progress span.is-running { animation:portfolio-v2-progress var(--portfolio-autoplay-duration,6500ms) linear forwards; }
@keyframes portfolio-v2-progress { to { transform:scaleX(1); } }
.technical-teaser { min-height:min(760px,92svh); padding-block:clamp(54px,6.5vw,82px); }
.technical-teaser__ambient { right:auto; left:0; width:min(46vw,700px); opacity:.28; transform:scaleX(-1); }
.technical-teaser__shell { grid-template-columns:minmax(0,.86fr) minmax(440px,1.14fr); min-height:min(620px,72svh); align-items:stretch; }
.technical-teaser__copy { align-self:center; }
.technical-teaser__proof { margin-block:24px; }
.technical-teaser__visual { min-height:520px; }
.technical-teaser__visual img { object-position:69% center; }
@media (max-width:900px) {
    .technical-teaser { min-height:0; }
    .technical-teaser__shell { grid-template-columns:1fr; min-height:0; }
    .technical-teaser__ambient { width:100%; opacity:.18; }
    .technical-teaser__visual { min-height:min(105vw,570px); }
    .portfolio-v2__autoplay-progress { margin-inline:0; }
}
@media (prefers-reduced-motion:reduce) { .portfolio-v2__autoplay-progress span { animation:none!important; } }

/* V22 · controles de portfolio, progreso y bloque Sobre mí más compacto. */
.portfolio-v2__toolbar { align-items: flex-end; }
.portfolio-v2__controls {
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(20, 31, 36, .14);
    border-radius: 999px;
    background: rgba(255, 250, 239, .8);
    box-shadow: 0 12px 35px rgba(14, 24, 29, .09);
    backdrop-filter: blur(12px);
}
.portfolio-v2__controls button {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 0;
    background: transparent;
}
.portfolio-v2__controls button:hover:not(:disabled) {
    color: #fff8ea;
    background: #b44931;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 7px 18px rgba(126, 47, 31, .22);
}
.portfolio-v2__controls .portfolio-v2__autoplay { min-width: 98px; }
.portfolio-v2__autoplay-progress {
    position: relative;
    overflow: hidden;
    width: min(100%, 360px);
    height: 3px;
    margin: -8px 0 22px auto;
    border-radius: 999px;
    background: rgba(26, 39, 44, .12);
}
.portfolio-v2__autoplay-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a73d30, #f08a4f, #bf4c32);
    transform: scaleX(0);
    transform-origin: left;
}
.portfolio-v2__autoplay-progress span.is-running {
    animation: portfolio-v2-progress var(--portfolio-autoplay-duration, 6500ms) linear forwards;
}
@keyframes portfolio-v2-progress { to { transform: scaleX(1); } }

.technical-teaser {
    min-height: min(760px, 92svh);
    padding-block: clamp(54px, 6.5vw, 82px);
}
.technical-teaser__ambient {
    right: auto;
    left: 0;
    width: min(46vw, 700px);
    opacity: .28;
    transform: scaleX(-1);
}
.technical-teaser__shell {
    grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
    min-height: min(620px, 72svh);
    align-items: stretch;
}
.technical-teaser__copy { align-self: center; }
.technical-teaser__proof { margin-block: 24px; }
.technical-teaser__visual { min-height: 520px; }
.technical-teaser__visual img { object-position: 69% center; }

@media (max-width: 900px) {
    .technical-teaser { min-height: 0; }
    .technical-teaser__shell { grid-template-columns: 1fr; min-height: 0; }
    .technical-teaser__ambient { width: 100%; opacity: .18; }
    .technical-teaser__visual { min-height: min(105vw, 570px); }
    .portfolio-v2__autoplay-progress { margin-inline: 0; }
}
@media (max-width: 620px) {
    .portfolio-v2__toolbar { align-items: stretch; }
    .portfolio-v2__controls { align-self: flex-end; }
    .portfolio-v2__autoplay-progress { width: 100%; margin-top: -5px; }
}
@media (prefers-reduced-motion: reduce) {
    .portfolio-v2__autoplay-progress span { animation: none !important; }
}
.paca-dialog-email span { display: inline-block; transition: transform .3s ease; }
.paca-dialog-email:hover span { transform: translate(3px, 3px); }

@media (max-width: 1000px) {
    .technical-teaser__shell { grid-template-columns: 1fr; }
    .technical-teaser__copy { max-width: 760px; }
    .technical-teaser__copy h2 { max-width: 13ch; }
    .technical-teaser__visual { min-height: min(70vw, 620px); }
}

@media (max-width: 620px) {
    .technical-teaser { padding-block: 64px; }
    .technical-teaser__proof { grid-template-columns: 1fr; }
    .technical-teaser__proof > div { min-height: 0; padding: 18px; }
    .technical-teaser__visual { min-height: 430px; border-radius: 5px 28px 5px 28px; }
    .technical-teaser__visual img { object-position: 65% center; }
    .technical-teaser__visual > i { top: 20px; right: 20px; width: 42px; }
    .paca-dialog { padding: 48px 24px 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .technical-teaser__visual img,
    .technical-teaser__visual > i,
    .technical-teaser__cta span,
    .paca-dialog-email span { transition: none; }
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==============================
   PORTFOLIO
============================== */

#proyectos.portfolio-v2 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(78px, 9vw, 128px) 0;
    color: var(--lower-ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(229, 166, 181, .3), transparent 25%),
        radial-gradient(circle at 94% 70%, rgba(201, 121, 61, .16), transparent 28%),
        var(--lower-paper);
}

#proyectos.portfolio-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(7, 17, 26, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 17, 26, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 14% 86%, transparent);
}

.portfolio-v2__inner {
    position: relative;
    z-index: 1;
}

.portfolio-v2__header {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
    margin-bottom: clamp(46px, 6vw, 78px);
}

.portfolio-v2__heading {
    max-width: 710px;
}

.portfolio-v2 .section-tag,
.portfolio-v2__art figcaption span {
    color: var(--lower-koi-dark);
}

.portfolio-v2__heading h2 {
    max-width: 12.5ch;
    margin: 14px 0 22px;
    color: var(--lower-ink);
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.7vw, 5.9rem);
    line-height: .98;
    letter-spacing: -.07em;
}

.portfolio-v2__heading h2 span {
    color: var(--lower-koi-dark);
}

.portfolio-v2__heading > p {
    max-width: 63ch;
    margin: 0;
    color: #49555b;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.75;
}

.portfolio-v2__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.portfolio-v2__legend span {
    padding: 8px 11px;
    color: #6c4031;
    font: 700 .68rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .065em;
    background: rgba(255, 249, 237, .58);
    border: 1px solid rgba(169, 54, 39, .2);
    border-radius: 999px;
}

.portfolio-v2__art {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 9px;
    background: rgba(255, 249, 237, .72);
    border: 1px solid var(--lower-line-dark);
    border-radius: 28px 5px 28px 5px;
    box-shadow: var(--lower-shadow);
    transform: rotate(1.2deg);
}

.portfolio-v2__art::before {
    content: '';
    position: absolute;
    inset: -9px 18px 18px -9px;
    z-index: -1;
    border: 1px solid rgba(169, 54, 39, .24);
    border-radius: inherit;
}

.portfolio-v2__art picture {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px 2px 20px 2px;
}

.portfolio-v2__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-v2__art figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 8px 3px;
    color: #657077;
    font: .66rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.portfolio-v2__carousel {
    min-width: 0;
}

.portfolio-v2__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 19px;
}

.portfolio-v2__instruction {
    margin: 0;
    color: #667178;
    font: .72rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.portfolio-v2__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-v2__controls button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 13px;
    color: var(--lower-ink);
    background: rgba(255, 249, 237, .72);
    border: 1px solid rgba(7, 17, 26, .2);
    border-radius: 999px;
    cursor: pointer;
    transition: color .24s ease, background .24s ease, border-color .24s ease, transform .24s ease;
}

.portfolio-v2__controls button:hover:not(:disabled) {
    color: var(--lower-paper-strong);
    background: var(--lower-koi-dark);
    border-color: var(--lower-koi-dark);
    transform: translateY(-2px);
}

.portfolio-v2__controls button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.portfolio-v2__controls svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.portfolio-v2__controls .portfolio-v2__autoplay {
    gap: 8px;
    min-width: 104px;
    font: 700 .68rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .055em;
}

.portfolio-v2__pause-mark {
    width: 10px;
    height: 12px;
    border-inline: 3px solid currentColor;
}

.portfolio-v2__autoplay[aria-pressed='true'] .portfolio-v2__pause-mark {
    width: 0;
    height: 0;
    margin-left: 2px;
    border: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
}

.portfolio-v2__track {
    --portfolio-v2-gap: 24px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333333% - 16px);
    gap: var(--portfolio-v2-gap);
    width: 100%;
    padding: 4px 2px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.portfolio-v2__track::-webkit-scrollbar {
    display: none;
}

.portfolio-v2__track:focus-visible {
    outline: 3px solid var(--lower-koi-dark);
    outline-offset: 7px;
}

.portfolio-v2__loading,
.portfolio-v2__empty {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 36px;
    color: #5e696e;
    text-align: center;
    background: rgba(255, 249, 237, .64);
    border: 1px dashed rgba(7, 17, 26, .22);
    border-radius: 18px;
}

.portfolio-v2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    color: var(--lower-ink);
    background: rgba(255, 249, 237, .88);
    border: 1px solid rgba(7, 17, 26, .14);
    border-radius: 20px 4px 20px 4px;
    box-shadow: 0 15px 42px rgba(50, 40, 28, .11);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.portfolio-v2-card:hover {
    border-color: rgba(169, 54, 39, .34);
    box-shadow: 0 22px 54px rgba(50, 40, 28, .17);
    transform: translateY(-5px);
}

.portfolio-v2-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    color: var(--lower-paper-strong);
    background: #182932;
    border: 0;
    border-radius: 0;
    cursor: zoom-in;
}

.portfolio-v2-card__media::after {
    content: 'Ampliar';
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    color: var(--lower-paper-strong);
    font: 700 .62rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(7, 17, 26, .72);
    border: 1px solid rgba(255, 249, 237, .2);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
}

.portfolio-v2-card__media:hover::after,
.portfolio-v2-card__media:focus-visible::after {
    opacity: 1;
    transform: none;
}

.portfolio-v2-card__media:focus-visible {
    outline-offset: -4px;
}

.portfolio-v2-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .55s ease;
}

.portfolio-v2-card__media:hover img {
    transform: scale(1.035);
}

.portfolio-v2-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 24px;
    color: var(--lower-paper-muted);
    text-align: center;
    font: 700 .72rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    background:
        linear-gradient(135deg, rgba(223, 76, 50, .14), transparent 48%),
        var(--lower-ink-soft);
}

.portfolio-v2-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 28px);
}

.portfolio-v2-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #7d5141;
    font: 700 .63rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .065em;
}

.portfolio-v2-card__meta span:last-child {
    color: #647078;
}

.portfolio-v2-card h3 {
    margin: 0 0 11px;
    font-size: clamp(1.25rem, 1.7vw, 1.62rem);
    line-height: 1.17;
    letter-spacing: -.035em;
}

.portfolio-v2-card h3 a {
    color: var(--lower-ink);
    text-decoration: none;
}

.portfolio-v2-card h3 a:hover {
    color: var(--lower-koi-dark);
}

.portfolio-v2-card__problem {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: #566168;
    font-size: .91rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.portfolio-v2-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: auto 0 21px;
    padding: 0;
    list-style: none;
}

.portfolio-v2-card__tags li {
    padding: 5px 8px;
    color: #6c4031;
    font: 700 .61rem var(--font-mono);
    background: rgba(223, 76, 50, .055);
    border: 1px solid rgba(169, 54, 39, .15);
    border-radius: 999px;
}

.portfolio-v2-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--lower-koi-dark);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

.portfolio-v2-card__link span {
    transition: transform .2s ease;
}

.portfolio-v2-card__link:hover span {
    transform: translateX(4px);
}

.portfolio-v2__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    margin-top: 8px;
}

.portfolio-v2__dots button {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.portfolio-v2__dots button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 7px;
    border-radius: 999px;
    background: rgba(7, 17, 26, .18);
    transform: translate(-50%, -50%);
    transition: width .22s ease, background .22s ease;
}

.portfolio-v2__dots button[aria-current='true']::before {
    width: 32px;
    background: var(--lower-koi-dark);
}

.portfolio-v2__archive {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(7, 17, 26, .14);
}

.portfolio-v2__archive p {
    max-width: 620px;
    margin: 0;
    color: #59656b;
}

.portfolio-v2__archive .btn,
.technical-v2__cta,
.blog-v2 .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.portfolio-v2__archive .btn {
    max-width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.portfolio-v2__archive .btn svg {
    flex: 0 0 18px;
}

/* ==============================
   PERFIL TÉCNICO
============================== */

#habilidades.technical-v2 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(82px, 9vw, 132px) 0;
    color: var(--lower-paper-strong);
    background:
        radial-gradient(circle at 84% 20%, rgba(223, 76, 50, .12), transparent 27%),
        linear-gradient(145deg, #07111a 0%, #10222c 56%, #07111a 100%);
}

#habilidades.technical-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(90deg, rgba(255, 249, 237, .08) 1px, transparent 1px),
        linear-gradient(rgba(255, 249, 237, .055) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(90deg, transparent, #000 22% 82%, transparent);
}

.technical-v2__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    gap: clamp(44px, 7vw, 100px);
    align-items: center;
}

.technical-v2 .section-tag {
    color: var(--lower-copper);
}

.technical-v2__content h2 {
    max-width: 12ch;
    margin: 14px 0 22px;
    color: var(--lower-paper-strong);
    font-size: clamp(2.65rem, 5vw, 5.35rem);
    line-height: 1;
    letter-spacing: -.068em;
}

.technical-v2__content h2 span {
    color: var(--lower-sakura);
}

.technical-v2__lead {
    max-width: 65ch;
    margin: 0;
    color: #bec9cd;
    font-size: 1.02rem;
    line-height: 1.75;
}

.technical-v2__capabilities {
    display: grid;
    gap: 10px;
    margin: 34px 0 26px;
}

.technical-v2__capabilities article {
    display: grid;
    grid-template-columns: 44px minmax(150px, .42fr) minmax(0, .58fr);
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 249, 237, .035);
    border: 1px solid var(--lower-line-light);
    border-left: 2px solid rgba(201, 121, 61, .76);
    border-radius: 2px 13px 13px 2px;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.technical-v2__capabilities article:hover {
    background: rgba(201, 121, 61, .075);
    border-color: rgba(201, 121, 61, .4);
    transform: translateX(5px);
}

.technical-v2__capabilities article > span {
    color: var(--lower-copper);
    font: 700 .72rem var(--font-mono);
}

.technical-v2__capabilities h3 {
    margin: 0;
    color: var(--lower-paper-strong);
    font-size: 1rem;
}

.technical-v2__capabilities p {
    margin: 0;
    color: #aebbc0;
    font-size: .83rem;
    line-height: 1.55;
}

.technical-v2__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 31px;
}

.technical-v2__stack span {
    padding: 7px 10px;
    color: var(--lower-paper-muted);
    font: .68rem var(--font-mono);
    background: rgba(255, 249, 237, .035);
    border: 1px solid rgba(255, 249, 237, .11);
    border-radius: 6px;
}

.technical-v2__signature {
    min-width: 0;
}

.technical-v2__signature figure {
    position: relative;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    background: rgba(255, 249, 237, .06);
    border: 1px solid rgba(201, 121, 61, .35);
    border-radius: 4px 28px 4px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .36);
}

.technical-v2__signature img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px 20px 2px 20px;
}

.technical-v2__signature figcaption {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    padding: 17px 19px;
    color: var(--lower-paper-strong);
    background: rgba(7, 17, 26, .8);
    border: 1px solid rgba(255, 249, 237, .16);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.technical-v2__signature figcaption span {
    color: var(--lower-copper);
    font: 700 .64rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.technical-v2__signature figcaption p {
    margin: 7px 0 0;
    color: #d5dddf;
    font-size: .8rem;
    line-height: 1.55;
}

/* ==============================
   CONTACTO COMPACTO
============================== */

#contacto.contact-ultra-minimalist.contact-v2 {
    position: relative;
    display: block;
    min-height: 0 !important;
    padding: clamp(68px, 8vw, 104px) 0 !important;
    background-position: center !important;
}

#contacto.contact-v2 > .contact-v2__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(5, 12, 20, .9), rgba(5, 12, 20, .72) 52%, rgba(5, 12, 20, .84)) !important;
}

.contact-v2__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(290px, .78fr) minmax(480px, 1.22fr);
    gap: clamp(38px, 6vw, 86px);
    align-items: center;
    text-align: left;
}

#contacto .contact-header-minimal.contact-v2__intro {
    max-width: 540px;
    margin: 0;
}

.contact-v2__intro .section-tag {
    color: var(--lower-copper);
}

#contacto.contact-v2 .c-title {
    margin: 14px 0 18px;
    color: var(--lower-paper-strong);
    font-size: clamp(2.8rem, 5vw, 5.1rem);
    line-height: 1;
    letter-spacing: -.068em;
}

#contacto.contact-v2 .c-title span {
    color: #f28a5d;
}

.contact-v2__intro .c-desc {
    max-width: 49ch;
    margin: 0;
    color: #c5cfd3;
    line-height: 1.72;
}

#contacto.contact-v2 .contact-direct {
    display: flex;
    width: fit-content;
    margin: 25px 0 0;
    background: rgba(7, 17, 26, .58);
    border-color: rgba(201, 121, 61, .28);
}

.contact-v2__promises {
    display: grid;
    gap: 9px;
    margin: 27px 0 0;
    padding: 0;
    color: #adbcc1;
    list-style: none;
    font-size: .84rem;
}

.contact-v2__promises li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-v2__promises li::before {
    content: '◇';
    color: var(--lower-copper);
}

#contacto.contact-v2 .contact-form-wrapper.contact-v2__form-wrap {
    width: 100%;
    max-width: none !important;
    margin: 0;
    text-align: left;
}

#contacto.contact-v2 #contactForm {
    display: grid;
    gap: 15px;
    padding: clamp(22px, 3.2vw, 34px) !important;
    background: rgba(5, 12, 20, .84) !important;
    border: 1px solid rgba(201, 121, 61, .34) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
    backdrop-filter: blur(14px);
}

.contact-v2__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-v2__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.contact-v2__field {
    min-width: 0;
}

#contacto.contact-v2 .contact-field-label {
    display: block;
    margin: 0 0 6px;
    color: #cfd8db;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .025em;
}

#contacto.contact-v2 #contactForm input,
#contacto.contact-v2 #contactForm select,
#contacto.contact-v2 #contactForm textarea {
    width: 100%;
    padding: 11px 13px;
    color: #fff9ed;
    font: .9rem var(--font-body);
    background: rgba(0, 0, 0, .32) !important;
    border: 1px solid rgba(255, 249, 237, .17) !important;
    border-radius: 8px;
    outline: 0;
}

#contacto.contact-v2 #contactForm textarea {
    min-height: 96px;
    resize: vertical;
}

#contacto.contact-v2 #contactForm input::placeholder,
#contacto.contact-v2 #contactForm textarea::placeholder {
    color: #84949a;
    opacity: 1;
}

#contacto.contact-v2 #contactForm input:focus,
#contacto.contact-v2 #contactForm select:focus,
#contacto.contact-v2 #contactForm textarea:focus {
    border-color: var(--lower-copper) !important;
    box-shadow: 0 0 0 3px rgba(201, 121, 61, .14);
}

#contacto.contact-v2 #contactProjectType option {
    color: var(--lower-ink);
    background: var(--lower-paper-strong);
}

.contact-v2__footer {
    display: grid;
    grid-template-columns: minmax(170px, .62fr) minmax(190px, .38fr);
    gap: 13px;
    align-items: end;
}

.contact-v2__captcha .contact-field-label span {
    color: #f28a5d;
    font-size: .78rem;
}

#contacto.contact-v2 #contactCaptcha {
    text-align: center;
    -moz-appearance: textfield;
}

#contacto.contact-v2 #contactCaptcha::-webkit-inner-spin-button,
#contacto.contact-v2 #contactCaptcha::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.contact-v2__submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 43px;
    padding: 11px 16px;
    color: var(--lower-paper-strong);
    font: 800 .76rem var(--font-body);
    background: linear-gradient(135deg, var(--lower-koi), var(--lower-koi-dark));
    border: 1px solid rgba(255, 249, 237, .16);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(169, 54, 39, .23);
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.contact-v2__submit:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.contact-v2__submit:disabled {
    opacity: .65;
    cursor: wait;
}

.contact-v2__message {
    padding: 10px 12px;
    color: #d6e0e3;
    font-size: .78rem;
    text-align: center;
    border: 1px solid rgba(255, 249, 237, .12);
    border-radius: 8px;
}

.contact-v2__message[hidden] {
    display: none !important;
}

.contact-v2__message[data-state='success'] {
    color: #c8f3dc;
    background: rgba(34, 197, 94, .09);
    border-color: rgba(34, 197, 94, .25);
}

.contact-v2__message[data-state='error'] {
    color: #ffd0c8;
    background: rgba(223, 76, 50, .1);
    border-color: rgba(223, 76, 50, .3);
}

.contact-v2__captcha-retry {
    display: inline-flex;
    margin: 10px 0 0 8px;
    padding: 7px 10px;
    color: inherit;
    font: 700 .68rem var(--font-mono);
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    cursor: pointer;
}

/* ==============================
   BLOG LUMINOSO
============================== */

#blog.blog-v2 {
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 9vw, 124px) 0;
    color: var(--lower-ink);
    background:
        radial-gradient(circle at 15% 20%, rgba(229, 166, 181, .26), transparent 28%),
        linear-gradient(135deg, #fff8ec, #eadcc9);
}

#blog.blog-v2::before,
#blog.blog-v2::after {
    display: none !important;
}

.blog-v2__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    gap: clamp(42px, 7vw, 94px);
    align-items: center;
}

.blog-v2 .section-tag {
    color: var(--lower-koi-dark);
}

#blog.blog-v2 h2 {
    max-width: 11ch;
    margin: 14px 0 22px;
    color: var(--lower-ink);
    font-size: clamp(2.7rem, 5vw, 5.45rem);
    line-height: .99;
    letter-spacing: -.068em;
}

#blog.blog-v2 h2 span {
    color: var(--lower-koi-dark);
}

#blog.blog-v2 .blog-v2__content > p {
    max-width: 61ch;
    margin: 0;
    color: #566168;
    font-size: 1rem;
    line-height: 1.72;
}

.blog-v2__topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 28px 0 30px;
    padding: 0;
    list-style: none;
}

.blog-v2__topics li {
    padding: 10px 12px;
    color: #68473a;
    font: 700 .69rem var(--font-mono);
    background: rgba(255, 249, 237, .6);
    border: 1px solid rgba(169, 54, 39, .16);
    border-radius: 7px;
}

.blog-v2__topics li::before {
    content: '◇';
    margin-right: 8px;
    color: var(--lower-koi-dark);
}

.blog-v2__media {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 9px;
    background: rgba(255, 249, 237, .76);
    border: 1px solid rgba(7, 17, 26, .14);
    border-radius: 5px 28px 5px 28px;
    box-shadow: var(--lower-shadow);
    transform: rotate(-1deg);
}

.blog-v2__media picture {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px 20px 2px 20px;
}

.blog-v2__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-v2__media figcaption {
    padding: 11px 8px 3px;
    color: #657077;
    font: .66rem var(--font-mono);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.blog-v2__media figcaption span {
    color: var(--lower-koi-dark);
}

/* ==============================
   FOCUS, MOTION Y RESPONSIVE
============================== */

.portfolio-v2 button:focus-visible,
.portfolio-v2 a:focus-visible,
.technical-v2 a:focus-visible,
.contact-v2 button:focus-visible,
.contact-v2 a:focus-visible,
.blog-v2 a:focus-visible {
    outline: 3px solid #f05a3e;
    outline-offset: 4px;
}

html[data-motion='reduced'] .portfolio-v2__track,
html[data-motion='reduced'] .portfolio-v2-card,
html[data-motion='reduced'] .portfolio-v2-card__media img,
html[data-motion='reduced'] .portfolio-v2-card__media::after,
html[data-motion='reduced'] .portfolio-v2-card__link span,
html[data-motion='reduced'] .portfolio-v2__controls button,
html[data-motion='reduced'] .portfolio-v2__dots button::before,
html[data-motion='reduced'] .technical-v2__capabilities article,
html[data-motion='reduced'] .contact-v2__submit {
    scroll-behavior: auto;
    transition: none !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-v2__track {
        scroll-behavior: auto;
    }

    .portfolio-v2-card,
    .portfolio-v2-card__media img,
    .portfolio-v2-card__media::after,
    .portfolio-v2-card__link span,
    .portfolio-v2__controls button,
    .portfolio-v2__dots button::before,
    .technical-v2__capabilities article,
    .contact-v2__submit {
        transition: none !important;
        transform: none !important;
    }
}

/* ========================================================================== 
   HOME V7 · perfil técnico, blog, diálogo de Paca y footer editorial
   ========================================================================== */

/* El arte del blog entra desde ambos laterales sin tramas ni cajas decorativas. */
#blog.blog-v2::before {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(52vw, 850px);
    background: url('../assets/blog-studio-right-v7.webp') right center / cover no-repeat;
    opacity: .27;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .52) 34%, #000 72% 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .52) 34%, #000 72% 100%);
}

#blog.blog-v2::after {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(34vw, 540px);
    height: auto;
    background: url('../assets/blog-notes-left-v7.webp') left center / cover no-repeat;
    opacity: .2;
    -webkit-mask-image: linear-gradient(90deg, #000 0 42%, rgba(0, 0, 0, .4) 68%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 42%, rgba(0, 0, 0, .4) 68%, transparent 100%);
}

#blog .blog-v3-card,
#blog .blog-v3__empty,
#blog .blog-v3__loading {
    background-color: rgba(255, 249, 237, .9);
    backdrop-filter: blur(10px) saturate(112%);
}

/* Perfil técnico: menos altura forzada y más evidencia de formación y stack. */
#habilidades.technical-dossier {
    padding-block: clamp(68px, 6vw, 92px);
    background:
        radial-gradient(ellipse at 7% 8%, rgba(191, 67, 43, .2), transparent 30%),
        radial-gradient(ellipse at 83% 62%, rgba(40, 91, 118, .14), transparent 38%),
        linear-gradient(146deg, #050d12 0%, #0d1b22 52%, #060e13 100%);
}

#habilidades.technical-dossier::before {
    top: 0;
    right: -7vw;
    bottom: 0;
    width: min(78vw, 1440px);
    height: auto;
    aspect-ratio: auto;
    background: url('../assets/technical-dragon-v7.webp') right center / cover no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: .2;
    filter: saturate(.72) contrast(1.08);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .28) 26%, #000 62% 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .28) 26%, #000 62% 100%);
}

.technical-dossier__intro > p { max-width: 690px; }

.technical-dossier__header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #f2a477;
    font: 700 .69rem/1.3 var(--font-mono, monospace);
    letter-spacing: .045em;
    text-transform: uppercase;
}

.technical-dossier__header-cta span {
    transition: transform .22s ease;
}

.technical-dossier__header-cta:hover span,
.technical-dossier__header-cta:focus-visible span {
    transform: translate(3px, -3px);
}

.technical-dossier__timeline li {
    min-height: 112px;
    background: linear-gradient(145deg, rgba(255, 250, 240, .025), transparent 70%);
}

.technical-dossier__stage {
    grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
    min-height: 0;
    overflow: hidden;
    background: rgba(4, 11, 15, .62);
}

.technical-dossier__visual {
    min-height: 0;
}

#habilidades .technical-dossier__visual .technical-v3__scene-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.technical-dossier__map {
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    background:
        linear-gradient(150deg, rgba(255, 249, 237, .045), rgba(255, 249, 237, .01)),
        rgba(8, 19, 24, .92);
}

.technical-dossier__map-head {
    padding: 19px clamp(22px, 2.7vw, 36px) 17px;
    border-bottom: 1px solid rgba(247, 240, 229, .11);
    background: linear-gradient(90deg, rgba(208, 82, 46, .12), transparent 72%);
}

.technical-dossier__map-head > span {
    display: block;
    color: #e68a5c;
    font: 700 .62rem/1 var(--font-mono, monospace);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.technical-dossier__map-head p {
    max-width: 54ch;
    margin: 8px 0 0;
    color: #9eacb1;
    font-size: .72rem;
    line-height: 1.5;
}

.technical-dossier__map article {
    align-content: center;
    min-height: 0;
    padding: 17px clamp(22px, 2.7vw, 36px);
}

.technical-dossier__map article > p {
    margin-top: 8px;
    margin-bottom: 8px;
    line-height: 1.45;
}

.technical-dossier__map ul { margin-top: 9px; }

.technical-dossier__map li {
    padding: 5px 8px;
    color: #d0d8d9;
    background: rgba(255, 249, 237, .045);
    border-color: rgba(239, 139, 91, .16);
}

/* El nuevo emblema sustituye al emoji no compatible y el correo se comporta como botón. */
.paca-dialog {
    border-color: rgba(222, 100, 51, .9);
    background: linear-gradient(155deg, #fffaf0, #f5ebdc);
    box-shadow: 9px 9px 0 #101923, 0 28px 80px rgba(0, 0, 0, .4);
}

.paca-dialog-icon {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 1px solid rgba(216, 69, 47, .5);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(216, 69, 47, .075), 0 12px 30px rgba(16, 25, 35, .18);
}

.paca-dialog-email {
    padding: 4px 7px;
    color: #101923;
    font: 700 .88rem/1.4 var(--font-body, sans-serif);
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
}

.paca-dialog :is(a, button):focus-visible {
    outline: 3px solid #f28c28;
    outline-offset: 4px;
}

@media (max-width: 920px) {
    .technical-dossier__stage { grid-template-columns: 1fr; }
    .technical-dossier__visual { min-height: 0; border-radius: 26px 6px 0 0; }
    #habilidades .technical-dossier__visual .technical-v3__scene-stage { aspect-ratio: 16 / 9; }

    .technical-dossier__map {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto 1fr;
        border-top: 1px solid rgba(239, 139, 91, .2);
        border-left: 0;
        border-radius: 0 0 26px 26px;
    }

    .technical-dossier__map-head { grid-column: 1 / -1; }
    .technical-dossier__map article { min-height: 0; padding: 22px 19px; border-right: 1px solid rgba(247, 240, 229, .105); border-bottom: 0; }
    .technical-dossier__map article:last-child { border-right: 0; }
    .technical-dossier__map article > p,
    .technical-dossier__map ul { margin-left: 0; }

}

@media (max-width: 720px) {
    #blog.blog-v2::before { width: 100%; opacity: .16; }
    #blog.blog-v2::after { display: none !important; }

    #habilidades.technical-dossier::before {
        right: -38%;
        width: 138%;
        opacity: .13;
    }

    #habilidades .technical-dossier__visual .technical-v3__scene-stage { aspect-ratio: 4 / 3; }

    .technical-dossier__map {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .technical-dossier__map-head { grid-column: auto; }
    .technical-dossier__map article { border-right: 0; border-bottom: 1px solid rgba(247, 240, 229, .105); }

}

@media (max-width: 480px) {
    .technical-dossier__map article { padding: 20px 17px; }
    .technical-dossier__map-head { padding-inline: 17px; }
}

html[data-motion='reduced'] .technical-dossier__header-cta span {
    transition: none;
}

@media (max-width: 1080px) {
    .portfolio-v2__header,
    .technical-v2__layout,
    .blog-v2__layout {
        grid-template-columns: minmax(0, 1fr) minmax(310px, .82fr);
        gap: 44px;
    }

    .technical-v2__capabilities article {
        grid-template-columns: 40px minmax(130px, .42fr) minmax(0, .58fr);
        gap: 12px;
    }

    .contact-v2__layout {
        grid-template-columns: minmax(260px, .72fr) minmax(430px, 1.28fr);
        gap: 38px;
    }
}

@media (max-width: 900px) {
    .portfolio-v2__header,
    .technical-v2__layout,
    .contact-v2__layout,
    .blog-v2__layout {
        grid-template-columns: 1fr;
    }

    .portfolio-v2__heading h2,
    .technical-v2__content h2,
    #blog.blog-v2 h2 {
        max-width: 14ch;
    }

    .portfolio-v2__art,
    .blog-v2__media {
        width: min(100%, 700px);
    }

    .portfolio-v2__track {
        --portfolio-v2-gap: 20px;
        grid-auto-columns: calc(50% - 10px);
    }

    .technical-v2__signature {
        width: min(100%, 620px);
    }

    #contacto .contact-header-minimal.contact-v2__intro {
        max-width: 650px;
    }

    #contacto.contact-v2 .contact-form-wrapper.contact-v2__form-wrap {
        max-width: 760px !important;
    }

    #contacto.contact-v2 > .contact-v2__overlay {
        background: linear-gradient(180deg, rgba(5, 12, 20, .86), rgba(5, 12, 20, .72) 48%, rgba(5, 12, 20, .9)) !important;
    }
}

@media (max-width: 660px) {
    #proyectos.portfolio-v2,
    #habilidades.technical-v2,
    #blog.blog-v2 {
        padding-block: 72px;
    }

    #contacto.contact-ultra-minimalist.contact-v2 {
        padding-block: 68px !important;
    }

    .portfolio-v2__header,
    .technical-v2__layout,
    .contact-v2__layout,
    .blog-v2__layout {
        gap: 34px;
    }

    .portfolio-v2__heading h2,
    .technical-v2__content h2,
    #contacto.contact-v2 .c-title,
    #blog.blog-v2 h2 {
        font-size: clamp(2.45rem, 12vw, 3.65rem);
    }

    .portfolio-v2__toolbar,
    .portfolio-v2__archive {
        align-items: flex-start;
        flex-direction: column;
    }

    .portfolio-v2__controls {
        width: 100%;
    }

    .portfolio-v2__controls .portfolio-v2__autoplay {
        flex: 1;
    }

    .portfolio-v2__track {
        grid-auto-columns: 100%;
    }

    .portfolio-v2__archive .btn {
        width: 100%;
        justify-content: center;
    }

    .technical-v2__capabilities article {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .technical-v2__capabilities article p {
        grid-column: 2;
    }

    .technical-v2__signature figcaption {
        position: static;
        margin-top: 9px;
        background: rgba(7, 17, 26, .96);
    }

    .contact-v2__row,
    .contact-v2__footer,
    .blog-v2__topics {
        grid-template-columns: 1fr;
    }

    #contacto.contact-v2 .contact-direct {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 13px;
    }

    #contacto.contact-v2 .contact-direct a {
        overflow-wrap: anywhere;
    }

    #contacto.contact-v2 .flying-paca-container {
        width: 100px;
        height: 100px;
        right: 18px;
        transform: scaleX(-1);
        animation: none;
    }
}

@media (max-width: 430px) {
    .portfolio-v2__art,
    .blog-v2__media,
    .technical-v2__signature figure {
        padding: 6px;
        border-radius: 4px 19px 4px 19px;
    }

    .portfolio-v2__art figcaption,
    .blog-v2__media figcaption {
        display: block;
        font-size: .58rem;
    }

    .portfolio-v2__legend {
        gap: 6px;
    }

    .portfolio-v2__legend span {
        font-size: .61rem;
    }

    .portfolio-v2-card__body {
        padding: 20px;
    }

    #contacto.contact-v2 #contactForm {
        padding: 18px !important;
    }
}

/* ========================================================================== 
   HOME LOWER V3 · composición compacta, perfil profesional y feed real
   ========================================================================== */

/* Portfolio: el jardín deja de ser una tarjeta y pasa a cerrar la sección. */
#proyectos.portfolio-v2 {
    padding: clamp(66px, 6.5vw, 94px) 0 clamp(72px, 7vw, 104px);
    background: #fffaf1;
}

#proyectos.portfolio-v2::before {
    display: none;
}

.portfolio-v3__garden {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: .94;
}

.portfolio-v3__garden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 250, 241, .15), transparent 55%);
}

.portfolio-v3__garden picture,
.portfolio-v3__garden img {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-v3__garden img {
    object-fit: cover;
    object-position: right bottom;
}

.portfolio-v2__inner {
    z-index: 1;
}

.portfolio-v2__header {
    display: block;
    width: min(100%, 850px);
    margin-bottom: clamp(28px, 3.7vw, 44px);
}

.portfolio-v2__heading h2 {
    max-width: 14ch;
    margin-bottom: 17px;
    font-size: clamp(2.7rem, 5vw, 5.25rem);
}

.portfolio-v2__heading > p {
    max-width: 67ch;
    line-height: 1.65;
}

.portfolio-v2__legend {
    margin-top: 18px;
}

.portfolio-v2__carousel {
    position: relative;
    padding: clamp(14px, 2vw, 22px);
    background: rgba(255, 250, 241, .86);
    border: 1px solid rgba(7, 17, 26, .1);
    border-radius: 22px 5px 22px 5px;
    box-shadow: 0 20px 58px rgba(50, 40, 28, .09);
    backdrop-filter: blur(10px);
}

.portfolio-v2__toolbar {
    margin-bottom: 12px;
}

.portfolio-v2__track {
    padding-bottom: 10px;
}

.portfolio-v2-card__media,
.portfolio-v2-card__placeholder {
    aspect-ratio: 16 / 9;
}

.portfolio-v2-card__body {
    padding: clamp(18px, 2vw, 23px);
}

.portfolio-v2-card__meta {
    margin-bottom: 12px;
}

.portfolio-v2-card__problem {
    margin-bottom: 16px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
}

.portfolio-v2-card__tags {
    margin-bottom: 16px;
}

.portfolio-v2__dots {
    margin-top: 1px;
}

.portfolio-v2__archive {
    margin-top: 24px;
    padding-top: 21px;
}

/* Perfil: sin cuadrícula; una transición orgánica continúa el cerezo anterior. */
#habilidades.technical-v2 {
    padding: clamp(76px, 7.5vw, 112px) 0;
    background:
        radial-gradient(ellipse at 82% 18%, rgba(151, 56, 41, .22), transparent 36%),
        radial-gradient(ellipse at 15% 88%, rgba(96, 52, 49, .18), transparent 32%),
        linear-gradient(145deg, #09131a 0%, #14242b 52%, #081117 100%);
}

#habilidades.technical-v2::before {
    display: none;
    content: none;
    background: none;
}

.technical-v2__layout {
    position: relative;
    z-index: 2;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
    gap: clamp(40px, 5.5vw, 76px);
}

.technical-v3__petals {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 210px;
    overflow: hidden;
    pointer-events: none;
}

.technical-v3__petals span {
    --petal-x: 10vw;
    --petal-delay: 0s;
    position: absolute;
    top: -24px;
    left: var(--petal-x);
    width: 12px;
    height: 8px;
    background: linear-gradient(145deg, #f2c0c8, #b75563);
    border-radius: 90% 0 90% 0;
    box-shadow: 0 0 9px rgba(229, 166, 181, .28);
    opacity: .75;
    animation: technical-v3-petal-fall 8.5s var(--petal-delay) linear infinite;
}

.technical-v3__petals span:nth-child(2) { --petal-x: 24vw; --petal-delay: -5.8s; transform: scale(.72); }
.technical-v3__petals span:nth-child(3) { --petal-x: 39vw; --petal-delay: -2.2s; transform: scale(1.08); }
.technical-v3__petals span:nth-child(4) { --petal-x: 57vw; --petal-delay: -7.1s; transform: scale(.65); }
.technical-v3__petals span:nth-child(5) { --petal-x: 71vw; --petal-delay: -3.6s; transform: scale(.9); }
.technical-v3__petals span:nth-child(6) { --petal-x: 84vw; --petal-delay: -1.4s; transform: scale(1.15); }
.technical-v3__petals span:nth-child(7) { --petal-x: 94vw; --petal-delay: -6.5s; transform: scale(.78); }

@keyframes technical-v3-petal-fall {
    0% { opacity: 0; transform: translate3d(0, -12px, 0) rotate(0deg); }
    12% { opacity: .76; }
    52% { transform: translate3d(34px, 105px, 0) rotate(190deg); }
    100% { opacity: 0; transform: translate3d(-16px, 220px, 0) rotate(410deg); }
}

.technical-v2__content h2 {
    max-width: 13ch;
    font-size: clamp(2.65rem, 4.6vw, 5rem);
}

.technical-v2__lead {
    max-width: 70ch;
}

.technical-v2__capabilities {
    margin-top: 28px;
}

.technical-v2__capabilities article {
    grid-template-columns: 40px minmax(155px, .38fr) minmax(0, .62fr);
    padding: 15px 17px;
    background: rgba(255, 249, 237, .025);
    border: 1px solid rgba(255, 249, 237, .1);
    border-left: 2px solid rgba(201, 121, 61, .72);
}

.technical-v2__stack {
    margin: 24px 0 27px;
}

.technical-v2__signature figure.technical-v3__scene {
    padding: 8px;
    background: rgba(6, 14, 19, .68);
    border-color: rgba(229, 166, 181, .26);
    border-radius: 28px 5px 28px 5px;
}

.technical-v3__scene-stage {
    position: relative;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101c22;
    border-radius: 21px 3px 21px 3px;
}

.technical-v3__scene-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, transparent 35%, rgba(4, 10, 14, .38) 100%),
        linear-gradient(to top, rgba(4, 10, 14, .62), transparent 42%);
}

.technical-v3__scene-poster,
.technical-v3__scene-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.technical-v3__scene-poster img,
.technical-v3__scene-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.technical-v3__scene-video {
    z-index: 1;
    background: transparent;
}

.technical-v3__scene[data-video-state='error'] .technical-v3__scene-video {
    display: none;
}

.technical-v3__skill {
    position: absolute;
    z-index: 3;
    padding: 7px 10px;
    color: #fff7ea;
    font: 700 .64rem var(--font-mono);
    letter-spacing: .035em;
    background: rgba(7, 17, 26, .82);
    border: 1px solid rgba(229, 166, 181, .46);
    border-radius: 999px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
    opacity: 0;
    animation: technical-v3-skill-cut 5.266s cubic-bezier(.4, 0, .2, 1) infinite;
}

.technical-v3__skill--one { top: 15%; left: 7%; --skill-start: -85px; animation-delay: 0s; }
.technical-v3__skill--two { top: 36%; left: 16%; --skill-start: -95px; animation-delay: .07s; }
.technical-v3__skill--three { top: 59%; left: 6%; --skill-start: -90px; animation-delay: .14s; }
.technical-v3__skill--four { top: 76%; left: 18%; --skill-start: -100px; animation-delay: .21s; }

.technical-v3__slash {
    position: absolute;
    top: 51%;
    left: 38%;
    z-index: 4;
    width: 46%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff8e9 24% 68%, transparent);
    filter: drop-shadow(0 0 7px #f28a5d);
    opacity: 0;
    transform: rotate(-24deg) scaleX(.1);
    animation: technical-v3-slash 5.266s ease-in-out infinite;
}

@keyframes technical-v3-skill-cut {
    0%, 8% { opacity: 0; transform: translateX(var(--skill-start)) scale(.84); }
    23%, 45% { opacity: 1; transform: translateX(0) scale(1); }
    52% { opacity: 0; transform: translateX(0) scale(.82) rotate(-5deg); }
    100% { opacity: 0; }
}

@keyframes technical-v3-slash {
    0%, 42% { opacity: 0; transform: rotate(-24deg) scaleX(.08); }
    48% { opacity: 1; }
    58% { opacity: 0; transform: rotate(-24deg) scaleX(1); }
    100% { opacity: 0; }
}

.technical-v2__signature .technical-v3__scene figcaption {
    position: static;
    z-index: 4;
    margin-top: 8px;
    background: rgba(7, 17, 26, .94);
}

/* Contacto: Paca cruza la escena y los dos fotogramas construyen el aleteo. */
#contacto.contact-v2 > .contact-v2__overlay {
    background: linear-gradient(90deg, rgba(5, 12, 20, .73), rgba(5, 12, 20, .46) 53%, rgba(5, 12, 20, .68)) !important;
}

#contacto.contact-v2 .c-title,
#contacto.contact-v2 .c-title span {
    text-shadow: none !important;
    filter: none !important;
}

#contacto.contact-v2 .c-title {
    color: #eee7db;
}

#contacto.contact-v2 .c-title span {
    color: #dc7957;
}

#contacto.contact-v2 .flying-paca-container {
    top: 10%;
    right: -145px;
    width: 122px;
    height: 122px;
    opacity: .94;
    animation: contact-v3-paca-flight 17s linear infinite !important;
    will-change: transform;
}

#contacto.contact-v2 .flying-paca-container:hover {
    animation-play-state: paused !important;
}

#contacto.contact-v2 .flying-paca-container:focus-visible {
    right: 22px;
    animation: none !important;
    transform: scaleX(-1);
}

#contacto.contact-v2 .paca-frame-1 {
    animation: contact-v3-paca-frame-one .42s steps(1, end) infinite !important;
}

#contacto.contact-v2 .paca-frame-2 {
    animation: contact-v3-paca-frame-two .42s steps(1, end) infinite !important;
}

@keyframes contact-v3-paca-flight {
    0% { transform: translate3d(0, 18px, 0) scaleX(-1) rotate(-2deg); }
    22% { transform: translate3d(calc(-25vw - 70px), -8px, 0) scaleX(-1) rotate(2deg); }
    48% { transform: translate3d(calc(-53vw - 115px), 16px, 0) scaleX(-1) rotate(-1deg); }
    74% { transform: translate3d(calc(-79vw - 160px), -13px, 0) scaleX(-1) rotate(2deg); }
    100% { transform: translate3d(calc(-100vw - 290px), 10px, 0) scaleX(-1) rotate(-2deg); }
}

@keyframes contact-v3-paca-frame-one { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes contact-v3-paca-frame-two { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Blog: publicaciones reales, no una imagen promocional estática. */
#blog.blog-v2 {
    padding: clamp(72px, 7vw, 104px) 0;
}

.blog-v2__layout {
    grid-template-columns: minmax(0, .78fr) minmax(430px, 1.22fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

#blog.blog-v2 h2 {
    font-size: clamp(2.65rem, 4.6vw, 4.95rem);
}

.blog-v3__feed {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.blog-v3__loading,
.blog-v3__empty {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 34px;
    color: #666f73;
    text-align: center;
    line-height: 1.65;
    background: rgba(255, 249, 237, .66);
    border: 1px dashed rgba(7, 17, 26, .2);
    border-radius: 18px 5px 18px 5px;
}

.blog-v3__loading-mark {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border: 2px solid rgba(169, 54, 39, .18);
    border-top-color: var(--lower-koi-dark);
    border-radius: 50%;
    animation: blog-v3-loading .9s linear infinite;
}

@keyframes blog-v3-loading { to { transform: rotate(360deg); } }

.blog-v3-card {
    display: grid;
    grid-template-columns: minmax(128px, .34fr) minmax(0, .66fr);
    min-height: 148px;
    overflow: hidden;
    color: var(--lower-ink);
    text-decoration: none;
    background: rgba(255, 249, 237, .84);
    border: 1px solid rgba(7, 17, 26, .12);
    border-radius: 18px 4px 18px 4px;
    box-shadow: 0 12px 36px rgba(48, 37, 26, .08);
    transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}

.blog-v3-card:hover {
    border-color: rgba(169, 54, 39, .3);
    box-shadow: 0 18px 44px rgba(48, 37, 26, .14);
    transform: translateY(-3px);
}

.blog-v3-card__media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(223, 76, 50, .26), transparent 60%),
        #17272e;
}

.blog-v3-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .42s ease;
}

.blog-v3-card:hover .blog-v3-card__media img {
    transform: scale(1.04);
}

.blog-v3-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 249, 237, .8);
    font: 800 .7rem var(--font-mono);
    letter-spacing: .08em;
}

.blog-v3-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 20px 22px;
}

.blog-v3-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 9px;
    color: #756158;
    font: 700 .62rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .055em;
}

.blog-v3-card__category {
    color: var(--lower-koi-dark);
}

.blog-v3-card h3 {
    margin: 0;
    color: var(--lower-ink);
    font-size: clamp(1.06rem, 1.5vw, 1.35rem);
    line-height: 1.22;
    letter-spacing: -.025em;
}

.blog-v3-card p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: #606a6f;
    font-size: .82rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 1080px) {
    .technical-v2__layout {
        grid-template-columns: minmax(0, 1fr) minmax(315px, .78fr);
    }

    .blog-v2__layout {
        grid-template-columns: minmax(0, .86fr) minmax(390px, 1.14fr);
    }
}

@media (max-width: 900px) {
    .portfolio-v3__garden {
        width: 100%;
        height: 100%;
        opacity: .72;
    }

    .portfolio-v3__garden img {
        object-fit: contain;
        object-position: right bottom;
    }

    .technical-v2__layout,
    .blog-v2__layout {
        grid-template-columns: 1fr;
    }

    .technical-v2__signature {
        width: min(100%, 570px);
        margin-inline: auto;
    }

    .technical-v3__scene-stage { aspect-ratio: 16 / 9; }

    .blog-v3__feed {
        width: min(100%, 760px);
    }
}

@media (max-width: 660px) {
    #proyectos.portfolio-v2,
    #habilidades.technical-v2,
    #blog.blog-v2 {
        padding-block: 64px;
    }

    .portfolio-v3__garden {
        width: 100%;
        height: 100%;
        opacity: .58;
    }

    .portfolio-v2__carousel {
        padding: 10px;
    }

    .technical-v2__capabilities article {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .technical-v3__scene-stage { aspect-ratio: 16 / 9; }

    #contacto.contact-v2 > .contact-v2__overlay {
        background: linear-gradient(180deg, rgba(5, 12, 20, .7), rgba(5, 12, 20, .48) 48%, rgba(5, 12, 20, .73)) !important;
    }

    #contacto.contact-v2 .flying-paca-container {
        top: 5%;
        right: -105px;
        width: 96px;
        height: 96px;
        animation-duration: 13s !important;
    }

    .blog-v3-card {
        grid-template-columns: 105px minmax(0, 1fr);
        min-height: 132px;
    }

    .blog-v3-card__body {
        padding: 16px;
    }

    .blog-v3-card__meta {
        display: block;
    }

    .blog-v3-card__meta time {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 430px) {
    .blog-v3-card {
        grid-template-columns: 1fr;
    }

    .blog-v3-card__media {
        min-height: 150px;
    }
}

html[data-motion='reduced'] .technical-v3__petals span,
html[data-motion='reduced'] .technical-v3__skill,
html[data-motion='reduced'] .technical-v3__slash,
html[data-motion='reduced'] #contacto.contact-v2 .flying-paca-container,
html[data-motion='reduced'] #contacto.contact-v2 .paca-voladora,
html[data-motion='reduced'] .blog-v3__loading-mark {
    animation: none !important;
}

html[data-motion='reduced'] .technical-v3__skill {
    opacity: 1;
    transform: none;
}

html[data-motion='reduced'] #contacto.contact-v2 .flying-paca-container {
    right: 22px;
    transform: scaleX(-1);
}

html[data-motion='reduced'] #contacto.contact-v2 .paca-frame-1 {
    opacity: 1;
}

html[data-motion='reduced'] #contacto.contact-v2 .paca-frame-2 {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .technical-v3__petals span,
    .technical-v3__skill,
    .technical-v3__slash,
    #contacto.contact-v2 .flying-paca-container,
    #contacto.contact-v2 .paca-voladora,
    .blog-v3__loading-mark {
        animation: none !important;
    }

    .technical-v3__skill {
        opacity: 1;
        transform: none;
    }

    #contacto.contact-v2 .flying-paca-container {
        right: 22px;
        transform: scaleX(-1);
    }

    #contacto.contact-v2 .paca-frame-1 { opacity: 1; }
    #contacto.contact-v2 .paca-frame-2 { opacity: 0; }

    .blog-v3-card,
    .blog-v3-card__media img {
        transition: none;
    }
}

/* V3.1 · Ajuste de ritmo: el portfolio deja más protagonismo a los casos. */
#proyectos.portfolio-v2 {
    padding-block: clamp(58px, 5.6vw, 78px);
}

#proyectos .portfolio-v2__header {
    width: min(100%, 980px);
    margin-bottom: clamp(20px, 2.6vw, 30px);
}

#proyectos .portfolio-v2__heading h2 {
    max-width: 18ch;
    margin-bottom: 13px;
    font-size: clamp(2.45rem, 4.15vw, 4.35rem);
    line-height: .98;
}

#proyectos .portfolio-v2__heading > p {
    max-width: 72ch;
    line-height: 1.55;
}

#proyectos .portfolio-v2__legend { margin-top: 13px; }
#proyectos .portfolio-v2__carousel { padding: clamp(12px, 1.5vw, 17px); }
#proyectos .portfolio-v2__toolbar { margin-bottom: 8px; }
#proyectos .portfolio-v2-card__body { padding: clamp(15px, 1.5vw, 19px); }
#proyectos .portfolio-v2-card__meta { margin-bottom: 8px; }
#proyectos .portfolio-v2-card__problem {
    margin-bottom: 11px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
}
#proyectos .portfolio-v2-card__tags { margin-bottom: 12px; }
#proyectos .portfolio-v2-card__tags span:nth-child(n + 4) { display: none; }
#proyectos .portfolio-v2__archive {
    margin-top: 15px;
    padding-top: 15px;
}

@media (max-width: 780px) {
    #habilidades .technical-v2__content {
        min-width: 0;
    }

    #habilidades .technical-v2__capabilities {
        display: flex;
        width: 100%;
        max-width: 100%;
        gap: 10px;
        margin-inline: -2px;
        padding: 2px 2px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
    }

    #habilidades .technical-v2__capabilities article {
        flex: 0 0 min(78vw, 280px);
        min-height: 176px;
        scroll-snap-align: start;
    }
}

@media (max-width: 520px) {
    #proyectos .portfolio-v2__legend,
    #proyectos .portfolio-v2-card__tags { display: none; }

    #proyectos .portfolio-v2__header { margin-bottom: 18px; }
    #proyectos .portfolio-v2__heading h2 {
        font-size: clamp(2.35rem, 11.2vw, 3.1rem);
        line-height: 1;
    }
    #proyectos .portfolio-v2-card__body { padding: 15px; }
    #proyectos .portfolio-v2__archive {
        gap: 12px;
        min-height: 0;
        padding-top: 12px;
    }
}

/* ========================================================================== 
   HOME LOWER V4 · perfil editorial y puntos de entrada para arte contextual
   ========================================================================== */

/* La futura rama vive en una franja segura, por encima de la caja de texto. */
#proyectos.portfolio-v2 {
    --portfolio-sakura-branch-art: url('../assets/portfolio-sakura-branch-v4.webp');
}

.portfolio-v3__garden::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: min(58vw, 780px);
    height: clamp(130px, 15vw, 210px);
    pointer-events: none;
    background-image: var(--portfolio-sakura-branch-art);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    opacity: .58;
    -webkit-mask-image: linear-gradient(110deg, #000 0 48%, transparent 94%), linear-gradient(to bottom, #000 0 58%, transparent 100%);
    mask-image: linear-gradient(110deg, #000 0 48%, transparent 94%), linear-gradient(to bottom, #000 0 58%, transparent 100%);
}

#proyectos .portfolio-v2__heading {
    position: relative;
    z-index: 3;
}

/* Perfil técnico: una doble página compacta con Paca como pieza central. */
#habilidades.technical-v2 {
    padding: clamp(58px, 5.8vw, 82px) 0;
    background:
        radial-gradient(ellipse at 78% 45%, rgba(165, 70, 53, .16), transparent 38%),
        radial-gradient(ellipse at 4% 100%, rgba(95, 45, 51, .13), transparent 32%),
        linear-gradient(142deg, #081117 0%, #111f25 52%, #091218 100%);
}

#habilidades.technical-v2::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

#habilidades .technical-v2__layout {
    grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
    gap: clamp(30px, 4vw, 56px);
    align-items: center;
}

#habilidades .technical-v2__content {
    min-width: 0;
}

#habilidades .technical-v2__content h2 {
    max-width: 13ch;
    margin: 10px 0 15px;
    font-size: clamp(2.4rem, 3.75vw, 4.15rem);
    line-height: .98;
}

#habilidades .technical-v2__lead {
    max-width: 64ch;
    font-size: .94rem;
    line-height: 1.6;
}

#habilidades .technical-v2__capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
    overflow: visible;
}

#habilidades .technical-v2__capabilities article {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 3px 8px;
    min-width: 0;
    min-height: 0;
    padding: 11px 12px 12px;
    background: rgba(255, 249, 237, .025);
    border: 1px solid rgba(255, 249, 237, .09);
    border-top: 2px solid rgba(201, 121, 61, .64);
    border-left: 1px solid rgba(255, 249, 237, .09);
    border-radius: 3px 3px 12px 12px;
    transform: none;
}

#habilidades .technical-v2__capabilities article:hover {
    background: rgba(201, 121, 61, .06);
    border-color: rgba(201, 121, 61, .32);
    transform: translateY(-2px);
}

#habilidades .technical-v2__capabilities article > span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: .62rem;
}

#habilidades .technical-v2__capabilities h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: .88rem;
    line-height: 1.2;
}

#habilidades .technical-v2__capabilities p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
    color: #9fadb2;
    font-size: .72rem;
    line-height: 1.43;
}

#habilidades .technical-v2__stack {
    gap: 6px;
    margin: 15px 0 18px;
}

#habilidades .technical-v2__stack span {
    padding: 5px 8px;
    font-size: .62rem;
    background: rgba(255, 249, 237, .026);
}

#habilidades .technical-v2__cta {
    min-height: 43px;
    padding-block: 10px;
}

#habilidades .technical-v2__signature {
    width: 100%;
    min-width: 0;
    align-self: center;
}

#habilidades .technical-v2__signature figure.technical-v3__scene {
    width: 100%;
    margin: 0;
    padding: 7px;
    border-color: rgba(229, 166, 181, .2);
    box-shadow: 0 26px 68px rgba(0, 0, 0, .3);
}

#habilidades .technical-v3__scene-stage {
    aspect-ratio: 16 / 9;
}

#habilidades .technical-v3__scene-poster img,
#habilidades .technical-v3__scene-video {
    object-position: center;
}

#habilidades .technical-v3__scene-stage::after {
    background:
        radial-gradient(circle at 59% 45%, transparent 42%, rgba(4, 10, 14, .3) 100%),
        linear-gradient(to top, rgba(4, 10, 14, .48), transparent 34%);
}

#habilidades .technical-v2__signature .technical-v3__scene figcaption {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 14px;
    align-items: center;
    margin-top: 6px;
    padding: 11px 13px;
    background: rgba(7, 17, 26, .9);
}

#habilidades .technical-v2__signature figcaption span {
    grid-row: 1;
    white-space: nowrap;
}

#habilidades .technical-v2__signature figcaption p {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: .72rem;
}

/* Pétalos más grandes y orgánicos: son la única continuidad visual del cerezo. */
#habilidades .technical-v3__petals {
    height: 330px;
}

#habilidades .technical-v3__petals span {
    --petal-scale: 1;
    --petal-drift: 42px;
    top: -34px;
    width: 30px;
    height: 38px;
    opacity: .82;
    background: url('../assets/sakura-petal-v4.webp') center / contain no-repeat;
    border-radius: 0;
    clip-path: none;
    box-shadow: none;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .2));
    animation: technical-v4-petal-fall var(--petal-duration, 10.5s) var(--petal-delay) cubic-bezier(.38, .05, .58, .96) infinite;
}

#habilidades .technical-v3__petals span:nth-child(1) { --petal-scale: .82; --petal-duration: 9.3s; }
#habilidades .technical-v3__petals span:nth-child(2) { --petal-scale: 1.16; --petal-duration: 12.4s; }
#habilidades .technical-v3__petals span:nth-child(3) { --petal-scale: .72; --petal-duration: 10.8s; }
#habilidades .technical-v3__petals span:nth-child(4) { --petal-scale: 1.32; --petal-duration: 13.2s; }
#habilidades .technical-v3__petals span:nth-child(5) { --petal-scale: .94; --petal-duration: 11.6s; }
#habilidades .technical-v3__petals span:nth-child(6) { --petal-scale: 1.12; --petal-duration: 9.9s; }
#habilidades .technical-v3__petals span:nth-child(7) { --petal-scale: .78; --petal-duration: 12.8s; }

@keyframes technical-v4-petal-fall {
    0% { opacity: 0; transform: translate3d(0, -22px, 0) rotate(-28deg) scale(var(--petal-scale)); }
    12% { opacity: .82; }
    38% { transform: translate3d(var(--petal-drift), 112px, 0) rotate(92deg) scale(var(--petal-scale)); }
    68% { transform: translate3d(-18px, 224px, 0) rotate(228deg) scale(var(--petal-scale)); }
    100% { opacity: 0; transform: translate3d(54px, 352px, 0) rotate(410deg) scale(var(--petal-scale)); }
}

/* Dos fotogramas intercambiables: alas arriba y alas abajo. */
#contacto.contact-v2 .flying-paca-container {
    --paca-flight-frame-rate: .5s;
    isolation: isolate;
}

#contacto.contact-v2 .paca-voladora {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform-origin: 50% 54%;
    filter: drop-shadow(0 9px 10px rgba(0, 0, 0, .22));
}

#contacto.contact-v2 .paca-frame-1 {
    z-index: 2;
    transform: translateY(-7%);
    animation: contact-v4-wings-up var(--paca-flight-frame-rate) steps(1, end) infinite !important;
}

#contacto.contact-v2 .paca-frame-2 {
    z-index: 1;
    transform: translateY(3%);
    animation: contact-v4-wings-down var(--paca-flight-frame-rate) steps(1, end) infinite !important;
}

#contacto.contact-v2 .flying-paca-container:not([data-flight-ready='true']) .paca-frame-1 {
    opacity: 1;
    animation: none !important;
}

#contacto.contact-v2 .flying-paca-container:not([data-flight-ready='true']) .paca-frame-2 {
    opacity: 0;
    animation: none !important;
}

@keyframes contact-v4-wings-up { 0%, 47% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes contact-v4-wings-down { 0%, 47% { opacity: 0; } 48%, 100% { opacity: 1; } }

/* Blog contextual: arte opcional y textura editorial siempre detrás del contenido. */
#blog.blog-v2 {
    --blog-context-art: url('../assets/blog-study-corner-v4.webp');
    --blog-context-accent: rgba(169, 54, 39, .24);
    isolation: isolate;
}

#blog.blog-v2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 0;
    display: block !important;
    width: min(54vw, 860px);
    pointer-events: none;
    background-image: var(--blog-context-art);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    opacity: .3;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36% 100%);
    mask-image: linear-gradient(90deg, transparent, #000 36% 100%);
}

#blog.blog-v2::after {
    content: '';
    position: absolute;
    top: 8%;
    right: 0;
    z-index: 0;
    display: block !important;
    width: min(34vw, 520px);
    height: 84%;
    pointer-events: none;
    opacity: .52;
    background:
        radial-gradient(circle at 88% 12%, transparent 0 35px, var(--blog-context-accent) 36px 37px, transparent 38px),
        repeating-linear-gradient(to bottom, transparent 0 32px, rgba(91, 73, 59, .08) 33px 34px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%);
    mask-image: linear-gradient(90deg, transparent, #000 42%);
}

#blog.blog-v2[data-blog-context='ia'],
#blog.blog-v2[data-blog-context='herramientas'] {
    --blog-context-accent: rgba(201, 121, 61, .28);
}

#blog.blog-v2[data-blog-context='casos-de-estudio'] {
    --blog-context-accent: rgba(181, 75, 58, .3);
}

#blog .blog-v2__layout,
#blog .blog-v2__content,
#blog .blog-v3__feed {
    position: relative;
    z-index: 2;
}

#blog .blog-v3-card,
#blog .blog-v3__empty,
#blog .blog-v3__loading {
    background-color: rgba(255, 249, 237, .93);
    backdrop-filter: blur(7px);
}

@media (max-width: 1080px) {
    #habilidades .technical-v2__layout {
        grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
        gap: 30px;
    }

    #habilidades .technical-v2__content h2 {
        font-size: clamp(2.35rem, 4vw, 3.65rem);
    }
}

@media (max-width: 900px) {
    #habilidades .technical-v2__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #habilidades .technical-v2__signature {
        width: min(100%, 760px);
    }

    #habilidades .technical-v3__scene-stage {
        aspect-ratio: 16 / 9;
    }

    #habilidades .technical-v3__scene-poster img,
    #habilidades .technical-v3__scene-video {
        object-position: center;
    }

    #blog.blog-v2::before {
        width: 100%;
        opacity: .12;
    }
}

@media (max-width: 720px) {
    #habilidades .technical-v2__capabilities {
        display: flex;
        gap: 9px;
        margin-inline: 0;
        padding: 1px 1px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    #habilidades .technical-v2__capabilities article {
        flex: 0 0 min(76vw, 270px);
        min-height: 138px;
        scroll-snap-align: start;
    }

    #habilidades .technical-v2__signature .technical-v3__scene figcaption {
        grid-template-columns: 1fr;
    }

    #habilidades .technical-v2__signature figcaption p {
        grid-column: 1;
        grid-row: 2;
    }

    #habilidades .technical-v2__signature figcaption span {
        white-space: normal;
        line-height: 1.45;
    }

    .portfolio-v3__garden::before {
        width: min(72vw, 430px);
        height: 82px;
        opacity: .5;
    }

    #blog.blog-v2::after {
        width: 72vw;
        opacity: .32;
    }
}

@media (max-width: 520px) {
    #habilidades.technical-v2 {
        padding-block: 56px;
    }

    #habilidades .technical-v2__content h2 {
        font-size: clamp(2.3rem, 11vw, 3.1rem);
    }

    #habilidades .technical-v2__lead {
        font-size: .9rem;
    }

    #habilidades .technical-v2__signature {
        width: 100%;
    }

    #habilidades .technical-v3__scene-stage {
        aspect-ratio: 4 / 3;
    }

    #habilidades .technical-v3__skill {
        padding: 5px 7px;
        font-size: .54rem;
    }

    #blog.blog-v2::before {
        top: 42%;
        bottom: 0;
        display: block !important;
        width: 100%;
        opacity: .18;
        background-position: right bottom;
        -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26% 100%);
        mask-image: linear-gradient(to bottom, transparent, #000 26% 100%);
    }
}

html[data-motion='reduced'] #habilidades .technical-v3__petals span,
html[data-motion='reduced'] #contacto.contact-v2 .paca-voladora {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    #habilidades .technical-v3__petals span,
    #contacto.contact-v2 .paca-voladora {
        animation: none !important;
    }
}

/* ========================================================================== 
   PERFIL TÉCNICO V5 · dossier editorial con trayectoria y pruebas reales
   ========================================================================== */

#habilidades.technical-dossier {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(76px, 7vw, 102px) 0;
    color: #f7f0e5;
    background:
        radial-gradient(ellipse at 7% 6%, rgba(191, 67, 43, .17), transparent 30%),
        radial-gradient(ellipse at 86% 56%, rgba(211, 125, 73, .12), transparent 34%),
        linear-gradient(146deg, #061016 0%, #101f26 49%, #071117 100%);
}

#habilidades.technical-dossier::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: clamp(58px, 7vw, 102px);
    right: clamp(-190px, -10vw, -90px);
    width: clamp(320px, 36vw, 560px);
    aspect-ratio: 1;
    pointer-events: none;
    border: 1px solid rgba(214, 121, 70, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(214, 121, 70, .025),
        0 0 0 140px rgba(214, 121, 70, .018);
    opacity: .74;
}

#habilidades.technical-dossier::after {
    content: 'AN / PRODUCT · WEB · SOFTWARE / 2026';
    position: absolute;
    z-index: 0;
    right: 18px;
    bottom: 28px;
    color: rgba(247, 240, 229, .15);
    font: 600 .58rem/1 var(--font-mono, monospace);
    letter-spacing: .14em;
    writing-mode: vertical-rl;
}

.technical-dossier__shell {
    position: relative;
    z-index: 2;
}

.technical-dossier__header {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
    align-items: end;
    gap: clamp(42px, 6vw, 88px);
    margin-bottom: clamp(34px, 4vw, 52px);
}

.technical-dossier .section-tag { color: #dd8155; }

.technical-dossier__intro h2 {
    max-width: 900px;
    margin: 13px 0 20px;
    color: #fff8ed;
    font: 650 clamp(2.8rem, 4.5vw, 4.9rem)/.98 var(--font-display, sans-serif);
    letter-spacing: -.067em;
    text-wrap: balance;
}

.technical-dossier__intro h2 span { color: #ef8b5b; }

.technical-dossier__intro > p {
    max-width: 760px;
    margin: 0;
    color: #b8c3c6;
    font-size: clamp(.96rem, 1.15vw, 1.07rem);
    line-height: 1.72;
}

.technical-dossier__timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(247, 240, 229, .14);
    border-bottom: 1px solid rgba(247, 240, 229, .14);
}

.technical-dossier__timeline li {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 100px;
    padding: 17px 17px 17px 20px;
    border-right: 1px solid rgba(247, 240, 229, .1);
    border-bottom: 1px solid rgba(247, 240, 229, .1);
}

.technical-dossier__timeline li:nth-child(2n) { border-right: 0; }
.technical-dossier__timeline li:nth-child(n + 3) { border-bottom: 0; }

.technical-dossier__timeline li::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d66038, rgba(214, 96, 56, .08));
    transform: scaleY(.28);
    transform-origin: top;
    transition: transform .3s ease;
}

.technical-dossier__timeline li:hover::before { transform: scaleY(1); }

.technical-dossier__timeline span {
    color: #dc7950;
    font: 700 .62rem/1 var(--font-mono, monospace);
    letter-spacing: .09em;
}

.technical-dossier__timeline strong {
    margin-top: 8px;
    color: #f8f1e7;
    font: 650 .9rem/1.2 var(--font-display, sans-serif);
}

.technical-dossier__timeline small {
    margin-top: 5px;
    color: #89989d;
    font-size: .7rem;
    line-height: 1.35;
}

.technical-dossier__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
    min-height: clamp(510px, 48vw, 590px);
    border: 1px solid rgba(239, 139, 91, .24);
    border-radius: 27px 7px 27px 27px;
    box-shadow: 0 42px 100px rgba(0, 0, 0, .28);
}

.technical-dossier__visual {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 8px;
    overflow: hidden;
    background: rgba(3, 10, 14, .76);
    border-radius: 26px 0 0 26px;
}

#habilidades .technical-dossier__visual .technical-v3__scene-stage {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 20px 3px 20px 20px;
}

#habilidades .technical-dossier__visual .technical-v3__scene-poster img,
#habilidades .technical-dossier__visual .technical-v3__scene-video {
    object-position: center 48%;
}

#habilidades .technical-dossier__visual .technical-v3__scene-stage::after {
    background:
        linear-gradient(to top, rgba(3, 9, 13, .74), transparent 34%),
        radial-gradient(circle at 51% 46%, transparent 38%, rgba(3, 9, 13, .34) 100%);
}

.technical-dossier__signal {
    position: absolute;
    z-index: 5;
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 36px);
    padding: 8px 11px;
    color: rgba(255, 248, 237, .76);
    background: rgba(5, 13, 18, .55);
    border: 1px solid rgba(255, 248, 237, .14);
    border-radius: 999px;
    backdrop-filter: blur(11px);
    font: 650 .58rem/1 var(--font-mono, monospace);
    letter-spacing: .065em;
    text-transform: uppercase;
}

.technical-dossier__signal i {
    width: clamp(18px, 3vw, 42px);
    height: 1px;
    background: linear-gradient(90deg, rgba(237, 129, 79, .28), #ed814f);
}

.technical-dossier__visual figcaption {
    display: grid;
    grid-template-columns: minmax(190px, .42fr) minmax(0, .58fr);
    gap: 18px;
    align-items: center;
    min-height: 74px;
    padding: 13px 17px 7px;
}

.technical-dossier__visual figcaption strong {
    color: #f5b084;
    font: 650 .82rem/1.35 var(--font-display, sans-serif);
}

.technical-dossier__visual figcaption p {
    margin: 0;
    color: #9eacb1;
    font-size: .73rem;
    line-height: 1.5;
}

.technical-dossier__evidence {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    min-width: 0;
    background:
        linear-gradient(150deg, rgba(255, 249, 237, .04), rgba(255, 249, 237, .012)),
        #0c181e;
    border-left: 1px solid rgba(239, 139, 91, .2);
    border-radius: 0 6px 26px 0;
}

.technical-dossier__evidence article {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 0;
    padding: clamp(20px, 2.25vw, 30px) clamp(21px, 2.7vw, 36px);
    overflow: hidden;
    border-bottom: 1px solid rgba(247, 240, 229, .105);
    transition: background-color .28s ease;
}

.technical-dossier__evidence article:last-child { border-bottom: 0; }

.technical-dossier__evidence article::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    background: linear-gradient(to bottom, #f08c58, #b93829);
    box-shadow: 0 0 18px rgba(230, 100, 55, .3);
    transform: scaleY(.28);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.22, .78, .24, 1);
}

.technical-dossier__evidence article:hover,
.technical-dossier__evidence article:focus-within {
    background: rgba(204, 83, 48, .075);
}

.technical-dossier__evidence article:hover::before,
.technical-dossier__evidence article:focus-within::before { transform: scaleY(1); }

.technical-dossier__evidence-head {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.technical-dossier__evidence-head span {
    color: #e58050;
    font: 700 .63rem/1 var(--font-mono, monospace);
    transition: transform .28s ease;
}

.technical-dossier__evidence article:hover .technical-dossier__evidence-head span { transform: translateX(4px); }

.technical-dossier__evidence h3 {
    margin: 0;
    color: #fff7eb;
    font: 650 clamp(1.05rem, 1.45vw, 1.32rem)/1.15 var(--font-display, sans-serif);
    letter-spacing: -.025em;
}

.technical-dossier__evidence article > p {
    margin: 11px 0 13px 42px;
    color: #a9b6ba;
    font-size: .78rem;
    line-height: 1.55;
}

.technical-dossier__proof {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    margin-left: 42px;
    color: #bec8ca;
    font-size: .67rem;
    line-height: 1.4;
}

.technical-dossier__proof strong {
    color: #df8053;
    font: 700 .59rem/1.5 var(--font-mono, monospace);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.technical-dossier__evidence ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0 0 42px;
    padding: 0;
    list-style: none;
}

.technical-dossier__evidence li {
    padding: 4px 7px;
    color: #b5c0c3;
    background: rgba(255, 249, 237, .035);
    border: 1px solid rgba(255, 249, 237, .1);
    border-radius: 999px;
    font: 600 .53rem/1 var(--font-mono, monospace);
}

.technical-dossier__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    margin-top: 27px;
    padding-top: 25px;
    border-top: 1px solid rgba(247, 240, 229, .13);
}

.technical-dossier__footer p,
.technical-dossier__footer p strong,
.technical-dossier__footer p span { display: block; }

.technical-dossier__footer p { margin: 0; }

.technical-dossier__footer p strong {
    color: #f8f1e7;
    font: 650 .94rem/1.35 var(--font-display, sans-serif);
}

.technical-dossier__footer p span {
    margin-top: 5px;
    color: #89989d;
    font-size: .78rem;
}

.technical-dossier__footer > div {
    display: flex;
    align-items: center;
    gap: 22px;
}

.technical-dossier__footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.technical-dossier__secondary {
    color: #ef9a6a;
    font: 700 .68rem/1.4 var(--font-mono, monospace);
    text-decoration: none;
    white-space: nowrap;
}

.technical-dossier__secondary span {
    display: inline-block;
    margin-left: 4px;
    transition: transform .22s ease;
}

.technical-dossier__secondary:hover span,
.technical-dossier__secondary:focus-visible span { transform: translate(3px, -3px); }

.technical-dossier__petals {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 320px;
    overflow: hidden;
    pointer-events: none;
}

.technical-dossier__petals span {
    --petal-x: 22vw;
    --petal-delay: -1s;
    --petal-scale: .9;
    position: absolute;
    top: -42px;
    left: var(--petal-x);
    width: 29px;
    height: 37px;
    background: url('../assets/sakura-petal-v4.webp') center / contain no-repeat;
    opacity: .76;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .22));
    animation: technical-dossier-petal 11.5s var(--petal-delay) cubic-bezier(.38, .05, .58, .96) infinite;
}

.technical-dossier__petals span:nth-child(2) { --petal-x: 61vw; --petal-delay: -7.2s; --petal-scale: 1.18; }
.technical-dossier__petals span:nth-child(3) { --petal-x: 87vw; --petal-delay: -3.8s; --petal-scale: .76; }

@keyframes technical-dossier-petal {
    0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(-28deg) scale(var(--petal-scale)); }
    14% { opacity: .76; }
    45% { transform: translate3d(54px, 125px, 0) rotate(128deg) scale(var(--petal-scale)); }
    100% { opacity: 0; transform: translate3d(-22px, 340px, 0) rotate(410deg) scale(var(--petal-scale)); }
}

.technical-dossier a:focus-visible {
    outline: 2px solid #ff9b62;
    outline-offset: 4px;
}

@media (max-width: 1120px) {
    .technical-dossier__header {
        grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
        gap: 38px;
    }

    .technical-dossier__stage {
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    }
}

@media (max-width: 920px) {
    .technical-dossier__header { grid-template-columns: 1fr; gap: 28px; }
    .technical-dossier__intro h2 { max-width: 15ch; }
    .technical-dossier__timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .technical-dossier__timeline li { min-height: 106px; border-right: 1px solid rgba(247, 240, 229, .1); border-bottom: 0; }
    .technical-dossier__timeline li:last-child { border-right: 0; }

    .technical-dossier__stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .technical-dossier__visual {
        min-height: 520px;
        border-radius: 26px 6px 0 0;
    }

    #habilidades .technical-dossier__visual .technical-v3__scene-stage { height: auto; aspect-ratio: 16 / 9; }

    .technical-dossier__evidence {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        border-top: 1px solid rgba(239, 139, 91, .2);
        border-left: 0;
        border-radius: 0 0 26px 26px;
    }

    .technical-dossier__evidence article {
        min-height: 265px;
        padding: 23px 20px;
        border-right: 1px solid rgba(247, 240, 229, .105);
        border-bottom: 0;
    }

    .technical-dossier__evidence article:last-child { border-right: 0; }
    .technical-dossier__evidence article > p,
    .technical-dossier__proof,
    .technical-dossier__evidence ul { margin-left: 0; }
}

@media (max-width: 720px) {
    #habilidades.technical-dossier { padding-block: 68px; }

    .technical-dossier__intro h2 {
        font-size: clamp(2.55rem, 11vw, 4.2rem);
        line-height: 1;
    }

    .technical-dossier__timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .technical-dossier__timeline li { min-height: 94px; border-bottom: 1px solid rgba(247, 240, 229, .1); }
    .technical-dossier__timeline li:nth-child(2n) { border-right: 0; }
    .technical-dossier__timeline li:nth-child(n + 3) { border-bottom: 0; }

    .technical-dossier__visual { min-height: 0; }
    #habilidades .technical-dossier__visual .technical-v3__scene-stage { height: auto; aspect-ratio: 4 / 3; }

    .technical-dossier__signal {
        right: 14px;
        left: 14px;
        justify-content: center;
        font-size: .52rem;
    }

    .technical-dossier__signal i { flex: 1 1 auto; }

    .technical-dossier__visual figcaption {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .technical-dossier__evidence {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
    }

    .technical-dossier__evidence article {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(247, 240, 229, .105);
    }

    .technical-dossier__evidence article:last-child { border-bottom: 0; }

    .technical-dossier__footer {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .technical-dossier__footer > div { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .technical-dossier__timeline li { padding: 14px 10px 14px 14px; }
    .technical-dossier__timeline strong { font-size: .78rem; }
    .technical-dossier__timeline small { font-size: .63rem; }
    .technical-dossier__signal { gap: 6px; }
    .technical-dossier__visual { padding: 5px; }
    .technical-dossier__visual figcaption { padding-inline: 12px; }
    .technical-dossier__footer > div { align-items: flex-start; flex-direction: column; }
}

html[data-motion='reduced'] .technical-dossier__petals span,
html[data-motion='reduced'] .technical-dossier__timeline li::before,
html[data-motion='reduced'] .technical-dossier__evidence article::before,
html[data-motion='reduced'] .technical-dossier__evidence-head span,
html[data-motion='reduced'] .technical-dossier__secondary span {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .technical-dossier__petals span,
    .technical-dossier__timeline li::before,
    .technical-dossier__evidence article::before,
    .technical-dossier__evidence-head span,
    .technical-dossier__secondary span {
        animation: none !important;
        transition: none !important;
    }
}

/* V7 cascade lock: estas reglas deben permanecer al final del archivo. */
#blog.blog-v2::before {
    inset: 0 0 0 auto;
    width: min(52vw, 850px);
    height: auto;
    background: url('../assets/blog-studio-right-v7.webp') right center / cover no-repeat;
    opacity: .27;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .52) 34%, #000 72% 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .52) 34%, #000 72% 100%);
}

#blog.blog-v2::after {
    inset: 0 auto 0 0;
    width: min(34vw, 540px);
    height: auto;
    background: url('../assets/blog-notes-left-v7.webp') left center / cover no-repeat;
    opacity: .2;
    -webkit-mask-image: linear-gradient(90deg, #000 0 42%, rgba(0, 0, 0, .4) 68%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 42%, rgba(0, 0, 0, .4) 68%, transparent 100%);
}

#habilidades.technical-dossier {
    padding-block: clamp(68px, 6vw, 92px);
    background:
        radial-gradient(ellipse at 7% 8%, rgba(191, 67, 43, .2), transparent 30%),
        radial-gradient(ellipse at 83% 62%, rgba(40, 91, 118, .14), transparent 38%),
        linear-gradient(146deg, #050d12 0%, #0d1b22 52%, #060e13 100%);
}

#habilidades.technical-dossier::before {
    inset: 0 -7vw 0 auto;
    width: min(78vw, 1440px);
    height: auto;
    aspect-ratio: auto;
    background: url('../assets/technical-dragon-v7.webp') right center / cover no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: .2;
    filter: saturate(.72) contrast(1.08);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .28) 26%, #000 62% 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .28) 26%, #000 62% 100%);
}

#habilidades .technical-dossier__timeline li {
    min-height: 112px;
    background: linear-gradient(145deg, rgba(255, 250, 240, .025), transparent 70%);
}

#habilidades .technical-dossier__stage {
    grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
    min-height: 0;
    overflow: hidden;
    background: rgba(4, 11, 15, .62);
}

#habilidades .technical-dossier__visual { min-height: 0; }

#habilidades .technical-dossier__visual .technical-v3__scene-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

#habilidades .technical-dossier__map {
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    background: linear-gradient(150deg, rgba(255, 249, 237, .045), rgba(255, 249, 237, .01)), rgba(8, 19, 24, .92);
}

#habilidades .technical-dossier__map article {
    align-content: center;
    min-height: 0;
    padding: 17px clamp(22px, 2.7vw, 36px);
}

#habilidades .technical-dossier__map article > p { margin: 8px 0 8px 42px; line-height: 1.45; }
#habilidades .technical-dossier__map ul { margin: 9px 0 0 42px; }
#habilidades .technical-dossier__map li { padding: 5px 8px; color: #d0d8d9; background: rgba(255, 249, 237, .045); border-color: rgba(239, 139, 91, .16); }

@media (max-width: 920px) {
    #habilidades .technical-dossier__stage { grid-template-columns: 1fr; }
    #habilidades .technical-dossier__visual { min-height: 0; }
    #habilidades .technical-dossier__map { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
    #habilidades .technical-dossier__map-head { grid-column: 1 / -1; }
    #habilidades .technical-dossier__map article { min-height: 0; padding: 22px 19px; }
    #habilidades .technical-dossier__map article > p,
    #habilidades .technical-dossier__map ul { margin-left: 0; }
}

@media (max-width: 720px) {
    #blog.blog-v2::before { width: 100%; opacity: .16; }
    #blog.blog-v2::after { display: none !important; }
    #habilidades.technical-dossier::before { right: -38%; width: 138%; opacity: .13; }
    #habilidades .technical-dossier__visual .technical-v3__scene-stage { aspect-ratio: 4 / 3; }
    #habilidades .technical-dossier__map { grid-template-columns: 1fr; grid-template-rows: repeat(4, auto); }
    #habilidades .technical-dossier__map-head { grid-column: auto; }
}

#blog.blog-v2 {
    background:
        radial-gradient(circle at 8% 18%, rgba(201, 90, 56, .065), transparent 28rem),
        linear-gradient(135deg, #faf5eb, #f3eadc);
}

#blog.blog-v2::before { opacity: .2; }
#blog.blog-v2::after { opacity: .13; }

#blog .blog-v3__empty,
#blog .blog-v3__loading {
    min-height: 280px;
    color: #465158;
    background-color: rgba(255, 249, 237, .88);
    border: 0;
    border-block: 1px solid rgba(95, 71, 53, .16);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(16px) saturate(110%);
}

#blog .blog-v3__empty p,
#blog .blog-v3__loading p {
    max-width: 54ch;
    color: #465158;
}

/* ========================================================================== 
   PERFIL TÉCNICO V8 · evidencia primero, universo de marca después
   ========================================================================== */

#habilidades.technical-proof-v8 {
    --technical-v8-ink: #061016;
    --technical-v8-panel: rgba(7, 17, 22, .88);
    --technical-v8-panel-soft: rgba(12, 27, 33, .78);
    --technical-v8-line: rgba(238, 228, 210, .13);
    --technical-v8-line-strong: rgba(224, 116, 63, .34);
    --technical-v8-paper: #fff8ec;
    --technical-v8-muted: #aab7ba;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(68px, 6.5vw, 96px) 0;
    color: var(--technical-v8-paper);
    background:
        linear-gradient(90deg, rgba(6, 16, 22, .98) 0 27%, rgba(6, 16, 22, .82) 58%, rgba(6, 16, 22, .58) 100%),
        linear-gradient(148deg, #050d12 0%, #0b1920 55%, #071117 100%);
    border-block: 1px solid rgba(238, 228, 210, .08);
}

/* Desactiva las decoraciones heredadas del dossier anterior. El dragón V8
   tiene su propia capa semántica y un recorte controlable. */
#habilidades.technical-proof-v8::before,
#habilidades.technical-proof-v8::after {
    content: none;
    display: none;
}

.technical-proof-v8__dragon {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.technical-proof-v8__dragon::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #061016 0 21%, rgba(6, 16, 22, .9) 38%, rgba(6, 16, 22, .34) 70%, rgba(6, 16, 22, .14) 100%),
        linear-gradient(0deg, rgba(5, 13, 18, .66), transparent 30% 76%, rgba(5, 13, 18, .32));
}

.technical-proof-v8__dragon img {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: .72;
    filter: saturate(.62) contrast(1.08) brightness(1.12);
}

#habilidades.technical-proof-v8 > .container,
#habilidades.technical-proof-v8 .technical-dossier__shell {
    position: relative;
    z-index: 2;
}

#habilidades.technical-proof-v8 .technical-dossier__header {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(370px, .84fr);
    align-items: end;
    gap: clamp(38px, 5vw, 76px);
    margin-bottom: clamp(20px, 2.5vw, 30px);
}

#habilidades.technical-proof-v8 .technical-dossier__petals {
    z-index: 1;
    height: 230px;
    opacity: .38;
}

#habilidades.technical-proof-v8 .section-tag {
    color: #dda276;
}

#habilidades.technical-proof-v8 .technical-dossier__intro h2 {
    max-width: 13.5ch;
    margin: 13px 0 18px;
    color: var(--technical-v8-paper);
    font: 650 clamp(2.65rem, 4.35vw, 4.7rem)/.99 var(--font-display, sans-serif);
    letter-spacing: -.064em;
    text-wrap: balance;
}

#habilidades.technical-proof-v8 .technical-dossier__intro h2 span {
    color: #ef9666;
}

#habilidades.technical-proof-v8 .technical-dossier__intro > p {
    max-width: 66ch;
    margin: 0;
    color: #bac5c6;
    font-size: clamp(.94rem, 1.1vw, 1.05rem);
    line-height: 1.7;
}

#habilidades.technical-proof-v8 .technical-dossier__header-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: 19px;
    color: #f0a77d;
    font: 700 .68rem/1.35 var(--font-mono, monospace);
    letter-spacing: .055em;
    text-transform: uppercase;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: rgba(5, 13, 18, .48);
    border: 1px solid var(--technical-v8-line);
    border-radius: 22px 5px 22px 5px;
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .2);
}

#habilidades.technical-proof-v8 .technical-dossier__timeline li {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 103px;
    padding: 17px 18px 17px 20px;
    background: linear-gradient(145deg, rgba(255, 249, 237, .025), transparent 68%);
    border-right: 1px solid var(--technical-v8-line);
    border-bottom: 1px solid var(--technical-v8-line);
}

#habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(2n) { border-right: 0; }
#habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(n + 3) { border-bottom: 0; }

#habilidades.technical-proof-v8 .technical-dossier__timeline li::before {
    content: '';
    position: absolute;
    top: 19px;
    bottom: 19px;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e07843, rgba(224, 120, 67, .08));
    transform: scaleY(.34);
    transform-origin: top;
    transition: transform .28s ease;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline li:hover::before { transform: scaleY(1); }

#habilidades.technical-proof-v8 .technical-dossier__timeline span {
    color: #e08c60;
    font: 700 .61rem/1 var(--font-mono, monospace);
    letter-spacing: .09em;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline em {
    width: fit-content;
    margin-top: 6px;
    color: #9faeaf;
    font: 650 .5rem/1 var(--font-mono, monospace);
    font-style: normal;
    letter-spacing: .075em;
    text-transform: uppercase;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline strong {
    margin-top: 6px;
    color: #fbf4e9;
    font: 650 .88rem/1.22 var(--font-display, sans-serif);
}

#habilidades.technical-proof-v8 .technical-dossier__timeline small {
    margin-top: 5px;
    color: #8f9da1;
    font-size: .69rem;
    line-height: 1.4;
}

.technical-proof-v8__body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
    align-items: stretch;
    overflow: hidden;
    background: rgba(4, 11, 15, .58);
    border: 1px solid var(--technical-v8-line-strong);
    border-radius: 27px 7px 27px 27px;
    box-shadow: 0 38px 96px rgba(0, 0, 0, .3);
    backdrop-filter: blur(9px);
}

#habilidades .technical-proof-v8__map {
    display: grid;
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    min-width: 0;
    order: 1;
    background:
        linear-gradient(142deg, rgba(255, 249, 237, .045), transparent 44%),
        var(--technical-v8-panel);
    border: 0;
    border-radius: 26px 0 0 26px;
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) {
    padding: 20px clamp(21px, 2.5vw, 34px) 18px;
    background: linear-gradient(90deg, rgba(220, 112, 60, .11), transparent 74%);
    border-bottom: 1px solid var(--technical-v8-line);
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) > span {
    display: block;
    color: #e59b6d;
    font: 700 .61rem/1 var(--font-mono, monospace);
    letter-spacing: .11em;
    text-transform: uppercase;
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) > p {
    max-width: 62ch;
    margin: 8px 0 0;
    color: #9dabad;
    font-size: .73rem;
    line-height: 1.52;
}

#habilidades .technical-proof-v8__map > article {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 0;
    padding: clamp(17px, 2vw, 24px) clamp(21px, 2.5vw, 34px);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--technical-v8-line);
    transition: background-color .28s ease;
}

#habilidades .technical-proof-v8__map > article:last-child { border-bottom: 0; }

#habilidades .technical-proof-v8__map > article::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    background: linear-gradient(to bottom, #f08c58, #b93829);
    transform: scaleY(.24);
    transition: transform .28s ease;
}

#habilidades .technical-proof-v8__map > article:hover,
#habilidades .technical-proof-v8__map > article:focus-within {
    background: rgba(213, 111, 61, .065);
}

#habilidades .technical-proof-v8__map > article:hover::before,
#habilidades .technical-proof-v8__map > article:focus-within::before { transform: scaleY(1); }

#habilidades .technical-proof-v8__map .technical-dossier__evidence-head {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

#habilidades .technical-proof-v8__map .technical-dossier__evidence-head span {
    color: #e38d5c;
    font: 700 .62rem/1 var(--font-mono, monospace);
}

#habilidades .technical-proof-v8__map h3 {
    margin: 0;
    color: #fff7eb;
    font: 650 clamp(1.02rem, 1.35vw, 1.27rem)/1.17 var(--font-display, sans-serif);
    letter-spacing: -.024em;
}

#habilidades .technical-proof-v8__map > article > p {
    margin: 8px 0 9px 41px;
    color: #a9b5b7;
    font-size: .75rem;
    line-height: 1.5;
}

#habilidades .technical-proof-v8__map > article > small {
    margin: 7px 0 0 41px;
    color: #d18a64;
    font: 650 .56rem/1.35 var(--font-mono, monospace);
    letter-spacing: .055em;
    text-transform: uppercase;
}

#habilidades .technical-proof-v8__map ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 9px 0 0 41px;
    padding: 0;
    list-style: none;
}

#habilidades .technical-proof-v8__map li {
    padding: 5px 8px;
    color: #d1d9d9;
    background: rgba(255, 249, 237, .045);
    border: 1px solid rgba(239, 139, 91, .16);
    border-radius: 999px;
    font: 600 .54rem/1 var(--font-mono, monospace);
}

.technical-proof-v8__visual {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    order: 2;
    margin: 0;
    padding: 8px;
    background: rgba(4, 11, 15, .84);
    border-left: 1px solid rgba(239, 139, 91, .18);
    border-radius: 0 6px 26px 0;
}

.technical-proof-v8__media {
    position: relative;
    min-height: clamp(340px, 34vw, 500px);
    overflow: hidden;
    background: #0a151b;
    border-radius: 20px 3px 20px 20px;
}

.technical-proof-v8__media::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(3, 9, 13, .82), transparent 36%),
        radial-gradient(circle at 42% 38%, transparent 38%, rgba(3, 9, 13, .25) 100%);
}

.technical-proof-v8__media picture,
.technical-proof-v8__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.technical-proof-v8__media picture {
    position: absolute;
    inset: 0;
}

.technical-proof-v8__media img {
    object-fit: cover;
    object-position: 44% center;
}

.technical-proof-v8__layers {
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 15px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.technical-proof-v8__layers :is(span, li) {
    padding: 7px 9px;
    color: rgba(255, 248, 237, .84);
    background: rgba(5, 13, 18, .65);
    border: 1px solid rgba(255, 248, 237, .14);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font: 650 .55rem/1 var(--font-mono, monospace);
    letter-spacing: .055em;
    text-transform: uppercase;
}

.technical-proof-v8__visual figcaption {
    display: grid;
    gap: 5px;
    min-height: 90px;
    padding: 15px 16px 9px;
}

.technical-proof-v8__visual figcaption strong {
    color: #f4b18a;
    font: 650 .86rem/1.34 var(--font-display, sans-serif);
}

.technical-proof-v8__eyebrow {
    color: #d58d66;
    font: 700 .57rem/1.25 var(--font-mono, monospace);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.technical-proof-v8__visual figcaption p {
    margin: 0;
    color: #9eabad;
    font-size: .73rem;
    line-height: 1.5;
}

.technical-proof-v8__symbol-note {
    display: grid;
    grid-template-columns: 34px minmax(0, auto);
    align-items: center;
    gap: 4px 10px;
    width: min(760px, 100%);
    margin: 0 0 clamp(18px, 2vw, 24px) auto;
    color: rgba(231, 224, 211, .58);
    font: 650 .58rem/1.45 var(--font-mono, monospace);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.technical-proof-v8__symbol-note::before {
    content: '';
    grid-row: 1 / span 2;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 144, 96, .78));
}

.technical-proof-v8__symbol-note > span {
    color: rgba(242, 189, 150, .82);
}

.technical-proof-v8__symbol-note > p {
    margin: 0;
    color: rgba(190, 202, 201, .62);
    font: 500 .7rem/1.5 var(--font-body, sans-serif);
    letter-spacing: 0;
    text-transform: none;
}

#habilidades.technical-proof-v8 :is(a, button):focus-visible {
    outline: 2px solid #ff9b62;
    outline-offset: 4px;
}

@media (max-width: 1080px) {
    #habilidades.technical-proof-v8 .technical-dossier__header {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr);
        gap: 34px;
    }

    .technical-proof-v8__body {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    }
}

@media (max-width: 920px) {
    #habilidades.technical-proof-v8 .technical-dossier__header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 26px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li {
        min-height: 106px;
        border-right: 1px solid var(--technical-v8-line);
        border-bottom: 0;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:last-child { border-right: 0; }

    .technical-proof-v8__body { grid-template-columns: 1fr; }

    #habilidades .technical-proof-v8__map {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto 1fr;
        order: 1;
        border-radius: 26px 26px 0 0;
    }

    #habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) {
        grid-column: 1 / -1;
    }

    #habilidades .technical-proof-v8__map > article {
        min-height: 220px;
        padding-inline: 19px;
        border-right: 1px solid var(--technical-v8-line);
        border-bottom: 0;
    }

    #habilidades .technical-proof-v8__map > article:last-child { border-right: 0; }
    #habilidades .technical-proof-v8__map > article > p,
    #habilidades .technical-proof-v8__map > article > small,
    #habilidades .technical-proof-v8__map ul { margin-left: 0; }

    .technical-proof-v8__visual {
        order: 2;
        border-top: 1px solid rgba(239, 139, 91, .18);
        border-left: 0;
        border-radius: 0 0 26px 26px;
    }

    .technical-proof-v8__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .technical-proof-v8__dragon img {
        width: 134%;
        opacity: .58;
    }
}

@media (max-width: 720px) {
    #habilidades.technical-proof-v8 {
        padding-block: 64px;
        background: linear-gradient(148deg, #050d12 0%, #0b1920 56%, #071117 100%);
    }

    .technical-proof-v8__dragon {
        height: 54%;
    }

    .technical-proof-v8__dragon::after {
        background:
            linear-gradient(90deg, rgba(6, 16, 22, .82), rgba(6, 16, 22, .24)),
            linear-gradient(0deg, #061016 0%, transparent 38%, rgba(6, 16, 22, .22));
    }

    .technical-proof-v8__dragon img {
        width: 160%;
        object-position: 76% center;
        opacity: .45;
    }

    #habilidades.technical-proof-v8 .technical-dossier__intro h2 {
        max-width: 15ch;
        font-size: clamp(2.45rem, 11vw, 4rem);
        line-height: 1;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li {
        min-height: 94px;
        border-bottom: 1px solid var(--technical-v8-line);
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(2n) { border-right: 0; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(n + 3) { border-bottom: 0; }

    #habilidades .technical-proof-v8__map {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    #habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) {
        grid-column: auto;
    }

    #habilidades .technical-proof-v8__map > article {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--technical-v8-line);
    }

    #habilidades .technical-proof-v8__map > article:last-child { border-bottom: 0; }

    .technical-proof-v8__media { aspect-ratio: 4 / 3; }
    .technical-proof-v8__symbol-note { margin-left: 0; }
}

@media (max-width: 480px) {
    #habilidades.technical-proof-v8 .technical-dossier__timeline li {
        padding: 14px 10px 14px 14px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline strong { font-size: .78rem; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline small { font-size: .63rem; }
    #habilidades .technical-proof-v8__map > article { padding: 19px 16px; }
    #habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) { padding-inline: 16px; }
    .technical-proof-v8__visual { padding: 5px; }
    .technical-proof-v8__visual figcaption { min-height: 0; padding-inline: 12px; }
    .technical-proof-v8__layers { right: 11px; bottom: 11px; left: 11px; }
}

html[data-motion='reduced'] #habilidades.technical-proof-v8 *,
html[data-motion='reduced'] #habilidades.technical-proof-v8 *::before,
html[data-motion='reduced'] #habilidades.technical-proof-v8 *::after {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    #habilidades.technical-proof-v8 *,
    #habilidades.technical-proof-v8 *::before,
    #habilidades.technical-proof-v8 *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================================================== 
   PERFIL TECNICO V9 · dossier editorial, evidencia sin paneles pesados
   ========================================================================== */

#habilidades.technical-proof-v8 {
    --technical-v8-line: rgba(238, 228, 210, .105);
    --technical-v8-line-strong: rgba(238, 228, 210, .16);
    padding-block: clamp(58px, 5.25vw, 78px);
    background:
        linear-gradient(90deg, rgba(5, 14, 19, .985) 0 38%, rgba(5, 14, 19, .88) 66%, rgba(5, 14, 19, .78) 100%),
        linear-gradient(148deg, #050d12 0%, #0a171d 58%, #071117 100%);
}

.technical-proof-v8__dragon::after {
    background:
        linear-gradient(90deg, #050e13 0 30%, rgba(5, 14, 19, .93) 52%, rgba(5, 14, 19, .68) 100%),
        linear-gradient(0deg, rgba(5, 13, 18, .82), rgba(5, 13, 18, .2) 42% 68%, rgba(5, 13, 18, .66));
}

.technical-proof-v8__dragon img {
    opacity: .2;
    filter: grayscale(.82) saturate(.3) contrast(1.04) brightness(.94);
}

#habilidades.technical-proof-v8 .technical-dossier__header {
    grid-template-columns: minmax(0, 1.34fr) minmax(350px, .76fr);
    align-items: end;
    gap: clamp(34px, 4.4vw, 66px);
    margin-bottom: clamp(16px, 2vw, 24px);
}

#habilidades.technical-proof-v8 .technical-dossier__intro h2 {
    max-width: 15ch;
    margin-block: 11px 15px;
    font-size: clamp(2.45rem, 3.75vw, 4.05rem);
    line-height: 1.01;
}

#habilidades.technical-proof-v8 .technical-dossier__intro > p {
    max-width: 62ch;
    color: #b4c0c1;
    font-size: clamp(.91rem, 1vw, 1rem);
    line-height: 1.64;
}

#habilidades.technical-proof-v8 .technical-dossier__header-cta {
    margin-top: 16px;
    color: #d99a76;
}

/* La trayectoria se lee como una cronologia impresa, no como cuatro tarjetas. */
#habilidades.technical-proof-v8 .technical-dossier__timeline {
    background: rgba(5, 13, 18, .18);
    border: 0;
    border-block: 1px solid var(--technical-v8-line-strong);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline li {
    min-height: 82px;
    padding: 13px 15px 13px 17px;
    background: transparent;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline li::before {
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: rgba(224, 140, 96, .52);
    transform: scaleY(.28);
}

#habilidades.technical-proof-v8 .technical-dossier__timeline span { color: #c88965; }
#habilidades.technical-proof-v8 .technical-dossier__timeline em { margin-top: 4px; color: #829296; }
#habilidades.technical-proof-v8 .technical-dossier__timeline strong { margin-top: 4px; font-size: .82rem; }
#habilidades.technical-proof-v8 .technical-dossier__timeline small { margin-top: 3px; font-size: .64rem; }

.technical-proof-v8__symbol-note {
    width: min(690px, 100%);
    margin-bottom: 14px;
    opacity: .72;
}

/* El mapa es ahora una banda editorial: una cabecera y tres columnas de lectura. */
.technical-proof-v8__body {
    grid-template-columns: minmax(0, 1fr) clamp(224px, 22vw, 286px);
    align-items: start;
    overflow: visible;
    background: rgba(5, 13, 18, .16);
    border: 0;
    border-block: 1px solid var(--technical-v8-line-strong);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

#habilidades .technical-proof-v8__map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    background: transparent;
    border-radius: 0;
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) {
    grid-column: 1 / -1;
    padding: 15px clamp(18px, 2vw, 28px) 14px;
    background: transparent;
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) > span {
    color: #c98a67;
    font-size: .56rem;
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) > p {
    max-width: 72ch;
    margin-top: 5px;
    color: #849397;
    font-size: .68rem;
}

#habilidades .technical-proof-v8__map > article {
    align-content: start;
    min-height: 188px;
    padding: 20px clamp(16px, 1.65vw, 24px) 18px;
    border-right: 1px solid var(--technical-v8-line);
    border-bottom: 0;
    transition: background-color .25s ease;
}

#habilidades .technical-proof-v8__map > article:last-child { border-right: 0; }

#habilidades .technical-proof-v8__map > article::before {
    top: 20px;
    right: auto;
    bottom: auto;
    left: clamp(16px, 1.65vw, 24px);
    width: 22px;
    height: 1px;
    background: rgba(225, 142, 96, .58);
    transform: scaleX(.35);
    transform-origin: left;
}

#habilidades .technical-proof-v8__map > article:hover,
#habilidades .technical-proof-v8__map > article:focus-within {
    background: rgba(255, 249, 237, .025);
}

#habilidades .technical-proof-v8__map > article:hover::before,
#habilidades .technical-proof-v8__map > article:focus-within::before { transform: scaleX(1); }

#habilidades .technical-proof-v8__map .technical-dossier__evidence-head {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding-top: 10px;
}

#habilidades .technical-proof-v8__map .technical-dossier__evidence-head span {
    color: #bb8060;
    font-size: .55rem;
}

#habilidades .technical-proof-v8__map h3 { font-size: clamp(.92rem, 1.1vw, 1.08rem); }

#habilidades .technical-proof-v8__map > article > p,
#habilidades .technical-proof-v8__map > article > small,
#habilidades .technical-proof-v8__map ul { margin-left: 0; }

#habilidades .technical-proof-v8__map > article > p {
    margin-top: 7px;
    margin-bottom: 7px;
    color: #91a0a3;
    font-size: .69rem;
    line-height: 1.45;
}

#habilidades .technical-proof-v8__map > article > small {
    margin-top: 6px;
    color: #a9785e;
    font-size: .5rem;
}

#habilidades .technical-proof-v8__map ul { gap: 4px; margin-top: 8px; }

#habilidades .technical-proof-v8__map li {
    padding: 4px 7px;
    color: #b7c1c2;
    background: transparent;
    border-color: rgba(232, 221, 204, .12);
    font-size: .5rem;
}

/* Paca queda como una nota visual lateral, no como la protagonista del dossier. */
.technical-proof-v8__visual {
    padding: 16px 0 0 20px;
    background: transparent;
    border-left: 1px solid var(--technical-v8-line);
    border-radius: 0;
    opacity: .86;
}

.technical-proof-v8__media {
    min-height: 0;
    max-height: 180px;
    aspect-ratio: 16 / 10;
    background: rgba(8, 20, 25, .64);
    border-radius: 2px 18px 2px 18px;
}

.technical-proof-v8__media::after {
    background:
        linear-gradient(to top, rgba(3, 9, 13, .9), transparent 42%),
        linear-gradient(90deg, rgba(3, 9, 13, .24), transparent 45%),
        radial-gradient(circle at 44% 38%, transparent 30%, rgba(3, 9, 13, .38) 100%);
}

.technical-proof-v8__media img {
    object-position: 47% center;
    filter: grayscale(.22) saturate(.72) contrast(.98) brightness(.82);
}

.technical-proof-v8__layers { display: none; }

.technical-proof-v8__visual figcaption {
    gap: 4px;
    min-height: 0;
    padding: 11px 2px 2px;
}

.technical-proof-v8__visual figcaption strong {
    color: #cda184;
    font-size: .76rem;
}

.technical-proof-v8__eyebrow { color: #a5745b; font-size: .51rem; }
.technical-proof-v8__visual figcaption p { color: #829194; font-size: .65rem; line-height: 1.42; }

/* Petalos organicos: nueve siluetas a partir de tres nodos, con profundidad. */
#habilidades.technical-proof-v8 .technical-dossier__petals {
    z-index: 1;
    height: 310px;
    overflow: hidden;
    opacity: 1;
}

#habilidades.technical-proof-v8 .technical-dossier__petals span {
    --petal-x: 16vw;
    --petal-w: 17px;
    --petal-h: 24px;
    --petal-alpha: .48;
    --petal-blur: 0px;
    --petal-delay: -2.4s;
    --petal-duration: 12.8s;
    --petal-drift: 48px;
    --petal-back: -20px;
    --petal-end: 33px;
    --petal-turn: 390deg;
    position: absolute;
    top: -42px;
    left: var(--petal-x);
    width: var(--petal-w);
    height: var(--petal-h);
    opacity: 0;
    background: url('../assets/sakura-petal-v4.webp') center / contain no-repeat;
    border: 0;
    border-radius: 70% 30% 68% 32% / 62% 36% 64% 38%;
    box-shadow: none;
    filter: blur(var(--petal-blur));
    transform-origin: 48% 58%;
    will-change: transform, opacity;
    animation: technical-v9-petal-fall var(--petal-duration) var(--petal-delay) cubic-bezier(.38, .06, .55, .94) infinite;
}

#habilidades.technical-proof-v8 .technical-dossier__petals span::before,
#habilidades.technical-proof-v8 .technical-dossier__petals span::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 72%;
    background: inherit;
    border: inherit;
    border-radius: 68% 32% 75% 25% / 58% 42% 64% 36%;
    box-shadow: inherit;
}

#habilidades.technical-proof-v8 .technical-dossier__petals span::before {
    top: -48px;
    left: -27px;
    opacity: .58;
    filter: blur(.45px);
    transform: rotate(72deg) scale(.72);
    animation: technical-v9-petal-offset-a 5.2s -1.7s ease-in-out infinite alternate;
}

#habilidades.technical-proof-v8 .technical-dossier__petals span::after {
    top: -83px;
    right: -38px;
    opacity: .32;
    filter: blur(1px);
    transform: rotate(-38deg) scale(1.08);
    animation: technical-v9-petal-offset-b 6.4s -4.1s ease-in-out infinite alternate;
}

#habilidades.technical-proof-v8 .technical-dossier__petals span:nth-child(2) {
    --petal-x: 53vw;
    --petal-w: 24px;
    --petal-h: 31px;
    --petal-alpha: .38;
    --petal-blur: .35px;
    --petal-delay: -8.1s;
    --petal-duration: 15.6s;
    --petal-drift: -37px;
    --petal-back: 16px;
    --petal-end: -25px;
    --petal-turn: -420deg;
}

#habilidades.technical-proof-v8 .technical-dossier__petals span:nth-child(3) {
    --petal-x: 87vw;
    --petal-w: 13px;
    --petal-h: 19px;
    --petal-alpha: .56;
    --petal-blur: 0px;
    --petal-delay: -5.7s;
    --petal-duration: 11.4s;
    --petal-drift: 28px;
    --petal-back: -12px;
    --petal-end: 19px;
    --petal-turn: 470deg;
}

@keyframes technical-v9-petal-fall {
    0% { opacity: 0; transform: translate3d(0, -26px, 0) rotate(-32deg) rotateX(0deg); }
    12% { opacity: var(--petal-alpha); }
    36% { transform: translate3d(var(--petal-drift), 96px, 0) rotate(86deg) rotateX(72deg); }
    66% { transform: translate3d(var(--petal-back), 196px, 0) rotate(238deg) rotateX(155deg); }
    100% { opacity: 0; transform: translate3d(var(--petal-end), 330px, 0) rotate(var(--petal-turn)) rotateX(240deg); }
}

@keyframes technical-v9-petal-offset-a {
    from { transform: translate3d(-4px, -2px, 0) rotate(58deg) rotateY(0deg) scale(.68); }
    to { transform: translate3d(18px, 25px, 0) rotate(118deg) rotateY(150deg) scale(.82); }
}

@keyframes technical-v9-petal-offset-b {
    from { transform: translate3d(3px, 2px, 0) rotate(-52deg) rotateY(25deg) scale(1.02); }
    to { transform: translate3d(-22px, 31px, 0) rotate(18deg) rotateY(190deg) scale(.88); }
}

@media (max-width: 1080px) {
    #habilidades.technical-proof-v8 .technical-dossier__header {
        grid-template-columns: minmax(0, 1.16fr) minmax(330px, .84fr);
        gap: 30px;
    }

    .technical-proof-v8__body { grid-template-columns: minmax(0, 1fr) 230px; }
}

@media (max-width: 920px) {
    #habilidades.technical-proof-v8 .technical-dossier__header {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(n) {
        min-height: 92px;
        border-right: 1px solid var(--technical-v8-line);
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:last-child { border-right: 0; }

    .technical-proof-v8__body { grid-template-columns: 1fr; }

    #habilidades .technical-proof-v8__map {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto;
        order: 1;
        border-radius: 0;
    }

    #habilidades .technical-proof-v8__map > article {
        min-height: 180px;
        border-right: 1px solid var(--technical-v8-line);
        border-bottom: 0;
    }

    #habilidades .technical-proof-v8__map > article:last-child { border-right: 0; }

    .technical-proof-v8__visual {
        grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        order: 2;
        padding: 16px 0 0;
        border-top: 1px solid var(--technical-v8-line);
        border-left: 0;
    }

    .technical-proof-v8__media {
        width: 100%;
        max-height: 176px;
        aspect-ratio: 4 / 3;
    }

    .technical-proof-v8__visual figcaption { padding: 0 18px; }
    .technical-proof-v8__dragon img { width: 124%; opacity: .14; }
}

@media (max-width: 720px) {
    #habilidades.technical-proof-v8 { padding-block: 54px; }
    .technical-proof-v8__dragon { height: 48%; }
    .technical-proof-v8__dragon img { width: 150%; opacity: .1; }

    #habilidades.technical-proof-v8 .technical-dossier__intro h2 {
        max-width: 16ch;
        font-size: clamp(2.25rem, 9.7vw, 3.55rem);
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li { min-height: 84px; }

    #habilidades .technical-proof-v8__map {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    #habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) { grid-column: auto; }

    #habilidades .technical-proof-v8__map > article {
        min-height: 0;
        padding-block: 17px;
        border-right: 0;
        border-bottom: 1px solid var(--technical-v8-line);
    }

    #habilidades .technical-proof-v8__map > article:last-child { border-bottom: 0; }

    .technical-proof-v8__visual {
        grid-template-columns: minmax(125px, 165px) minmax(0, 1fr);
    }

    .technical-proof-v8__media { max-height: 148px; aspect-ratio: 1 / 1; }
    .technical-proof-v8__visual figcaption { padding-inline: 14px 0; }

    #habilidades.technical-proof-v8 .technical-dossier__petals { height: 240px; }
    #habilidades.technical-proof-v8 .technical-dossier__petals span:nth-child(2) { --petal-x: 62vw; }
}

@media (max-width: 480px) {
    #habilidades.technical-proof-v8 .technical-dossier__timeline li { padding: 12px 9px 12px 13px; }
    #habilidades .technical-proof-v8__map > article { padding-inline: 14px; }

    .technical-proof-v8__visual {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .technical-proof-v8__media {
        max-height: 190px;
        aspect-ratio: 16 / 9;
    }

    .technical-proof-v8__visual figcaption { padding: 0 2px; }
    .technical-proof-v8__visual figcaption p { display: none; }
}

/* ========================================================================== 
   PERFIL TECNICO V10 · escala editorial más legible sin perder contención
   ========================================================================== */

#habilidades.technical-proof-v8 {
    padding-block: clamp(68px, 6vw, 90px);
}

#habilidades.technical-proof-v8 .technical-dossier__header {
    gap: clamp(40px, 4.8vw, 72px);
    margin-bottom: clamp(22px, 2.4vw, 32px);
}

#habilidades.technical-proof-v8 .technical-dossier__intro h2 {
    max-width: 15.5ch;
    margin-block: 13px 18px;
    font-size: clamp(2.7rem, 4.05vw, 4.45rem);
    line-height: 1;
}

#habilidades.technical-proof-v8 .technical-dossier__intro > p {
    max-width: 64ch;
    font-size: clamp(.97rem, 1.08vw, 1.07rem);
    line-height: 1.7;
}

#habilidades.technical-proof-v8 .technical-dossier__header-cta {
    margin-top: 19px;
    font-size: .72rem;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline li {
    min-height: 96px;
    padding: 16px 18px 16px 20px;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline li::before {
    top: 16px;
    bottom: 16px;
}

#habilidades.technical-proof-v8 .technical-dossier__timeline span { font-size: .64rem; }
#habilidades.technical-proof-v8 .technical-dossier__timeline em { margin-top: 5px; font-size: .53rem; }
#habilidades.technical-proof-v8 .technical-dossier__timeline strong { margin-top: 5px; font-size: .9rem; line-height: 1.25; }
#habilidades.technical-proof-v8 .technical-dossier__timeline small { margin-top: 4px; font-size: .7rem; line-height: 1.43; }

.technical-proof-v8__symbol-note {
    margin-bottom: 20px;
    font-size: .61rem;
}

.technical-proof-v8__symbol-note > p {
    font-size: .73rem;
}

.technical-proof-v8__body {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 320px);
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) {
    padding: 19px clamp(22px, 2.3vw, 32px) 18px;
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) > span {
    font-size: .61rem;
}

#habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) > p {
    margin-top: 7px;
    font-size: .74rem;
    line-height: 1.54;
}

#habilidades .technical-proof-v8__map > article {
    min-height: 212px;
    padding: 24px clamp(20px, 1.9vw, 28px) 22px;
}

#habilidades .technical-proof-v8__map > article::before {
    top: 24px;
    left: clamp(20px, 1.9vw, 28px);
    width: 26px;
}

#habilidades .technical-proof-v8__map .technical-dossier__evidence-head {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 9px;
    padding-top: 11px;
}

#habilidades .technical-proof-v8__map .technical-dossier__evidence-head span { font-size: .59rem; }

#habilidades .technical-proof-v8__map h3 {
    font-size: clamp(1.01rem, 1.2vw, 1.18rem);
    line-height: 1.2;
}

#habilidades .technical-proof-v8__map > article > p {
    margin-block: 9px 8px;
    font-size: .76rem;
    line-height: 1.5;
}

#habilidades .technical-proof-v8__map > article > small {
    margin-top: 7px;
    font-size: .54rem;
}

#habilidades .technical-proof-v8__map ul {
    gap: 5px;
    margin-top: 10px;
}

#habilidades .technical-proof-v8__map li {
    padding: 5px 8px;
    font-size: .56rem;
}

.technical-proof-v8__visual {
    padding: 20px 0 0 24px;
}

.technical-proof-v8__media {
    max-height: 220px;
}

.technical-proof-v8__visual figcaption {
    gap: 5px;
    padding: 14px 3px 3px;
}

.technical-proof-v8__visual figcaption strong {
    font-size: .84rem;
    line-height: 1.38;
}

.technical-proof-v8__eyebrow { font-size: .55rem; }

.technical-proof-v8__visual figcaption p {
    font-size: .71rem;
    line-height: 1.48;
}

@media (max-width: 1080px) {
    #habilidades.technical-proof-v8 .technical-dossier__header {
        gap: 34px;
    }

    .technical-proof-v8__body {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    #habilidades .technical-proof-v8__map > article {
        min-height: 206px;
        padding-inline: 20px;
    }
}

@media (max-width: 920px) {
    #habilidades.technical-proof-v8 {
        padding-block: 68px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__header {
        gap: 28px;
        margin-bottom: 26px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__intro h2 {
        max-width: 15ch;
        font-size: clamp(2.7rem, 7.3vw, 4.15rem);
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(n) {
        min-height: 106px;
        padding: 16px 14px 16px 16px;
    }

    #habilidades .technical-proof-v8__map > article {
        min-height: 202px;
        padding: 22px 18px 20px;
    }

    #habilidades .technical-proof-v8__map > article::before {
        top: 22px;
        left: 18px;
    }

    .technical-proof-v8__visual {
        grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
        padding-top: 20px;
    }

    .technical-proof-v8__media {
        max-height: 205px;
        aspect-ratio: 4 / 3;
    }

    .technical-proof-v8__visual figcaption {
        padding-inline: 22px 4px;
    }
}

@media (max-width: 720px) {
    #habilidades.technical-proof-v8 {
        padding-block: 60px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__intro h2 {
        max-width: 16ch;
        font-size: clamp(2.45rem, 10.2vw, 3.8rem);
    }

    #habilidades.technical-proof-v8 .technical-dossier__intro > p {
        font-size: .96rem;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(n) {
        min-height: 96px;
        padding: 14px 12px 14px 15px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline strong { font-size: .85rem; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline small { font-size: .67rem; }

    #habilidades .technical-proof-v8__map :is(.technical-proof-v8__map-head, .technical-dossier__map-head) {
        padding: 18px 16px 17px;
    }

    #habilidades .technical-proof-v8__map > article {
        min-height: 0;
        padding: 20px 16px 19px;
    }

    #habilidades .technical-proof-v8__map > article::before {
        top: 20px;
        left: 16px;
    }

    #habilidades .technical-proof-v8__map h3 { font-size: 1.05rem; }
    #habilidades .technical-proof-v8__map > article > p { font-size: .75rem; }
    #habilidades .technical-proof-v8__map li { font-size: .55rem; }

    .technical-proof-v8__visual {
        grid-template-columns: minmax(150px, 185px) minmax(0, 1fr);
        gap: 4px;
    }

    .technical-proof-v8__media {
        max-height: 170px;
        aspect-ratio: 1 / 1;
    }

    .technical-proof-v8__visual figcaption {
        padding-inline: 16px 0;
    }
}

@media (max-width: 480px) {
    #habilidades.technical-proof-v8 {
        padding-block: 54px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__intro h2 {
        font-size: clamp(2.3rem, 11.5vw, 3.25rem);
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(n) {
        min-height: 94px;
        padding: 13px 10px 13px 13px;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline span { font-size: .59rem; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline em { font-size: .49rem; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline strong { font-size: .8rem; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline small { font-size: .63rem; }

    #habilidades .technical-proof-v8__map > article {
        padding: 19px 14px 18px;
    }

    #habilidades .technical-proof-v8__map > article::before {
        top: 19px;
        left: 14px;
    }

    .technical-proof-v8__visual {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 18px;
    }

    .technical-proof-v8__media {
        max-height: 210px;
        aspect-ratio: 16 / 9;
    }

    .technical-proof-v8__visual figcaption {
        padding: 0 3px;
    }

    .technical-proof-v8__visual figcaption p {
        display: block;
        font-size: .68rem;
    }
}

/* ==========================================================================
   PERFIL TECNICO V11 · dragón editorial visible, contenido siempre legible

   El recurso ya existía y tenía la composición correcta, pero la suma de la
   opacidad V9 (.20), el filtro apagado y dos velos oscuros lo reducía casi a
   una textura imperceptible. Esta capa conserva el carácter sutil del fondo
   mientras devuelve definición a la cabeza, escamas y olas del dragón.
   ========================================================================== */

#habilidades.technical-proof-v8 {
    background:
        radial-gradient(circle at 78% 43%, rgba(202, 139, 91, .055), transparent 34%),
        linear-gradient(148deg, #050d12 0%, #0a171d 58%, #071117 100%);
}

#habilidades.technical-proof-v8 .technical-proof-v8__dragon {
    inset: -1px 0;
    height: auto;
}

#habilidades.technical-proof-v8 .technical-proof-v8__dragon::after {
    background:
        linear-gradient(90deg,
            #050e13 0%,
            rgba(5, 14, 19, .96) 27%,
            rgba(5, 14, 19, .79) 47%,
            rgba(5, 14, 19, .25) 73%,
            rgba(5, 14, 19, .08) 100%),
        linear-gradient(0deg,
            rgba(5, 13, 18, .76) 0%,
            rgba(5, 13, 18, .12) 24%,
            rgba(5, 13, 18, .08) 76%,
            rgba(5, 13, 18, .48) 100%);
}

#habilidades.technical-proof-v8 .technical-proof-v8__dragon img {
    width: 100%;
    opacity: .54;
    object-position: right center;
    filter: grayscale(.42) saturate(.64) contrast(1.08) brightness(1.04);
    transform: scale(1.015);
    transform-origin: right center;
}

/* Una película muy ligera bajo los bloques evita perder contraste justo en
   las zonas detalladas del dragón sin convertir el dossier en un panel. */
#habilidades.technical-proof-v8 .technical-dossier__timeline,
#habilidades.technical-proof-v8 .technical-proof-v8__body {
    background: linear-gradient(100deg, rgba(5, 13, 18, .34), rgba(5, 13, 18, .2));
    backdrop-filter: blur(1.5px);
}

@media (max-width: 1080px) {
    #habilidades.technical-proof-v8 .technical-proof-v8__dragon img {
        width: 116%;
        opacity: .49;
    }
}

@media (max-width: 920px) {
    #habilidades.technical-proof-v8 .technical-proof-v8__dragon::after {
        background:
            linear-gradient(90deg,
                rgba(5, 14, 19, .96) 0%,
                rgba(5, 14, 19, .77) 40%,
                rgba(5, 14, 19, .22) 78%,
                rgba(5, 14, 19, .1) 100%),
            linear-gradient(0deg, rgba(5, 13, 18, .7), transparent 32% 76%, rgba(5, 13, 18, .42));
    }

    #habilidades.technical-proof-v8 .technical-proof-v8__dragon img {
        width: 128%;
        opacity: .44;
        object-position: 82% center;
    }
}

@media (max-width: 720px) {
    #habilidades.technical-proof-v8 .technical-proof-v8__dragon {
        inset: 0;
        height: min(470px, 38%);
    }

    #habilidades.technical-proof-v8 .technical-proof-v8__dragon::after {
        background:
            linear-gradient(90deg, rgba(5, 14, 19, .84), rgba(5, 14, 19, .2)),
            linear-gradient(0deg, #050e13 0%, rgba(5, 14, 19, .46) 36%, rgba(5, 14, 19, .2) 100%);
    }

    #habilidades.technical-proof-v8 .technical-proof-v8__dragon img {
        width: 172%;
        opacity: .37;
        object-position: 74% 28%;
        transform: none;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline,
    #habilidades.technical-proof-v8 .technical-proof-v8__body {
        background: rgba(5, 13, 18, .3);
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #habilidades.technical-proof-v8 .technical-proof-v8__dragon img {
        transform: none;
    }
}

html[data-motion='reduced'] #habilidades.technical-proof-v8 .technical-proof-v8__dragon img {
    transform: none;
}

/* ========================================================================== 
   PERFIL TECNICO V12 · secuencia de stack conectada y de bajo coste
   ========================================================================== */

#habilidades .technical-proof-v8__map > article {
    isolation: isolate;
    outline: 0;
    transition:
        background-color .38s ease,
        border-color .38s ease,
        box-shadow .38s ease;
}

/* Cada trazo enlaza visualmente una capa con la siguiente. Solo cambia su
   escala al cambiar de estado; no hay animacion continua ni repintado pesado. */
#habilidades .technical-proof-v8__map > article::before {
    z-index: 0;
    top: 23px;
    right: -1px;
    bottom: auto;
    left: clamp(20px, 1.9vw, 28px);
    width: auto;
    height: 1px;
    opacity: .36;
    background: linear-gradient(90deg, rgba(225, 137, 88, .82), rgba(225, 137, 88, .12));
    transform: scaleX(.12);
    transform-origin: left center;
    transition: transform .55s cubic-bezier(.22, .8, .24, 1), opacity .35s ease;
}

#habilidades .technical-proof-v8__map > article::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 19px;
    left: clamp(20px, 1.9vw, 28px);
    width: 9px;
    height: 9px;
    border: 1px solid rgba(225, 137, 88, .48);
    border-radius: 50%;
    background: #09161c;
    box-shadow: 0 0 0 3px rgba(225, 137, 88, .035);
    transform: scale(.72);
    transition:
        background-color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;
}

#habilidades .technical-proof-v8__map > article.is-current {
    background:
        linear-gradient(142deg, rgba(229, 126, 70, .105), rgba(229, 126, 70, .018) 62%, transparent);
    border-color: rgba(239, 147, 97, .27);
    box-shadow: inset 0 1px rgba(255, 238, 220, .025);
}

#habilidades .technical-proof-v8__map > article.is-current::before {
    opacity: .92;
    transform: scaleX(1);
}

#habilidades .technical-proof-v8__map > article.is-current::after {
    background: #ec8753;
    border-color: #ffc09a;
    box-shadow: 0 0 0 4px rgba(229, 126, 70, .09), 0 0 18px rgba(235, 126, 70, .42);
    transform: scale(1);
}

#habilidades .technical-proof-v8__map > article.is-current h3 {
    color: #fffaf1;
}

#habilidades .technical-proof-v8__map > article li {
    transition:
        color .3s ease,
        background-color .3s ease,
        border-color .3s ease;
}

#habilidades .technical-proof-v8__map > article.is-current li {
    color: #f2ddd0;
    background: rgba(224, 121, 66, .085);
    border-color: rgba(239, 147, 97, .3);
}

#habilidades .technical-proof-v8__map > article:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(244, 165, 117, .62);
}

/* La misma señal salta a la leyenda de la imagen, conectando criterio y
   ejecucion sin desplazar ningun elemento. */
#habilidades .technical-proof-v8__layers > span {
    transition: color .32s ease, background-color .32s ease, border-color .32s ease, opacity .32s ease;
}

#habilidades .technical-proof-v8__layers > span.is-current {
    color: #fff1e6;
    background: rgba(218, 112, 58, .34);
    border-color: rgba(248, 171, 128, .58);
    opacity: 1;
}

@media (max-width: 720px) {
    #habilidades .technical-proof-v8__map > article::before {
        top: 19px;
        right: 14px;
        left: 14px;
    }

    #habilidades .technical-proof-v8__map > article::after {
        top: 15px;
        left: 14px;
    }
}

html[data-motion='reduced'] #habilidades .technical-proof-v8__map > article,
html[data-motion='reduced'] #habilidades .technical-proof-v8__map > article::before,
html[data-motion='reduced'] #habilidades .technical-proof-v8__map > article::after,
html[data-motion='reduced'] #habilidades .technical-proof-v8__map li,
html[data-motion='reduced'] #habilidades .technical-proof-v8__layers > span {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    #habilidades .technical-proof-v8__map > article,
    #habilidades .technical-proof-v8__map > article::before,
    #habilidades .technical-proof-v8__map > article::after,
    #habilidades .technical-proof-v8__map li,
    #habilidades .technical-proof-v8__layers > span {
        transition: none;
    }
}

/* ========================================================================== 
   PERFIL TÉCNICO V13 · visión de producto más amplia y legible
   ========================================================================== */

.technical-proof-v8__body {
    grid-template-columns: minmax(0, 1fr) clamp(380px, 31vw, 450px);
}

.technical-proof-v8__visual {
    align-self: stretch;
    padding: 0 0 0 28px;
    opacity: 1;
}

.technical-proof-v8__media {
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #09161c;
    border: 1px solid rgba(232, 154, 104, .2);
    border-radius: 4px 24px 4px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.technical-proof-v8__media picture,
.technical-proof-v8__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.technical-proof-v8__media img {
    object-fit: cover;
    object-position: center;
    filter: saturate(.92) contrast(1.03) brightness(.96);
}

.technical-proof-v8__media::after {
    background:
        linear-gradient(to top, rgba(3, 9, 13, .34), transparent 34%),
        linear-gradient(90deg, rgba(3, 9, 13, .06), transparent 42%);
}

.technical-proof-v8__visual figcaption {
    gap: 6px;
    padding: 15px 4px 3px;
}

.technical-proof-v8__visual figcaption strong {
    font-size: .9rem;
}

.technical-proof-v8__eyebrow { font-size: .58rem; }

.technical-proof-v8__visual figcaption p {
    font-size: .73rem;
    line-height: 1.5;
}

@media (max-width: 1160px) {
    .technical-proof-v8__body { grid-template-columns: 1fr; }

    .technical-proof-v8__visual {
        grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        gap: clamp(24px, 4vw, 44px);
        padding: 24px 0 0;
        border-top: 1px solid var(--technical-v8-line);
        border-left: 0;
    }

    .technical-proof-v8__visual figcaption { padding: 0 12px 0 0; }
}

@media (max-width: 760px) {
    .technical-proof-v8__visual {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .technical-proof-v8__media {
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .technical-proof-v8__visual figcaption { padding: 0 2px; }
}

.paca-dialog-icon {
    width: 96px;
    height: 96px;
    padding: 6px;
    object-fit: contain;
    background: #07111a;
    border-color: rgba(216, 69, 47, .56);
    border-radius: 24px 7px 24px 7px;
}

/* ========================================================================== 
   RESPONSIVE V19 · portfolio, perfil, contacto y blog
   ========================================================================== */

.portfolio-v2 :is(.portfolio-v2__inner, .portfolio-v2__header, .portfolio-v2__heading, .portfolio-v2__carousel, .portfolio-v2__toolbar),
.technical-dossier :is(.technical-dossier__shell, .technical-dossier__header, .technical-dossier__intro, .technical-dossier__timeline, .technical-proof-v8__body, .technical-dossier__map, .technical-proof-v8__visual),
.contact-v2 :is(.contact-v2__layout, .contact-v2__intro, .contact-v2__form-wrap, .contact-v2__field),
.blog-v2 :is(.blog-v2__layout, .blog-v2__content, .blog-v3__feed) {
    min-width: 0;
}

.portfolio-v2 :is(h2, h3, p, li, a),
.technical-dossier :is(h2, h3, p, li, a, strong, small),
.contact-v2 :is(h2, p, li, a, label),
.blog-v2 :is(h2, h3, p, li, a) {
    overflow-wrap: break-word;
}

.contact-v2 a[href^='mailto:'] { overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .portfolio-v2__toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 12px;
    }
}

@media (max-width: 820px) {
    .technical-proof-v8__visual {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .technical-proof-v8__visual figcaption { padding: 0 2px; }
}

@media (max-width: 520px) {
    #habilidades.technical-dossier { padding-block: 58px; }

    #habilidades.technical-proof-v8 .technical-dossier__intro h2 {
        max-width: none;
        font-size: clamp(2.08rem, 9.4vw, 2.65rem);
        line-height: 1.02;
        letter-spacing: -.052em;
    }

    #habilidades.technical-proof-v8 .technical-dossier__intro > p {
        font-size: .94rem;
        line-height: 1.62;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline {
        grid-template-columns: 1fr;
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:nth-child(n) {
        min-height: 0;
        padding: 16px 18px 16px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(247, 240, 229, .1);
    }

    #habilidades.technical-proof-v8 .technical-dossier__timeline li:last-child { border-bottom: 0; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline strong { font-size: .88rem; }
    #habilidades.technical-proof-v8 .technical-dossier__timeline small {
        color: #a4b1b4;
        font-size: .71rem;
        line-height: 1.48;
    }

    #habilidades .technical-dossier__map-head p,
    #habilidades .technical-dossier__map article > p {
        font-size: .78rem;
        line-height: 1.55;
    }

    #habilidades .technical-dossier__map article {
        padding: 20px 17px;
    }

    #habilidades .technical-dossier__map li { overflow-wrap: anywhere; }
    #habilidades .technical-proof-v8__media { border-radius: 4px 17px 4px 17px; }

    .portfolio-v2__archive,
    .contact-v2__footer { align-items: stretch; }
}

@media (max-width: 360px) {
    #habilidades.technical-proof-v8 .technical-dossier__intro h2 { font-size: 2rem; }
    .blog-v2__topics { grid-template-columns: 1fr; }
}

/* Evita maquetar desde el primer frame miles de nodos que todavía están muy
   por debajo del hero. El tamaño intrínseco mantiene estables el scroll y las
   anclas hasta que cada bloque entra en la zona de precarga del navegador. */
@supports (content-visibility: auto) {
    #servicios { content-visibility: auto; contain-intrinsic-size: auto 950px; }
    #metodo { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
    #proyectos { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
    #habilidades { content-visibility: auto; contain-intrinsic-size: auto 920px; }
    #contacto { content-visibility: auto; contain-intrinsic-size: auto 660px; }
    #blog { content-visibility: auto; contain-intrinsic-size: auto 820px; }
    .site-footer--home { content-visibility: auto; contain-intrinsic-size: auto 520px; }

    @media (max-width: 700px) {
        #servicios { contain-intrinsic-size: auto 1680px; }
        #metodo { contain-intrinsic-size: auto 960px; }
        #proyectos { contain-intrinsic-size: auto 1230px; }
        #habilidades { contain-intrinsic-size: auto 1960px; }
        #contacto { contain-intrinsic-size: auto 1180px; }
        #blog { contain-intrinsic-size: auto 1050px; }
        .site-footer--home { contain-intrinsic-size: auto 760px; }
    }
}

/* Cierre de cascada V21: el popup debe conservar el acabado neojaponés. */
.paca-dialog-overlay {
    padding: 20px;
    background: rgba(2, 8, 11, .75);
    backdrop-filter: blur(12px) saturate(.8);
}
.paca-dialog {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(92vw, 520px);
    padding: 52px clamp(25px, 5vw, 48px) 42px;
    color: #172126;
    border: 1px solid rgba(211, 86, 43, .65);
    border-radius: 6px 34px 6px 34px;
    background: linear-gradient(rgba(255, 249, 237, .94), rgba(248, 239, 221, .97)), url('../assets/portfolio-sakura-branch-v4.webp') 80% center / cover no-repeat;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .45), inset 0 0 0 9px rgba(255, 255, 255, .25);
}
.paca-dialog::before { content: ''; position: absolute; z-index: -1; inset: 10px; border: 1px solid rgba(30, 38, 39, .12); border-radius: 3px 26px 3px 26px; pointer-events: none; }
.paca-dialog-seal { position: absolute; top: 24px; left: 26px; display: grid; width: 37px; aspect-ratio: 1; place-items: center; color: #fff5e4; font: 700 .66rem/1 var(--font-display, sans-serif); background: #bf492f; transform: rotate(-5deg); }
.paca-dialog-kicker { display: block; margin: 10px 0 12px; color: #aa4a30; font-size: .65rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.paca-dialog h3 { margin-top: 0; font-size: clamp(1.75rem, 5vw, 2.55rem); line-height: 1; letter-spacing: -.045em; }
.paca-dialog p { color: #4d5657; line-height: 1.65; }
.paca-dialog-actions { margin-top: 28px; }
.paca-dialog-email { color: #8d3d2a; font-weight: 720; }
