/* =====================================================================
   mandev.es · Sistema visual común (portada, blog y artículos)
   Inspirado en la landing de MandevIA: Public Sans, morado #696cff,
   fondos degradados suaves, tarjetas blancas con sombra ligera.
   ===================================================================== */

:root {
    --mv-primary: #696cff;
    --mv-primary-dark: #5f61e6;
    --mv-primary-soft: #e7e7ff;
    --mv-violet: #8a3ffc;
    --mv-info: #03c3ec;
    --mv-info-dark: #03a6c9;
    --mv-success: #56ad2a;
    --mv-warning: #e69500;
    --mv-danger: #e5432d;
    --mv-heading: #384551;
    --mv-body: #646e78;
    --mv-muted: #8592a3;
    --mv-soft-bg: #f8f7fa;
    --mv-border: #e4e6e8;
    --mv-dark: #2b2c40;
    --mv-dark-2: #25263a;
    --mv-shadow: 0 0.25rem 1.125rem rgb(75 70 92 / 10%);
    --mv-shadow-lg: 0 1.25rem 2.5rem rgb(75 70 92 / 14%);
    --mv-oficius: #f19900;
    --mv-mandevia: #1478ff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body.mv {
    color: var(--mv-body);
    background: #fff;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9875rem;
    line-height: 1.65;
    overflow-x: hidden;
}

.mv :is(h1, h2, h3, h4, h5, h6) {
    color: var(--mv-heading);
}

.mv a:not(.btn, .nav-link, .mv-plain) {
    color: var(--mv-primary);
    text-decoration-color: rgb(105 108 255 / 35%);
    text-underline-offset: 0.18em;
}

.mv a:not(.btn, .nav-link, .mv-plain):hover {
    color: var(--mv-primary-dark);
    text-decoration-color: currentColor;
}

.mv strong, .mv b { color: var(--mv-heading); }

.mv .btn-primary {
    --bs-btn-bg: var(--mv-primary);
    --bs-btn-border-color: var(--mv-primary);
    --bs-btn-hover-bg: var(--mv-primary-dark);
    --bs-btn-hover-border-color: var(--mv-primary-dark);
    --bs-btn-active-bg: var(--mv-primary-dark);
    --bs-btn-active-border-color: var(--mv-primary-dark);
    box-shadow: 0 0.125rem 0.375rem 0 rgb(105 108 255 / 40%);
    font-weight: 500;
}

.mv .btn-outline-primary {
    --bs-btn-color: var(--mv-primary);
    --bs-btn-border-color: var(--mv-primary);
    --bs-btn-hover-bg: var(--mv-primary);
    --bs-btn-hover-border-color: var(--mv-primary);
    --bs-btn-active-bg: var(--mv-primary-dark);
    --bs-btn-active-border-color: var(--mv-primary-dark);
    font-weight: 500;
}

.mv .btn-link {
    --bs-btn-color: var(--mv-primary);
    --bs-btn-hover-color: var(--mv-primary-dark);
    --bs-btn-active-color: var(--mv-primary-dark);
}

.mv .btn-soft {
    color: var(--mv-primary);
    background: var(--mv-primary-soft);
    border: 0;
    font-weight: 500;
}

.mv .btn-soft:hover {
    color: #fff;
    background: var(--mv-primary);
}

.mv-gradient-text {
    background: linear-gradient(90deg, #696cff 0%, #8a3ffc 55%, #03a6c9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mv-mark {
    font-weight: 700;
    color: var(--mv-heading);
    background: linear-gradient(transparent 62%, rgb(105 108 255 / 22%) 62%);
}

.mv-oficius { color: var(--mv-oficius) !important; }

/* ---------- Navegación flotante ---------- */
.mv-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    padding-top: 1rem;
}

.mv-nav__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    background: rgb(255 255 255 / 88%);
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 0.75rem;
    box-shadow: var(--mv-shadow);
    backdrop-filter: saturate(160%) blur(8px);
}

.mv-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--mv-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.mv a.mv-nav__brand,
.mv a.mv-nav__brand:hover { color: var(--mv-heading); text-decoration: none; }

.mv-nav__brand img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(105 108 255 / 35%);
}

.mv-nav__links { gap: 0.125rem; }

.mv-nav__links .nav-link {
    padding: 0.45rem 0.65rem;
    color: var(--mv-heading);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.mv-nav__links .nav-link:hover,
.mv-nav__links .nav-link.active {
    color: var(--mv-primary);
    background: rgb(105 108 255 / 8%);
}

.mv-nav .navbar-toggler {
    border: 0;
    box-shadow: none;
}

/* ---------- Hero ---------- */
.mv-hero {
    position: relative;
    margin: 0 0.75rem;
    padding: 8.5rem 0 4.5rem;
    overflow: hidden;
    background:
        radial-gradient(55rem 30rem at 85% 0%, rgb(105 108 255 / 22%), transparent 70%),
        radial-gradient(50rem 30rem at 5% 30%, rgb(3 195 236 / 18%), transparent 70%),
        linear-gradient(160deg, #e4e6ff 0%, #e2f1fd 55%, #ece9ff 100%);
    border-radius: 0 0 3rem 3rem;
}

.mv-hero--compact { padding: 7.5rem 0 3rem; }

.mv-hero h1 {
    margin: 1rem 0 1.25rem;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.mv-hero__lead {
    max-width: 38rem;
    font-size: 1.125rem;
}

.mv-hero__photo {
    position: relative;
    width: min(20rem, 80%);
    margin: 0 auto;
}

.mv-hero__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    border: 0.5rem solid #fff;
    border-radius: 2rem;
    box-shadow: var(--mv-shadow-lg);
}

.mv-hero__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    color: var(--mv-heading);
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: var(--mv-shadow);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.mv-hero__chip i { font-size: 1.25rem; }
.mv-hero__chip--1 { top: 12%; left: -18%; }
.mv-hero__chip--2 { bottom: 14%; right: -16%; }

.mv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    color: var(--mv-primary);
    background: var(--mv-primary-soft);
    border-radius: 50rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.mv-badge--white { background: #fff; box-shadow: var(--mv-shadow); }

/* Cifras */
.mv-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.mv-stat {
    padding: 1.125rem 1rem;
    text-align: center;
    background: rgb(255 255 255 / 75%);
    border-radius: 1rem;
    box-shadow: var(--mv-shadow);
}

.mv-stat strong {
    display: block;
    color: var(--mv-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.mv-stat span {
    color: var(--mv-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ---------- Secciones ---------- */
.mv-section { padding: 4.5rem 0; }
.mv-section--soft { background: var(--mv-soft-bg); }

.mv-heading {
    max-width: 48rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.mv-heading h2 {
    margin: 1rem 0 0.875rem;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.3;
}

.mv-heading h2 strong {
    font-weight: 800;
    background: linear-gradient(transparent 70%, rgb(105 108 255 / 22%) 70%);
}

.mv-heading p { font-size: 1.0625rem; }

.mv-subheading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 3rem 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.mv-subheading::after {
    flex: 1;
    height: 1px;
    background: var(--mv-border);
    content: "";
}

.mv-prose { max-width: 46rem; margin: 0 auto; font-size: 1.0625rem; }
.mv-prose p { margin-bottom: 1.15rem; }

/* ---------- Tarjetas ---------- */
.mv-card {
    height: 100%;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--mv-border);
    border-radius: 1rem;
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.mv-card--hover:hover {
    border-color: transparent;
    box-shadow: var(--mv-shadow);
    transform: translateY(-2px);
}

.mv-card--shadow { border-color: transparent; box-shadow: var(--mv-shadow); }

.mv-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.mv-icon-tile {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.625rem;
    font-size: 1.5rem;
}

.mv-tone-primary { color: var(--mv-primary); background: rgb(105 108 255 / 16%); }
.mv-tone-info { color: var(--mv-info-dark); background: rgb(3 195 236 / 16%); }
.mv-tone-success { color: var(--mv-success); background: rgb(113 221 55 / 18%); }
.mv-tone-warning { color: var(--mv-warning); background: rgb(255 171 0 / 18%); }
.mv-tone-danger { color: var(--mv-danger); background: rgb(255 62 29 / 14%); }
.mv-tone-dark { color: var(--mv-heading); background: rgb(56 69 81 / 10%); }

.mv-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--mv-heading);
    background: var(--mv-primary-soft);
    border-radius: 1rem;
    font-size: 1.0625rem;
}

.mv-callout > i {
    flex: 0 0 auto;
    color: var(--mv-primary);
    font-size: 2rem;
}

.mv-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.625rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.mv-tag--live { color: var(--mv-success); background: rgb(113 221 55 / 18%); }
.mv-tag--off { color: var(--mv-muted); background: rgb(133 146 163 / 16%); }
.mv-tag--date { color: var(--mv-primary); background: var(--mv-primary-soft); }

/* Desplegables "Ver más" basados en <details> */
.mv-more { margin-top: 0.75rem; }

.mv-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--mv-primary);
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.mv-more > summary::-webkit-details-marker { display: none; }
.mv-more > summary::after { content: "Ver más"; }
.mv-more[open] > summary::after { content: "Ver menos"; }
.mv-more > summary i { transition: transform 200ms ease; }
.mv-more[open] > summary i { transform: rotate(180deg); }
.mv-more__body { padding-top: 0.75rem; }
.mv-more__body ul { padding-left: 1.25rem; }

/* ---------- Diálogo con el abuelo ---------- */
.mv-chat {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 46rem;
    margin: 0 auto;
}

.mv-chat__msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1.125rem;
    box-shadow: 0 1px 2px rgb(75 70 92 / 8%);
}

.mv-chat__msg b {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mv-chat__msg--abuelo {
    align-self: flex-start;
    background: #fff;
    border-bottom-left-radius: 0.25rem;
}

.mv-chat__msg--abuelo b { color: var(--mv-oficius); }

.mv-chat__msg--yo {
    align-self: flex-end;
    color: var(--mv-heading);
    background: linear-gradient(135deg, #ececff 0%, #e6f2fd 100%);
    border: 1px solid rgb(105 108 255 / 14%);
    border-bottom-right-radius: 0.25rem;
}

.mv-chat__msg--yo b { color: var(--mv-primary); }

.mv-chat-wrap {
    position: relative;
    max-height: 26rem;
    overflow: hidden;
    padding: 1.5rem;
    background: var(--mv-soft-bg);
    border-radius: 1.25rem;
    transition: max-height 400ms ease;
}

.mv-chat-wrap::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 8rem;
    background: linear-gradient(transparent, var(--mv-soft-bg));
    content: "";
    pointer-events: none;
}

.mv-chat-wrap.is-open { max-height: none; }
.mv-chat-wrap.is-open::after { display: none; }

/* ---------- Clientes ---------- */
.mv-client {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--mv-border);
    border-radius: 1rem;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.mv-client:hover { border-color: transparent; box-shadow: var(--mv-shadow); }

.mv-client__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mv-client__logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--mv-border);
    border-radius: 0.875rem;
}

.mv-client__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mv-client__head h3 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
}

.mv-client__head small {
    display: block;
    color: var(--mv-muted);
    font-size: 0.8125rem;
}

.mv-client__highlight {
    margin-bottom: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: var(--mv-heading);
    background: var(--mv-primary-soft);
    border-radius: 0.625rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.mv-client p:last-child { margin-bottom: 0; }

/* ---------- Proyectos personales ---------- */
.mv-project {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: var(--mv-shadow);
}

.mv-project__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 9rem;
    padding: 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--mv-border);
}

.mv-project__cover--tint {
    background: linear-gradient(135deg, #f1f1ff 0%, #eaf6fd 100%);
    border-bottom: 0;
}

.mv-client--note {
    justify-content: center;
    color: var(--mv-body);
    background: transparent;
    border: 2px dashed rgb(105 108 255 / 30%);
    font-size: 1.0625rem;
    text-align: center;
}

.mv-client--note:hover { border-color: rgb(105 108 255 / 30%); box-shadow: none; }

.mv-project__cover img {
    max-width: 75%;
    max-height: 100%;
    object-fit: contain;
}

.mv-project__body { flex: 1; padding: 1.5rem; }

.mv-project__body h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.mv-project__tagline {
    margin-bottom: 0.875rem;
    color: var(--mv-heading);
    font-weight: 600;
}

.mv-project__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

.mv-project--featured .mv-project__cover { height: auto; min-height: 100%; }

.mv-figure {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--mv-shadow);
}

.mv-figure-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.mv-figure-row img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.625rem;
    box-shadow: var(--mv-shadow);
    transition: transform 200ms ease;
}

.mv-figure-row a:hover img { transform: scale(1.03); }

/* ---------- Premios: línea de tiempo ---------- */
.mv-timeline {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
    padding-left: 2.5rem;
}

.mv-timeline::before {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.875rem;
    width: 2px;
    background: linear-gradient(var(--mv-primary), var(--mv-info));
    content: "";
}

.mv-timeline__item {
    position: relative;
    margin-bottom: 2rem;
}

.mv-timeline__dot {
    position: absolute;
    top: 1.5rem;
    left: -2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    color: #fff;
    background: linear-gradient(135deg, var(--mv-primary), var(--mv-violet));
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0.25rem 0.75rem rgb(105 108 255 / 35%);
    font-size: 0.875rem;
}

.mv-award__img {
    width: 100%;
    max-height: 16rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.mv-quote {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    color: var(--mv-heading);
    background: var(--mv-soft-bg);
    border-left: 0.25rem solid var(--mv-primary);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

.mv-press {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mv-press li {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.mv-press li > i {
    margin-top: 0.2rem;
    color: var(--mv-primary);
}

/* ---------- Ponencias ---------- */
.mv-talk {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: var(--mv-shadow);
}

.mv-talk__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mv-dark);
}

.mv-talk__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 300ms ease, opacity 300ms ease;
}

.mv-talk__media:hover img { opacity: 1; transform: scale(1.04); }

.mv-talk__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    color: #fff;
    background: rgb(105 108 255 / 92%);
    border-radius: 50%;
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 30%);
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
}

.mv-talk__body { flex: 1; padding: 1.5rem; }

.mv-talk__body h3 {
    margin: 0.5rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
}

.mv-talk__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

/* ---------- Artículos ---------- */
.mv-article {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--mv-shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.mv-article:hover { box-shadow: var(--mv-shadow-lg); transform: translateY(-3px); }

.mv-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--mv-muted);
    font-size: 0.8125rem;
}

.mv-article__meta time { color: var(--mv-primary); font-weight: 600; }

.mv-article h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.mv-article h3 a {
    color: var(--mv-heading) !important;
    text-decoration: none;
}

.mv-article h3 a::after { position: absolute; inset: 0; content: ""; }
.mv-article { position: relative; }
.mv-article h3 a:hover { color: var(--mv-primary) !important; }
.mv-article p { margin-bottom: 0; font-size: 0.9375rem; }

.mv-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mv-list li { border-top: 1px solid var(--mv-border); }
.mv-list li:first-child { border-top: 0; }

.mv-list a {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.75rem 0.25rem;
    color: var(--mv-heading) !important;
    text-decoration: none;
}

.mv-list a:hover { color: var(--mv-primary) !important; }
.mv-list a:hover .mv-list__title { text-decoration: underline; text-underline-offset: 0.2em; }

.mv-list__title { font-weight: 500; }
.mv-list__title .ti-star-filled { color: #f0b400; font-size: 0.875rem; }
.mv-list__title .ti-external-link { color: var(--mv-muted); font-size: 0.875rem; }

.mv-list time {
    flex: 0 0 auto;
    color: var(--mv-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.mv-series {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--mv-shadow);
}

.mv-series__head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mv-series__head h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; }

/* Listado completo del blog */
.mv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.mv-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    color: var(--mv-heading);
    background: #fff;
    border: 1px solid var(--mv-border);
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 150ms ease;
}

.mv-filter:hover { border-color: var(--mv-primary); color: var(--mv-primary); }

.mv-filter.is-active {
    color: #fff;
    background: var(--mv-primary);
    border-color: var(--mv-primary);
    box-shadow: 0 0.125rem 0.375rem rgb(105 108 255 / 40%);
}

.mv-filter small { opacity: 0.7; }

.mv-search {
    position: relative;
    max-width: 32rem;
    margin: 0 auto 1.25rem;
}

.mv-search i {
    position: absolute;
    top: 50%;
    left: 1rem;
    color: var(--mv-muted);
    font-size: 1.125rem;
    transform: translateY(-50%);
}

.mv-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: var(--mv-heading);
    background: #fff;
    border: 1px solid var(--mv-border);
    border-radius: 0.75rem;
    box-shadow: var(--mv-shadow);
    outline: none;
}

.mv-search input:focus { border-color: var(--mv-primary); box-shadow: 0 0 0 0.2rem rgb(105 108 255 / 20%); }

.mv-year {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--mv-border);
}

.mv-year:first-child { border-top: 0; }

.mv-year__label {
    position: sticky;
    top: 6rem;
    align-self: start;
    color: var(--mv-primary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mv-entry { display: flex; gap: 0.875rem; align-items: flex-start; }

.mv-entry__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.125rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
}

.mv-entry a { color: var(--mv-heading) !important; font-weight: 600; text-decoration: none; }
.mv-entry a:hover { color: var(--mv-primary) !important; text-decoration: underline; }
.mv-entry small { display: block; color: var(--mv-muted); font-size: 0.8125rem; }
.mv-entry + .mv-entry { margin-top: 1rem; }

/* ---------- Trayectoria (empleo y formación) ---------- */
.mv-steps { margin: 0; padding: 0; list-style: none; }

.mv-steps li {
    position: relative;
    padding: 0 0 1.5rem 2rem;
    border-left: 2px solid var(--mv-primary-soft);
}

.mv-steps li:last-child { padding-bottom: 0; border-left-color: transparent; }

.mv-steps li::before {
    position: absolute;
    top: 0.3rem;
    left: -0.5rem;
    width: 0.875rem;
    height: 0.875rem;
    background: #fff;
    border: 3px solid var(--mv-primary);
    border-radius: 50%;
    content: "";
}

.mv-steps h4 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; }
.mv-steps .mv-steps__meta { color: var(--mv-primary); font-size: 0.8125rem; font-weight: 600; }
.mv-steps p { margin: 0.25rem 0 0; }

/* ---------- Valores ---------- */
.mv-value { display: flex; gap: 1rem; align-items: flex-start; }
.mv-value h3 { margin-bottom: 0.25rem; font-size: 1.0625rem; font-weight: 700; }
.mv-value p { margin: 0; }

/* ---------- Historia (origen) ---------- */
.mv-story {
    max-width: 46rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.mv-story p { margin-bottom: 1.25rem; }

.mv-story__lead::first-letter {
    float: left;
    margin: 0.35rem 0.6rem 0 0;
    color: var(--mv-primary);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 0.8;
}

.mv-story sup a { text-decoration: none; font-style: italic; }

.mv-pullquote {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    color: var(--mv-heading);
    border-top: 1px solid var(--mv-border);
    border-bottom: 1px solid var(--mv-border);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.mv-pullquote i { color: var(--mv-primary); }

.mv-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.mv-specs span {
    padding: 0.25rem 0.75rem;
    color: var(--mv-heading);
    background: #fff;
    border: 1px dashed rgb(105 108 255 / 45%);
    border-radius: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8125rem;
}

/* ---------- Camino de Santiago ---------- */
.mv-camino {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.mv-camino a {
    display: block;
    padding: 1rem;
    text-align: center;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--mv-shadow);
    text-decoration: none;
    transition: transform 200ms ease;
}

.mv-camino a:hover { transform: translateY(-3px); }

.mv-camino img {
    width: 100%;
    max-width: 7rem;
    aspect-ratio: 1;
    margin-bottom: 0.75rem;
    object-fit: cover;
    border-radius: 50%;
}

.mv-camino strong { display: block; color: var(--mv-heading); font-size: 0.9375rem; }
.mv-camino span { display: block; color: var(--mv-muted); font-size: 0.8125rem; }
.mv-camino em { display: inline-block; margin-top: 0.25rem; color: var(--mv-primary); font-size: 0.75rem; font-style: normal; font-weight: 600; }

/* ---------- Llamada a la acción ---------- */
.mv-cta {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgb(3 195 236 / 18%), transparent 70%),
        linear-gradient(120deg, #e7e7ff 0%, #f3edff 50%, #e8f8fc 100%);
}

.mv-cta__inner { max-width: 50rem; margin: 0 auto; text-align: center; }

.mv-cta h2 {
    margin: 1rem 0;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
}

.mv-contact-big {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.mv-contact-big a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mv-heading) !important;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 800;
    text-decoration: none;
}

.mv-contact-big a i { color: var(--mv-primary); }
.mv-contact-big a:hover { color: var(--mv-primary) !important; }

.mv-social { display: flex; gap: 0.625rem; justify-content: center; }

.mv-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--mv-heading) !important;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--mv-shadow);
    font-size: 1.375rem;
    text-decoration: none;
    transition: all 150ms ease;
}

.mv-social a:hover { color: #fff !important; background: var(--mv-primary); transform: translateY(-2px); }

/* ---------- Pie ---------- */
.mv-footer {
    color: #b4b5c4;
    background: var(--mv-dark);
    font-size: 0.875rem;
}

.mv-footer__top { padding-top: 3.5rem; padding-bottom: 2.5rem; }

.mv-footer__bottom {
    padding: 1.25rem 0;
    background: var(--mv-dark-2);
    font-size: 0.8125rem;
}

.mv-footer h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
}

.mv-footer a:not(.btn) { color: #d4d5e3 !important; text-decoration: none; }
.mv-footer a:not(.btn):hover { color: #fff !important; }

.mv-footer__links {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mv-footer__brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Botón volver arriba */
.mv-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: #fff !important;
    background: var(--mv-primary);
    border-radius: 50%;
    box-shadow: 0 0.25rem 0.75rem rgb(105 108 255 / 40%);
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.mv-top.is-visible { opacity: 1; pointer-events: auto; }

/* Aparición suave al hacer scroll */
.mv-reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.mv-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mv-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Página de artículo (blog/*.php y blog/medium.php)
   ===================================================================== */
.mv-article-page { background: #fff; }

.mv-article-hero {
    margin: 0 0.75rem;
    padding: 7.5rem 0 3rem;
    background:
        radial-gradient(40rem 22rem at 90% 0%, rgb(105 108 255 / 18%), transparent 70%),
        radial-gradient(36rem 22rem at 0% 40%, rgb(3 195 236 / 12%), transparent 70%),
        linear-gradient(160deg, #eceeff 0%, #eef7fd 60%, #f3f0ff 100%);
    border-radius: 0 0 2.5rem 2.5rem;
}

.mv-article-hero__inner { max-width: 49rem; margin: 0 auto; }

.mv-article-hero h1 {
    margin: 1rem 0;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.mv-byline {
    flex-wrap: nowrap !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: var(--mv-body);
    font-size: 0.9375rem;
}

.mv-byline img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: cover;
    object-position: top;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: var(--mv-shadow);
}

.mv-byline strong { display: block; color: var(--mv-heading); line-height: 1.2; }

.mv-reading {
    max-width: 49rem;
    margin: 0 auto;
    padding: 3rem 0 2rem;
    color: #2f3b48;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.1875rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.mv-reading p,
.mv-reading ul,
.mv-reading ol,
.mv-reading figure,
.mv-reading blockquote,
.mv-reading pre { margin-bottom: 1.5rem; }

.mv-reading li { margin-bottom: 0.4rem; }

.mv-reading :is(h1, h2, h3, h4) {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: "Public Sans", sans-serif;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.mv-reading h2, .mv-reading h3 { font-size: 1.6rem; }
.mv-reading h4 { font-size: 1.25rem; }

.mv-reading img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 1rem;
}

.mv-reading figcaption {
    margin-top: -1.25rem;
    color: var(--mv-muted);
    font-family: "Public Sans", sans-serif;
    font-size: 0.875rem;
    text-align: center;
}

.mv-reading blockquote {
    padding: 1rem 1.5rem;
    color: var(--mv-heading);
    background: #f5f6ff;
    border-left: 0.25rem solid var(--mv-primary);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

.mv-reading pre,
.mv-reading code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
}

.mv-reading pre {
    padding: 1.25rem;
    overflow-x: auto;
    color: #e6e6f0;
    background: var(--mv-dark);
    border-radius: 0.75rem;
    white-space: pre;
    overflow-wrap: normal;
}

.mv-reading :not(pre) > code {
    padding: 0.1em 0.4em;
    color: #c0367a;
    background: #f6f2fb;
    border-radius: 0.3rem;
}

.mv-reading hr {
    width: 6rem;
    margin: 3rem auto;
    border: 0;
    border-top: 3px dotted rgb(105 108 255 / 50%);
    opacity: 1;
}

.mv-reading table { width: 100%; margin-bottom: 1.5rem; font-family: "Public Sans", sans-serif; font-size: 0.9375rem; }
.mv-reading th, .mv-reading td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--mv-border); }

/* Compatibilidad con las clases que ya usan los artículos escritos a mano */
.mv-reading .parrafo-titulo {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: "Public Sans", sans-serif;
}

.mv-reading .parrafo-titulo .h4,
.mv-reading .parrafo-titulo span {
    font-size: 1.5rem;
    font-weight: 800 !important;
    line-height: 1.3;
}

.mv-reading .colorinchi,
.mv-article-page .colorinchi {
    background: linear-gradient(90deg, #696cff 0%, #8a3ffc 55%, #03a6c9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mv-reading .colorinchi-azul {
    background: linear-gradient(to right, #0056b3, #009df3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mv-reading .color-oficius { color: var(--mv-oficius) !important; }

.mv-reading a:not(.btn) { color: var(--mv-primary); font-weight: 600; }

/* Contenido importado de Medium */
.mv-reading section { width: 100%; margin: 0; }
.mv-reading .section-divider { display: none; }
.mv-reading .graf--pullquote { color: var(--mv-heading); font-size: 1.4rem; font-style: italic; text-align: center; }
.mv-reading .markup--strong { font-weight: 700; }
.mv-reading .graf--figure img { margin-bottom: 1.5rem; }
.mv-reading .graf-dropCap::first-letter { float: none; font-size: inherit; }

/* Bloque de autor al final del artículo */
.mv-author {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.75rem;
    background: var(--mv-soft-bg);
    border-radius: 1.25rem;
    font-family: "Public Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

.mv-author img {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    object-position: top;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: var(--mv-shadow);
}

.mv-author h3 { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 800; }
.mv-author p { margin: 0 0 0.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .mv-hero__chip--1 { left: -8%; }
    .mv-hero__chip--2 { right: -6%; }
}

@media (max-width: 991.98px) {
    .mv-nav__links { padding: 0.5rem 0; }
    .mv-hero { padding-top: 7.5rem; }
    .mv-section { padding: 3.25rem 0; }
    .mv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mv-camino { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mv-hero__photo { margin-top: 1.5rem; }
}

@media (max-width: 575.98px) {
    .mv-hero, .mv-article-hero { margin: 0; border-radius: 0 0 2rem 2rem; }
    .mv-hero h1 { font-size: 2.1rem; }
    .mv-hero__chip { display: none; }
    .mv-card, .mv-client, .mv-series, .mv-article { padding: 1.25rem; }
    .mv-chat__msg { max-width: 92%; }
    .mv-chat-wrap { padding: 1rem; }
    .mv-camino { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mv-year { grid-template-columns: 1fr; gap: 0.75rem; }
    .mv-year__label { position: static; }
    .mv-list a { flex-direction: column; gap: 0.125rem; }
    .mv-reading { font-size: 1.0625rem; padding-top: 2rem; }
    .mv-author { flex-direction: column; }
    .mv-timeline { padding-left: 2rem; }
    .mv-timeline__dot { left: -2rem; }
    .mv-timeline::before { left: 0.6rem; }
}

/* Bloques de código de Medium: una <pre> por fragmento, se muestran como un solo bloque */
.mv-reading pre * { color: inherit !important; }
.mv-reading pre:has(+ pre) { margin-bottom: 0; padding-bottom: 0.25rem; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.mv-reading pre + pre { padding-top: 0.25rem; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Cifras de la portada como enlaces a su sección */
a.mv-stat {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

a.mv-stat:hover { box-shadow: var(--mv-shadow-lg); transform: translateY(-3px); }
.mv-stat strong small { margin-right: 0.05em; color: var(--mv-primary); font-size: 0.75em; vertical-align: 0.1em; }

.mv-stat em {
    display: block;
    margin-top: 0.375rem;
    color: var(--mv-primary);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    opacity: 0;
    transition: opacity 200ms ease;
}

a.mv-stat:hover em, a.mv-stat:focus-visible em { opacity: 1; }

@media (hover: none) { .mv-stat em { opacity: 1; } }

/* Modal de contacto */
.mv-modal {
    overflow: hidden;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: var(--mv-shadow-lg);
}

.mv-modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 1; }

.mv-modal__head {
    padding: 2rem 1.75rem 1.5rem;
    text-align: center;
    background:
        radial-gradient(24rem 12rem at 100% 0%, rgb(3 195 236 / 16%), transparent 70%),
        linear-gradient(140deg, #e7e7ff 0%, #f3edff 55%, #e8f8fc 100%);
}

.mv-modal__head img {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.75rem;
    object-fit: cover;
    object-position: top;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: var(--mv-shadow);
}

.mv-modal__head h2 { margin-bottom: 0.5rem; font-size: 1.6rem; font-weight: 800; }
.mv-modal__body { padding: 1.5rem 1.75rem 1.75rem; }

.mv a.mv-modal__option {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--mv-heading);
    border: 1px solid var(--mv-border);
    border-radius: 0.875rem;
    text-decoration: none;
    transition: all 150ms ease;
}

.mv a.mv-modal__option + .mv-modal__option { margin-top: 0.75rem; }
.mv a.mv-modal__option:hover { color: var(--mv-primary); border-color: var(--mv-primary); box-shadow: var(--mv-shadow); }
.mv-modal__option small { display: block; color: var(--mv-muted); font-size: 0.75rem; }
.mv-modal__option strong { font-size: 1.125rem; overflow-wrap: anywhere; }

/* Redes sociales bajo las cifras de la portada */
.mv-hero__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
}

.mv-hero__social span { color: var(--mv-muted); font-size: 0.875rem; font-weight: 500; }

.mv .mv-hero__social a {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.45rem 0.95rem;
    color: var(--mv-heading);
    background: rgb(255 255 255 / 75%);
    border-radius: 50rem;
    box-shadow: var(--mv-shadow);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 150ms ease;
}

.mv .mv-hero__social a i { font-size: 1.125rem; }
.mv .mv-hero__social a:hover { color: #fff; background: var(--mv-primary); transform: translateY(-2px); }

@media (max-width: 575.98px) {
    .mv-hero__social span { flex-basis: 100%; text-align: center; }
}

/* Tarjetas de artículo con imagen de portada */
.mv-article--cover { padding: 0; overflow: hidden; }
.mv-article--cover > :not(.mv-article__cover) { margin-right: 1.5rem; margin-left: 1.5rem; }
.mv-article--cover > :last-child { margin-bottom: 1.5rem; }

.mv-article__cover {
    height: 11rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background: var(--mv-soft-bg);
}

.mv-article__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.mv-article:hover .mv-article__cover img { transform: scale(1.05); }

.mv-article__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgb(255 255 255 / 90%);
    background:
        radial-gradient(18rem 10rem at 100% 0%, rgb(3 195 236 / 55%), transparent 70%),
        linear-gradient(135deg, #696cff 0%, #8a3ffc 100%);
    font-size: 3.5rem;
}

/* Miniaturas en el listado completo del blog */
.mv-entry__thumb {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 3.25rem;
    margin-top: 0.125rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--mv-shadow);
}

.mv-entry__icon { width: 4.5rem; height: 3.25rem; }

/* Franja de logos de clientes */
.mv-logos { padding: 2.75rem 0 0.5rem; overflow: hidden; }

.mv-logos__title {
    margin-bottom: 1.25rem;
    color: var(--mv-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.mv-logos__track {
    display: flex;
    width: max-content;
    animation: mv-logos 45s linear infinite;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mv-logos__track:hover { animation-play-state: paused; }

.mv-logos__group {
    display: flex;
    flex: 0 0 auto;
    gap: 3.5rem;
    align-items: center;
    padding-right: 3.5rem;
}

.mv-logos__group img {
    width: auto;
    max-width: 8rem;
    height: 3.25rem;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    mix-blend-mode: multiply;
    transition: filter 200ms ease, opacity 200ms ease;
}

.mv-logos__group img:hover { filter: none; opacity: 1; }

@keyframes mv-logos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .mv-logos__track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; -webkit-mask-image: none; mask-image: none; }
    .mv-logos__group[aria-hidden="true"] { display: none; }
    .mv-logos__group { flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 0 1rem; }
}

@media (max-width: 575.98px) {
    .mv-logos__group { gap: 2.25rem; padding-right: 2.25rem; }
    .mv-logos__group img { height: 2.5rem; max-width: 6rem; }
}

/* Barra de progreso de lectura */
.mv-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 1040; height: 3px; pointer-events: none; }
.mv-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #696cff, #8a3ffc, #03c3ec); }

/* Compartir artículo */
.mv-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    font-family: "Public Sans", sans-serif;
}

.mv-share > span { margin-right: 0.5rem; color: var(--mv-heading); font-size: 1rem; font-weight: 700; }

.mv-reading .mv-share a,
.mv-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--mv-heading);
    background: #fff;
    border: 1px solid var(--mv-border);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 150ms ease;
}

.mv-reading .mv-share a:hover,
.mv-share button:hover { color: #fff; background: var(--mv-primary); border-color: var(--mv-primary); }

/* Logo de Oficius compuesto (icono nítido + nombre en texto) */
.mv-logo-oficius {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--mv-oficius);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.mv-project__cover .mv-logo-oficius img { width: auto; max-width: none; height: 5rem; }
.mv-project__cover { text-decoration: none; }

/* Accesos directos del bloque "Sobre mí" */
.mv-about-nav {
    max-width: 62rem;
    margin: 0 auto 4rem;
    padding: 1.5rem;
    background:
        radial-gradient(30rem 12rem at 100% 0%, rgb(3 195 236 / 12%), transparent 70%),
        linear-gradient(140deg, #f1f1ff 0%, #f6f3ff 55%, #eef8fd 100%);
    border-radius: 1.25rem;
}

.mv-about-nav__title {
    margin-bottom: 1rem;
    color: var(--mv-heading);
    font-size: 1.125rem;
    font-weight: 800;
    text-align: center;
}

.mv-about-nav__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.mv .mv-about-nav__grid a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem;
    color: var(--mv-heading);
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: var(--mv-shadow);
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.mv .mv-about-nav__grid a:hover { box-shadow: var(--mv-shadow-lg); transform: translateY(-3px); }
.mv-about-nav__grid .mv-icon-tile { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
.mv-about-nav__grid strong { display: block; font-size: 0.9875rem; line-height: 1.25; }
.mv-about-nav__grid small { display: block; color: var(--mv-muted); font-size: 0.78rem; line-height: 1.3; }

@media (max-width: 991.98px) { .mv-about-nav__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .mv-about-nav__grid { grid-template-columns: 1fr; } }

/* Serie destacada en la portada del blog */
.mv-series-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mv-series-intro p { max-width: 40rem; color: var(--mv-body); }
.mv-article__cover { position: relative; }

.mv-article__part {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.75rem;
    color: var(--mv-primary);
    background: rgb(255 255 255 / 92%);
    border-radius: 50rem;
    box-shadow: var(--mv-shadow);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Lista con scroll vertical (colaboraciones de la Revista Azagala) */
.mv-list--scroll {
    max-height: 19.5rem;
    margin-right: -0.75rem;
    padding-right: 0.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgb(105 108 255 / 35%) transparent;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(#000 calc(100% - 2.5rem), transparent);
}

.mv-list--scroll.is-end { -webkit-mask-image: none; mask-image: none; }
.mv-list--scroll::-webkit-scrollbar { width: 6px; }
.mv-list--scroll::-webkit-scrollbar-thumb { background: rgb(105 108 255 / 35%); border-radius: 3px; }
.mv-list--scroll:focus-visible { outline: 2px solid rgb(105 108 255 / 40%); outline-offset: 4px; border-radius: 0.5rem; }

/* Listas con la fecha bajo el título (tarjetas estrechas de los especiales) */
.mv-list--stacked a { flex-direction: column; gap: 0.125rem; }
.mv-list--stacked time { font-size: 0.8125rem; }
