/* ==========================================================================
   Components — Header + Footer + Blog + Utilities (combinado para performance)
   ========================================================================== */

/* ==========================================================================
   HEADER
   ========================================================================== */

/* --- Header Base --- */
.mm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--mm-bg-primary);
    border-bottom: 1px solid var(--mm-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Header transparent solo en landing */
.mm-header--transparent {
    background: transparent;
    border-bottom-color: transparent;
}

.mm-header--transparent.mm-header--scrolled {
    background: var(--mm-bg-primary);
    border-bottom-color: var(--mm-border);
    box-shadow: 0 2px 16px var(--mm-shadow-light);
}

/* Header sólido en interiores */
.mm-header--solid {
    background: var(--mm-bg-primary);
    border-bottom-color: var(--mm-border);
}

.mm-header--solid.mm-header--scrolled {
    box-shadow: 0 2px 16px var(--mm-shadow-light);
}

/* --- Header Inner --- */
.mm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--mm-header-height);
}

/* --- Logo --- */
.mm-header__logo {
    display: flex;
    align-items: center;
    gap: var(--mm-esp-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.mm-header__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--mm-accent);
    border-radius: var(--mm-radio-card);
    color: var(--mm-bg-primary);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

.mm-header__logo-text {
    display: flex;
    flex-direction: column;
}

.mm-header__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-heading);
    line-height: 1.2;
}

.mm-header__subtitle {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--mm-text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* --- Nav Desktop --- */
.mm-header__nav {
    display: flex;
    align-items: center;
}

.mm-header__menu {
    display: flex;
    gap: var(--mm-esp-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-header__menu li a {
    display: block;
    padding: var(--mm-esp-xs) 0;
    color: var(--mm-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.mm-header__menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mm-accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.mm-header__menu li a:hover,
.mm-header__menu li.current-menu-item a,
.mm-header__menu li.current_page_item a {
    color: var(--mm-accent);
}

.mm-header__menu li a:hover::after,
.mm-header__menu li.current-menu-item a::after,
.mm-header__menu li.current_page_item a::after {
    transform: scaleX(1);
}

/* --- Header Actions --- */
.mm-header__actions {
    display: flex;
    align-items: center;
    gap: var(--mm-esp-sm);
}

/* --- Theme Toggle --- */
.mm-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radio-btn);
    color: var(--mm-text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .mm-theme-toggle {
        transition: none;
    }
}

.mm-theme-toggle:hover {
    color: var(--mm-accent);
    border-color: var(--mm-accent);
    background: rgba(17, 197, 217, 0.08);
}

/* --- CTA Button --- */
.mm-header__cta {
    font-size: 0.875rem;
}

/* --- Hamburger --- */
.mm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mm-hamburger__line {
    width: 24px;
    height: 2px;
    background: var(--mm-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mm-hamburger__line + .mm-hamburger__line {
    margin-top: 6px;
}

/* Animación a X */
.mm-hamburger[aria-expanded="true"] .mm-hamburger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mm-hamburger[aria-expanded="true"] .mm-hamburger__line:nth-child(2) {
    opacity: 0;
}

.mm-hamburger[aria-expanded="true"] .mm-hamburger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Nav --- */
.mm-nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mm-bg-primary);
    z-index: 99;
    flex-direction: column;
    padding: 80px 24px 24px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mm-nav-mobile--open {
    transform: translateY(0);
}

.mm-nav-mobile__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mm-nav-mobile__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-nav-mobile__menu li a {
    display: block;
    padding: var(--mm-esp-md) 0;
    color: var(--mm-text);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--mm-border);
}

.mm-nav-mobile__menu li a:hover {
    color: var(--mm-accent);
}

.mm-nav-mobile__cta {
    margin-top: auto;
    padding-top: var(--mm-esp-lg);
}

.mm-btn--full {
    width: 100%;
}

/* --- Body no scroll --- */
.mm-body-no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* --- Tablet --- */
@media (max-width: 1024px) {
    .mm-header__nav {
        display: none;
    }

    .mm-header__cta {
        display: none;
    }

    .mm-hamburger {
        display: flex;
    }

    .mm-nav-mobile {
        display: flex;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .mm-header__inner {
        height: 60px;
    }

    .mm-header__subtitle {
        display: none;
    }

    .mm-header__name {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* --- Footer Base --- */
.mm-footer {
    background: var(--mm-bg-secondary);
    padding: var(--mm-esp-3xl) 0 var(--mm-esp-lg);
    margin-top: var(--mm-esp-3xl);
    position: relative;
}

/* Gradiente superior */
.mm-footer::before {
    content: '';
    position: absolute;
    top: -96px;
    left: 0;
    right: 0;
    height: 96px;
    background: linear-gradient(to bottom, transparent, var(--mm-bg-secondary));
    pointer-events: none;
}

/* --- Grid de Columnas --- */
.mm-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--mm-esp-2xl);
}

/* --- Columna Brand --- */
.mm-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--mm-esp-md);
}

.mm-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--mm-esp-sm);
}

.mm-footer__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--mm-accent);
    border-radius: var(--mm-radio-card);
    color: var(--mm-bg-primary);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

.mm-footer__logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-heading);
}

.mm-footer__description {
    color: var(--mm-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 280px;
}

/* --- Títulos de Columna --- */
.mm-footer__title {
    color: var(--mm-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--mm-esp-md);
}

/* --- Links --- */
.mm-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--mm-esp-sm);
}

.mm-footer__link {
    color: var(--mm-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.mm-footer__link:hover {
    color: var(--mm-accent);
}

/* --- Contacto --- */
.mm-footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--mm-esp-sm);
    color: var(--mm-text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--mm-esp-sm);
}

.mm-footer__contact-item a {
    color: var(--mm-text-secondary);
    text-decoration: none;
}

.mm-footer__contact-item a:hover {
    color: var(--mm-accent);
}

.mm-footer__contact-icon {
    width: 16px;
    height: 16px;
    color: var(--mm-accent);
    flex-shrink: 0;
}

/* --- Redes Sociales --- */
.mm-footer__social {
    display: flex;
    gap: var(--mm-esp-md);
}

.mm-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mm-bg-elevated);
    color: var(--mm-text-secondary);
    transition: background 0.2s ease;
}

.mm-footer__social-link:hover {
    background: var(--mm-accent);
    color: var(--mm-bg-primary);
}

/* --- Copyright --- */
.mm-footer__copyright {
    margin-top: var(--mm-esp-2xl);
    padding-top: var(--mm-esp-lg);
    border-top: 1px solid var(--mm-border);
    text-align: center;
    color: var(--mm-text-secondary);
    font-size: 0.75rem;
}

/* --- Responsive Tablet --- */
@media (max-width: 1024px) {
    .mm-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .mm-footer {
        padding: var(--mm-esp-2xl) 0 var(--mm-esp-md);
        margin-top: var(--mm-esp-2xl);
    }

    .mm-footer::before {
        top: -64px;
        height: 64px;
    }

    .mm-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--mm-esp-xl);
    }

    .mm-footer__social {
        justify-content: flex-start;
    }
}

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

/* --- Blog Grid --- */
.mm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mm-esp-lg);
    margin-top: var(--mm-esp-xl);
}

/* --- Blog Card --- */
.mm-blog-card {
    background: var(--mm-bg-elevated);
    border-radius: var(--mm-radio-card);
    border: 1px solid var(--mm-border);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mm-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--mm-shadow-medium);
}

.mm-blog-card__image-link {
    display: block;
    overflow: hidden;
}

.mm-blog-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mm-blog-card:hover .mm-blog-card__image {
    transform: scale(1.05);
}

.mm-blog-card__content {
    padding: var(--mm-esp-lg);
}

.mm-blog-card__meta {
    display: flex;
    gap: var(--mm-esp-md);
    margin-bottom: var(--mm-esp-sm);
}

.mm-blog-card__date {
    color: var(--mm-text-disabled);
    font-size: 0.75rem;
}

.mm-blog-card__category {
    display: inline-block;
    padding: 2px var(--mm-esp-xs);
    border-radius: var(--mm-radio-pill);
    background: rgba(17, 197, 217, 0.15);
    color: var(--mm-accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.mm-blog-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--mm-esp-sm);
}

.mm-blog-card__title a {
    color: var(--mm-heading);
    text-decoration: none;
}

.mm-blog-card__title a:hover {
    color: var(--mm-accent);
}

.mm-blog-card__excerpt {
    color: var(--mm-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --- Blog Filters --- */
.mm-blog-filters {
    display: flex;
    gap: var(--mm-esp-sm);
    flex-wrap: wrap;
    margin-bottom: var(--mm-esp-xl);
}

.mm-blog-filters__item {
    padding: var(--mm-esp-xs) var(--mm-esp-md);
    border-radius: var(--mm-radio-btn);
    background: var(--mm-bg-elevated);
    color: var(--mm-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--mm-border);
    transition: all 0.2s ease;
}

.mm-blog-filters__item:hover {
    color: var(--mm-text);
    border-color: var(--mm-text-secondary);
}

.mm-blog-filters__item--active {
    background: var(--mm-accent);
    color: var(--mm-bg-primary);
    border-color: var(--mm-accent);
}

/* --- Paginación --- */
.mm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--mm-esp-sm);
    margin-top: var(--mm-esp-2xl);
}

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--mm-esp-sm);
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--mm-esp-sm);
    border-radius: var(--mm-radio-btn);
    background: var(--mm-bg-elevated);
    color: var(--mm-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid var(--mm-border);
    transition: all 0.2s ease;
}

.page-numbers:hover {
    color: var(--mm-text);
    border-color: var(--mm-text-secondary);
}

.page-numbers.current {
    background: var(--mm-accent);
    color: var(--mm-bg-primary);
    border-color: var(--mm-accent);
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 500;
}

/* --- No Results --- */
.mm-no-results {
    text-align: center;
    padding: var(--mm-esp-3xl) 0;
    color: var(--mm-text-secondary);
}

/* --- Single Post --- */
.mm-single {
    max-width: 720px;
    margin: 0 auto;
}

.mm-single__header {
    margin-bottom: var(--mm-esp-2xl);
}

.mm-single__title {
    margin-bottom: var(--mm-esp-md);
}

.mm-single__meta {
    display: flex;
    gap: var(--mm-esp-md);
    color: var(--mm-text-secondary);
    font-size: 0.875rem;
}

.mm-single__content {
    line-height: 1.8;
}

.mm-single__content > * + * {
    margin-top: var(--mm-esp-md);
}

/* --- Single Category Badge --- */
.mm-single__category {
    margin-bottom: var(--mm-esp-md);
    display: inline-block;
}

/* --- Single Meta Items --- */
.mm-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mm-single__meta-item svg {
    flex-shrink: 0;
    color: var(--mm-accent);
}

/* --- Tags --- */
.mm-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mm-esp-sm);
    margin-top: var(--mm-esp-2xl);
    padding-top: var(--mm-esp-lg);
    border-top: 1px solid var(--mm-border);
}

.mm-single__tag {
    display: inline-block;
    padding: var(--mm-esp-xs) var(--mm-esp-md);
    background: var(--mm-bg-elevated);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radio-pill);
    color: var(--mm-text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mm-single__tag:hover {
    color: var(--mm-accent);
    border-color: var(--mm-accent);
    background: rgba(17, 197, 217, 0.08);
}

/* --- Source --- */
.mm-single__source {
    margin-top: var(--mm-esp-lg);
    padding: var(--mm-esp-md);
    background: var(--mm-bg-elevated);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radio-card);
    font-size: 0.875rem;
    color: var(--mm-text-secondary);
}

.mm-single__source strong {
    color: var(--mm-text);
    margin-right: var(--mm-esp-xs);
}

/* --- Related Posts --- */
.mm-single__related {
    margin-top: var(--mm-esp-3xl);
    padding-top: var(--mm-esp-2xl);
    border-top: 1px solid var(--mm-border);
}

.mm-single__related-title {
    font-size: 1.5rem;
    margin-bottom: var(--mm-esp-lg);
}

.mm-blog-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .mm-blog-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Filters (select) --- */
.mm-blog-filters--mobile {
    display: none;
    margin-bottom: var(--mm-esp-lg);
}

.mm-blog-filters--mobile select {
    width: 100%;
    padding: var(--mm-esp-md);
    border-radius: var(--mm-radio-input);
    background: var(--mm-bg-elevated);
    color: var(--mm-text);
    border: 1px solid var(--mm-border);
    font-size: 1rem;
    font-family: var(--mm-font-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mm-blog-filters {
        display: none;
    }

    .mm-blog-filters--mobile {
        display: block;
    }
}

/* --- Responsive Tablet --- */
@media (max-width: 1024px) {
    .mm-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .mm-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STANDARD PAGE — Hero + Featured Image
   ========================================================================== */

/* --- Page Hero --- */
.mm-page-hero {
    background: var(--mm-bg-secondary);
    padding: var(--mm-esp-3xl) 0 var(--mm-esp-2xl);
    text-align: center;
}

.mm-page-hero__header {
    max-width: 720px;
    margin: 0 auto;
}

.mm-page-hero__title {
    margin-bottom: var(--mm-esp-md);
}

.mm-page-hero__excerpt {
    color: var(--mm-text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* --- Featured Image --- */
.mm-page-featured {
    padding: var(--mm-esp-xl) 0 0;
}

.mm-page-featured__image {
    border-radius: var(--mm-radio-card);
    overflow: hidden;
    box-shadow: 0 4px 24px var(--mm-shadow-medium);
}

.mm-page-featured__img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Page Content --- */
.mm-page__content {
    line-height: 1.8;
}

.mm-page__content > * + * {
    margin-top: var(--mm-esp-md);
}

.mm-page__content h2 {
    margin-top: var(--mm-esp-xl);
    margin-bottom: var(--mm-esp-md);
}

.mm-page__content h3 {
    margin-top: var(--mm-esp-lg);
    margin-bottom: var(--mm-esp-sm);
}

.mm-page__content ul,
.mm-page__content ol {
    padding-left: var(--mm-esp-md);
    margin-bottom: var(--mm-esp-md);
}

.mm-page__content li {
    margin-bottom: var(--mm-esp-xs);
}

.mm-page__content img {
    border-radius: var(--mm-radio-card);
    margin: var(--mm-esp-lg) 0;
}

.mm-page__content figure {
    margin: var(--mm-esp-lg) 0;
}

.mm-page__content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--mm-text-secondary);
    margin-top: var(--mm-esp-xs);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .mm-page-hero {
        padding: var(--mm-esp-2xl) 0 var(--mm-esp-xl);
    }

    .mm-page-hero__excerpt {
        font-size: 1rem;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

/* --- Display --- */
.mm-hidden { display: none; }
.mm-block { display: block; }
.mm-flex { display: flex; }
.mm-inline-flex { display: inline-flex; }
.mm-grid { display: grid; }

/* --- Flex Utilities --- */
.mm-flex-col { flex-direction: column; }
.mm-flex-row { flex-direction: row; }
.mm-flex-wrap { flex-wrap: wrap; }
.mm-items-center { align-items: center; }
.mm-items-start { align-items: flex-start; }
.mm-items-end { align-items: flex-end; }
.mm-justify-center { justify-content: center; }
.mm-justify-between { justify-content: space-between; }
.mm-justify-end { justify-content: flex-end; }
.mm-flex-1 { flex: 1; }

/* --- Gap --- */
.mm-gap-xs { gap: var(--mm-esp-xs); }
.mm-gap-sm { gap: var(--mm-esp-sm); }
.mm-gap-md { gap: var(--mm-esp-md); }
.mm-gap-lg { gap: var(--mm-esp-lg); }

/* --- Width --- */
.mm-w-full { width: 100%; }
.mm-w-auto { width: auto; }
.mm-max-w-content { max-width: 720px; }
.mm-max-w-wide { max-width: 960px; }
.mm-max-w-full { max-width: 1200px; }

/* --- Text --- */
.mm-text-center { text-align: center; }
.mm-text-left { text-align: left; }
.mm-text-right { text-align: right; }
.mm-text-accent { color: var(--mm-accent); }
.mm-text-heading { color: var(--mm-heading); }
.mm-text-secondary { color: var(--mm-text-secondary); }
.mm-text-muted { color: var(--mm-text-disabled); }
.mm-text-sm { font-size: 0.875rem; }
.mm-text-xs { font-size: 0.75rem; }
.mm-text-lg { font-size: 1.125rem; }
.mm-text-bold { font-weight: 700; }
.mm-text-semibold { font-weight: 600; }
.mm-text-medium { font-weight: 500; }
.mm-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Spacing --- */
.mm-m-0 { margin: 0; }
.mm-mt-0 { margin-top: 0; }
.mm-mb-0 { margin-bottom: 0; }
.mm-mt-xs { margin-top: var(--mm-esp-xs); }
.mm-mt-sm { margin-top: var(--mm-esp-sm); }
.mm-mt-md { margin-top: var(--mm-esp-md); }
.mm-mt-lg { margin-top: var(--mm-esp-lg); }
.mm-mt-xl { margin-top: var(--mm-esp-xl); }
.mm-mt-2xl { margin-top: var(--mm-esp-2xl); }
.mm-mb-xs { margin-bottom: var(--mm-esp-xs); }
.mm-mb-sm { margin-bottom: var(--mm-esp-sm); }
.mm-mb-md { margin-bottom: var(--mm-esp-md); }
.mm-mb-lg { margin-bottom: var(--mm-esp-lg); }
.mm-mb-xl { margin-bottom: var(--mm-esp-xl); }
.mm-mb-2xl { margin-bottom: var(--mm-esp-2xl); }
.mm-mx-auto { margin-left: auto; margin-right: auto; }

.mm-p-0 { padding: 0; }
.mm-p-xs { padding: var(--mm-esp-xs); }
.mm-p-sm { padding: var(--mm-esp-sm); }
.mm-p-md { padding: var(--mm-esp-md); }
.mm-p-lg { padding: var(--mm-esp-lg); }
.mm-p-xl { padding: var(--mm-esp-xl); }
.mm-px-lg { padding-left: var(--mm-esp-lg); padding-right: var(--mm-esp-lg); }
.mm-py-lg { padding-top: var(--mm-esp-lg); padding-bottom: var(--mm-esp-lg); }

/* --- Border --- */
.mm-border { border: 1px solid var(--mm-border); }
.mm-border-t { border-top: 1px solid var(--mm-border); }
.mm-border-b { border-bottom: 1px solid var(--mm-border); }
.mm-rounded { border-radius: var(--mm-radio-card); }
.mm-rounded-sm { border-radius: var(--mm-radio-btn); }
.mm-rounded-full { border-radius: var(--mm-radio-full); }

/* --- Background --- */
.mm-bg-primary { background-color: var(--mm-bg-primary); }
.mm-bg-secondary { background-color: var(--mm-bg-secondary); }
.mm-bg-elevated { background-color: var(--mm-bg-elevated); }
.mm-bg-accent { background-color: var(--mm-accent); }

/* --- Overflow --- */
.mm-overflow-hidden { overflow: hidden; }
.mm-overflow-auto { overflow: auto; }

/* --- Position --- */
.mm-relative { position: relative; }
.mm-absolute { position: absolute; }

/* --- Container Variants --- */
.mm-container--narrow {
    max-width: 720px;
}

.mm-container--wide {
    max-width: 960px;
}

/* --- Section Variants --- */
.mm-section--sm {
    padding: var(--mm-esp-xl) 0;
}

.mm-section--lg {
    padding: var(--mm-esp-3xl) 0;
}

/* --- Responsive Hide/Show --- */
@media (max-width: 768px) {
    .mm-hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .mm-show-mobile { display: none !important; }
}

@media (max-width: 1024px) {
    .mm-hide-tablet { display: none !important; }
}

@media (min-width: 1025px) {
    .mm-show-tablet { display: none !important; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* --- Skip to Content Link --- */
.mm-skip-link {
    position: fixed;
    top: -100%;
    left: 0;
    background: var(--mm-accent);
    color: var(--mm-bg-primary);
    padding: var(--mm-esp-sm) var(--mm-esp-md);
    z-index: 100000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.mm-skip-link:focus {
    top: 0;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid var(--mm-accent);
    outline-offset: 2px;
}

/* --- Focus trap for mobile menu --- */
.mm-nav-mobile:focus-within {
    display: flex;
}

/* --- Screen Reader Only --- */
.mm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   ICONS — Lucide-style inline SVG
   ========================================================================== */

.mm-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.mm-icon--small { width: 16px; height: 16px; }
.mm-icon--large { width: 32px; height: 32px; }