/* ============================================================
   Laura · home.css — hero, filtros, grid de artículos, recorrido
   ============================================================ */

/* Tokens «Calma» — la misma paleta pastel de la portada (landing.css) */
body[data-active="articulos"],
body[data-active="recorrido"] {
    --paper: #f4f4f4;
    --paper-2: #eae9e0;
    --sage: #9db8a7;
    --sage-deep: #6e8c79;
    --terra: #cf8d90;
    --terra-deep: #c46a6e;
    --peach: #ecc9b6;
    --blush: #e9c8c8;
    --sky: #c2d1d4;
    --sky-deep: #5c7278;
    --line: rgba(110, 140, 121, .14);
    --shadow: 0 24px 70px rgba(110, 140, 121, .1)
}

body[data-active="articulos"] ::selection,
body[data-active="recorrido"] ::selection {
    background: var(--sage);
    color: #f6f7f2
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 3px;
    border-radius: 6px
}

/* ---------- hero ---------- */

.hero {
    min-height: 78svh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 150px 22px 90px;
    overflow: hidden;
    background:
        radial-gradient(880px 600px at 92% -10%, rgba(157, 184, 167, .34), transparent 58%),
        radial-gradient(760px 560px at -10% 46%, rgba(233, 200, 200, .3), transparent 56%),
        radial-gradient(680px 520px at 60% 112%, rgba(194, 209, 212, .34), transparent 60%),
        linear-gradient(180deg, #f5f4ee, var(--paper) 72%)
}

.hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(33, 48, 42, .035));
    pointer-events: none
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .27;
    background-image: linear-gradient(rgba(33, 48, 42, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 48, 42, .05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 80%)
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: auto
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sage-deep);
    font: 700 11px var(--manrope);
    letter-spacing: .14em;
    text-transform: uppercase
}

.eyebrow i {
    display: block;
    width: 34px;
    height: 1px;
    background: var(--sage)
}

.hero h1 {
    font: 400 clamp(62px, 8.7vw, 116px)/.82 var(--serif);
    letter-spacing: -.055em;
    margin: 20px 0 20px;
    max-width: 900px
}

.hero h1 em {
    color: var(--terra);
    font-style: italic
}

.hero-copy {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.6;
    color: #5f6a61;
    margin: 0
}

.hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px
}

.meta-pill {
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(110, 140, 121, .16);
    color: var(--sage-deep);
    font: 700 10px var(--manrope);
    letter-spacing: .1em;
    text-transform: uppercase
}

.hero-orbit {
    position: absolute;
    right: -8vw;
    bottom: -18vw;
    width: 55vw;
    height: 55vw;
    border: 1px solid rgba(110, 140, 121, .15);
    border-radius: 50%;
    transform: rotate(-18deg)
}

.hero-orbit:before,
.hero-orbit:after {
    content: "";
    position: absolute;
    inset: 11%;
    border: 1px solid rgba(110, 140, 121, .10);
    border-radius: 50%
}

.hero-orbit:after {
    inset: 22%
}

/* ---------- secciones ---------- */

.section {
    padding: 94px 22px
}

.container {
    width: min(1180px, 100%);
    margin: auto
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 38px
}

.section-kicker {
    color: var(--sage-deep);
    font: 700 11px var(--manrope);
    text-transform: uppercase;
    letter-spacing: .16em
}

.section-title {
    font: 400 clamp(44px, 5.5vw, 76px)/.93 var(--serif);
    letter-spacing: -.04em;
    margin: 10px 0 0
}

.section-title em {
    font-style: italic;
    color: var(--terra)
}

.section-intro {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
    margin: 0
}

/* ---------- filtros ---------- */

.filters-wrap {
    position: relative;
    padding-bottom: 110px
}

.filters-shell {
    padding: 24px;
    border: 1px solid rgba(110, 140, 121, .12);
    background: rgba(255, 253, 250, .52);
    border-radius: 36px;
    box-shadow: 0 20px 70px rgba(110, 140, 121, .08);
    overflow: hidden
}

.age-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end
}

.age-header h2 {
    font: 400 clamp(36px, 4.5vw, 62px)/.88 var(--serif);
    letter-spacing: -.04em;
    margin: 8px 0 0
}

.age-header h2 em {
    font-style: italic;
    color: var(--terra)
}

.age-readout {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap
}

.readout-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 0 7px rgba(111, 139, 121, .12)
}

.age-readout strong {
    font: 600 14px var(--manrope)
}

.age-readout span {
    font-size: 11px;
    color: var(--muted)
}

.age-track-wrap {
    margin-top: 34px;
    position: relative
}

.age-track {
    position: relative;
    height: 92px;
    margin: 0 26px;
    cursor: grab;
    touch-action: none
}

.age-track:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 10px;
    border-radius: 14px
}

.track-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 39px;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--terra), var(--sage));
    overflow: hidden
}

.track-line:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: translateX(-100%);
    animation: shine 3s infinite
}

@keyframes shine {

    60%,
    100% {
        transform: translateX(120%)
    }
}

.age-tick {
    position: absolute;
    top: 26px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1
}

.tick-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 1.5px rgba(33, 48, 42, .25), 0 2px 6px rgba(33, 48, 42, .12);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s, box-shadow .35s
}

.age-tick:hover .tick-dot {
    transform: scale(1.35)
}

.age-tick.active .tick-dot {
    background: var(--ink);
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(111, 139, 121, .16)
}

.growth-baby {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 2px;
    width: 88px;
    height: 88px;
    transform: translateX(-50%);
    pointer-events: none;
    transition: left .85s cubic-bezier(.22, 1.25, .32, 1), filter .5s
}

.growth-baby.drag {
    transition: left 0s, filter .5s
}

.growth-baby.hop .baby-svg {
    animation: babyHop .55s cubic-bezier(.2, .9, .3, 1)
}

@keyframes babyHop {
    0% {
        transform: translateY(0) rotate(0)
    }

    30% {
        transform: translateY(-9px) rotate(-2deg)
    }

    55% {
        transform: translateY(1.5px) rotate(1.2deg)
    }

    100% {
        transform: translateY(0) rotate(0)
    }
}

.baby-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 12px 18px rgba(33, 48, 42, .15));
    transform-origin: 50% 70%
}

.baby-badge {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--paper);
    padding: 5px 8px;
    border-radius: 9px;
    font: 700 8px var(--manrope);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: .3s
}

.growth-baby.ready .baby-badge {
    opacity: 1;
    top: -20px
}

.age-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: #7b847e;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.filters-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 14px;
    margin-top: 28px
}

.filter-card {
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(33, 48, 42, .09);
    background: rgba(255, 255, 255, .42);
    min-height: 138px
}

.filter-label {
    font: 700 10px var(--manrope);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b756e
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px
}

.filter-chip {
    padding: 9px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(245, 241, 233, .55);
    font-size: 10px;
    color: #59645d;
    transition: .25s
}

.filter-chip:hover {
    transform: translateY(-2px);
    background: #fff
}

.filter-chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
    box-shadow: 0 8px 18px rgba(33, 48, 42, .13)
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(33, 48, 42, .18);
    padding: 4px 0 9px;
    margin-top: 14px
}

.search-box svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--muted)
}

.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 12px;
    color: var(--ink)
}

.search-box input::placeholder {
    color: #889089
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0 18px
}

.results-count {
    font: 600 12px var(--manrope)
}

.results-note {
    font-size: 10px;
    color: var(--muted)
}

/* ---------- grid de artículos ---------- */

.article-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px
}

.article-card {
    grid-column: span 4;
    min-height: 360px;
    background: var(--white);
    border: 1px solid rgba(110, 140, 121, .12);
    border-radius: 32px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 36px rgba(110, 140, 121, .06);
    transform: translateY(18px);
    opacity: 0
}

.article-card.show {
    animation: cardIn .65s cubic-bezier(.2, .8, .2, 1) forwards
}

.article-card.wide {
    grid-column: span 8;
    min-height: 360px;
    background: linear-gradient(145deg, #dce5dd, #b5c8b8)
}

.article-card.tall {
    grid-row: span 2;
    min-height: 740px;
    background: linear-gradient(160deg, #f0d3c4, #e9b89f)
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.article-card.hidden {
    display: none
}

.article-card:before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--sage), var(--blush));
    z-index: 1
}

.article-card:after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    right: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(233, 200, 200, .4), transparent 64%);
    pointer-events: none
}

.article-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2
}

.article-tag {
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--sage-deep)
}

.article-age {
    font: 700 9px var(--manrope);
    color: rgba(110, 140, 121, .85);
    background: rgba(157, 184, 167, .18);
    padding: 6px 9px;
    border-radius: 999px
}

.article-arrow {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    border: 1px solid rgba(110, 140, 121, .2);
    display: grid;
    place-items: center;
    font-size: 13px;
    transition: .3s
}

.article-card:hover .article-arrow {
    transform: rotate(45deg);
    background: var(--sage-deep);
    color: #f1f4ee;
    border-color: var(--sage-deep)
}

.article-body {
    position: relative;
    z-index: 2
}

.article-card h3 {
    font: 400 34px/.94 var(--serif);
    letter-spacing: -.035em;
    max-width: 550px;
    margin: 14px 0 12px
}

.article-card h3 a {
    color: inherit
}

.article-card h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px
}

.article-card.wide h3 {
    font-size: 47px;
    max-width: 650px
}

.article-card.tall h3 {
    font-size: 47px
}

.article-card p {
    font-size: 12px;
    line-height: 1.6;
    color: #5f6a61;
    max-width: 500px;
    margin: 0
}

.article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 9px;
    color: #7b847e;
    text-transform: uppercase;
    letter-spacing: .08em
}

.empty {
    display: none;
    text-align: center;
    padding: 80px 22px;
    border: 1px dashed rgba(33, 48, 42, .16);
    border-radius: 28px;
    background: rgba(255, 255, 255, .22)
}

.empty.show {
    display: block
}

.empty-baby {
    font-size: 48px;
    margin-bottom: 8px
}

.empty h3 {
    font: 400 36px var(--serif);
    margin: 0 0 8px
}

.empty p {
    color: var(--muted);
    font-size: 13px;
    margin: 0
}

.tip-strip {
    margin-top: 22px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    background: rgba(33, 48, 42, .045);
    color: #5c6860;
    font-size: 10px
}

.tip-strip strong {
    font: 700 10px var(--manrope);
    color: var(--ink)
}

.tip-dot {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: #e9dfd2;
    display: grid;
    place-items: center;
    color: var(--terra);
    font-size: 13px
}

/* ---------- switch móvil de vista ---------- */

.mobile-view-switch {
    display: none;
    position: sticky;
    top: 10px;
    z-index: 80;
    width: max-content;
    margin: 18px auto 0;
    padding: 4px;
    border: 1px solid rgba(33, 48, 42, .09);
    border-radius: 999px;
    background: rgba(255, 253, 250, .72);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(42, 56, 48, .08)
}

.mobile-view-switch a {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 10px;
    color: var(--muted);
    transition: background .25s, color .25s
}

.mobile-view-switch a.active-view {
    background: var(--ink);
    color: var(--paper)
}

/* ---------- vista recorrido ---------- */

.journey-view {
    display: none;
    position: relative;
    /* clip (no hidden): hidden crea contenedor de scroll y rompe el sticky del panel en Firefox */
    overflow: clip;
    background:
        radial-gradient(880px 600px at 92% -10%, rgba(157, 184, 167, .34), transparent 58%),
        radial-gradient(760px 560px at -10% 34%, rgba(233, 200, 200, .3), transparent 56%),
        linear-gradient(180deg, #f5f4ee, var(--paper) 26%);
    color: var(--ink);
    min-height: 100vh
}

.journey-view.is-active {
    display: block
}

.journey-aurora {
    position: absolute;
    inset: -20% -10% auto;
    height: 75vh;
    background: radial-gradient(circle at 68% 18%, rgba(157, 184, 167, .26), transparent 30%), radial-gradient(circle at 18% 42%, rgba(207, 141, 144, .18), transparent 32%);
    filter: blur(10px);
    pointer-events: none
}

.journey-top {
    position: relative;
    padding: 150px 22px 90px;
    max-width: 1180px
}

.journey-kicker {
    font: 700 11px var(--manrope);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sage-deep);
    display: flex;
    gap: 10px;
    align-items: center
}

.journey-kicker:before {
    content: "";
    display: block;
    width: 34px;
    height: 1px;
    background: var(--sage)
}

.journey-top h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(58px, 7vw, 102px);
    line-height: .88;
    letter-spacing: -.055em;
    margin: 18px 0 24px
}

.journey-top h2 em,
.journey-step h3 em,
.journey-end h3 em {
    color: #cf8d90
}

.journey-top p {
    max-width: 580px;
    color: #5f6a61;
    font-size: 15px;
    line-height: 1.7
}

.journey-shell {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    gap: 84px;
    padding: 0 22px;
    position: relative
}

.journey-visual-wrap {
    position: sticky;
    top: 86px;
    height: calc(100svh - 110px);
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 26px
}

.journey-visual {
    height: min(650px, 72svh);
    min-height: 500px;
    border: 1px solid rgba(110, 140, 121, .14);
    background: radial-gradient(circle at 55% 48%, rgba(157, 184, 167, .18), transparent 33%), rgba(255, 255, 255, .5);
    border-radius: 42px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 24px 70px rgba(110, 140, 121, .1)
}

.journey-visual:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(110, 140, 121, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 140, 121, .07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 86%)
}

.journey-age {
    position: absolute;
    left: 28px;
    top: 28px;
    z-index: 3
}

.journey-age span {
    display: block;
    font-family: var(--serif);
    font-size: 38px;
    line-height: .9
}

.journey-age small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase
}

.journey-count {
    position: absolute;
    right: 28px;
    top: 30px;
    text-align: right;
    z-index: 3
}

.journey-count strong {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400
}

.journey-count span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 2px
}

.journey-orbit {
    position: absolute;
    border: 1px solid rgba(207, 141, 144, .22);
    border-radius: 50%;
    left: 50%;
    top: 51%;
    transform-origin: center;
    pointer-events: none
}

.orbit-a {
    width: 76%;
    height: 38%;
    transform: translate(-50%, -50%) rotate(-12deg)
}

.orbit-b {
    width: 98%;
    height: 55%;
    transform: translate(-50%, -50%) rotate(16deg);
    border-color: rgba(157, 184, 167, .15)
}

.orbit-c {
    width: 58%;
    height: 78%;
    transform: translate(-50%, -50%) rotate(70deg);
    border-color: rgba(110, 140, 121, .12)
}

.journey-baby {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 350px;
    height: 380px;
    transform: translate(-50%, -46%) scale(.76);
    transform-origin: center bottom;
    transition: transform .85s cubic-bezier(.2, .8, .2, 1);
    z-index: 2
}

.journey-baby>.baby-shape {
    opacity: .08;
    transform: scale(1.18);
    transform-origin: center
}

.journey-baby .baby-halo {
    width: 290px;
    height: 290px;
    left: 30px;
    top: 35px
}

.baby-halo {
    position: absolute;
    width: 210px;
    height: 210px;
    left: 10px;
    top: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 141, 144, .25), rgba(207, 141, 144, 0) 68%);
    animation: haloPulse 4s ease-in-out infinite
}

.baby-shape {
    position: absolute
}

.baby-shape.head {
    width: 93px;
    height: 93px;
    border-radius: 50%;
    left: 69px;
    top: 24px;
    background: #f0c7b1;
    box-shadow: inset -13px -12px 0 rgba(159, 94, 75, .08)
}

.baby-shape.head:after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #30423a;
    left: 28px;
    top: 38px;
    box-shadow: 26px 2px 0 #30423a
}

.baby-shape.body {
    width: 132px;
    height: 145px;
    border-radius: 65px 65px 42px 42px;
    left: 47px;
    top: 94px;
    background: #dbe5dc
}

.baby-shape.blanket {
    width: 164px;
    height: 92px;
    border-radius: 82px 82px 22px 22px;
    left: 33px;
    top: 156px;
    background: #f4ede1;
    transform: rotate(-8deg);
    box-shadow: 0 14px 0 rgba(110, 140, 121, .08)
}

.baby-star {
    position: absolute;
    font-family: var(--serif);
    color: #cf8d90
}

.s1 {
    right: 7px;
    top: 44px;
    font-size: 27px;
    animation: floatStar 3s ease-in-out infinite
}

.s2 {
    left: 9px;
    top: 106px;
    font-size: 22px;
    animation: floatStar 2.6s ease-in-out infinite .4s
}

.s3 {
    right: 23px;
    bottom: 34px;
    font-size: 18px;
    animation: floatStar 3.4s ease-in-out infinite .8s
}

.journey-scenes {
    position: absolute;
    inset: -12px;
    z-index: 8;
    pointer-events: none
}

.journey-scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(18px) scale(.96);
    transition: opacity .55s ease, transform .8s cubic-bezier(.2, .8, .2, 1)
}

.journey-scene.is-active {
    opacity: 1;
    transform: none
}

.journey-scene svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    overflow: visible;
    transform: scale(.96);
    transition: transform .8s cubic-bezier(.2, .8, .2, 1)
}

.journey-scene.is-active svg {
    transform: scale(1)
}

.scene-ring {
    fill: none;
    stroke: rgba(110, 140, 121, .22);
    stroke-width: 1.4
}

.scene-soft {
    fill: #f4ede1
}

.scene-sage {
    fill: #dbe5dc
}

.scene-sage-dark {
    fill: #9db8a7
}

.scene-terra {
    fill: #cf8d90
}

.scene-skin {
    fill: #f0c7b1
}

.scene-ink {
    fill: #30423a
}

.scene-pale {
    fill: #f7efe4
}

.scene-float {
    animation: sceneFloat 4.8s ease-in-out infinite
}

.scene-float.s2 {
    animation-delay: .5s
}

.scene-float.s3 {
    animation-delay: 1s
}

@keyframes sceneFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.journey-quote {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    font-family: var(--serif);
    font-style: italic;
    font-size: 27px;
    line-height: 1;
    white-space: nowrap;
    color: var(--ink);
    z-index: 3;
    transition: opacity .35s, transform .5s
}

.journey-progress {
    height: 2px;
    background: rgba(110, 140, 121, .2);
    margin-top: 16px;
    overflow: hidden
}

.journey-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #cf8d90, #9db8a7);
    transition: width .7s cubic-bezier(.2, .8, .2, 1)
}

.journey-step {
    min-height: 96svh;
    padding: 15vh 0 10vh;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 22px;
    opacity: .24;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1)
}

.journey-step.is-active {
    opacity: 1;
    transform: none
}

.journey-step-index {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(110, 140, 121, .26);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 17px;
    color: var(--terra-deep);
    transition: all .45s
}

.journey-step.is-active .journey-step-index {
    background: #cf8d90;
    color: var(--ink);
    border-color: #cf8d90;
    box-shadow: 0 0 0 8px rgba(207, 141, 144, .08)
}

.journey-step-copy {
    max-width: 570px
}

.journey-step-kicker {
    font: 700 10px var(--manrope);
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sage-deep);
    margin: 3px 0 16px
}

.journey-step h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.045em;
    font-size: clamp(48px, 5vw, 72px);
    line-height: .91;
    margin: 0 0 22px
}

.journey-step p {
    max-width: 520px;
    color: #5f6a61;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 28px
}

.journey-links {
    display: grid;
    gap: 10px;
    max-width: 520px
}

.journey-article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 17px;
    border: 1px solid rgba(110, 140, 121, .16);
    background: rgba(255, 255, 255, .6);
    border-radius: 20px;
    max-width: 520px;
    box-shadow: 0 8px 30px rgba(110, 140, 121, .05);
    transition: transform .3s, border-color .3s, background .3s
}

.journey-article:hover {
    transform: translateX(6px);
    border-color: rgba(207, 141, 144, .48);
    background: var(--white)
}

.journey-article small {
    display: block;
    color: var(--sage-deep);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 5px
}

.journey-article strong {
    font-family: var(--manrope);
    font-size: 12px;
    font-weight: 600;
    display: block
}

.journey-article b {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid rgba(110, 140, 121, .24);
    font-weight: 400
}

.journey-end {
    padding: 90px 22px 150px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px
}

.journey-end span {
    font: 700 10px var(--manrope);
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sage-deep)
}

.journey-end h3 {
    font-family: var(--serif);
    font-size: clamp(43px, 5vw, 68px);
    line-height: .92;
    font-weight: 400;
    letter-spacing: -.045em;
    margin: 13px 0 0
}

.journey-back {
    background: var(--sage-deep);
    color: #f1f4ee;
    box-shadow: 0 14px 34px rgba(110, 140, 121, .24);
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600
}

.journey-back:hover {
    transform: translateY(-3px)
}

@keyframes haloPulse {

    0%,
    100% {
        transform: scale(.94);
        opacity: .55
    }

    50% {
        transform: scale(1.08);
        opacity: .9
    }
}

@keyframes floatStar {

    0%,
    100% {
        transform: translate3d(0, 0, 0)
    }

    50% {
        transform: translate3d(0, -8px, 0)
    }
}

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

@media(max-width:980px) {
    .mobile-view-switch {
        display: flex
    }

    .filters-grid {
        grid-template-columns: 1fr 1fr
    }

    .article-card {
        grid-column: span 6
    }

    .article-card.wide {
        grid-column: span 12
    }

    .article-card.tall {
        grid-column: span 6
    }

    .journey-top {
        padding-top: 120px
    }

    .journey-shell {
        grid-template-columns: 1fr;
        gap: 0
    }

    /* Panel compacto y opaco: en pantallas estrechas acompaña el scroll sin
       tapar el texto de los pasos (antes translúcido y demasiado alto) */
    .journey-visual-wrap {
        position: sticky;
        top: 14px;
        height: auto;
        padding: 0 0 14px;
        z-index: 5
    }

    .journey-visual {
        height: min(46svh, 430px);
        min-height: 300px;
        background: radial-gradient(circle at 55% 48%, rgba(157, 184, 167, .18), transparent 33%), var(--white)
    }

    .journey-baby {
        width: 310px;
        height: 330px
    }

    .journey-scene svg {
        max-width: 340px
    }

    .journey-quote {
        font-size: 22px;
        bottom: 22px
    }

    .journey-progress {
        margin-top: 12px
    }

    .journey-step {
        min-height: 74svh;
        padding: 12vh 0 11vh
    }

    .journey-step h3 {
        font-size: clamp(44px, 7vw, 64px)
    }

    .journey-end {
        padding-bottom: 110px
    }
}

@media(max-width:620px) {
    .hero {
        min-height: 73svh;
        padding: 124px 16px 58px
    }

    .hero h1 {
        font-size: clamp(59px, 17.7vw, 82px)
    }

    .hero-copy {
        font-size: 15px
    }

    .section {
        padding: 72px 16px
    }

    .section-head {
        flex-direction: column;
        align-items: start;
        gap: 14px;
        margin-bottom: 26px
    }

    .filters-shell {
        padding: 16px;
        border-radius: 28px
    }

    .age-header {
        align-items: start;
        flex-direction: column
    }

    .age-readout {
        margin-top: 4px
    }

    .age-track {
        margin: 0 13px;
        height: 82px
    }

    .age-tick {
        top: 19px
    }

    .growth-baby {
        width: 70px;
        height: 70px
    }

    .track-line {
        top: 32px
    }

    .age-caption {
        font-size: 7px
    }

    .filters-grid {
        grid-template-columns: 1fr
    }

    .filter-card {
        min-height: 120px
    }

    .results-bar {
        align-items: start;
        flex-direction: column;
        gap: 5px
    }

    .article-grid {
        display: grid;
        grid-template-columns: 1fr
    }

    .article-card,
    .article-card.wide,
    .article-card.tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 320px
    }

    .article-card.wide h3,
    .article-card.tall h3 {
        font-size: 39px
    }

    .article-card h3 {
        font-size: 33px
    }

    .article-card.tall {
        min-height: 420px
    }

    .hero-orbit {
        width: 90vw;
        height: 90vw;
        right: -45vw;
        bottom: -15vw
    }

    .mobile-view-switch {
        top: 72px
    }

    .journey-top {
        padding: 110px 16px 54px
    }

    .journey-top h2 {
        font-size: clamp(52px, 16vw, 78px)
    }

    .journey-top p {
        font-size: 14px
    }

    .journey-shell {
        width: 100%;
        padding: 0 16px
    }

    .journey-visual-wrap {
        top: 12px
    }

    .journey-visual {
        height: min(44svh, 400px);
        min-height: 280px;
        border-radius: 28px
    }

    .journey-age {
        left: 20px;
        top: 20px
    }

    .journey-age span {
        font-size: 30px
    }

    .journey-count {
        right: 20px;
        top: 22px
    }

    .journey-quote {
        font-size: clamp(17px, 5.8vw, 21px);
        bottom: 16px
    }

    .journey-baby {
        width: 280px;
        height: 300px
    }

    .journey-scene svg {
        max-width: 300px
    }

    .journey-step {
        grid-template-columns: 35px 1fr;
        gap: 12px;
        min-height: 84svh;
        padding: 14vh 0 11vh
    }

    .journey-step-index {
        width: 34px;
        height: 34px;
        font-size: 14px
    }

    .journey-step h3 {
        font-size: clamp(42px, 12vw, 58px)
    }

    .journey-step p {
        font-size: 14px
    }

    .journey-article {
        padding: 14px
    }

    .journey-end {
        padding: 70px 16px 100px;
        flex-direction: column;
        align-items: start
    }

    .journey-end h3 {
        font-size: 50px
    }
}

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

    .journey-baby,
    .journey-quote,
    .journey-step,
    .journey-progress span {
        transition: none !important
    }

    .baby-halo,
    .baby-star {
        animation: none !important
    }
}
