/* Coderic brand surfaces (ported from Hyva theme variables) */
:root {
        --bg-surface: #ffffff;
        --bg-surface-alt: #f8fafc;
        --bg-panel: rgba(0, 0, 0, 0.05);
        --border-surface: rgba(0, 0, 0, 0.1);
        --text-base: #0c0a09;
        --text-muted: #292524;
        --coderic-shell-max: 80rem;
        --coderic-shell-px: 1rem;
        --coderic-shell-px-sm: 1.5rem;
        --coderic-chrome-offset: 8.75rem;
    }

    html.dark {
        --bg-surface: #0c0a09;
        --bg-surface-alt: #1c1917;
        --bg-panel: rgba(255, 255, 255, 0.06);
        --border-surface: rgba(255, 255, 255, 0.12);
        --text-base: #fafaf9;
        --text-muted: #a8a29e;
    }

    /* Utilidades de superficie (paridad jekyll-theme-coderic; el build Tailwind puede no incluirlas aun) */
    .border-surface-border {
        border-color: var(--border-surface);
    }

    .border-surface {
        border-color: var(--bg-surface);
    }

    .bg-surface {
        background-color: var(--bg-surface);
    }

    .bg-surface-panel {
        background-color: var(--bg-panel);
    }

    .divide-surface-border > :not([hidden]) ~ :not([hidden]) {
        border-color: var(--border-surface);
    }

    #global-header .coderic-header__ecosystem-bar,
    #global-header #store-subnav.coderic-store-subnav,
    #global-header #search-content.coderic-search-panel {
        border-color: var(--border-surface);
    }

    #search-content .form-input,
    #search-content .input-group {
        --form-stroke: var(--border-surface);
    }

    #search-content kbd {
        border-color: var(--border-surface);
    }

    .text-muted,
    .text-muted-foreground {
        color: var(--text-muted);
    }

    #global-header.coderic-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        width: 100%;
        color: var(--text-base);
        background-color: color-mix(in srgb, var(--bg-surface) 90%, transparent);
        backdrop-filter: blur(12px);
    }

    body .page-wrapper {
        padding-top: var(--coderic-chrome-offset);
    }

    #global-header .coderic-header__ecosystem-bar {
        background-color: color-mix(in srgb, var(--bg-surface) 90%, transparent);
        backdrop-filter: blur(12px);
    }

  /* Aire vertical: separar logo/portales/auth del borde superior y del borde con subnav */
    #global-header .coderic-header__ecosystem-bar > .coderic-header__shell {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        min-height: 4rem;
        padding-block: 0.5rem;
        box-sizing: border-box;
    }

    #store-subnav > .coderic-header__shell > .flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    @media (min-width: 640px) {
        #global-header .coderic-header__ecosystem-bar > .coderic-header__shell {
            min-height: 4.5rem;
            padding-block: 0.625rem;
        }
    }

    #global-header #store-subnav.coderic-store-subnav {
        background-color: color-mix(in srgb, var(--bg-surface) 95%, transparent);
        backdrop-filter: blur(24px);
    }

    /* Contenedor de lectura (paridad max-w-7xl mx-auto px-4 sm:px-6 de coderic.com) */
    .coderic-shell,
    .coderic-header__shell {
        width: 100%;
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
        box-sizing: border-box;
    }

    @media (min-width: 640px) {
        .coderic-shell,
        .coderic-header__shell {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    /*
     * Hyva styles.css: .container solo tiene width:100% hasta rebuild Tailwind.
     * Catalogo, migas, toolbar y PLP usan .container; forzamos shell 7xl.
     */
    .page-wrapper .container,
    .top-container .container,
    nav.breadcrumbs .coderic-shell,
    nav.breadcrumbs .container,
    main.page-main > .container,
    .category-view.container,
    #category-view-container.category-view {
        width: 100%;
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
        box-sizing: border-box;
    }

    @media (min-width: 640px) {
        .page-wrapper .container,
        .top-container .container,
        nav.breadcrumbs .coderic-shell,
        nav.breadcrumbs .container,
        main.page-main > .container,
        .category-view.container,
        #category-view-container.category-view {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    main.page-main:not(.page-main--store-home) {
        background-color: var(--bg-surface-alt);
    }

    main.page-main--store-home {
        background-color: var(--bg-surface);
    }

    main.page-main > .columns,
    main.page-main > .coderic-shell,
    main.page-main .columns.coderic-shell,
    .columns.top.coderic-shell,
    #maincontent .columns.top {
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
        width: 100%;
        box-sizing: border-box;
    }

    :where(main:not(.product-main-full-width, .page-main-full-width)) .columns {
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
    }

    @media (min-width: 640px) {
        main.page-main > .columns,
        main.page-main > .coderic-shell,
        main.page-main .columns.coderic-shell,
        .columns.top.coderic-shell,
        #maincontent .columns.top {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    .page.messages .messages.container {
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
    }

    @media (min-width: 640px) {
        .page.messages .messages.container {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    [data-content-type="row"][data-appearance="contained"],
    [data-content-type="row"][data-appearance="full-width"] > .row-full-width-inner {
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
        width: 100%;
        box-sizing: border-box;
    }

    @media (min-width: 640px) {
        [data-content-type="row"][data-appearance="contained"],
        [data-content-type="row"][data-appearance="full-width"] > .row-full-width-inner {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    /* Hero demo Hyva: el border-image con 20vw desbordaba el contenedor */
    #hyva-demo-hero .hyva-hero-content {
        border-image: none;
        border-radius: 1rem;
        background: radial-gradient(
            circle at 60%,
            color-mix(in srgb, #ff7f33 20%, transparent),
            color-mix(in srgb, #f04100 20%, transparent)
        );
    }

    @media (min-width: 40rem) {
        #hyva-demo-hero {
            display: block;
        }

        #hyva-demo-hero::before {
            display: none;
        }
    }

    .coderic-header__icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        flex-shrink: 0;
        border: none;
        border-radius: 0.375rem;
        padding: 0;
        background: transparent;
        color: var(--text-muted);
        cursor: pointer;
        transition: color 0.15s, background-color 0.15s;
    }

    .coderic-header__icon-btn:hover {
        color: var(--text-base);
        background-color: var(--bg-panel);
    }

    .coderic-header__icon-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .coderic-header__icon-btn .absolute {
        font-size: 0.625rem;
        line-height: 1;
        padding: 0.25rem 0.5rem;
    }

    .brand-coderic {
        background: linear-gradient(
            180deg,
            hsl(0, 0%, 58%) 0%,
            hsl(0, 0%, 80%) 47%,
            hsl(0, 0%, 38%) 53%,
            hsl(0, 0%, 58%) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 35px;
        font-weight: normal;
        font-family: "Red Hat Display", sans-serif;
        letter-spacing: -2px;
        line-height: 1;
        display: inline-block;
        vertical-align: middle;
    }

    #global-header .brand-coderic {
        font-size: clamp(1.25rem, 2.4vw, 2rem);
        letter-spacing: -1.5px;
        font-weight: 600;
    }

    #global-header .coderic-header-logo__svg {
        display: block;
        height: 2rem;
        width: auto;
        max-width: 100%;
    }

    @media (min-width: 640px) {
        #global-header .coderic-header-logo__svg {
            height: 2.5rem;
        }
    }

    #global-footer .coderic-header-logo__svg {
        display: block;
        height: 2rem;
        width: auto;
        max-width: 100%;
    }

    @media (min-width: 640px) {
        #global-footer .coderic-header-logo__svg {
            height: 2.5rem;
        }
    }

    #global-footer .coderic-footer__logo-link {
        text-decoration: none;
        color: inherit;
    }

    .brand-coderic-portal {
        font-family: "Outfit", "Red Hat Display", sans-serif;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.03125em;
        text-transform: uppercase;
        line-height: 1;
        background: linear-gradient(180deg, #fec963 0%, #fea032 50%, #ff5c0a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .coderic-header-logo {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        max-width: 240px;
        text-decoration: none;
        color: inherit;
    }

    .coderic-header-logo__isotipo {
        width: 3rem;
        height: 3rem;
        flex-shrink: 0;
        transition: transform 0.3s;
    }

    @media (min-width: 640px) {
        .coderic-header-logo__isotipo {
            width: 3.5rem;
            height: 3.5rem;
        }
    }

    .coderic-header-logo:hover .coderic-header-logo__isotipo {
        transform: scale(1.05);
    }

    .coderic-header__ecosystem-bar .coderic-portals-nav {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.125rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 0.125rem;
        padding-right: 0.125rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    @media (min-width: 640px) {
        .coderic-header__ecosystem-bar .coderic-portals-nav {
            gap: 0.25rem;
        }
    }

    @media (min-width: 1024px) {
        .coderic-header__ecosystem-bar .coderic-portals-nav {
            gap: 0.375rem;
        }
    }

    .coderic-header__ecosystem-bar .coderic-portals-nav::-webkit-scrollbar {
        display: none;
    }

    .coderic-portals-nav__link {
        flex-shrink: 0;
        white-space: nowrap;
        border-radius: 0.375rem;
        padding: 0.375rem 0.5625rem;
        font-size: 0.875rem;
        font-weight: 500;
        text-decoration: none;
        color: var(--text-muted);
        transition: color 0.15s, background-color 0.15s;
    }

    .coderic-portals-nav__link:hover {
        color: var(--text-base);
        background-color: var(--bg-panel);
    }

    .coderic-portals-nav__link.is-active {
        font-weight: 600;
        color: var(--text-base);
        background-color: var(--bg-panel);
    }

    .coderic-header__auth-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        border-radius: 9999px;
        border: 1px solid var(--border-surface);
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.25;
        text-decoration: none;
        color: var(--text-muted);
        transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
    }

    .coderic-header__auth-link:hover {
        color: var(--text-base);
        background-color: var(--bg-panel);
    }

    .coderic-header__auth-link--register {
        border-color: transparent;
        background-color: #f04100;
        color: #fff;
        font-weight: 700;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    }

    .coderic-header__auth-link--register:hover {
        background-color: #ff5c0a;
        color: #fff;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    }

    .coderic-header__account-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        border: 1px solid var(--border-surface);
        padding: 0;
        background: transparent;
        color: var(--text-muted);
        cursor: pointer;
        transition: color 0.15s, background-color 0.15s;
    }

    .coderic-header__account-btn:hover {
        color: var(--text-base);
        background-color: var(--bg-panel);
    }

    .coderic-lang-switcher__trigger {
        display: inline-flex;
        height: 2rem;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        border-radius: 0.375rem;
        padding: 0.25rem 0.5rem;
        color: var(--text-muted);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: color 0.15s, background-color 0.15s;
    }

    .coderic-lang-switcher__trigger:hover {
        color: var(--text-base);
        background-color: var(--bg-panel);
    }

    .coderic-lang-switcher__badge {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .coderic-lang-switcher__caret {
        font-size: 0.75rem;
        opacity: 0.5;
        transition: transform 0.2s;
    }

    .coderic-lang-switcher__menu {
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 200;
        margin-top: 0.25rem;
        min-width: 10rem;
        list-style: none;
        margin: 0;
        padding: 0.25rem 0;
        border: 1px solid var(--border-surface);
        background-color: var(--bg-surface);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    }

    .coderic-lang-switcher__option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-decoration: none;
        color: var(--text-muted);
        transition: background-color 0.15s, color 0.15s;
    }

    .coderic-lang-switcher__option:hover {
        background-color: var(--bg-panel);
        color: #f04100;
    }

    .coderic-lang-switcher__option--current {
        cursor: default;
        font-weight: 700;
        color: #f04100;
        background-color: rgb(240 65 0 / 0.08);
    }

    .coderic-subnav__utilities {
        border-color: var(--border-surface);
    }

    .coderic-subnav__utilities .coderic-header__icon-btn {
        flex-shrink: 0;
    }

    .coderic-subnav__utilities .coderic-lang-switcher {
        flex-shrink: 0;
    }

    #store-subnav.coderic-store-subnav,
    #store-subnav .coderic-store-subnav__menu,
    #store-subnav .coderic-store-subnav__nav,
    #store-subnav .coderic-store-subnav__nav > ul,
    #store-subnav .subnav-dropdown {
        overflow: visible;
    }

    #store-subnav .subnav-dropdown {
        position: relative;
    }

    #store-subnav .subnav-dropdown-trigger {
        color: var(--text-muted);
    }

    /* Dropdown: no depender de utilidades Tailwind group-hover (build Hyva incompleto) */
    #store-subnav .subnav-dropdown-panel {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 120;
        min-width: 12rem;
        max-width: min(100vw - 2rem, 20rem);
        width: max-content;
        padding-top: 0.5rem;
        margin-top: -0.25rem;
    }

    #store-subnav .subnav-dropdown-panel > ul {
        margin: 0;
        list-style: none;
        border-radius: 0.5rem;
        border: 1px solid var(--border-surface);
        background-color: var(--bg-surface);
        padding: 0.25rem 0;
        box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    }

    #store-subnav .subnav-dropdown-panel a[role="menuitem"] {
        display: block;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.15s ease, background-color 0.15s ease;
    }

    #store-subnav .subnav-dropdown-panel a[role="menuitem"]:hover,
    #store-subnav .subnav-dropdown-panel a[role="menuitem"]:focus-visible {
        color: var(--color-coderic-500, #ea580c);
        background-color: var(--bg-panel);
    }

    @media (hover: hover) {
        #store-subnav .subnav-dropdown:hover,
        #store-subnav .subnav-dropdown:focus-within {
            z-index: 120;
        }

        #store-subnav .subnav-dropdown:hover .subnav-dropdown-panel,
        #store-subnav .subnav-dropdown:focus-within .subnav-dropdown-panel {
            display: block;
        }

        #store-subnav .subnav-dropdown:hover .ph-caret-down,
        #store-subnav .subnav-dropdown:focus-within .ph-caret-down {
            transform: rotate(180deg);
        }
    }

    @media (hover: none) {
        #store-subnav .subnav-dropdown.is-open .subnav-dropdown-panel {
            display: block;
        }

        #store-subnav .subnav-dropdown.is-open .ph-caret-down {
            transform: rotate(180deg);
        }
    }

    /* Home store: el grid Hyva añade .columns.coderic-shell; el hero controla su propio shell */
    main.page-main--store-home > .columns.coderic-shell {
        max-width: none;
        width: 100%;
        padding-inline: 0;
    }

    .coderic-home-hero {
        position: relative;
        overflow: hidden;
        padding-bottom: 6rem;
        background-color: var(--bg-surface);
    }

    .coderic-home-hero__shell,
    .coderic-home-pillars__shell {
        width: 100%;
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
        box-sizing: border-box;
    }

    @media (min-width: 640px) {
        .coderic-home-hero__shell,
        .coderic-home-pillars__shell {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    .coderic-home-hero__inner {
        position: relative;
        z-index: 1;
        max-width: 56rem;
    }

    .coderic-home-hero__badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0 0 1.5rem;
        padding: 0.375rem 0.75rem;
        border-radius: 9999px;
        border: 1px solid rgb(240 65 0 / 0.2);
        background: rgb(240 65 0 / 0.1);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #f04100;
    }

    .coderic-home-hero__badge-dot {
        width: 0.375rem;
        height: 0.375rem;
        border-radius: 9999px;
        background: #f04100;
        animation: coderic-pulse 2s ease-in-out infinite;
    }

    @keyframes coderic-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.45; }
    }

    .coderic-home-hero__title {
        margin: 0 0 2rem;
        font-family: "Outfit", "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
        font-size: clamp(2.75rem, 4.5vw + 1.25rem, 6rem);
        font-weight: 700;
        line-height: 1.05;
        letter-spacing: -0.025em;
        color: var(--text-base);
    }

    .coderic-home-hero__title-accent {
        color: #f04100;
    }

    .coderic-home-hero__lead {
        margin: 0 0 2.5rem;
        max-width: 48rem;
        font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.5rem);
        line-height: 1.55;
        font-weight: 400;
        color: #334155;
    }

    html.dark .coderic-home-hero__lead {
        color: #cbd5e1;
    }

    .coderic-home-hero__actions {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    @media (min-width: 640px) {
        .coderic-home-hero__actions {
            flex-direction: row;
            align-items: center;
        }
    }

    .coderic-home-pillars {
        padding-block: 6rem;
        border-top: 1px solid var(--border-surface);
        background-color: var(--bg-surface-alt);
    }

    #store-catalog {
        background-color: var(--bg-surface-alt);
    }

    .coderic-home-pillars__intro {
        margin-bottom: 4rem;
        max-width: 42rem;
    }

    .coderic-home-pillars__title {
        margin: 0 0 1rem;
        font-family: "Outfit", "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
        font-size: clamp(1.875rem, 2vw + 1rem, 2.25rem);
        font-weight: 700;
        line-height: 1.15;
        color: var(--text-base);
    }

    .coderic-home-pillars__lead {
        margin: 0;
        font-size: 1.125rem;
        line-height: 1.6;
        color: #475569;
    }

    html.dark .coderic-home-pillars__lead {
        color: #94a3b8;
    }

    .coderic-home .animate-slide-up {
        animation: coderic-slide-up 0.6s ease-out 0.1s both;
    }

    @keyframes coderic-slide-up {
        from {
            opacity: 0;
            transform: translateY(1.25rem);
        }

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

    .coderic-home__lead {
        color: #334155;
    }

    html.dark .coderic-home__lead {
        color: #cbd5e1;
    }

    .coderic-home__pillar-lead,
    .coderic-home__card-desc {
        color: #475569;
    }

    html.dark .coderic-home__pillar-lead,
    html.dark .coderic-home__card-desc {
        color: #94a3b8;
    }

    /* PLP categoría: banda hero como home (izquierda, shell 7xl, intro + rejilla abajo) */
    .page-products.catalog-category-view .columns.top.coderic-shell {
        max-width: none;
        width: 100%;
        padding-inline: 0;
        margin-bottom: 0;
        background-color: var(--bg-surface);
    }

    .page-products.catalog-category-view .category-view.coderic-category-view {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .coderic-category-hero {
        padding-bottom: 2.5rem;
        background-color: var(--bg-surface);
    }

    .coderic-category-hero__shell {
        width: 100%;
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
        box-sizing: border-box;
    }

    @media (min-width: 640px) {
        .coderic-category-hero__shell {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    .page-products.catalog-category-view main.page-main {
        background-color: var(--bg-surface);
    }

    .page-products.catalog-category-view .columns.coderic-shell:not(.top) {
        background-color: var(--bg-surface-alt);
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    nav.breadcrumbs {
        background-color: var(--bg-surface);
    }

    .coderic-category-hero__inner {
        max-width: 56rem;
        text-align: start;
    }

    .coderic-category-hero__badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0 0 1.5rem;
        padding: 0.375rem 0.75rem;
        border-radius: 9999px;
        border: 1px solid rgb(240 65 0 / 0.2);
        background: rgb(240 65 0 / 0.1);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #f04100;
    }

    .coderic-category-hero__badge-dot {
        width: 0.375rem;
        height: 0.375rem;
        border-radius: 9999px;
        background: #f04100;
        animation: coderic-pulse 2s ease-in-out infinite;
    }

    .coderic-category-hero__title {
        margin: 0 0 1.5rem;
        padding-top: 0;
        font-family: "Outfit", "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
        font-size: clamp(2.25rem, 3.2vw + 1rem, 4.5rem);
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -0.025em;
        text-align: start;
        color: var(--text-base);
    }

    @media (min-width: 768px) {
        .coderic-category-hero__title {
            padding-top: 2rem;
            margin-bottom: 2rem;
        }
    }

    .coderic-category-hero__intro {
        margin: 0 0 2.5rem;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid var(--border-surface);
        text-align: start;
    }

    .coderic-category-intro__lead {
        margin: 0 0 1rem;
        font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.375rem);
        line-height: 1.55;
        font-weight: 400;
        color: #334155;
    }

    html.dark .coderic-category-intro__lead {
        color: #cbd5e1;
    }

    .coderic-category-intro__body {
        font-size: 1rem;
        line-height: 1.65;
        color: #475569;
    }

    .coderic-category-intro__body p {
        margin: 0 0 0.75rem;
    }

    .coderic-category-intro__body p:last-child {
        margin-bottom: 0;
    }

    html.dark .coderic-category-intro__body {
        color: #94a3b8;
    }

    .page-products.catalog-category-view #product-list {
        padding-top: 0;
    }

    .page-products.catalog-category-view .product-list-toolbar,
    .page-products.catalog-category-view .toolbar-products {
        margin-bottom: 1.5rem;
    }

    .coderic-home__card-icon {
        color: #475569;
    }

    html.dark .coderic-home__card-icon {
        color: #94a3b8;
    }

    .coderic-home .glass-panel {
        border-radius: 1rem;
        border: 1px solid var(--border-surface);
        background-color: var(--bg-panel);
        backdrop-filter: blur(24px);
    }

    .column.main .coderic-home {
        max-width: none;
        padding-inline: 0;
    }

    #store-subnav.coderic-store-subnav,
    #store-subnav .coderic-store-subnav__menu,
    #store-subnav .navigation,
    #store-subnav .navigation > .hidden.lg\:block,
    #store-subnav .navigation nav[aria-label] {
        overflow: visible;
    }

    #store-subnav .navigation {
        width: 100%;
        position: relative;
        z-index: 20;
    }

    #store-subnav .navigation > .hidden.lg\:block {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #store-subnav .navigation nav[aria-label] {
        width: 100%;
    }

  /* Sin overflow-x en ul: con auto, overflow-y:visible pasa a auto y recorta dropdowns (CSS2.1) */
    #store-subnav .navigation ul.flex,
    #store-subnav .navigation ul {
        flex-wrap: nowrap;
        align-items: center;
        min-height: 2.5rem;
        overflow: visible;
        padding-top: 0;
        padding-bottom: 0;
        gap: 0.5rem;
    }

    @media (min-width: 768px) {
        #store-subnav .navigation ul.flex {
            gap: 0.75rem;
        }
    }

    @media (min-width: 1024px) {
        #store-subnav .navigation ul.flex {
            gap: 1rem;
        }
    }

    #store-subnav .navigation .level-0 {
        position: relative;
        z-index: 0;
        border-bottom: none;
    }

    #store-subnav .navigation .level-0:hover,
    #store-subnav .navigation .level-0:focus-within {
        z-index: 120;
    }

    /* Dropdown categor�as (paridad jekyll-theme-coderic _includes/subnav.html) */
    #store-subnav .navigation .level-0 > .coderic-nav-dropdown-panel {
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 120;
        width: max-content;
        min-width: 12rem;
        max-width: min(100vw - 2rem, 20rem);
        padding-top: 0.5rem;
        margin-top: -0.25rem;
    }

    #store-subnav .navigation .coderic-nav-dropdown-menu {
        list-style: none;
        margin: 0;
        padding: 0.25rem 0;
        border-radius: 0.5rem;
        border: 1px solid var(--border-surface);
        background-color: var(--bg-surface);
        box-shadow:
            0 10px 15px -3px rgb(0 0 0 / 0.08),
            0 4px 6px -4px rgb(0 0 0 / 0.06),
            0 25px 50px -12px rgb(0 0 0 / 0.18);
    }

    #store-subnav .navigation .coderic-nav-dropdown__link {
        display: block;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.35;
        text-decoration: none;
        color: var(--text-muted);
        white-space: nowrap;
        transition: color 0.15s ease, background-color 0.15s ease;
    }

    #store-subnav .navigation .coderic-nav-dropdown__link:hover,
    #store-subnav .navigation .coderic-nav-dropdown__link:focus-visible {
        background-color: var(--bg-panel);
        color: #e85d04;
        outline: none;
    }

    #store-subnav .navigation .coderic-nav-dropdown__link[aria-current="page"] {
        color: #e85d04;
        font-weight: 600;
        background-color: color-mix(in srgb, #e85d04 8%, transparent);
    }

    #store-subnav .navigation .coderic-nav-dropdown__caret {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: -0.125rem;
        padding: 0.25rem;
        border: 0;
        border-radius: 0.25rem;
        background: transparent;
        color: var(--text-muted);
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.15s ease, transform 0.15s ease;
    }

    #store-subnav .navigation .coderic-nav-dropdown__caret:hover {
        opacity: 1;
    }

    #store-subnav .navigation .coderic-nav-dropdown__caret[aria-expanded="true"] .coderic-nav-dropdown__caret-icon {
        transform: rotate(180deg);
    }

    #store-subnav .navigation .coderic-nav-dropdown__caret-icon {
        display: block;
        transition: transform 0.2s ease;
    }

    #store-subnav .navigation .level-0 > span > a {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        border-radius: 0.375rem;
        padding: 0.625rem 0.625rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--text-muted);
        transition: color 0.15s, background-color 0.15s;
    }

    @media (min-width: 768px) {
        #store-subnav .navigation .level-0 > span > a {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    }

    #store-subnav .navigation .level-0:hover > span > a,
    #store-subnav .navigation .level-0[data-active] > span > a {
        color: var(--text-base);
        background-color: var(--bg-panel);
    }

    .coderic-footer__grid {
        grid-column: span 3 / span 3;
    }

    @media (min-width: 1024px) {
        .coderic-footer__top-row {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }
        .coderic-footer__brand {
            grid-column: span 2 / span 2;
        }
        .coderic-footer__grid {
            grid-column: span 3 / span 3;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 2.5rem;
        }
    }

    .coderic-footer__newsletter {
        margin-top: 2rem;
        max-width: 24rem;
        width: 100%;
    }

    .coderic-footer__newsletter-fields {
        width: 100%;
    }

    .coderic-footer__newsletter-row {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }

    .coderic-footer__newsletter-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        border-radius: 0.25rem;
        border: 1px solid rgb(255 255 255 / 0.15);
        background-color: rgb(255 255 255 / 0.05);
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        color: #fff;
    }

    .coderic-footer__newsletter-input::placeholder {
        color: #6b7280;
    }

    .coderic-footer__newsletter-input:focus {
        outline: none;
        border-color: rgb(232 93 4 / 0.5);
        box-shadow: 0 0 0 1px rgb(232 93 4 / 0.3);
    }

    #global-footer .coderic-footer__newsletter-btn.btn {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: auto;
        white-space: nowrap;
        margin: 0;
    }

    #global-footer .coderic-footer__shell {
        width: 100%;
        max-width: var(--coderic-shell-max);
        margin-inline: auto;
        padding-inline: var(--coderic-shell-px);
        box-sizing: border-box;
    }

    @media (min-width: 640px) {
        #global-footer .coderic-footer__shell {
            padding-inline: var(--coderic-shell-px-sm);
        }
    }

    .coderic-home .bg-coderic-600 {
        background-color: #f04100;
    }

    .coderic-home .hover\:bg-coderic-500:hover {
        background-color: #ff5c0a;
    }

    .coderic-home .text-coderic-500,
    .coderic-home a.text-coderic-500 {
        color: #f04100;
    }

    .coderic-home .bg-coderic-600\/10 {
        background-color: rgb(240 65 0 / 0.1);
    }

    .coderic-home .border-coderic-600\/20 {
        border-color: rgb(240 65 0 / 0.2);
    }

    .coderic-home .text-slate-50 {
        color: #f8fafc;
    }

    .coderic-footer__meta {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-surface);
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    @media (min-width: 768px) {
        .coderic-footer__meta {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
        }
    }

    .coderic-footer__legal-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }

    .coderic-footer__legal-list a {
        font-size: 0.875rem;
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.15s ease;
    }

    .coderic-footer__legal-list a:hover {
        color: #f04100;
    }

    /* Pie siempre oscuro: colores fijos, no variables del tema claro */
    #global-footer .coderic-store-switcher {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        max-width: 16rem;
        margin-inline-start: auto;
    }

    @media (min-width: 768px) {
        #global-footer .coderic-store-switcher {
            flex-direction: row;
            align-items: center;
            gap: 0.75rem;
            max-width: none;
        }
    }

    #global-footer .coderic-store-switcher__label {
        flex-shrink: 0;
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgb(156 163 175);
        white-space: nowrap;
    }

    #global-footer .coderic-store-switcher__control {
        position: relative;
        flex: 1 1 auto;
        min-width: 11.5rem;
    }

    #global-footer .coderic-store-switcher__trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid rgb(255 255 255 / 0.18);
        background: rgb(255 255 255 / 0.08);
        color: #fff;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.25;
        cursor: pointer;
        transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    }

    #global-footer .coderic-store-switcher__trigger:hover,
    #global-footer .coderic-store-switcher__trigger:focus-visible {
        border-color: rgb(240 65 0 / 0.55);
        background: rgb(255 255 255 / 0.12);
        outline: none;
        box-shadow: 0 0 0 2px rgb(240 65 0 / 0.25);
    }

    #global-footer .coderic-store-switcher__trigger-main {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
    }

    #global-footer .coderic-store-switcher__icon {
        flex-shrink: 0;
        font-size: 1.125rem;
        color: rgb(240 65 0);
    }

    #global-footer .coderic-store-switcher__value {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #global-footer .coderic-store-switcher__caret {
        flex-shrink: 0;
        font-size: 0.875rem;
        color: rgb(209 213 219);
        transition: transform 0.2s ease, color 0.15s ease;
    }

    #global-footer .coderic-store-switcher__caret--open {
        transform: rotate(180deg);
        color: #fff;
    }

    #global-footer .coderic-store-switcher__menu {
        position: absolute;
        right: 0;
        top: calc(100% + 0.35rem);
        z-index: 40;
        min-width: 100%;
        margin: 0;
        padding: 0.35rem;
        list-style: none;
        border-radius: 0.5rem;
        border: 1px solid rgb(255 255 255 / 0.15);
        background: rgb(12 10 9);
        box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
    }

    #global-footer .coderic-store-switcher__option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.65rem;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        color: rgb(229 231 235);
        text-decoration: none;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    #global-footer .coderic-store-switcher__option:hover {
        background: rgb(255 255 255 / 0.08);
        color: #fff;
    }

    #global-footer .coderic-store-switcher__option--current {
        background: rgb(240 65 0 / 0.12);
        color: #fff;
        font-weight: 600;
        cursor: default;
    }

    #global-footer .coderic-store-switcher__option--current .coderic-store-switcher__icon {
        color: rgb(255 92 10);
    }

    #global-footer .coderic-store-switcher__check {
        margin-inline-start: auto;
        font-size: 1rem;
        color: rgb(240 65 0);
    }
