/* Estilos exclusivos de la portada (la base común está en site.css) */
.main-nav a:focus-visible,
.button:focus-visible,
.evidence-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.main-nav .nav-cta {
    padding: 9px 16px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 8px 18px rgba(14, 42, 71, 0.22);
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav .nav-cta:hover {
    color: #ffffff;
    background: var(--color-secondary);
    transform: translateY(-1px);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(230, 238, 247, 0.78);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-facts li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent-light);
}

/* Bloque «Sobre mí»: título a la izquierda, texto a la derecha */
.intro-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    row-gap: 28px;
}

/* Evidence: the site itself as the case study */
.evidence-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    color: #ffffff;
    background: linear-gradient(160deg, #0a2440 0%, #0e2f52 60%, #081b30 100%);
}

.evidence-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.4px);
    background-size: 26px 26px;
    pointer-events: none;
}

.evidence-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.evidence-section .eyebrow {
    color: var(--color-accent-light);
}

.evidence-copy h2 {
    margin: 0;
    max-width: 18ch;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.08;
    text-wrap: balance;
}

.evidence-copy p {
    max-width: 54ch;
    margin: 20px 0 0;
    color: rgba(230, 238, 247, 0.82);
    font-size: 1.08rem;
}

.evidence-list {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: #e6eef7;
    font-weight: 600;
}

.evidence-list li {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.evidence-list li::before {
    content: "";
    flex: none;
    width: 14px;
    height: 8px;
    border-left: 2px solid #3ddc84;
    border-bottom: 2px solid #3ddc84;
    transform: rotate(-45deg) translateY(-3px);
}

.evidence-link {
    display: inline-flex;
    margin-top: 30px;
    padding-bottom: 3px;
    color: var(--color-accent-light);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(219, 165, 79, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.evidence-link:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.report {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    color: var(--color-text);
    box-shadow: 0 34px 70px rgba(2, 10, 20, 0.5);
}

.report-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #eef3f8;
    border-bottom: 1px solid var(--color-border);
}

.report-dots {
    display: inline-flex;
    gap: 6px;
}

.report-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9d6e3;
}

.report-url {
    flex: 1;
    padding: 5px 12px;
    border-radius: 6px;
    background: #ffffff;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.report-body {
    padding: 30px 28px 24px;
}

.report-scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.report-scores li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.ring {
    width: 78px;
    height: 78px;
    transform: rotate(-90deg);
}

.ring circle {
    fill: #e5f8ee;
    stroke: #d3f1e1;
    stroke-width: 4;
}

.ring .ring-value {
    fill: none;
    stroke: #0cce6b;
    stroke-linecap: round;
    stroke-dasharray: 132;
    stroke-dashoffset: 0;
}

.report-scores strong {
    position: absolute;
    top: 0;
    left: 50%;
    width: 78px;
    height: 78px;
    margin-left: -39px;
    display: grid;
    place-items: center;
    color: #08803f;
    font-size: 1.45rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.report-scores span {
    color: var(--color-text);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
}

.report-metrics {
    display: grid;
    margin: 26px 0 0;
    border-top: 1px solid var(--color-border);
}

.report-metrics div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--color-border);
}

.report-metrics dt {
    color: var(--color-muted);
}

.report-metrics dd {
    margin: 0;
    color: #08803f;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.report figcaption {
    padding: 0 28px 22px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

/* The one authored motion moment: the report fills its scores on arrival */
.js-reveal .report[data-reveal] .ring-value {
    stroke-dashoffset: 132;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 0.84, 0.44, 1) 0.35s;
}

.js-reveal .report[data-reveal].is-visible .ring-value {
    stroke-dashoffset: 0;
}

/* Contact block: two ways to reach out */
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: none;
}

.button.outline {
    color: var(--color-primary-dark);
    background: #ffffff;
    border-color: #c9d6e3;
}

.button.outline:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .evidence-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

}

@media (max-width: 720px) {
    .header-inner {
        position: relative;
        gap: 10px;
    }

    .site-header .brand-logo {
        width: 190px;
    }

    .main-nav .nav-cta {
        position: absolute;
        top: 18px;
        right: 0;
        padding: 8px 14px;
    }

    .main-nav {
        flex-wrap: nowrap;
        gap: 14px;
        font-size: 0.88rem;
    }

    .evidence-section {
        padding: 64px 0;
    }

    .report-body {
        padding: 24px 18px 18px;
    }

    .report-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
    }

    .report figcaption {
        padding: 0 18px 18px;
    }

    .cta-actions {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .main-nav .nav-cta {
        transition: none;
    }

}

/* ---------- Hero: composition of real work (2026-10) ---------- */
.hero-work {
    position: relative;
    padding: 30px 40px 46px 0;
}

.hw-browser {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0b1424;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 64px rgba(2, 8, 18, 0.55);
}

.hw-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #eef3f8;
    border-bottom: 1px solid #d5e0ea;
}

.hw-dots {
    display: inline-flex;
    gap: 6px;
}

.hw-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c3cfdb;
}

.hw-url {
    flex: 1;
    max-width: 260px;
    padding: 4px 12px;
    border-radius: 6px;
    background: #ffffff;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.hw-browser img {
    width: 100%;
    height: auto;
    aspect-ratio: 1100 / 900;
}

.hw-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25%;
    margin: 0;
    padding: 5px;
    border-radius: 26px;
    background: #0d1b2a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 48px rgba(2, 8, 18, 0.55);
}

.hw-phone img {
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 844;
    border-radius: 21px;
}

.hw-code {
    position: absolute;
    left: -26px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #0d1b2a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 36px rgba(2, 8, 18, 0.5);
}

.hw-code pre {
    margin: 0;
    color: #c9d6e3;
    font: 600 0.74rem/1.65 ui-monospace, "Cascadia Code", Consolas, monospace;
}

.hw-code .k {
    color: #7fd3c9;
}

.hw-code .s {
    color: #e6bd73;
}

@media (max-width: 980px) {
    .hero-work {
        max-width: 620px;
    }

}

@media (max-width: 720px) {
    .hero-work {
        padding: 0 26px 34px 0;
    }

    .hw-phone {
        width: 30%;
        padding: 3px;
        border-radius: 16px;
    }

    .hw-phone img {
        border-radius: 13px;
    }

    .hw-code {
        display: none;
    }

}

/* ---------- Projects (2026-10) ---------- */
.work-section {
    padding: 88px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.work-featured {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}

.work-featured h3 {
    margin: 0;
    color: var(--color-primary-dark);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.work-points {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding-left: 20px;
    color: var(--color-text);
}

.work-featured .work-stack {
    margin: 18px 0 0;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.work-shots {
    position: relative;
    padding: 0 0 48px;
}

.shot-desktop {
    margin: 0 64px 0 0;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 54px rgba(10, 36, 64, 0.16);
}

.shot-desktop img {
    width: 100%;
    height: auto;
}

.shot-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27%;
    margin: 0;
    border: 6px solid #101d2c;
    border-radius: 26px;
    overflow: hidden;
    background: #101d2c;
    box-shadow: 0 26px 50px rgba(10, 36, 64, 0.32);
}

.shot-phone img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

@media (max-width: 980px) {
    .work-featured {
        grid-template-columns: 1fr;
        gap: 36px;
    }

}

@media (max-width: 720px) {
    .work-section {
        padding: 60px 0;
    }

    .shot-desktop {
        margin-right: 40px;
    }

    .shot-phone {
        width: 32%;
        border-width: 4px;
        border-radius: 18px;
    }

    .shot-phone img {
        border-radius: 14px;
    }

}


.work-featured-copy > p:not(.work-meta):not(.work-stack):not(.work-cta) {
    max-width: 58ch;
    margin: 16px 0 0;
    color: var(--color-muted);
}

.work-featured + .work-list {
    margin-top: 64px;
}

.work-cta {
    margin: 22px 0 0;
}

.work-more {
    margin: 28px 0 0;
    color: var(--color-muted);
}

.work-more a {
    color: var(--color-primary);
    font-weight: 800;
}


.intro-copy .work-cta {
    margin: 22px 0 0;
}
