body.market-reference-home {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--ux-white) !important;
    color: var(--ux-ink);
    font-family: Inter, system-ui, sans-serif;
    font-size: calc(16px * var(--a11y-text-scale, 1));
    --portada-max: 1440px;
    --portada-gutter: clamp(16px, 3vw, 48px);
}

body.market-reference-home .site-header,
body.market-reference-home .footer,
body.market-reference-home .market-with-social-rail > .social-rail {
    display: none !important;
}

body.market-reference-home .legal-footer {
    display: none !important;
}

body.market-reference-home a {
    color: inherit;
}

body.market-reference-home button,
body.market-reference-home input {
    font: inherit;
}

body.market-reference-home [hidden] {
    display: none !important;
}

body.market-reference-home :focus-visible {
    outline: 3px solid var(--ux-green);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff;
}

body.market-reference-home .portada-hero :focus-visible,
body.market-reference-home .portada-footer :focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 6px var(--ux-green);
}

body.market-reference-home .portada-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.market-reference-home .portada-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ux-white);
    border-bottom: 1px solid var(--ux-line);
    transition: box-shadow .25s ease;
}

body.market-reference-home .portada-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(20, 83, 45, .1);
}

body.market-reference-home .portada-header-inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--portada-max);
    min-height: 78px;
    margin: 0 auto;
    padding: 0 var(--portada-gutter);
}

body.market-reference-home .portada-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    color: var(--ux-green);
    text-decoration: none;
}

body.market-reference-home .portada-brand img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

body.market-reference-home .portada-brand-divider {
    width: 1px;
    height: 36px;
    background: var(--ux-line);
}

body.market-reference-home .portada-brand-name,
body.market-reference-home .portada-footer-brand a span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

body.market-reference-home .portada-brand-name strong {
    font-size: calc(20px * var(--a11y-text-scale, 1));
    font-weight: 800;
    letter-spacing: -.015em;
}

body.market-reference-home .portada-brand-name span {
    font-size: calc(13px * var(--a11y-text-scale, 1));
    font-weight: 600;
}

body.market-reference-home .portada-nav {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    gap: 4px;
    margin-left: 20px;
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 600;
}

body.market-reference-home .portada-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: var(--ux-ink);
    text-decoration: none;
}

body.market-reference-home .portada-nav a:hover,
body.market-reference-home .portada-mobile-menu nav a:hover {
    color: var(--ux-green);
}

body.market-reference-home .portada-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px var(--ux-green);
}

body.market-reference-home .portada-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

body.market-reference-home .portada-language {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
}

body.market-reference-home .portada-language .language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 48px;
    min-height: 38px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: var(--ux-green);
    color: var(--ux-on);
    font: 700 calc(12px * var(--a11y-text-scale, 1))/1 Inter, sans-serif;
    cursor: pointer;
}

body.market-reference-home .portada-language .language-flag,
body.market-reference-home .portada-language .language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

body.market-reference-home .portada-language .language-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 120px;
    padding: 5px;
    border: 1px solid var(--ux-line);
    border-radius: 12px;
    background: var(--ux-white);
    box-shadow: 0 8px 24px rgb(10 60 40 / 16%);
}

body.market-reference-home .portada-language .language-menu[hidden] {
    display: none;
}

body.market-reference-home .portada-language .language-menu button {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ux-green);
    font: 500 calc(13px * var(--a11y-text-scale, 1))/1 Inter, sans-serif;
    text-align: left;
}

body.market-reference-home .portada-language .language-menu button:hover,
body.market-reference-home .portada-language .language-menu button:focus-visible {
    background: var(--ux-soft);
}

body.market-reference-home .portada-login,
body.market-reference-home .portada-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--ux-green);
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.market-reference-home .portada-login:hover {
    background: var(--ux-soft);
}

body.market-reference-home .portada-login svg,
body.market-reference-home .portada-cart svg,
body.market-reference-home .portada-description-icon svg,
body.market-reference-home .portada-search svg,
body.market-reference-home .portada-category-icon svg,
body.market-reference-home .portada-carousel-button svg,
body.market-reference-home .portada-menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

body.market-reference-home .portada-cart {
    gap: 10px;
    padding: 0 14px;
    background: var(--ux-green);
    color: var(--ux-on);
    transition: background .2s ease;
}

body.market-reference-home .portada-cart:hover,
body.market-reference-home .portada-search button:hover,
body.market-reference-home .portada-featured-add:hover {
    background: var(--ux-green-hover);
}

body.market-reference-home .portada-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--ux-white);
    color: var(--ux-green);
    font-size: calc(13px * var(--a11y-text-scale, 1));
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

body.market-reference-home .portada-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--ux-line);
    border-radius: 12px;
    background: var(--ux-white);
    color: var(--ux-green);
    cursor: pointer;
}

body.market-reference-home .portada-menu-close {
    display: none;
}

body.market-reference-home .portada-menu-toggle[aria-expanded="true"] .portada-menu-open {
    display: none;
}

body.market-reference-home .portada-menu-toggle[aria-expanded="true"] .portada-menu-close {
    display: block;
}

body.market-reference-home .portada-mobile-menu {
    display: none;
}

body.market-reference-home .portada-mobile-menu[hidden] {
    display: none !important;
}

body.market-reference-home .portada-mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 12px;
    border-bottom: 1px solid var(--ux-line);
    color: var(--ux-ink);
    font-size: calc(17px * var(--a11y-text-scale, 1));
    font-weight: 600;
    text-decoration: none;
}

body.market-reference-home .portada-mobile-menu nav a[aria-current="page"] {
    box-shadow: inset 3px 0 var(--ux-green);
    color: var(--ux-green);
}

body.market-reference-home .portada-mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

body.market-reference-home .portada-hero-wrap {
    box-sizing: border-box;
    max-width: var(--portada-max);
    margin: 0 auto;
    padding: 24px var(--portada-gutter) 0;
}

body.market-reference-home .portada-hero {
    position: relative;
    height: clamp(500px, 55vh, 680px);
    overflow: hidden;
    border-radius: 24px;
    background: var(--ux-green);
    color: #fff;
}

body.market-reference-home .portada-slides {
    position: absolute;
    inset: 0;
}

body.market-reference-home .portada-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.1s ease;
}

body.market-reference-home .portada-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

body.market-reference-home .portada-slide-picture {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

body.market-reference-home .portada-slide-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: scale(1.07);
}

body.market-reference-home .portada-slide.is-active .portada-slide-picture img {
    animation: portada-zoom 9s cubic-bezier(.2, .6, .2, 1) forwards;
}

body.market-reference-home .portada-picture-estandarte img {
    object-position: center 100%;
}

body.market-reference-home .portada-picture-estudiantes img,
body.market-reference-home .portada-picture-edificio img {
    object-position: center 62%;
}

body.market-reference-home .portada-picture-grupo img {
    object-position: center 58%;
}

body.market-reference-home .portada-veil {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 83, 45, .9) 0%, rgba(20, 83, 45, .66) 36%, rgba(20, 83, 45, .14) 58%, rgba(20, 83, 45, 0) 70%),
        linear-gradient(0deg, rgba(20, 83, 45, .45) 0%, rgba(20, 83, 45, 0) 30%);
    pointer-events: none;
}

body.market-reference-home .portada-veil.is-strong {
    background:
        linear-gradient(90deg, rgba(20, 83, 45, .96) 0%, rgba(20, 83, 45, .9) 34%, rgba(20, 83, 45, .55) 48%, rgba(20, 83, 45, 0) 64%),
        linear-gradient(0deg, rgba(20, 83, 45, .4) 0%, rgba(20, 83, 45, 0) 30%);
}

body.market-reference-home .portada-glow {
    position: absolute;
    z-index: 1;
    top: -260px;
    left: -220px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 241, 233, .16) 0%, rgba(232, 241, 233, 0) 68%);
    animation: portada-glow 16s ease-in-out infinite alternate;
    pointer-events: none;
}

body.market-reference-home .portada-slide-copy {
    position: relative;
    z-index: 2;
    display: flex;
    box-sizing: border-box;
    width: 600px;
    max-width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 16px 64px;
}

body.market-reference-home .portada-slide.is-active .portada-slide-copy > * {
    animation: portada-rise .75s cubic-bezier(.2, .7, .2, 1) both;
}

body.market-reference-home .portada-slide.is-active .portada-slide-copy > *:nth-child(2) {
    animation-delay: .09s;
}

body.market-reference-home .portada-slide.is-active .portada-slide-copy > *:nth-child(3) {
    animation-delay: .18s;
}

body.market-reference-home .portada-slide.is-active .portada-slide-copy > *:nth-child(4) {
    animation-delay: .27s;
}

body.market-reference-home .portada-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--ux-soft);
    font-size: calc(13px * var(--a11y-text-scale, 1));
    font-weight: 600;
    letter-spacing: .04em;
}

body.market-reference-home .portada-kicker span {
    width: 28px;
    height: 2px;
    background: rgba(232, 241, 233, .7);
}

body.market-reference-home .portada-slide-title {
    margin: 0;
    color: #fff;
    font-size: calc(52px * var(--a11y-text-scale, 1));
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.04;
}

body.market-reference-home .portada-slide-title span {
    color: var(--ux-soft);
    font-weight: 600;
    opacity: .92;
}

body.market-reference-home .portada-description {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 520px;
    margin: 18px 0 24px;
}

body.market-reference-home .portada-description-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(232, 241, 233, .35);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: var(--ux-soft);
}

body.market-reference-home .portada-description p {
    margin: 0;
    padding-top: 7px;
    color: var(--ux-soft);
    font-size: calc(18px * var(--a11y-text-scale, 1));
    line-height: 1.5;
}

body.market-reference-home .portada-slide-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--ux-white);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    color: var(--ux-green);
    font-size: calc(16px * var(--a11y-text-scale, 1));
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

body.market-reference-home .portada-slide-action > span {
    font-size: calc(25px * var(--a11y-text-scale, 1));
    line-height: .8;
    transition: transform .2s ease;
}

body.market-reference-home .portada-slide-action:hover {
    transform: translateY(-1px);
    background: var(--ux-soft);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

body.market-reference-home .portada-slide-action:hover > span {
    transform: translateX(3px);
}

body.market-reference-home .portada-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.market-reference-home .portada-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 16px 0 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ux-green) 94%, transparent);
    color: var(--ux-on);
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 600;
    white-space: nowrap;
}

body.market-reference-home .portada-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ux-white);
    color: var(--ux-green);
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 800;
}

body.market-reference-home .portada-carousel-controls {
    position: absolute;
    z-index: 4;
    top: 22px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px 4px 4px;
    border-radius: 999px;
    background: rgba(20, 83, 45, .8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

body.market-reference-home .portada-carousel-button {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

body.market-reference-home .portada-carousel-button:hover {
    background: rgba(255, 255, 255, .14);
}

body.market-reference-home .portada-carousel-button svg {
    width: 20px;
    height: 20px;
}

body.market-reference-home .portada-pause svg {
    width: 18px;
    height: 18px;
}

body.market-reference-home .portada-indicators {
    display: flex;
    align-items: center;
}

body.market-reference-home .portada-indicators button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

body.market-reference-home .portada-progress-track {
    display: block;
    width: 34px;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .32);
}

body.market-reference-home .portada-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--ux-white);
}

body.market-reference-home .portada-indicators button[aria-current="true"] .portada-progress-fill {
    animation: portada-progress 7s linear forwards;
}

body.market-reference-home .portada-carousel-count {
    margin-left: 8px;
    color: #e3efe6;
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

body.market-reference-home .portada-catalogue {
    margin-top: 72px;
    background: var(--ux-soft);
}

body.market-reference-home .portada-catalogue-inner {
    box-sizing: border-box;
    max-width: var(--portada-max);
    margin: 0 auto;
    padding: 64px var(--portada-gutter) 80px;
}

body.market-reference-home .portada-catalogue-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

body.market-reference-home .portada-catalogue-heading h2 {
    margin: 0;
    color: var(--ux-green);
    font-size: calc(34px * var(--a11y-text-scale, 1));
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}

body.market-reference-home .portada-catalogue-heading p {
    margin: 8px 0 0;
    color: var(--ux-muted);
    font-size: calc(15px * var(--a11y-text-scale, 1));
}

body.market-reference-home .portada-search {
    display: flex;
    flex: 0 1 420px;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    height: 50px;
    box-sizing: border-box;
    padding: 0 6px 0 16px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    background: var(--ux-white);
}

body.market-reference-home .portada-search svg {
    color: var(--ux-muted);
}

body.market-reference-home .portada-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ux-ink);
    font-size: calc(15px * var(--a11y-text-scale, 1));
}

body.market-reference-home .portada-search input::placeholder {
    color: #66766b;
    opacity: 1;
}

body.market-reference-home .portada-search button {
    flex: 0 0 auto;
    min-width: 80px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ux-green);
    color: var(--ux-on);
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

body.market-reference-home .portada-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

body.market-reference-home .portada-category {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 6px;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    padding: 0 6px 0 12px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    background: var(--ux-white);
    color: var(--ux-green);
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease;
}

body.market-reference-home .portada-category:hover {
    border-color: var(--ux-green);
    background: #f4f9f4;
}

body.market-reference-home .portada-category-icon {
    display: inline-flex;
}

body.market-reference-home .portada-category-icon svg {
    width: 18px;
    height: 18px;
}

body.market-reference-home .portada-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--ux-soft);
    color: var(--ux-green);
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 700;
}

body.market-reference-home .portada-featured-title {
    margin: 0 0 16px;
    color: var(--ux-green);
    font-size: calc(20px * var(--a11y-text-scale, 1));
    font-weight: 700;
}

body.market-reference-home .portada-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.market-reference-home .portada-featured-card {
    display: flex;
    min-width: 0;
    min-height: 356px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ux-line);
    border-radius: 18px;
    background: var(--ux-white);
}

body.market-reference-home .portada-featured-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 20px 20px;
}

body.market-reference-home .portada-featured-category {
    color: var(--ux-muted);
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 600;
}

body.market-reference-home .portada-featured-code {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--ux-soft);
    color: var(--ux-green);
    font-size: calc(11px * var(--a11y-text-scale, 1));
    font-weight: 700;
}

body.market-reference-home .portada-featured-name {
    margin: 0;
    color: #1c3022;
    font-size: calc(16px * var(--a11y-text-scale, 1));
    font-weight: 700;
    line-height: 1.35;
}

body.market-reference-home .portada-featured-price {
    margin-top: auto;
    color: var(--ux-green);
    font-size: calc(24px * var(--a11y-text-scale, 1));
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

body.market-reference-home .portada-featured-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--ux-green);
    color: var(--ux-on);
    font: 700 calc(15px * var(--a11y-text-scale, 1))/1 Inter, sans-serif;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

body.market-reference-home .portada-featured-add:hover {
    background: var(--ux-green-hover);
    transform: translateY(-1px);
}

body.market-reference-home .portada-featured-add:disabled {
    background: #6b7d70;
    cursor: not-allowed;
    transform: none;
}

body.market-reference-home .portada-catalog-status {
    margin: 0 0 16px;
    color: var(--ux-muted);
    font-size: calc(14px * var(--a11y-text-scale, 1));
}

body.market-reference-home .portada-catalog-status[role="alert"] {
    color: #8a2f24;
}

body.market-reference-home .portada-catalog-retry {
    min-height: 42px;
    margin: 0 0 18px;
    padding: 0 18px;
    border: 1px solid var(--ux-green);
    border-radius: 999px;
    background: var(--ux-white);
    color: var(--ux-green);
    font: 600 calc(14px * var(--a11y-text-scale, 1))/1 Inter, sans-serif;
    cursor: pointer;
}

body.market-reference-home .portada-catalog-retry:disabled {
    opacity: .65;
    cursor: wait;
}

body.market-reference-home .portada-cart-count.is-bumping {
    animation: portada-cart-bump .45s ease-out;
}

@keyframes portada-cart-bump {
    0% { transform: scale(1); }
    40% { transform: translateY(-5px) scale(1.16); }
    100% { transform: scale(1); }
}

body.market-reference-home .portada-featured-art {
    display: flex;
    flex: 0 0 140px;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: linear-gradient(160deg, var(--ux-card-band) 0%, var(--ux-card-band-2) 100%);
}

body.market-reference-home .portada-featured-art img {
    display: block;
    width: 140px;
    height: 112px;
    object-fit: contain;
}

body.market-reference-home .portada-featured-placeholder {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 13px;
    padding: 22px 20px 20px;
}

body.market-reference-home .portada-placeholder-line {
    display: block;
    width: 86%;
    height: 13px;
    border-radius: 999px;
    background: var(--ux-soft);
}

body.market-reference-home .portada-placeholder-line:nth-child(2) {
    width: 64%;
    height: 20px;
    margin-top: 4px;
}

body.market-reference-home .portada-placeholder-status {
    margin-top: auto;
    color: var(--ux-muted);
    font-size: calc(14px * var(--a11y-text-scale, 1));
}

body.market-reference-home .portada-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    min-height: 52px;
    margin: 32px auto 0;
    padding: 0 26px;
    border: 1px solid var(--ux-green);
    border-radius: 999px;
    color: var(--ux-green);
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

body.market-reference-home .portada-view-all:hover {
    background: var(--ux-green);
    color: var(--ux-on);
}

body.market-reference-home .portada-view-all span {
    font-size: calc(20px * var(--a11y-text-scale, 1));
    line-height: 1;
}

body.market-reference-home .portada-footer {
    background: var(--ux-green);
    color: #e3efe6;
}

body.market-reference-home .portada-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 48px;
    max-width: var(--portada-max);
    margin: 0 auto;
    padding: 48px var(--portada-gutter);
}

body.market-reference-home .portada-footer-brand {
    max-width: 360px;
}

body.market-reference-home .portada-footer-brand > a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ux-on);
    text-decoration: none;
}

body.market-reference-home .portada-footer-brand img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

body.market-reference-home .portada-footer-brand strong {
    font-size: calc(20px * var(--a11y-text-scale, 1));
    font-weight: 800;
}

body.market-reference-home .portada-footer-brand small {
    color: #d4e2d4;
    font-size: calc(14px * var(--a11y-text-scale, 1));
}

body.market-reference-home .portada-footer-brand p {
    margin: 18px 0 0;
    color: #d4e2d4;
    font-size: calc(15px * var(--a11y-text-scale, 1));
    line-height: 1.5;
}

body.market-reference-home .portada-footer-links,
body.market-reference-home .portada-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-style: normal;
}

body.market-reference-home .portada-footer-links h2,
body.market-reference-home .portada-footer-contact h2 {
    margin: 0 0 4px;
    color: #b8d5be;
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 700;
}

body.market-reference-home .portada-footer-links a,
body.market-reference-home .portada-footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: #e3efe6;
    text-decoration: none;
}

body.market-reference-home .portada-footer-links a:hover,
body.market-reference-home .portada-footer-contact a:hover {
    color: var(--ux-on);
    text-decoration: underline;
}

body.market-reference-home .portada-footer-bottom {
    max-width: var(--portada-max);
    margin: 0 auto;
    padding: 20px var(--portada-gutter) 96px;
    border-top: 1px solid rgba(211, 227, 213, .18);
    color: #b8d5be;
    font-size: calc(13px * var(--a11y-text-scale, 1));
}

body.market-reference-home #contenido:focus {
    outline: none;
}

body.market-reference-home .skip {
    position: absolute;
    top: -80px;
    left: 12px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--ux-green);
    color: var(--ux-on) !important;
    font-weight: 700;
    text-decoration: none;
    transition: top .15s ease;
}

body.market-reference-home .skip:focus {
    top: 12px;
}

@keyframes portada-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes portada-zoom {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
}

@keyframes portada-glow {
    from { transform: translate(0, 0); }
    to { transform: translate(140px, 90px); }
}

@keyframes portada-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 1100px) {
    body.market-reference-home .portada-header-inner {
        gap: 12px;
    }

    body.market-reference-home .portada-nav {
        margin-left: 0;
    }

    body.market-reference-home .portada-login span {
        display: none;
    }

    body.market-reference-home .portada-cart-label {
        display: none;
    }

    body.market-reference-home .portada-slide-title {
        font-size: calc(44px * var(--a11y-text-scale, 1));
        line-height: 1.06;
    }

    body.market-reference-home .portada-slide-copy {
        width: 540px;
        padding-left: 48px;
    }

    body.market-reference-home .portada-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.market-reference-home .portada-footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    body.market-reference-home .portada-header-inner {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 10px;
        padding-bottom: 6px;
    }

    body.market-reference-home .portada-brand {
        margin-right: auto;
    }

    body.market-reference-home .portada-nav {
        order: 3;
        flex: 1 1 100%;
        min-height: 48px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.market-reference-home .portada-nav::-webkit-scrollbar,
    body.market-reference-home .portada-categories::-webkit-scrollbar {
        display: none;
    }

    body.market-reference-home .portada-language,
    body.market-reference-home .portada-login,
    body.market-reference-home .portada-cart {
        order: 2;
    }

    body.market-reference-home .portada-hero {
        display: grid;
        height: auto;
        border-radius: 24px;
    }

    body.market-reference-home .portada-slides {
        position: relative;
        display: grid;
        grid-area: 1 / 1;
        inset: auto;
    }

    body.market-reference-home .portada-slide {
        position: relative;
        grid-area: 1 / 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        inset: auto;
    }

    body.market-reference-home .portada-slide-picture {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 16 / 9;
    }

    body.market-reference-home .portada-slide-picture img {
        object-position: 78% center;
        animation: none !important;
        transform: none;
    }

    body.market-reference-home .portada-picture-estandarte img {
        object-position: 72% 85%;
    }

    body.market-reference-home .portada-picture-estudiantes img,
    body.market-reference-home .portada-picture-edificio img {
        object-position: 66% 75%;
    }

    body.market-reference-home .portada-picture-grupo img {
        object-position: 64% 65%;
    }

    body.market-reference-home .portada-veil {
        position: relative;
        z-index: 1;
        inset: auto;
        grid-column: 1;
        grid-row: 1;
        background: linear-gradient(180deg, rgba(20, 83, 45, 0) 58%, var(--ux-green) 100%);
    }

    body.market-reference-home .portada-veil.is-strong {
        background: linear-gradient(180deg, rgba(20, 83, 45, 0) 58%, var(--ux-green) 100%);
    }

    body.market-reference-home .portada-glow {
        display: none;
    }

    body.market-reference-home .portada-slide-copy {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 720px;
        height: auto;
        padding: 8px 40px 16px;
    }

    body.market-reference-home .portada-slide-title {
        font-size: calc(40px * var(--a11y-text-scale, 1));
        line-height: 1.08;
    }

    body.market-reference-home .portada-description {
        margin-top: 10px;
    }

    body.market-reference-home .portada-carousel-controls {
        position: relative;
        z-index: 4;
        grid-area: 2 / 1;
        justify-self: center;
        align-self: end;
        margin: 20px 12px 18px;
    }

    body.market-reference-home .portada-slide-copy {
        padding-bottom: 82px;
    }

    body.market-reference-home .portada-steps {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    body.market-reference-home .portada-header-inner {
        flex-wrap: nowrap;
        min-height: 68px;
        gap: 8px;
        padding: 0 12px;
    }

    body.market-reference-home .portada-brand {
        gap: 10px;
    }

    body.market-reference-home .portada-brand img {
        width: 42px;
        height: 42px;
    }

    body.market-reference-home .portada-brand-divider {
        display: none;
    }

    body.market-reference-home .portada-brand-name strong {
        font-size: calc(16px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-brand-name span {
        font-size: calc(11px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-actions {
        gap: 8px;
    }

    body.market-reference-home .portada-actions > .portada-language,
    body.market-reference-home .portada-actions > .portada-login,
    body.market-reference-home .portada-nav {
        display: none;
    }

    body.market-reference-home .portada-cart {
        min-width: 44px;
        min-height: 44px;
        gap: 6px;
        padding: 0 9px;
    }

    body.market-reference-home .portada-cart svg {
        width: 19px;
        height: 19px;
    }

    body.market-reference-home .portada-cart-count {
        min-width: 22px;
        height: 22px;
        font-size: calc(12px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-menu-toggle {
        display: flex;
    }

    body.market-reference-home .portada-mobile-menu:not([hidden]) {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        padding: 8px 16px 20px;
        border-bottom: 1px solid var(--ux-line);
        background: var(--ux-white);
        box-shadow: 0 18px 32px rgba(20, 83, 45, .14);
        animation: portada-rise .25s ease both;
    }

    body.market-reference-home .portada-mobile-actions .portada-login {
        display: inline-flex;
        flex: 1;
        min-height: 48px;
        border-radius: 12px;
        background: var(--ux-green);
        color: var(--ux-on);
        font-size: calc(16px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-hero-wrap {
        padding: 12px 8px 0;
    }

    body.market-reference-home .portada-hero {
        border-radius: 20px;
    }

    body.market-reference-home .portada-slide-picture {
        aspect-ratio: 5 / 4;
    }

    body.market-reference-home .portada-slide-copy {
        padding: 6px 20px 82px;
    }

    body.market-reference-home .portada-slide-title {
        font-size: calc(32px * var(--a11y-text-scale, 1));
        line-height: 1.1;
    }

    body.market-reference-home .portada-description {
        gap: 10px;
        margin-bottom: 18px;
    }

    body.market-reference-home .portada-description p {
        padding-top: 3px;
        font-size: calc(15px * var(--a11y-text-scale, 1));
        line-height: 1.45;
    }

    body.market-reference-home .portada-slide-action {
        min-height: 46px;
        padding: 0 20px;
        font-size: calc(14px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-carousel-controls {
        gap: 2px;
        max-width: calc(100% - 16px);
        box-sizing: border-box;
        margin: 16px 8px 14px;
        padding: 4px 10px 4px 4px;
    }

    body.market-reference-home .portada-carousel-button {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    body.market-reference-home .portada-indicators button {
        width: 24px;
        height: 40px;
    }

    body.market-reference-home .portada-progress-track {
        width: 20px;
    }

    body.market-reference-home .portada-carousel-count {
        margin-left: 3px;
        font-size: calc(12px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-steps {
        gap: 8px;
    }

    body.market-reference-home .portada-steps li {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        box-sizing: border-box;
        min-height: 44px;
        gap: 8px;
        padding: 4px 8px;
        font-size: calc(13px * var(--a11y-text-scale, 1));
        white-space: normal;
        line-height: 1.2;
    }

    body.market-reference-home .portada-steps li span {
        width: 26px;
        height: 26px;
    }

    body.market-reference-home .portada-catalogue {
        margin-top: 48px;
    }

    body.market-reference-home .portada-catalogue-inner {
        padding: 44px 16px 56px;
    }

    body.market-reference-home .portada-catalogue-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 18px;
    }

    body.market-reference-home .portada-catalogue-heading h2 {
        font-size: calc(28px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-catalogue-heading p {
        font-size: calc(13px * var(--a11y-text-scale, 1));
        line-height: 1.45;
    }

    body.market-reference-home .portada-search {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    body.market-reference-home .portada-search input {
        font-size: calc(13px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-search button {
        min-width: 60px;
        padding: 0 12px;
        font-size: calc(12px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-categories {
        margin: 0 0 32px;
        padding: 0;
    }

    body.market-reference-home .portada-category {
        min-height: 42px;
        padding-left: 12px;
        font-size: calc(12px * var(--a11y-text-scale, 1));
        white-space: normal;
    }

    body.market-reference-home .portada-featured-title {
        margin-bottom: 14px;
        font-size: calc(18px * var(--a11y-text-scale, 1));
    }

    body.market-reference-home .portada-featured-grid {
        gap: 14px;
    }

    body.market-reference-home .portada-featured-card {
        min-height: 342px;
    }

    body.market-reference-home .portada-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 36px 16px 24px;
    }

    body.market-reference-home .portada-footer-contact {
        grid-column: auto;
    }

    body.market-reference-home .portada-footer-bottom {
        padding: 18px 16px 24px;
        font-size: calc(11px * var(--a11y-text-scale, 1));
    }
}

@media (prefers-reduced-motion: reduce) {
    body.market-reference-home *,
    body.market-reference-home *::before,
    body.market-reference-home *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    body.market-reference-home .portada-slide-picture img {
        transform: none;
    }
}

/* Temas del panel de Accesibilidad: el pie y los textos con color fijo siguen la paleta del tema. */
body.market-reference-home[data-ux-theme]:not([data-ux-theme="light"]) :is(.portada-footer, .portada-footer *) { color: var(--ux-on); }
body.market-reference-home[data-ux-theme]:not([data-ux-theme="light"]) .portada-featured-name { color: var(--ux-ink); }
body.market-reference-home[data-ux-theme]:not([data-ux-theme="light"]) .portada-category:hover { background: var(--ux-card-band); }
body.market-reference-home[data-ux-theme]:not([data-ux-theme="light"]) .portada-search input::placeholder { color: var(--ux-muted); }

/* El contador va DENTRO del botón «Mi carrito» (una regla vieja de #cartBadge lo mandaba a la esquina). */
body.market-reference-home .portada-cart .portada-cart-count,
body.market-reference-home #cartBadge.portada-cart-count { position: static !important; inset: auto !important; transform: none !important; margin: 0 !important; display: inline-grid; place-items: center; }
/* Celular: carrito primero y menú después, como el diseño. */
body.market-reference-home .portada-cart { order: 1; }
body.market-reference-home .portada-menu-toggle { order: 2; }
/* Celular/tablet: solo la diapositiva activa ocupa alto; así no queda hueco entre el botón y los controles. */
@media (max-width: 900px) {
    body.market-reference-home .portada-slide:not(.is-active) { position: absolute !important; inset: 0 0 auto 0; }
    body.market-reference-home .portada-slide-copy { padding-bottom: 8px !important; }
    body.market-reference-home .portada-carousel-controls { margin-top: 10px !important; margin-bottom: 40px !important; }
}
/* Controles del carrusel abajo a la derecha, dentro del carrusel (pedido del dueño). */
@media (min-width: 901px) {
    body.market-reference-home .portada-carousel-controls { top: auto !important; bottom: 24px; right: auto !important; left: 64px; }
}
/* Pantalla grande: el carrusel alinea sus bordes con la cabecera y el catálogo (1270px) y deja menos espacio blanco debajo. */
@media (min-width: 901px) {
    body.market-reference-home .portada-hero-wrap { max-width: var(--portada-max); }
    body.market-reference-home .portada-catalogue { margin-top: 32px; }
}

/* T068: pantallas grandes y flotantes. */
@media (min-width: 1500px) {
    body.market-reference-home .portada-slide-copy { width: 660px; padding-left: 80px; }
    body.market-reference-home .portada-carousel-controls { left: 80px; }
}
@media (max-width: 360px) {
    body.market-reference-home .portada-steps li { flex-basis: 100%; }
}

/* Accesibilidad en la cabecera (antes era un botón flotante). */
body.market-reference-home .portada-a11y {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    padding: 0;
    border: 1px solid var(--ux-line);
    border-radius: 50%;
    background: var(--ux-white);
    color: var(--ux-green);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
body.market-reference-home .portada-a11y:hover,
body.market-reference-home .portada-a11y[aria-expanded="true"] { border-color: var(--ux-green); background: var(--ux-soft); }
body.market-reference-home .portada-a11y svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body.market-reference-home .portada-a11y-row { display: none; width: 100%; grid-auto-flow: column; justify-content: start; gap: 10px; border-radius: 12px; font: inherit; font-weight: 600; }
@media (max-width: 359px) {
    body.market-reference-home .portada-actions > .portada-a11y { display: none; }
    body.market-reference-home .portada-a11y-row { display: grid; min-height: 48px; padding: 0 12px; }
}

/* Microinteracciones (diseño «Tienda · Inicio»): solo al pasar el mouse, pulsar o enfocar. */
body.market-reference-home :is(.portada-cart,.portada-login,.portada-slide-action,.portada-featured-add,.portada-search button,.portada-view-all,.portada-a11y,.portada-carousel-button,.portada-category,.portada-featured-card,.portada-language > button){
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
body.market-reference-home :is(.portada-cart,.portada-login,.portada-featured-add,.portada-view-all,.portada-search button):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(23, 82, 48, .28);
}
body.market-reference-home :is(.portada-cart,.portada-login,.portada-slide-action,.portada-featured-add,.portada-view-all,.portada-search button,.portada-a11y,.portada-carousel-button):active {
    transform: scale(.97);
    box-shadow: none;
}
body.market-reference-home .portada-slide-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}
body.market-reference-home .portada-category:hover,
body.market-reference-home .portada-a11y:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(23, 82, 48, .12);
}
body.market-reference-home .portada-category-icon { transition: transform .3s ease; }
body.market-reference-home .portada-category:hover .portada-category-icon { transform: scale(1.1); }
body.market-reference-home .portada-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(23, 82, 48, .15);
}
body.market-reference-home .portada-featured-art img { transition: transform .3s ease; }
body.market-reference-home .portada-featured-card:hover .portada-featured-art img { transform: scale(1.06); }
body.market-reference-home .portada-search:focus-within { box-shadow: 0 0 0 4px rgba(23, 82, 48, .18); }
body.market-reference-home .portada-footer-links a,
body.market-reference-home .portada-footer-contact a {
    display: inline-block;
    transition: transform .2s ease, color .2s ease;
}
body.market-reference-home .portada-footer-links a:hover,
body.market-reference-home .portada-footer-contact a:hover { transform: translateX(5px); }
body.market-reference-home .portada-nav a { transition: opacity .2s ease, color .2s ease; }
body.market-reference-home .portada-nav a:not([aria-current="page"]):hover { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
    body.market-reference-home :is(.portada-cart,.portada-login,.portada-slide-action,.portada-featured-add,.portada-view-all,.portada-search button,.portada-a11y,.portada-category,.portada-featured-card,.portada-footer-links a,.portada-footer-contact a):is(:hover,:active) { transform: none; }
}

/* Bolita viajera al agregar un trámite destacado */
.portada-cart-flyer{position:fixed;left:0;top:0;z-index:1500;display:flex;align-items:center;justify-content:center;width:84px;height:84px;border:3px solid var(--ux-green);border-radius:50%;background:#DDEDE2;box-shadow:0 12px 28px rgba(0,0,0,.28);pointer-events:none}
.portada-cart-flyer img{width:54px;height:54px;object-fit:contain}
.portada-cart-flyer span{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:var(--ux-green);color:var(--ux-on);font-size:16px;font-weight:800}
