/* ============================================================
   Laura · base.css — tokens, reset, nav, footer (shared)
   ============================================================ */

:root {
    --paper: #f4f4f4;
    --paper-2: #ebe5d8;
    --ink: #21302a;
    --muted: #65716a;
    --sage: #6f8b79;
    --sage-deep: #6e8c79;
    --terra: #cf8d90;
    --peach: #e9b89f;
    --line: rgba(33, 48, 42, .12);
    --white: #fffdfa;
    --shadow: 0 18px 60px rgba(41, 54, 47, .10);
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
    --manrope: "Manrope", system-ui, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    /* clip (no hidden): hidden convierte el body en contenedor de scroll
       y rompe position:sticky en Firefox (panel del recorrido) */
    overflow-x: clip
}

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

button,
input {
    font: inherit
}

button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer
}

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

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .07;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
    mix-blend-mode: multiply
}

.progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terra), var(--sage));
    z-index: 120
}

/* ---------- nav (dock inferior) ---------- */

.nav {
    position: fixed;
    z-index: 110;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 24px);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(245, 241, 233, .85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(42, 56, 48, .16)
}

.nav-home {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    font: 20px var(--serif);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1)
}

.nav-home:hover {
    transform: translateY(-2px)
}

.nav-sep {
    width: 1px;
    height: 26px;
    flex: none;
    background: var(--line);
    margin: 0 4px 0 6px
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 18px 8px;
    border-radius: 999px;
    color: #3d4a43;
    transition: background .3s cubic-bezier(.2, .8, .2, 1), color .3s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.2, .8, .2, 1)
}

.nav-item svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.nav-item small {
    font: 600 9px var(--sans);
    letter-spacing: .04em;
    white-space: nowrap
}

.nav-item:hover {
    background: rgba(111, 139, 121, .14);
    transform: translateY(-2px)
}

.nav-item.active-view,
body[data-active="articulos"] .nav-item[data-nav="articulos"],
body[data-active="recorrido"] .nav-item[data-nav="recorrido"],
body[data-active="sobre-mi"] .nav-item[data-nav="sobre-mi"] {
    background: var(--ink);
    color: var(--paper)
}

/* ---------- footer ---------- */

footer {
    padding: 28px 22px 112px;
    border-top: 1px solid var(--line)
}

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

footer small {
    color: var(--muted);
    font-size: 10px
}

.footer-links {
    display: flex;
    gap: 18px;
    font-size: 11px;
    color: #59645d
}

/* ---------- responsive ---------- */

@media(max-width:620px) {
    .nav {
        bottom: 12px;
        gap: 2px;
        padding: 7px
    }

    .nav-home {
        width: 40px;
        height: 40px;
        font-size: 19px
    }

    .nav-sep {
        margin: 0 2px 0 4px
    }

    .nav-item {
        padding: 8px 13px 7px;
        gap: 3px
    }

    .nav-item svg {
        width: 17px;
        height: 17px
    }

    .nav-item small {
        font-size: 8.5px
    }

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

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

    *,
    *:before,
    *:after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }
}
