/*
 * Bruyer Textil — hoja de estilos unificada (sitio público + panel de administración).
 * Caché: incrementar ?v= en includes/header.php y admin/includes/admin_header.php.
 */

/* Bruyer Textil — estética: Montserrat, naranja #ff6600, cabecera oscura, fondos con profundidad */

:root {
    --color-brand-blue: #1e3a5f;
    --color-brand-blue-hover: #152a45;
    --color-brand-blue-soft: rgba(30, 58, 95, 0.12);
    --color-brand-orange: #ff6600;
    --color-brand-orange-hover: #e65c00;
    --color-brand-orange-soft: rgba(255, 102, 0, 0.2);
    --color-bg: #eef1f7;
    --color-bg-muted: #e2e8f4;
    --color-bg-elevated: #ffffff;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-soft: #3a3a3a;
    --color-muted: #8a8a8a;
    --color-label: #9a9a9a;
    --color-accent: var(--color-brand-blue);
    --color-accent-hover: var(--color-brand-blue-hover);
    --color-accent-soft: var(--color-brand-blue-soft);
    --color-gold: var(--color-label);
    --color-gold-soft: #c9c4bc;
    --color-warm: #fafafa;
    --color-warm-deep: #f0f0f0;
    --color-border: #ececec;
    --color-border-strong: #e0e0e0;
    --color-primary: var(--color-brand-blue);
    --color-primary-hover: var(--color-brand-blue-hover);
    --color-cta-warm: #ff6600;
    --color-cta-warm-hover: #e65c00;
    --color-error: #b91c1c;
    --color-error-bg: #fef2f2;
    --color-success: #15803d;
    --color-success-bg: #f0fdf4;
    --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
    --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 10px 40px rgba(0, 0, 0, 0.07);
    --shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 14px 44px rgba(15, 30, 60, 0.1);
    --shadow-card-hover: 0 22px 56px rgba(15, 30, 60, 0.14);
    --max-width: 1240px;
    --header-h: 5rem;
    --section-space: clamp(3.5rem, 8vw, 6rem);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --focus-ring: 0 0 0 3px rgba(255, 102, 0, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text);
    background:
        radial-gradient(ellipse 90% 60% at 100% -10%, rgba(255, 102, 0, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at -5% 40%, rgba(30, 58, 95, 0.11) 0%, transparent 50%),
        linear-gradient(168deg, #eef2f9 0%, #f7f5f2 42%, #faf8ff 100%);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

a:hover {
    color: var(--color-accent-hover);
}

.btn:focus-visible,
.nav-link:focus-visible,
.header-search-btn:focus-visible,
.hero-arrow:focus-visible,
.hero-dot:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.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;
}

.container {
    width: min(100% - 2.5rem, var(--max-width));
    margin-inline: auto;
}

@media (min-width: 1100px) {
    .container {
        width: min(100% - 4rem, var(--max-width));
    }
}

.container-narrow {
    width: min(100% - 2.5rem, 520px);
}

.container-wide {
    width: min(100% - 2.5rem, 1320px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.6rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background:
        linear-gradient(118deg, #0f1b32 0%, #1a3054 42%, #152746 78%, #0d1829 100%);
    border-bottom: 1px solid rgba(255, 102, 0, 0.22);
    box-shadow:
        0 4px 28px rgba(0, 8, 24, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    isolation: isolate;
    transition: box-shadow 0.35s var(--ease-out), border-color 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow:
        0 12px 40px rgba(0, 8, 24, 0.55),
        0 0 32px rgba(255, 102, 0, 0.08);
    border-bottom-color: rgba(255, 140, 60, 0.35);
}

/* Cabecera oscura: enlaces y marca */
.site-header .logo__name {
    color: #f0f5ff;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.site-header .logo__tag {
    color: #ffb347;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.25);
}

.site-header .logo--wordmark:hover .logo__name {
    color: #ffffff;
}

.site-header .header-actions .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.site-header .header-actions .nav-link:hover {
    color: #ffffff;
}

.site-header .header-actions .nav-link-register {
    color: rgba(255, 255, 255, 0.72);
}

.site-header .header-actions .nav-link-register:hover {
    color: #ffb347;
    background: rgba(255, 255, 255, 0.06);
}

.site-header .header-actions .nav-link--icon:hover {
    color: #ffb347;
    background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-header .nav-toggle-bar {
    background: #f1f5f9;
}

.site-header .header-search input[type="search"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f8fafc;
}

.site-header .header-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.site-header .header-search input[type="search"]:focus {
    border-color: rgba(255, 153, 80, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.22);
}

.site-header .header-search-btn {
    background: linear-gradient(135deg, #ff7722, #ff6600);
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35);
}

.site-header .header-search-btn:hover {
    background: linear-gradient(135deg, #ff8833, #ff7514);
}

/* Logo imagen: fondo blanco del PNG se integra con el color de fondo (multiply) */
.site-header .header-brand-mark .logo-wordmark-full,
.site-header .logo-img {
    mix-blend-mode: normal;
    filter: contrast(1.14) saturate(1.14) brightness(1.04);
}

@media (min-width: 960px) {
    .site-header .nav-main .nav-link {
        color: rgba(255, 255, 255, 0.88);
    }

    .site-header .nav-main .nav-link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

    .site-header .nav-main .nav-link-admin {
        color: rgba(255, 200, 140, 0.95);
    }

    .site-header .nav-main .nav-link-admin:hover {
        color: #ffe4c4;
        background: rgba(255, 255, 255, 0.08);
    }
}

.site-header .btn-header {
    background: linear-gradient(135deg, #ff7722, #e65c00) !important;
    box-shadow: 0 4px 18px rgba(255, 102, 0, 0.4);
}

.site-header .btn-header:hover {
    background: linear-gradient(135deg, #ff8833, #ff6600) !important;
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.65rem 0.85rem;
    min-height: var(--header-h);
    padding-block: 0.85rem;
}

.header-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.header-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem 0.65rem;
}

.nav-main {
    grid-column: 1 / -1;
    grid-row: 2;
}

.header-search {
    display: none;
    grid-column: 1 / -1;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 26rem;
    width: 100%;
    justify-self: center;
    margin-top: 0.35rem;
}

.page-catalog .header-search {
    display: flex;
    grid-row: 3;
}

.page-catalog .header-inner {
    grid-template-rows: auto auto auto;
    padding-bottom: 1rem;
}

.header-brand .logo__name {
    font-size: clamp(1.75rem, 3.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 0.015em;
}

.header-brand .logo__tag {
    font-size: 0.74rem;
    letter-spacing: 0.3em;
    color: #ffd08a;
}

/* Cabecera: imagen + wordmark en fila (misma marca que hero/pie si existe logo.png) */
.header-brand-mark.logo--wordmark {
    flex-direction: row;
    align-items: center;
    gap: 0.62rem;
    padding: 0.08rem 0.1rem 0.08rem 0;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.36);
}

.header-brand-mark .logo-wordmark-full {
    display: block;
    flex-shrink: 0;
    height: clamp(63px, 8vw, 93px);
    width: auto;
    max-width: min(15.8rem, 54vw);
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(0 5px 14px rgba(0, 0, 0, 0.34))
        contrast(1.14)
        saturate(1.14)
        brightness(1.06);
}

.logo-wordmark-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    line-height: 1.05;
    min-width: 0;
}

@media (min-width: 960px) {
    .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto;
        gap: 1rem 2rem;
        padding-block: 1rem;
    }

    .header-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .nav-main {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        width: auto;
        max-width: 100%;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 0.25rem 1.1rem;
    }

    .site-header .header-brand-mark .logo-wordmark-full {
        height: clamp(69px, 6.3vw, 96px);
    }

    .nav-toggle {
        display: none;
    }

    .page-catalog .header-inner {
        grid-template-rows: auto auto;
    }

    .page-catalog .header-search {
        grid-row: 2;
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
}

@media (max-width: 640px) {
    .site-header .header-brand-mark.logo--wordmark {
        gap: 0.44rem;
    }

    .site-header .header-brand-mark .logo-wordmark-full {
        height: clamp(57px, 16.5vw, 72px);
        max-width: min(12.6rem, 63vw);
    }

    .header-brand .logo__name {
        font-size: clamp(1.52rem, 7.6vw, 2rem);
    }

    .header-brand .logo__tag {
        font-size: 0.62rem;
        letter-spacing: 0.24em;
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    color: var(--color-text);
    text-decoration: none;
    line-height: 1;
}

.logo:hover {
    text-decoration: none;
}

.logo--wordmark {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1.05;
}

.logo__name {
    font-family: "Dancing Script", cursive;
    font-size: clamp(1.65rem, 3.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a2f4d;
    transition: color 0.2s var(--ease-out);
}

.logo__tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.logo--wordmark:hover .logo__name {
    color: var(--color-brand-blue-hover);
}

.logo--wordmark-footer .logo__name {
    color: #f0f4fa;
}

.logo--wordmark-footer .logo__tag {
    color: rgba(255, 255, 255, 0.55);
}

.logo--wordmark-footer:hover .logo__name {
    color: #ffffff;
}

.logo--wordmark-hero {
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.logo--wordmark-hero .logo__name {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.logo--wordmark-hero .logo__tag {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
}

.logo-img {
    display: block;
    height: clamp(50px, 7vw, 70px);
    max-height: 70px;
    width: auto;
    max-width: min(240px, 42vw);
    object-fit: contain;
    object-position: left center;
}

.header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg-elevated);
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: var(--focus-ring);
}

.header-search-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.header-search-btn:hover {
    background: var(--color-primary-hover);
}

.nav-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.nav-toggle-bar {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    border-radius: 1px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a4a4a;
    border-radius: 999px;
    position: relative;
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.nav-link:hover {
    text-decoration: none;
}

.nav-main .nav-link:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.04);
}

.header-actions .nav-link--icon:hover {
    color: var(--color-brand-blue);
    background: transparent;
}

.nav-link-admin {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-cart {
    gap: 0.35rem;
}

.nav-link--icon {
    gap: 0.4rem;
}

.nav-icon-svg {
    flex-shrink: 0;
    opacity: 0.88;
}

.nav-link--icon:hover .nav-icon-svg {
    opacity: 1;
}

.nav-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
    color: #fff;
    background: var(--color-brand-orange);
    border-radius: 999px;
}

@media (min-width: 960px) {
    .nav-link--icon .nav-link__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .nav-link--icon {
        position: relative;
    }
}

.btn-header {
    padding: 0.45rem 1.1rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--color-primary) !important;
    border-radius: 999px !important;
    margin-left: 0.25rem;
}

.btn-header:hover {
    background: var(--color-primary-hover) !important;
    color: #fff !important;
}

.flash-wrap {
    padding-top: 0.75rem;
}

.main-content {
    min-height: 45vh;
}

.main-content:focus {
    outline: none;
}

.main-content:focus-visible {
    outline: 2px solid var(--color-brand-orange);
    outline-offset: 3px;
}

/* ——— Home: hero estático + servicios ——— */
.hero-home {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background:
        radial-gradient(ellipse 55% 80% at 85% 20%, rgba(255, 102, 0, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 70% at 10% 80%, rgba(30, 58, 95, 0.12) 0%, transparent 50%),
        linear-gradient(158deg, #f2f6ff 0%, #fff9f4 45%, #fff 100%);
    overflow: hidden;
}

.hero-home__blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 12% 25%, var(--color-brand-blue-soft) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 88% 70%, var(--color-brand-orange-soft) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 70% 15%, rgba(30, 58, 95, 0.06) 0%, transparent 55%);
}

.hero-home__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-home__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 3rem 4rem;
    }
}

.hero-home__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-home__logo {
    max-width: min(100%, 340px);
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 14px 36px rgba(30, 58, 95, 0.15)) contrast(1.05) saturate(1.06);
}

.hero-home__logo,
.hero-home__logo-fallback {
    will-change: transform, opacity;
}

.hero-home--landing .hero-home__logo,
.hero-home--landing .hero-home__logo-fallback {
    animation: bruHeroLogoIn 900ms var(--ease-out) 120ms both;
}

@keyframes bruHeroLogoIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98) rotate(-0.8deg);
    }
    55% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02) rotate(0.25deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-home--landing .hero-home__logo,
    .hero-home--landing .hero-home__logo-fallback {
        animation: none !important;
    }
}

.hero-home--landing .hero-home__logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-home__logo-fallback {
    min-height: 8rem;
    justify-content: center;
    width: 100%;
}

.hero-home__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.hero-home__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.15rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #0f1e36;
    text-shadow: 0 2px 28px rgba(255, 102, 0, 0.08);
}

.hero-home__lead {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text-soft);
    max-width: 36rem;
}

.hero-home__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.hero-home--landing {
    min-height: min(78vh, 52rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 102, 0, 0.1) 0%, transparent 58%),
        linear-gradient(168deg, #f4f7ff 0%, #fffbf7 55%, #ffffff 100%);
    isolation: isolate;
}

.hero-home__waves {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 95% 60% at 48% 22%, rgba(147, 197, 253, 0.42) 0%, transparent 55%),
        radial-gradient(ellipse 80% 55% at 8% 85%, rgba(255, 153, 102, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 92% 78%, rgba(186, 230, 253, 0.36) 0%, transparent 48%),
        radial-gradient(ellipse 50% 40% at 75% 12%, rgba(255, 180, 120, 0.2) 0%, transparent 45%);
}

.hero-home__blobs--soft {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.55;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero-home__stack {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 48rem;
    width: 100%;
    margin-inline: auto;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.hero-home--landing .hero-home__logo {
    max-width: min(92vw, 520px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.08));
}

.hero-home__title--sans {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.85rem, 4.8vw, 3.15rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0.5rem 0 0;
    color: #1a1a1a;
}

.hero-home__lead--muted {
    color: #9a9a9a;
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
    max-width: 34rem;
    margin: 0;
    letter-spacing: 0.01em;
}

.hero-home__ctas--landing {
    margin-top: 0.35rem;
}

.hero-home__ctas--dual {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.btn-hero-secondary {
    border-radius: 999px;
    padding: 1rem 1.75rem;
    font-weight: 600;
}

.section-intro--compact .intro-lead {
    margin-bottom: 1.25rem;
    text-align: center;
}

.values-grid--compact {
    margin-top: 0;
}

.bordados-spotlight__copy--solo {
    max-width: 38rem;
}

.auth-brand-logo--text {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1rem;
}

.btn-hero-main {
    padding: 1.05rem 2.85rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(255, 102, 0, 0.35);
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-hero-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 102, 0, 0.4);
}

.hero-home__catalog-link {
    margin: 0.25rem 0 0;
}

.hero-home__link-catalog {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-home__link-catalog:hover {
    color: var(--color-primary);
}

.section-head--mockup {
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-title--sans {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    line-height: 1.15;
}

.section-subtitle--mockup {
    color: #9a9a9a;
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 0.75rem;
}

.grid-products--mockup {
    gap: clamp(1.75rem, 3vw, 2.5rem);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (min-width: 1100px) {
    .page-home .grid-products--mockup {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.card-product--split {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-product--split .card-media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-product--split .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: stretch;
    padding: 1.35rem 1.4rem 1.5rem;
}

.card-title-link {
    color: inherit;
    text-decoration: none;
}

.card-title-link:hover {
    color: var(--color-primary);
}

.card-product--split .card-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    order: 2;
    color: #2a2a2a;
}

.card-product--split .card-meta {
    margin-bottom: 0.35rem;
    order: 1;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #a8a8a8;
    font-weight: 500;
}

.card-product--split .card-price {
    order: 3;
    margin: 0 0 0.35rem;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: #e85d04;
    letter-spacing: -0.02em;
}

.card-add-form {
    margin-top: auto;
    padding-top: 0.85rem;
    order: 5;
}

.btn-card-cart {
    width: 100%;
    justify-content: center;
    background: #0d0d0d;
    color: #fff !important;
    border: none !important;
    padding: 0.82rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
    border-radius: 999px;
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn-card-cart:hover {
    background: #1f1f1f;
    color: #fff !important;
    transform: translateY(-1px);
}

.card-stock-out {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-muted);
    order: 5;
}

.page-hero--simple {
    padding: 2.25rem 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.section-nosotros {
    padding-top: 2rem;
}

.section-contacto {
    padding-top: 2rem;
    padding-bottom: var(--section-space);
}

.contacto-lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: var(--color-text-soft);
    line-height: 1.6;
}

.contacto-form {
    max-width: 32rem;
}

.nosotros-prose {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-text-soft);
}

.nosotros-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.nav-list--primary {
    justify-content: center;
    gap: 0.35rem clamp(1.25rem, 3vw, 2.35rem);
}

.nav-link-register {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-soft);
    padding: 0.45rem 0.65rem;
}

.nav-link-register:hover {
    color: var(--color-primary);
    background: transparent;
}

.section-services {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #ffffff 30%, #fafcfe 100%);
    border-top: 1px solid rgba(30, 58, 95, 0.08);
    border-bottom: 1px solid rgba(255, 102, 0, 0.1);
    box-shadow: 0 -20px 48px rgba(30, 58, 95, 0.04);
}

.section-head--left {
    text-align: left;
    margin-bottom: 2.5rem;
}

.section-head--left .section-subtitle {
    margin-inline: 0;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

.service-card {
    padding: 1.75rem 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s, transform 0.3s var(--ease-out);
}

.service-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(42, 74, 124, 0.15);
    transform: translateY(-3px);
}

.service-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.15rem;
}

.service-card__icon--dtf {
    background: linear-gradient(135deg, var(--color-brand-blue-soft), rgba(217, 119, 54, 0.08));
    border: 1px solid var(--color-border);
}

.service-card__icon--bordado {
    background: linear-gradient(135deg, rgba(42, 74, 124, 0.06), var(--color-brand-blue-soft));
    border: 1px solid var(--color-border);
}

.service-card__icon--sublimacion {
    background: linear-gradient(135deg, var(--color-brand-orange-soft), rgba(42, 74, 124, 0.06));
    border: 1px solid var(--color-border);
}

.service-card__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-brand-blue);
}

.service-card__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-soft);
    line-height: 1.55;
}

a.service-card--link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

a.service-card--link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card__cta {
    margin-top: 1.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-brand-orange);
}

a.service-card--link:hover .service-card__cta {
    color: var(--color-brand-orange-hover);
}

.hero-banner--secondary {
    margin-top: 0;
}

.hero-banner--secondary .hero-slides {
    min-height: min(38vh, 400px);
}

.hero-banner--secondary .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* ——— Hero / Carousel ——— */
.hero-banner {
    position: relative;
}

.hero-carousel {
    position: relative;
}

.hero-slides {
    position: relative;
    min-height: min(78vh, 640px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide[hidden] {
    display: none !important;
}

.hero-slide--gradient.hero-slide--t1 {
    background: linear-gradient(145deg, #1a2f4d 0%, #2a4a7c 48%, #3d5a8a 100%);
}

.hero-slide--gradient.hero-slide--t2 {
    background: linear-gradient(160deg, #2c2a28 0%, #4a3d32 45%, #8b5a32 100%);
}

.hero-slide--gradient.hero-slide--t3 {
    background: linear-gradient(135deg, #1e3558 0%, #3d4f6b 42%, #b8733d 100%);
}

.hero-slide--image {
    background-color: #1a1918;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 18, 16, 0.75) 0%, rgba(20, 18, 16, 0.35) 55%, transparent 100%);
    pointer-events: none;
}

.hero-slide--image .hero-slide-overlay {
    background: linear-gradient(90deg, rgba(15, 14, 12, 0.82) 0%, rgba(15, 14, 12, 0.45) 50%, rgba(15, 14, 12, 0.2) 100%);
}

.hero-slide-inner {
    position: relative;
    z-index: 1;
    padding-block: 4rem 5rem;
}

.hero-copy {
    max-width: 34rem;
}

.hero-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.hero-title {
    margin: 0 0 1.125rem;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    margin: 0 0 2rem;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 34rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary) !important;
    background: #ffffff !important;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    color: var(--color-primary-hover) !important;
    background: #fafaf9 !important;
}

.hero-controls {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.2s;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-prev::before,
.hero-next::before {
    content: "";
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    margin: auto;
    border: 2px solid #fff;
    border-width: 0 0 2px 2px;
}

.hero-prev::before {
    transform: rotate(45deg);
    margin-left: 0.55rem;
}

.hero-next::before {
    transform: rotate(-135deg);
    margin-right: 0.55rem;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* ——— Intro & sections ——— */
.section-intro {
    padding: 4.5rem 0 1.5rem;
}

.intro-inner {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
    position: relative;
    padding-top: 2.5rem;
}

.intro-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 1px;
    background: var(--color-border-strong);
}

.intro-lead {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text-soft);
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.page-home .section-intro {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-warm) 100%);
}

.section {
    padding: 4rem 0;
}

.section-products {
    padding-top: 1rem;
}

.page-home .section-products {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.section-head {
    text-align: center;
    margin-bottom: 3.25rem;
}

.section-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.65rem);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-muted);
    max-width: 28rem;
    margin-inline: auto;
    line-height: 1.55;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.section-tight {
    padding-top: 2rem;
}

.page-hero {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-warm) 55%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
}

.page-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.65rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.page-intro {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-muted);
}

/* ——— Product grid ——— */
.grid-products {
    display: grid;
    gap: 2rem 1.75rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-products--catalog-visual {
    gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

@media (min-width: 1200px) {
    .page-catalog .grid-products--catalog-visual {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.card-product {
    position: relative;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: none;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.card-product:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-8px);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    color: inherit;
    text-decoration: none;
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #ebebeb 0%, #e4e4e4 100%);
    overflow: hidden;
}

/* Mockups IA: ratio algo más alto para prendas completas */
.card-image-wrap--product {
    aspect-ratio: 3 / 4;
    min-height: clamp(260px, 42vw, 420px);
    background: linear-gradient(165deg, #ececec 0%, #dedede 55%, #e8e8e8 100%);
}

.card-image-wrap img,
.card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.65s var(--ease-out);
}

.card-product:hover .card-product-img,
.card-product:hover .card-image-wrap img {
    transform: scale(1.04);
}

.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card-product:hover .card-shine {
    opacity: 1;
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e5e0d8, #f0ebe4);
}

.card-placeholder-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(20, 20, 20, 0.12);
    border-top-color: var(--color-accent);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.card-body {
    padding: 1.35rem 1.5rem 1.5rem;
}

.card-meta {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-label);
    margin-bottom: 0.5rem;
}

.card-title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1.28;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.card-sku {
    display: block;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.card-price {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.card-stock {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    padding: 0.55rem 1.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: transparent;
    transition: background 0.25s var(--ease-out), border-color 0.25s, color 0.25s;
}

.card-product:hover .card-action {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-muted);
    background: var(--color-bg-elevated);
    border-radius: var(--radius);
    border: 1px dashed var(--color-border);
}

/* ——— Filters ——— */
.filters {
    margin: 2rem 0 2.25rem;
}

.filters-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.filter-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chips .filter-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem 0.4rem 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-soft);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-chips .filter-chip-link--text-only {
    padding: 0.45rem 1.1rem;
}

.filter-chip__img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--color-bg-muted);
}

.filter-chip__text {
    line-height: 1.2;
}

.filter-chips .filter-chip-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

.filter-chips .filter-chip-link.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.filter-chips .filter-chip-link.is-active .filter-chip__img {
    border-color: rgba(255, 255, 255, 0.45);
}

.filter-chips .filter-chip-link.filter-chip--bordados:not(.is-active) {
    border-color: rgba(255, 102, 0, 0.35);
    color: var(--color-text);
    font-weight: 600;
}

.filter-chips .filter-chip-link.filter-chip--bordados:not(.is-active):hover {
    border-color: var(--color-brand-orange);
    color: #c2410c;
    background: var(--color-brand-orange-soft);
}

.filter-chips .filter-chip-link.filter-chip--bordados.is-active {
    background: linear-gradient(135deg, #1e3a5f 0%, #152a45 100%);
    border-color: transparent;
    color: #fff;
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s var(--ease-out), color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff !important;
    box-shadow: var(--shadow-xs);
}

.btn-accent {
    background: var(--color-cta-warm);
    color: #fff !important;
    border-color: transparent;
}

.btn-accent:hover {
    background: var(--color-cta-warm-hover);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary) !important;
    border-color: var(--color-border-strong);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-accent-soft);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.btn-text {
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.88rem;
    color: var(--color-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-text:hover {
    color: var(--color-primary);
}

/* ——— Alerts ——— */
.alert {
    padding: 0.9rem 1.15rem 0.9rem 1.05rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    border-width: 1px;
    border-style: solid;
    border-left-width: 4px;
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-color: #bbf7d0;
    border-left-color: var(--color-success);
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-color: #fecaca;
    border-left-color: var(--color-error);
}

/* ——— Product page ——— */
.product-section {
    padding: 2.5rem 0 5rem;
}

.product-layout {
    display: grid;
    gap: 2.75rem;
    align-items: start;
}

@media (min-width: 960px) {
    .product-layout {
        grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
        gap: clamp(2.5rem, 4vw, 4.5rem);
        align-items: start;
    }
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
}

.product-picture {
    display: block;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #f4f4f4 0%, #ececec 100%);
}

.product-main-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(88vh, 920px);
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.product-main-placeholder {
    aspect-ratio: 3 / 4;
    min-height: min(70vh, 520px);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, #ebebeb 0%, #f5f5f5 45%, #e0e0e0 100%);
    box-shadow: inset 0 0 0 1px var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.product-main-placeholder--empty .product-main-placeholder__icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 2px dashed rgba(30, 58, 95, 0.2);
    background: rgba(255, 255, 255, 0.6);
}

.product-main-placeholder__text {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-soft);
}

.product-main-placeholder__hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 16rem;
    line-height: 1.5;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0 0 1rem;
}

.breadcrumb a {
    color: var(--color-muted);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.product-category-pill {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
    border-radius: 999px;
}

.product-info h1 {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.product-sku-line {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0 0 1rem;
}

.product-price-big {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.rte p {
    margin: 0 0 0.85rem;
    color: var(--color-text-soft);
}

.stock-line {
    font-size: 0.95rem;
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.add-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.add-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.add-form input[type="number"] {
    width: 5.5rem;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.add-form .btn-primary {
    padding-left: 2rem;
    padding-right: 2rem;
    min-height: 3rem;
}

.add-form .btn-primary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ——— Cart ——— */
.cart-section {
    padding: 2rem 0 4rem;
}

.cart-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr minmax(280px, 340px);
        align-items: start;
    }
}

.cart-table-wrap {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 1rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.data-table th {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    background: var(--color-bg-elevated);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table input[type="number"] {
    width: 4rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cart-thumb {
    width: 3.5rem;
    height: 4.25rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-bg);
    flex-shrink: 0;
}

.cart-thumb--empty {
    display: inline-block;
    width: 3.5rem;
    height: 4.25rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, #e5e0d8, #ebe6df);
    flex-shrink: 0;
}

.cart-actions {
    margin-top: 1rem;
}

.cart-remove-list {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.cart-summary {
    padding: 1.75rem 2rem;
    background: var(--color-warm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.cart-summary-total {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--color-border-strong);
    letter-spacing: -0.02em;
}

.cart-summary .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.cart-summary-note {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0 0 1rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.cart-empty p {
    margin: 0 0 1.5rem;
    color: var(--color-muted);
}

/* ——— Checkout ——— */
.checkout-section {
    padding: 2rem 0 4rem;
}

.checkout-grid {
    display: grid;
    gap: 2rem;
}

.checkout-grid > .checkout-card:first-child {
    order: 2;
}

.checkout-grid > .checkout-card:last-child {
    order: 1;
}

@media (min-width: 900px) {
    .checkout-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 2.75rem;
        align-items: start;
    }

    .checkout-grid > .checkout-card:first-child {
        position: sticky;
        top: calc(var(--header-h) + 1.25rem);
        align-self: start;
    }
}

.checkout-head {
    margin-bottom: 2.75rem;
    max-width: 36rem;
}

.checkout-head .page-title {
    margin-bottom: 0.35rem;
    text-align: left;
}

.checkout-head .page-intro {
    text-align: left;
    margin: 0;
}

.checkout-card {
    padding: 2rem 2rem 2.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.checkout-card:first-of-type {
    background: linear-gradient(165deg, var(--color-warm) 0%, var(--color-surface) 45%);
}

.checkout-card h2 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.checkout-lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.checkout-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-soft);
}

.checkout-lines li:last-child {
    border-bottom: none;
}

.checkout-total {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0;
    padding-top: 0.75rem;
    letter-spacing: -0.02em;
}

.checkout-design {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--color-border);
}

.checkout-design-title {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.checkout-design-note {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.checkout-design-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.checkout-payment-fieldset {
    margin: 1.5rem 0 0;
    padding: 1rem 1.15rem 1.15rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-muted);
}

.checkout-payment-legend {
    padding: 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.checkout-payment-hint {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--color-text-soft);
}

.checkout-pay-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkout-pay-option:has(input:checked) {
    border-color: var(--color-brand-orange);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.checkout-pay-option input {
    margin-top: 0.2rem;
    accent-color: var(--color-brand-orange);
}

.checkout-pay-option__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.checkout-pay-option__sub {
    font-size: 0.82rem;
    color: var(--color-muted);
    font-weight: 400;
}

.checkout-pay-option__warn {
    margin-top: 0.2rem;
    font-size: 0.76rem;
    color: #b45309;
    font-weight: 600;
}

.checkout-payment-trust {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-soft);
    line-height: 1.45;
}

.checkout-gracias .checkout-head {
    margin-bottom: 1.5rem;
}

.checkout-gracias-card {
    padding: 1.5rem 1.65rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.75rem;
}

.checkout-gracias-card__title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.checkout-gracias-note {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-top: 1rem;
}

.checkout-gracias-bizum-num {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0.5rem 0;
    color: var(--color-brand-blue);
}

.checkout-gracias-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ——— Diseñador de prendas ——— */
.designer-section {
    padding: 2rem 0 4rem;
}

.designer-intro {
    margin-bottom: 2rem;
    text-align: left;
    max-width: 42rem;
}

.designer-app {
    display: grid;
    gap: 2rem;
}

@media (min-width: 960px) {
    .designer-app {
        grid-template-columns: minmax(0, 280px) 1fr;
        align-items: start;
    }
}

.designer-toolbar {
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.designer-field {
    margin-bottom: 1.25rem;
}

.designer-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.designer-color {
    width: 100%;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--color-bg);
}

.designer-file {
    width: 100%;
    font-size: 0.9rem;
}

.designer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.designer-actions .btn {
    width: 100%;
    justify-content: center;
}

.designer-hint {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.designer-save-msg {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    color: var(--color-success);
    font-weight: 500;
}

.designer-thumb {
    display: block;
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.designer-canvas-wrap {
    background: var(--color-bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.designer-canvas-wrap canvas {
    max-width: 100%;
    height: auto !important;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.designer-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.designer-modal[hidden] {
    display: none !important;
}

.designer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.52);
}

.designer-modal-box {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 560px);
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.designer-modal-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.designer-modal-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

/* ——— Forms auth ——— */
.auth-brand {
    text-align: center;
    margin: 0 0 1.25rem;
}

.auth-brand-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.auth-brand-logo {
    height: clamp(50px, 14vw, 64px);
    max-height: 64px;
    width: auto;
    max-width: min(260px, 85%);
    object-fit: contain;
    object-position: center;
}

.auth-section {
    padding: 3rem 0 5rem;
    min-height: calc(100vh - var(--header-h) - 10rem);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-warm) 50%, var(--color-bg) 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    padding: 2.75rem 2.75rem 2.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 56px rgba(30, 58, 95, 0.09),
        0 8px 24px rgba(0, 0, 0, 0.05);
}

.auth-card .page-title {
    text-align: center;
    margin-bottom: 0.35rem;
}

.auth-sub {
    text-align: center;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.auth-login-options-lead {
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text-soft);
    text-align: center;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.form-stacked label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-soft);
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.form-stacked label:first-of-type {
    margin-top: 0;
}

.form-stacked input[type="text"],
.form-stacked input[type="email"],
.form-stacked input[type="password"],
.form-stacked input[type="number"],
.form-stacked select,
.form-stacked textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-stacked input:focus,
.form-stacked select:focus,
.form-stacked textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring);
}

.auth-password-field {
    position: relative;
}

.auth-password-field input[type="password"],
.auth-password-field input[type="text"] {
    padding-right: 2.8rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-brand-blue);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: rgba(30, 58, 95, 0.08);
}

.auth-remember {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-soft);
    cursor: pointer;
    line-height: 1.45;
}

.auth-remember input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--color-brand-orange);
    cursor: pointer;
}

.auth-remember-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.auth-remember-hint--tight {
    margin-bottom: 0.85rem;
}

.auth-remember-hint code {
    font-size: 0.72rem;
    padding: 0.08rem 0.3rem;
    border-radius: 4px;
    background: rgba(30, 58, 95, 0.06);
    color: var(--color-brand-blue);
}

.form-stacked button[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    min-height: 2.85rem;
}

.auth-forgot {
    text-align: center;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.auth-forgot a {
    font-weight: 600;
    color: var(--color-brand-blue);
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.form-footer a {
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    flex-shrink: 0;
}

.btn-google {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3c4043;
    text-decoration: none;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c8cc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    color: #202124;
    text-decoration: none;
}

.btn-google:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-google::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.611 20.083H42V20H24v8h11.303C33.72 32.657 29.223 36 24 36c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z'/%3E%3Cpath fill='%23FF3D00' d='m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.86 11.86 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ——— Values ——— */
.section-values {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--color-warm) 0%, var(--color-warm-deep) 100%);
    border-top: 1px solid var(--color-border);
}

.values-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.value-card {
    padding: 2rem 1.75rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.value-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.value-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.value-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-soft);
    line-height: 1.55;
}

/* ——— Footer ——— */
.site-footer {
    background: #0a0a0a;
    color: #a3a3a3;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    gap: 2.75rem;
    padding: 4rem 0 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 2rem;
    }
}

.footer-logo {
    display: inline-block;
    line-height: 0;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.footer-logo.logo--wordmark {
    line-height: 1.05;
}

.footer-logo--with-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 16rem;
}

.footer-logo--with-mark .logo-wordmark-full {
    display: block;
    height: clamp(44px, 9vw, 64px);
    width: auto;
    max-width: min(9.5rem, 55vw);
    object-fit: contain;
    object-position: left center;
    /* En pie muy oscuro multiply apaga el logo; suavizamos halo blanco con brillo/sombra */
    filter: drop-shadow(0 2px 24px rgba(255, 140, 60, 0.12)) brightness(1.12) contrast(1.06);
}

.footer-logo:hover {
    opacity: 0.92;
}

.footer-logo-img {
    display: block;
    height: clamp(40px, 6vw, 52px);
    max-height: 52px;
    width: auto;
    max-width: min(200px, 72vw);
    object-fit: contain;
    object-position: left center;
}

.footer-tagline {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 22rem;
}

.footer-heading {
    margin: 0 0 1.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a8a29e;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #faf8f5;
}

.footer-contact-text a {
    color: #e7e5e4;
    font-size: 1rem;
}

.footer-note {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    text-align: center;
    font-size: 0.8125rem;
    color: #737373;
}

.footer-bottom-inner p {
    margin: 0;
}

/* ——— Account ——— */
.account-section {
    padding: 2rem 0 4rem;
}

.account-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 2rem;
    }
}

.account-card {
    padding: 2rem 2.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.account-card h2 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.dl-plain {
    margin: 0;
}

.dl-plain dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-top: 1rem;
}

.dl-plain dt:first-child {
    margin-top: 0;
}

.dl-plain dd {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    color: var(--color-text);
}

/* ——— Misc ——— */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1.5rem;
}

.table-wrap {
    overflow-x: auto;
}

.header-action-cart {
    position: relative;
}

/* ——— Mobile / tablet nav ——— */
@media (max-width: 959px) {
    .nav-main {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 101;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--color-border);
        padding: 1.25rem 1.25rem 1.75rem;
        box-shadow: var(--shadow-sm);
    }

    .nav-main.is-open {
        display: block;
    }

    .nav-list--primary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .nav-list--primary .nav-link {
        padding: 0.65rem 0.5rem;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 0.5rem 0.65rem;
    }

    .logo-img {
        max-width: min(200px, 55vw);
        height: clamp(48px, 10vw, 62px);
        max-height: 62px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        padding: 0.65rem 0;
    }

    .btn-header {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }

    .hero-slides {
        min-height: min(70vh, 520px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        min-width: 4rem;
    }
}


/* ========== Panel administracion ========== */

/* Panel de administración — Bruyer Textil */

.admin-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg-muted);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-top-primary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.admin-top-primary .admin-page-title {
    margin: 0;
    min-width: 0;
}

.admin-menu-open {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), border-color 0.2s;
}

.admin-menu-open:hover {
    background: var(--color-warm);
    border-color: var(--color-border-strong);
}

.admin-menu-open:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.admin-menu-open__bars {
    display: block;
    width: 1.05rem;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    box-shadow: 0 6px 0 var(--color-text), 0 12px 0 var(--color-text);
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 205;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.admin-layout--nav-open .admin-sidebar-overlay {
    display: block;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-menu-open {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(288px, 90vw);
        z-index: 210;
        transform: translateX(-105%);
        transition: transform 0.3s var(--ease-out);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
    }

    .admin-layout--nav-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        min-height: 100vh;
    }
}

@media (min-width: 901px) {
    .admin-sidebar-overlay {
        display: none !important;
    }
}

body.admin-nav-open {
    overflow: hidden;
}

.admin-sidebar {
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    color: #d4d4d4;
    padding: 1.75rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand {
    margin: 0 0 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    color: #fff;
    text-decoration: none;
    line-height: 1.1;
}

.admin-brand-link:hover {
    color: #fff;
    opacity: 0.96;
    text-decoration: none;
}

.admin-brand-link.logo--wordmark-admin .logo__name {
    color: #e8edf5;
    font-size: 1.35rem;
}

.admin-brand-link.logo--wordmark-admin .logo__tag {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6rem;
}

.admin-brand-link.logo--wordmark-admin:hover .logo__name {
    color: #ffffff;
}

.admin-brand-panel {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

.admin-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav li {
    margin: 0;
}

.admin-nav a {
    display: block;
    padding: 0.55rem 0.85rem;
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a3a3a3;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.admin-nav a:hover {
    color: #fafafa;
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    border-left: 3px solid var(--color-brand-orange, #d97736);
    padding-left: calc(0.85rem - 3px);
}

.admin-nav-sep {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
    background: var(--color-bg-muted);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.75rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-page-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.admin-role-badge {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.admin-alert {
    margin: 0 1.75rem;
    margin-top: 1rem;
    max-width: 48rem;
}

/** Aviso facturación interna (panel) */
.admin-fiscal-disclaimer {
    margin: 0 0 1.35rem;
    padding: 1rem 1.2rem;
    max-width: 52rem;
    border-radius: var(--radius, 10px);
    border: 1px solid rgba(234, 88, 12, 0.35);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98) 0%, rgba(254, 243, 199, 0.35) 100%);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
}

.admin-fiscal-disclaimer p {
    margin: 0 0 0.55rem;
}

.admin-fiscal-disclaimer p:last-child {
    margin-bottom: 0;
}

.admin-fiscal-disclaimer__sub {
    font-size: 0.86rem;
    color: var(--color-text-soft, #475569);
}

.admin-content {
    padding: 1.75rem;
    flex: 1;
}

@media (min-width: 901px) {
    .admin-content {
        padding: 2rem 2.25rem;
    }
}

.admin-content > h2 {
    margin: 0 0 1.15rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.admin-stats + h2 {
    margin-top: 0.25rem;
}

.admin-actions {
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.stat-card {
    background: var(--color-surface);
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.25s var(--ease-out);
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
}

.stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.order-detail .order-meta {
    background: var(--color-surface);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.form-inline label {
    font-weight: 600;
    font-size: 0.875rem;
}

.form-inline select {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--color-bg-elevated);
}

.form-max {
    max-width: 640px;
}

.thumb-preview {
    max-width: 120px;
    height: auto;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
    border: 1px solid var(--color-border);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.inline-form {
    display: inline;
    margin: 0;
}

.inline-form button {
    vertical-align: baseline;
}

.btn-danger {
    color: var(--color-error);
}

.admin-body .btn,
.admin-body .btn-primary,
.admin-body .btn-secondary {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.admin-design-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    max-width: 400px;
    box-shadow: var(--shadow-xs);
}

.admin-design-meta {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0 0 0.75rem;
}

.admin-design-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
}

.config-form {
    max-width: 720px;
}

.config-grupo {
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.75rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.config-grupo-title {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.02em;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.config-row {
    margin-bottom: 1.25rem;
}

.config-row:last-child {
    margin-bottom: 0;
}

.config-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.config-desc {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.config-desc--muted {
    margin-top: -0.1rem;
    margin-bottom: 0.45rem;
}

.config-desc--muted code {
    font-size: 0.88em;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    background: rgba(30, 58, 95, 0.06);
}

.config-input,
.config-textarea,
.config-form select {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.config-input:focus,
.config-textarea:focus,
.config-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring);
}

.config-textarea {
    resize: vertical;
}

.config-submit-wrap {
    margin-top: 1.75rem;
}

.admin-content .table-wrap {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.admin-content .table-wrap .data-table {
    min-width: 1020px;
}

.admin-content .table-wrap::before,
.admin-content .table-wrap::after {
    content: '';
    position: sticky;
    top: 0;
    bottom: 0;
    width: 16px;
    pointer-events: none;
    z-index: 3;
    display: block;
}

.admin-content .table-wrap::before {
    left: 0;
    float: left;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.12), rgba(30, 58, 95, 0));
}

.admin-content .table-wrap::after {
    right: 0;
    float: right;
    background: linear-gradient(to left, rgba(30, 58, 95, 0.12), rgba(30, 58, 95, 0));
}

.admin-content .data-table th {
    background: var(--color-warm);
}

.data-table td .inline-form + a {
    margin-left: 0.5rem;
}

.admin-cell-price {
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: normal;
}

.admin-price-compare {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.admin-price-current {
    font-weight: 700;
    color: var(--color-text);
}

.admin-pill-offer {
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    vertical-align: middle;
    color: #fff;
    background: #1e293b;
    border-radius: 4px;
}

.admin-role-pill {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
}

.admin-role-pill--taller {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.admin-role-pill--comercial {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.admin-code {
    font-size: 0.82rem;
}

.admin-toolbar-search--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
}

.admin-toolbar-search--split .cfg-select {
    min-height: 2.35rem;
}

/* ——— Home: bloque destacado Bordados ——— */
.section-bordados-spotlight {
    padding: var(--section-space) 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 45%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bordados-spotlight {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

@media (min-width: 1024px) {
    .section-bordados-spotlight--with-grid .bordados-spotlight {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: center;
    }
}

.bordados-spotlight__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.bordados-spotlight__title {
    margin: 0 0 1.1rem;
    font-family: var(--font-body);
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.bordados-spotlight__text {
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5a5a5a;
    max-width: 36rem;
}

.bordados-spotlight__text strong {
    color: #2a2a2a;
    font-weight: 600;
}

.bordados-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.bordados-spotlight__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .bordados-spotlight__grid {
        gap: 1.5rem;
    }
}

.bordados-spotlight__grid .card-product {
    min-width: 0;
}

.bordados-spotlight__visual {
    min-height: 14rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-brand-blue-soft), var(--color-brand-orange-soft));
}

.bordados-spotlight__deco {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 102, 0, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 70% 60%, rgba(30, 58, 95, 0.12) 0%, transparent 40%);
}

/* ——— Catálogo: filtro bordados + nota ——— */
.page-hero--bordados {
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
    border-bottom-color: rgba(30, 58, 95, 0.08);
}

.catalog-bordados-note {
    margin: 0 0 1.75rem;
    padding: 1.15rem 1.35rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-soft);
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.catalog-bordados-note strong {
    color: var(--color-text);
}

/* ——— Página Bordados ——— */
.bordados-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    overflow: hidden;
    background: #ffffff;
}

.bordados-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(30, 58, 95, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 80%, rgba(255, 102, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bordados-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
}

.bordados-hero__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.bordados-hero__title {
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #1a1a1a;
}

.bordados-hero__lead {
    margin: 0 0 2rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #5c5c5c;
}

.bordados-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
}

.btn-bordados-primary {
    text-transform: none;
    letter-spacing: 0.03em;
    padding: 0.95rem 1.85rem;
    font-size: 0.9rem;
}

.btn-bordados-secondary {
    text-transform: none;
    letter-spacing: 0.03em;
}

.section-bordados-trust {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bordados-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem 2rem;
}

@media (min-width: 768px) {
    .bordados-trust-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bordados-trust-item {
    margin: 0;
    padding: 1.5rem 1.35rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.bordados-trust-item strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.bordados-trust-item span {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.section-head--bordados {
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section-bordados-uses {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.bordados-use-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .bordados-use-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .bordados-use-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bordados-use-card {
    margin: 0;
    padding: 1.65rem 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.bordados-use-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.bordados-use-card--wide {
    grid-column: 1 / -1;
}

@media (min-width: 1100px) {
    .bordados-use-card--wide {
        grid-column: span 2;
    }
}

.bordados-use-card__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    letter-spacing: -0.02em;
}

.bordados-use-card__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-soft);
}

.section-bordados-products {
    padding-bottom: var(--section-space);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.section-bordados-closing {
    padding: var(--section-space) 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bordados-closing-inner {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
}

.bordados-closing-title {
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.bordados-closing-text {
    margin: 0 0 1.75rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #666;
}

.bordados-closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
}

.bordados-closing-actions .btn {
    text-transform: none;
    letter-spacing: 0.03em;
}

/* ——— Catálogo visual (mockups) ——— */
.section-catalog-visual {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ——— Admin: imágenes producto / categoría ——— */
.admin-product-preview-wrap {
    margin: 0 0 1.25rem;
    padding: 1rem;
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    max-width: 520px;
}

.admin-product-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.admin-categoria-preview {
    display: block;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.admin-categorias-intro {
    max-width: 48rem;
}

.admin-categorias-intro code {
    font-size: 0.85em;
}

.data-table-thumb-cell {
    width: 56px;
    vertical-align: middle;
}

.data-table-thumb {
    display: block;
    width: 44px;
    height: 55px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.data-table-thumb--cat {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.data-table-thumb-placeholder {
    display: block;
    width: 44px;
    height: 55px;
    border-radius: var(--radius-sm);
    background: repeating-linear-gradient(
        -45deg,
        #eee,
        #eee 4px,
        #f5f5f5 4px,
        #f5f5f5 8px
    );
    border: 1px dashed var(--color-border);
}

.data-table-thumb-placeholder--product {
    width: 44px;
    height: 55px;
}

/* ——— Admin: panel v2 (dashboard, badges, búsquedas) ——— */
.admin-dashboard .admin-main {
    background: linear-gradient(180deg, #f6f7f9 0%, #eef0f4 100%);
}

.admin-dash-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-metric-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.admin-metric-card--accent {
    border-color: rgba(30, 58, 95, 0.15);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4fa 100%);
}

.admin-metric-card--warn {
    border-color: rgba(220, 38, 38, 0.12);
    background: linear-gradient(145deg, #fff 0%, #fff5f5 100%);
}

.admin-metric-card--wide {
    grid-column: 1 / -1;
}

@media (min-width: 720px) {
    .admin-metric-card--wide {
        grid-column: span 2;
    }
}

.admin-metric-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.45rem;
}

.admin-metric-value {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    line-height: 1.1;
}

.admin-metric-value--money {
    font-size: 1.65rem;
    color: var(--color-brand-blue);
}

.admin-dash-panels {
    display: grid;
    gap: 1.15rem;
    margin-bottom: 2rem;
}

@media (min-width: 960px) {
    .admin-dash-panels {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.admin-dash-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 1.15rem 1.25rem;
}

.admin-dash-panel__title {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.admin-dash-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-dash-panel__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
}

.admin-dash-panel__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-dash-panel__item--urgente {
    border-left: 3px solid #dc2626;
    padding-left: 0.5rem;
    margin-left: -0.15rem;
}

.admin-dash-panel__item--aviso {
    border-left: 3px solid #d97706;
    padding-left: 0.5rem;
    margin-left: -0.15rem;
}

.admin-dash-panel__time {
    font-size: 0.72rem;
    color: var(--color-muted);
}

.admin-dash-panel__link {
    font-weight: 600;
    color: var(--color-brand-blue);
    text-decoration: none;
}

.admin-dash-panel__link:hover {
    text-decoration: underline;
}

.admin-dash-panel__strong {
    font-weight: 600;
    color: #111;
}

.admin-dash-panel__msg {
    color: #4b5563;
    line-height: 1.35;
}

.admin-dash-panel__meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-dash-panel__foot {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
}

.admin-dash-empty--compact {
    margin: 0;
    font-size: 0.88rem;
}

.admin-fieldset--after-form {
    margin-top: 2rem;
}

.admin-dash-section-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.admin-dash-actions {
    margin-bottom: 2.5rem;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.admin-quick-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.15rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.admin-quick-tile:hover {
    border-color: var(--color-brand-blue);
    box-shadow: 0 10px 32px rgba(30, 58, 95, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.admin-quick-tile__t {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1a1a;
}

.admin-quick-tile__d {
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.admin-dash-orders {
    margin-bottom: 2rem;
}

.admin-dash-empty {
    color: var(--color-muted);
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px dashed var(--color-border);
}

.admin-dash-role-intro {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    line-height: 1.5;
    color: #334155;
}

.admin-dash-diseno-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.admin-dash-diseno-strip li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 120px;
    font-size: 0.75rem;
}

.admin-dash-diseno-link {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.admin-toolbar-actions {
    margin-bottom: 1rem;
}

.admin-toolbar-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.admin-toolbar-search input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 420px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-toolbar-search input[type="search"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring);
}

.admin-toolbar-search select {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    background: var(--color-bg-elevated);
}

.admin-toolbar-search select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring);
}

.admin-stock-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
    margin-top: 0.35rem;
}

.admin-log-details summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--color-brand-blue);
    user-select: none;
}

.admin-log-json {
    margin: 0.35rem 0 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fafafa;
    font-size: 0.78rem;
    line-height: 1.45;
    max-height: 14rem;
    overflow: auto;
}

.admin-table-modern .data-table {
    font-size: 0.9rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
}

.admin-badge--pendiente {
    background: #fef3c7;
    color: #92400e;
}

.admin-badge--produccion {
    background: #dbeafe;
    color: #1e40af;
}

.admin-badge--enviado {
    background: #e0e7ff;
    color: #3730a3;
}

.admin-badge--entregado {
    background: #d1fae5;
    color: #065f46;
}

.admin-badge--cancelado {
    background: #f3f4f6;
    color: #4b5563;
}

.admin-badge--revision {
    background: #ffedd5;
    color: #9a3412;
}

.admin-badge--listo-envio {
    background: #cffafe;
    color: #0e7490;
}

.admin-badge--presup-borrador {
    background: #f3f4f6;
    color: #374151;
}

.admin-badge--presup-enviado {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-badge--presup-aceptado {
    background: #d1fae5;
    color: #047857;
}

.admin-badge--presup-rechazado {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-badge--presup-caducado {
    background: #e5e7eb;
    color: #6b7280;
}

.admin-badge--seg-nuevo {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-badge--seg-contactado {
    background: #fef3c7;
    color: #b45309;
}

.admin-badge--seg-espera {
    background: #ede9fe;
    color: #6d28d9;
}

.admin-badge--seg-aceptado {
    background: #d1fae5;
    color: #047857;
}

.admin-badge--seg-rechazado {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.admin-wa-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition:
        transform 0.15s var(--ease-out),
        box-shadow 0.15s;
}

.admin-wa-fab:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #25d366;
    color: #fff !important;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition:
        transform 0.15s var(--ease-out),
        box-shadow 0.15s,
        background 0.15s;
}

.btn-wa:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-wa--outline {
    background: #fff;
    color: #128c7e !important;
    border: 2px solid #25d366;
}

.btn-wa--outline:hover {
    background: #f0fff4;
    color: #075e54 !important;
}

.btn-wa--compact {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
}

.btn-wa__ico {
    display: inline-flex;
    flex-shrink: 0;
}

.btn-wa__ico svg {
    display: block;
}

.btn-wa__ico--lg svg {
    width: 26px;
    height: 26px;
}

.btn-wa__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
}

.btn-wa__title {
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-wa__sub {
    font-weight: 500;
    font-size: 0.72rem;
    opacity: 0.92;
    margin-top: 0.15rem;
}

.btn-wa--hero {
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    gap: 0.75rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
    min-width: 0;
}

.btn-wa--hero:hover {
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.38);
}

.btn-wa--hero-sm {
    padding: 0.65rem 1rem;
}

.btn-wa--hero-sm .btn-wa__title {
    font-size: 0.88rem;
}

.btn-wa--hero-sm .btn-wa__sub {
    font-size: 0.68rem;
}

.admin-wa-pedido-bar--hero {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3fff8 100%);
    border: 1px solid rgba(37, 211, 102, 0.28);
    box-shadow: 0 8px 26px rgba(18, 140, 126, 0.08);
}

.admin-wa-quick-panel {
    margin: 1.25rem 0 1.5rem;
    padding: 1.15rem 1.2rem 1.3rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
}

.admin-wa-quick-panel__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.admin-wa-quick-panel__lead {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    color: #5c6570;
    line-height: 1.45;
}

.admin-wa-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.65rem;
}

.admin-wa-tile-form {
    margin: 0;
}

.admin-wa-tile {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.15s,
        background 0.15s,
        transform 0.12s;
    font: inherit;
}

.admin-wa-tile:hover {
    border-color: #25d366;
    background: #f6fff9;
    transform: translateY(-2px);
}

.admin-wa-tile--accent {
    border-color: rgba(37, 211, 102, 0.45);
    background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 100%);
}

.admin-wa-tile--accent:hover {
    border-color: #25d366;
}

.admin-wa-tile--danger {
    border-color: rgba(220, 38, 38, 0.25);
    background: linear-gradient(160deg, #fff 0%, #fff5f5 100%);
}

.admin-wa-tile--danger:hover {
    border-color: rgba(220, 38, 38, 0.55);
    background: #fff5f5;
}

.admin-wa-tile__ico {
    flex-shrink: 0;
    color: #25d366;
    line-height: 0;
}

.admin-wa-tile__ico svg {
    width: 22px;
    height: 22px;
    display: block;
}

.admin-wa-tile--danger .admin-wa-tile__ico {
    color: #dc2626;
}

.admin-wa-tile__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.admin-wa-tile__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.admin-wa-tile__tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-wa-chips-panel {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: #f9fafb;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.admin-wa-chips-panel__title {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
}

.admin-wa-chips-panel__hint {
    margin: 0 0 0.65rem !important;
    font-size: 0.78rem !important;
}

.admin-wa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-wa-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #128c7e;
    background: #fff;
    border: 1px solid rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition:
        background 0.12s,
        color 0.12s;
}

.admin-wa-chip:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.admin-wa-table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #25d366 0%, #1ebe5d 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition:
        transform 0.12s,
        box-shadow 0.12s;
}

.admin-wa-table-btn:hover {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.admin-wa-table-btn__ico {
    display: flex;
    line-height: 0;
}

.admin-wa-table-btn__ico svg {
    width: 20px;
    height: 20px;
    display: block;
}

.admin-wa-pedido-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.admin-wa-pedido-bar__hint {
    font-size: 0.82rem;
    margin: 0;
}

.admin-wa-pedido-bar__empty {
    margin: 0;
    font-size: 0.88rem;
}

.admin-wa-rapidos {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.1rem;
    background: #f8faf8;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.admin-wa-rapidos__label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.admin-wa-rapidos__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-wa-rapidos .inline-form {
    display: inline-block;
    margin: 0;
}

.admin-top-notif {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-soft);
    background: #f3f4f6;
    text-decoration: none;
    border: 1px solid var(--color-border);
}

.admin-top-notif--has {
    background: var(--color-brand-blue-soft);
    border-color: rgba(30, 58, 95, 0.2);
    color: var(--color-brand-blue);
}

.admin-top-notif__n {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--color-brand-orange);
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.25rem;
    text-align: center;
}

.wa-float {
    position: fixed;
    right: 1rem;
    bottom: 5.2rem;
    z-index: 44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #25d366 0%, #1ebe5d 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.38);
    gap: 0.35rem;
}

.wa-float:hover {
    color: #fff;
    transform: translateY(-1px);
}

.wa-float__ico {
    font-size: 0.95rem;
    line-height: 1;
}

.wa-float--admin {
    right: 1.15rem;
    bottom: 5.4rem;
    z-index: 70;
}

.admin-nav-badge {
    display: inline-block;
    margin-left: 0.35rem;
    min-width: 1.1rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--color-brand-orange);
    color: #fff;
    vertical-align: middle;
}

.admin-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
}

.admin-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-soft);
    background: #fff;
    border: 1px solid var(--color-border);
    transition:
        border-color 0.15s,
        background 0.15s,
        color 0.15s;
}

.admin-filter-pill:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.admin-filter-pill.is-active {
    background: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
    color: #fff;
}

.admin-produccion-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.admin-produccion-kpi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.admin-produccion-kpi:hover {
    border-color: var(--color-brand-blue);
    box-shadow: var(--shadow-xs);
}

.admin-produccion-kpi.is-active {
    border-color: var(--color-brand-orange);
    box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.25);
}

.admin-produccion-kpi__n {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-brand-blue);
    font-variant-numeric: tabular-nums;
}

.admin-produccion-kpi__l {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-muted);
    line-height: 1.35;
}

.admin-cliente-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(255, 102, 0, 0.05) 100%);
    border: 1px solid var(--color-border);
}

.admin-cliente-eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
    margin: 0 0 0.35rem;
}

.admin-cliente-title {
    margin: 0 0 0.25rem;
}

.admin-cliente-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-card-block {
    margin-bottom: 1.75rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.admin-internas-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.admin-internas-list li {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-internas-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.admin-internas-meta {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.admin-internas-texto {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
}

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

.admin-notif-item {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: #fff;
}

.admin-notif-item--urgente {
    border-color: rgba(185, 28, 28, 0.35);
    background: #fef2f2;
}

.admin-notif-item--aviso {
    border-color: rgba(217, 119, 6, 0.35);
    background: #fffbeb;
}

.admin-notif-item--leida {
    opacity: 0.72;
}

.admin-notif-item__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-notif-item__tit {
    font-weight: 800;
    font-size: 0.95rem;
}

.admin-notif-item__msg {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-soft);
}

.admin-notif-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-flujo-produccion-hint {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.admin-form--inline-estado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.admin-form--inline-estado select {
    min-width: 220px;
}

.admin-diseno-nota-hint {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-brand-orange);
}

.admin-stock-pill {
    display: inline-block;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.admin-stock-pill--ok {
    background: #d1fae5;
    color: #065f46;
}

.admin-stock-pill--low {
    background: #fef3c7;
    color: #92400e;
}

.admin-stock-pill--out {
    background: #fee2e2;
    color: #991b1b;
}

.admin-muted {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.admin-tech {
    font-size: 0.8rem;
}

.admin-diseno-thumb {
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    object-fit: cover;
}

.admin-inline-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.admin-select-compact {
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
}

.btn-compact {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.75rem !important;
}

.data-table--disenos .data-table-thumb-cell {
    width: 88px;
}

.admin-banner-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.admin-form-subtitle {
    margin: 1.75rem 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.admin-extra-images {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-extra-images__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.admin-extra-images__item img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    object-fit: cover;
}

.admin-extra-images__del {
    font-size: 0.8rem;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.product-gallery-thumb-link {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-gallery-thumb-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.product-gallery-thumb {
    display: block;
    width: 100px;
    height: 125px;
    object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* Configurador de prendas — UX premium (panel, 360, responsive)              */
/* -------------------------------------------------------------------------- */
.page-disenador .main-content {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 38%, #f7f8fa 100%);
}

.page-disenador--embed .main-content {
    padding-top: 0;
    padding-bottom: 0;
    background: #f0f1f3;
}

.designer-embed-section {
    margin: 0;
    padding: 0;
}

.designer-embed-wrap {
    width: 100%;
    min-height: min(85vh, calc(100vh - 7rem));
    height: min(85vh, calc(100vh - 7rem));
    margin: 0 auto;
    padding: 0;
}

.designer-embed-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    background: #fff;
}

/* Estudio tipo product designer (TShirt eCommerce–like): escenario oscuro, paneles laterales */
.page-disenador--studio .main-content {
    background: linear-gradient(180deg, #cfd4dc 0%, #e4e7ec 100%);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.studio-hero {
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.studio-hero .cfg-hero-lead {
    color: var(--color-text-soft);
}

.cfg-app-shell--studio {
    margin-bottom: clamp(2rem, 5vw, 3rem);
    padding: clamp(0.75rem, 1.5vw, 1.1rem);
    border-radius: 18px;
    background: #f0f2f5;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 18px 48px rgba(15, 23, 42, 0.08);
}

.studio-panel--tools,
.studio-panel--layers {
    background: linear-gradient(195deg, #2f3540 0%, #252a32 55%, #1e2229 100%);
    color: #e8eaed;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.studio-panel--tools .cfg-panel-eyebrow,
.studio-panel--layers .cfg-panel-eyebrow {
    color: rgba(255, 160, 90, 0.95);
}

.studio-panel--tools .cfg-panel-title,
.studio-panel--layers .cfg-panel-title,
.studio-panel--tools label,
.studio-panel--layers label,
.studio-panel--tools .cfg-label {
    color: #f1f3f5;
}

.studio-panel--tools .cfg-field-label,
.studio-panel--layers .cfg-field-label {
    color: rgba(255, 255, 255, 0.45);
}

.studio-panel--tools .cfg-hint,
.studio-panel--layers .cfg-hint,
.studio-panel--tools .cfg-layers-intro {
    color: rgba(255, 255, 255, 0.52);
}

.studio-panel--tools .cfg-select,
.studio-panel--layers .cfg-select,
.studio-panel--tools .cfg-input-num,
.studio-panel--tools .cfg-file {
    background: #1a1e26;
    color: #f1f3f5;
    border-color: rgba(255, 255, 255, 0.12);
}

.studio-panel--tools .cfg-garment-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.studio-panel--tools .cfg-garment-card__name {
    color: rgba(255, 255, 255, 0.75);
}

.studio-panel--tools .cfg-garment-card.is-active {
    background: rgba(255, 102, 0, 0.14);
    border-color: #ff6600;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.2);
}

.studio-panel--tools .cfg-garment-card.is-active .cfg-garment-card__name {
    color: #fff;
}

.studio-panel--tools .cfg-swatch {
    background: rgba(255, 255, 255, 0.06);
}

.studio-panel--tools .cfg-swatch.is-active {
    background: rgba(255, 102, 0, 0.12);
}

.studio-panel--layers .cfg-layer-row {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e8eaed;
}

.studio-btn-accent {
    border-color: rgba(255, 102, 0, 0.5) !important;
    color: #fff !important;
    background: rgba(255, 102, 0, 0.2) !important;
}

.studio-btn-accent:hover {
    background: rgba(255, 102, 0, 0.35) !important;
}

.studio-btn-save {
    background: linear-gradient(180deg, #ff7a2e 0%, #e85a00 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
}

.studio-btn-save:hover {
    filter: brightness(1.05);
}

.studio-panel--tools .cfg-zone-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8eaed;
}

.studio-panel--tools .cfg-zone-btn:hover {
    border-color: rgba(255, 102, 0, 0.45);
    background: rgba(255, 102, 0, 0.1);
}

.studio-panel--tools .btn-outline {
    border-color: rgba(255, 255, 255, 0.22);
    color: #e8eaed;
    background: transparent;
}

.studio-panel--tools .btn-outline:hover {
    border-color: #ff6600;
    color: #fff;
    background: rgba(255, 102, 0, 0.12);
}

.studio-panel--tools .cfg-btn-ghost {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
}

.studio-panel--tools .cfg-btn-preview {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.studio-panel--tools .cfg-btn-preview:hover {
    background: rgba(255, 255, 255, 0.16);
}

.studio-stage {
    background: linear-gradient(165deg, #1c2028 0%, #12151a 100%);
    border-radius: 16px;
    padding: 0.65rem 0.65rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.studio-stage-bar .cfg-stage-label {
    color: rgba(255, 255, 255, 0.88);
}

.studio-stage-bar .cfg-stage-hint-mini {
    color: rgba(255, 255, 255, 0.45);
}

.studio-view-tabs .cfg-view-tab {
    background: rgba(255, 255, 255, 0.07);
    color: #e8eaed;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-view-tabs .cfg-view-tab:hover {
    border-color: rgba(255, 102, 0, 0.45);
    color: #fff;
}

.studio-view-tabs .cfg-view-tab.is-active {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

.studio-canvas-wrap {
    background: radial-gradient(ellipse at 50% 30%, rgba(80, 90, 110, 0.35) 0%, transparent 55%), #0d0f12;
    border-radius: 12px;
    padding: clamp(0.65rem, 2vw, 1.1rem);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-canvas-shell {
    margin-left: auto;
    margin-right: auto;
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.55);
}

.studio-turntable.cfg-turntable-wrap {
    margin-top: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.studio-turntable .cfg-turntable-summary {
    color: #e8eaed;
}

.studio-turntable .cfg-turntable-hint,
.studio-turntable .cfg-check-text {
    color: rgba(255, 255, 255, 0.5);
}

.cfg-page .cfg-intro {
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.cfg-hero-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.cfg-hero-title {
    letter-spacing: -0.03em;
}

.cfg-hero-lead {
    max-width: 44rem;
    color: var(--color-text-soft);
    line-height: 1.65;
}

@media (max-width: 520px) {
    .cfg-app-shell {
        padding: clamp(0.5rem, 2.5vw, 0.75rem);
    }
}

.cfg-app-shell {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(0.85rem, 2vw, 1.25rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(255, 102, 0, 0.05) 100%);
    border: 1px solid rgba(30, 58, 95, 0.1);
    box-shadow: var(--shadow-sm);
}

.cfg-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(240px, 280px);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
}

.cfg-panel--tools {
    order: 1;
}

.cfg-stage {
    order: 2;
}

.cfg-panel--layers {
    order: 3;
}

@media (max-width: 1180px) {
    .cfg-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "stage stage"
            "tools layers";
    }

    .cfg-panel--tools {
        grid-area: tools;
    }

    .cfg-stage {
        grid-area: stage;
    }

    .cfg-panel--layers {
        grid-area: layers;
    }
}

@media (max-width: 820px) {
    .cfg-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stage"
            "tools"
            "layers";
    }
}

.cfg-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: clamp(1.1rem, 2.5vw, 1.45rem);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.cfg-panel--tools {
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
    max-height: calc(100vh - var(--header-h) - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cfg-panel--layers {
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
    max-height: calc(100vh - var(--header-h) - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1180px) {
    .cfg-panel--tools,
    .cfg-panel--layers {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

.cfg-panel-head {
    margin-bottom: 1rem;
}

.cfg-panel-head--inline {
    margin-top: 0.25rem;
}

.cfg-panel-eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brand-blue);
    margin-bottom: 0.35rem;
}

.cfg-panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.cfg-panel-title--main {
    font-size: 1.05rem;
}

.cfg-panel-title--sub {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

.cfg-panel-divider {
    height: 1px;
    margin: 1.15rem 0;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    border: 0;
}

.cfg-panel-section {
    margin-bottom: 0.5rem;
}

.cfg-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.cfg-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 400px) {
    .cfg-chip-row.cfg-garment-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cfg-chip {
    border: 2px solid var(--color-border);
    background: #fafafa;
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition:
        border-color 0.2s var(--ease-out),
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
    text-align: center;
    min-height: 2.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfg-chip-text {
    pointer-events: none;
}

.cfg-chip:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
}

.cfg-chip.is-active {
    background: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
}

.cfg-garment-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.cfg-garment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.5rem 0.7rem;
    border: 2px solid var(--color-border);
    border-radius: 14px;
    background: #fafbfc;
    cursor: pointer;
    font-family: inherit;
    transition:
        border-color 0.2s var(--ease-out),
        background 0.2s,
        box-shadow 0.2s,
        transform 0.2s var(--ease-out);
}

.cfg-garment-card:hover {
    border-color: rgba(30, 58, 95, 0.35);
    background: #fff;
}

.cfg-garment-card.is-active {
    border-color: var(--color-brand-blue);
    background: linear-gradient(160deg, #fff 0%, var(--color-brand-blue-soft) 100%);
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.18);
}

.cfg-garment-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    color: var(--color-brand-blue);
    opacity: 0.85;
    position: relative;
}

.cfg-garment-card__photo {
    display: block;
    max-height: 3.5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.cfg-garment-card__photo.cfg-garment-card__photo--fail {
    display: none !important;
}

.cfg-garment-card__fallback {
    display: none;
    align-items: center;
    justify-content: center;
}

img.cfg-garment-card__photo--fail + .cfg-garment-card__fallback {
    display: flex;
}

.cfg-garment-card.is-active .cfg-garment-card__thumb {
    color: var(--color-brand-blue);
    opacity: 1;
}

.cfg-garment-card__name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text-soft);
    text-align: center;
    line-height: 1.2;
}

.cfg-garment-card.is-active .cfg-garment-card__name {
    color: var(--color-brand-blue);
}

.cfg-field--swatches {
    margin-bottom: 1rem;
}

.cfg-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (max-width: 320px) {
    .cfg-swatch-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cfg-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.25rem 0.45rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.cfg-swatch:hover {
    border-color: var(--color-border-strong);
    background: #fafafa;
}

.cfg-swatch.is-active {
    border-color: var(--color-brand-orange);
    box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.25);
    background: var(--color-brand-orange-soft);
}

.cfg-swatch__dot {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

.cfg-swatch__label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
}

.cfg-swatch.is-active .cfg-swatch__label {
    color: var(--color-text);
}

.cfg-turntable-wrap {
    margin-top: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: #fafbfc;
    overflow: hidden;
}

.cfg-turntable-summary {
    list-style: none;
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    user-select: none;
}

.cfg-turntable-summary::-webkit-details-marker {
    display: none;
}

.cfg-turntable-summary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.cfg-turntable-wrap[open] .cfg-turntable-summary::after {
    transform: rotate(-135deg);
}

.cfg-turntable-summary__hint {
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.75rem;
}

.cfg-turntable--in-details {
    margin-top: 0;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    background: #fff;
}

.cfg-field {
    margin-bottom: 1rem;
}

.cfg-field label,
.cfg-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text-soft);
}

.cfg-field--inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cfg-select,
.cfg-input-num,
.cfg-file {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cfg-select:focus,
.cfg-input-num:focus,
.cfg-file:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 3px var(--color-brand-blue-soft);
}

.cfg-color-input {
    width: 100%;
    height: 2.75rem;
    padding: 0.2rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
}

.cfg-color-input--sm {
    height: 2.5rem;
}

.cfg-hint {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0 0 0.65rem;
    line-height: 1.5;
}

.cfg-hint--inline {
    margin: 0.35rem 0 0;
    font-size: 0.76rem;
}

.cfg-hint--small {
    font-size: 0.74rem;
    margin-top: 0.85rem;
    line-height: 1.5;
}

.cfg-zone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (max-width: 520px) {
    .cfg-zone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cfg-zone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.35rem 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fafafa;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-soft);
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
    text-align: center;
    line-height: 1.25;
}

.cfg-zone-btn:hover {
    border-color: var(--color-brand-orange);
    color: var(--color-brand-orange);
    background: var(--color-brand-orange-soft);
}

.cfg-zone-btn:active {
    transform: scale(0.98);
}

.cfg-zone-btn__t {
    pointer-events: none;
}

.cfg-align-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.cfg-align-row .btn-sm {
    min-height: 2.25rem;
    font-weight: 600;
}

.cfg-field--checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cfg-check-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--color-text-soft);
}

.cfg-quick-place-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.cfg-quick-place-row .btn-sm {
    flex: 1 1 calc(50% - 0.25rem);
    min-height: 2.25rem;
    font-weight: 600;
}

.cfg-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.4rem;
}

.cfg-input--flex,
.cfg-select--flex {
    flex: 1 1 140px;
    min-width: 0;
}

.cfg-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cfg-actions--secondary {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.cfg-actions--primary {
    margin-top: 0.65rem;
    position: sticky;
    bottom: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

@media (max-width: 1180px) {
    .cfg-actions--primary {
        position: static;
        background: none;
    }
}

.cfg-btn-secondary {
    background: var(--color-bg-muted);
    border: 2px solid var(--color-border-strong);
    color: var(--color-text);
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.cfg-btn-secondary:hover {
    border-color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
    color: var(--color-brand-blue);
}

.cfg-btn-ghost {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text-soft);
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
}

.cfg-btn-ghost:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.cfg-btn-ghost--danger:hover {
    border-color: #b91c1c;
    color: #b91c1c;
    background: #fef2f2;
}

.cfg-btn-preview {
    background: #fff;
    border: 2px solid var(--color-brand-blue);
    color: var(--color-brand-blue);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.cfg-btn-preview:hover {
    background: var(--color-brand-blue-soft);
}

.cfg-btn-save {
    background: linear-gradient(135deg, var(--color-brand-orange) 0%, #e65c00 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.35);
    transition:
        transform 0.2s var(--ease-out),
        box-shadow 0.2s;
}

.cfg-btn-save:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 102, 0, 0.4);
}

.btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.cfg-save-msg {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-success);
}

.cfg-save-thumb {
    display: block;
    margin-top: 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.cfg-stage {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2.5vw, 1.35rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.cfg-stage-top {
    margin-bottom: 1rem;
}

.cfg-stage-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.cfg-stage-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
}

.cfg-stage-hint-mini {
    font-size: 0.75rem;
    color: var(--color-muted);
    max-width: 20rem;
    line-height: 1.4;
}

.cfg-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cfg-view-tab {
    border: 1px solid var(--color-border);
    background: #f8f9fa;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text-soft);
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}

.cfg-view-tab:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.cfg-view-tab.is-active {
    background: var(--color-brand-blue);
    color: #fff;
    border-color: var(--color-brand-blue);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.3);
}

.cfg-canvas-wrap {
    border-radius: var(--radius);
    padding: clamp(0.5rem, 2vw, 1rem);
    background: linear-gradient(160deg, #eceae6 0%, #ddd9d4 45%, #e8e6e2 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 820px) {
    .cfg-canvas-wrap {
        padding: clamp(0.35rem, 1.8vw, 0.75rem);
    }
}

@media (max-width: 520px) {
    .cfg-canvas-wrap {
        padding: clamp(0.25rem, 1.5vw, 0.45rem);
    }
}

.cfg-canvas-shell {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #e8e4df;
    line-height: 0;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Fabric fija ancho/alto con setDimensions(cssOnly); height:auto rompe el hit-test. */
.cfg-canvas-shell canvas {
    display: block;
}

.cfg-canvas-shell .canvas-container {
    margin: 0 auto !important;
    max-width: 100% !important;
}

.cfg-turntable {
    margin-top: 1.15rem;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--color-border);
}

.cfg-turntable.cfg-turntable--in-details {
    margin-top: 0;
}

.cfg-turntable-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.cfg-turntable-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.cfg-turntable-label {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--color-text);
    margin: 0;
    cursor: pointer;
}

.cfg-angle-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
    border-radius: 8px;
}

.cfg-turntable-hint {
    font-size: 0.72rem;
    color: var(--color-muted);
    line-height: 1.35;
    text-align: right;
    max-width: 12rem;
}

.cfg-angle-range {
    width: 100%;
    height: 0.5rem;
    margin: 0 0 0.65rem;
    border-radius: 999px;
    accent-color: var(--color-brand-orange);
    cursor: pointer;
}

.cfg-angle-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.cfg-angle-preset {
    flex: 1;
    min-width: 3.25rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-soft);
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s,
        color 0.2s;
}

.cfg-angle-preset:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
}

.cfg-spin-pad {
    min-height: 3.25rem;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(30, 58, 95, 0.12) 0%, rgba(255, 102, 0, 0.1) 50%, rgba(30, 58, 95, 0.12) 100%);
    border: 1px dashed rgba(30, 58, 95, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem;
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.cfg-spin-pad:hover {
    border-style: solid;
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.15);
}

.cfg-spin-pad:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.cfg-spin-pad-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--color-brand-blue);
    border-right-color: transparent;
    animation: cfg-spin-hint 2.2s linear infinite;
}

@keyframes cfg-spin-hint {
    to {
        transform: rotate(360deg);
    }
}

.cfg-spin-pad-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-brand-blue);
    text-align: center;
    line-height: 1.35;
    max-width: 16rem;
}

@media (max-width: 520px) {
    .cfg-turntable {
        margin-top: 0.85rem;
        padding: 0.7rem 0.55rem 0.8rem;
    }

    .cfg-turntable-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .cfg-turntable-title {
        justify-content: space-between;
        width: 100%;
    }

    .cfg-turntable-hint {
        max-width: none;
        width: 100%;
        text-align: left;
        font-size: 0.68rem;
    }

    .cfg-angle-presets {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .cfg-angle-preset {
        min-width: 0;
        padding: 0.45rem 0.35rem;
        font-size: 0.7rem;
    }

    .cfg-spin-pad {
        flex-direction: column;
        min-height: 0;
        padding: 0.45rem 0.5rem;
        gap: 0.35rem;
    }

    .cfg-spin-pad-label {
        font-size: 0.7rem;
        max-width: none;
    }
}

.cfg-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
    line-height: 1.45;
    color: var(--color-text-soft);
}

.cfg-check input {
    margin-top: 0.2rem;
    accent-color: var(--color-brand-blue);
    width: 1.05rem;
    height: 1.05rem;
}

.cfg-check-text {
    flex: 1;
}

.cfg-layers-intro {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.cfg-layers {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cfg-layers-empty {
    font-size: 0.86rem;
    color: var(--color-muted);
    margin: 0;
    padding: 1rem 0.5rem;
    text-align: center;
    line-height: 1.5;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
}

.cfg-layer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fafafa;
    font-size: 0.82rem;
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.cfg-layer-title {
    flex: 1 1 120px;
    min-width: 0;
    font-weight: 700;
    color: inherit;
}

.cfg-layer-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.cfg-layer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #e8eaed;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    line-height: 1;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.cfg-layer-btn:hover {
    border-color: rgba(255, 102, 0, 0.55);
    background: rgba(255, 102, 0, 0.12);
}

.cfg-layer-row.is-active {
    background: #fff;
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 1px rgba(30, 58, 95, 0.12);
}

.cfg-layer-select {
    flex: 1 1 140px;
    min-width: 0;
    text-align: left;
    border: none;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 0.2rem 0;
    color: var(--color-text);
}

.cfg-layer-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.cfg-layer-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition:
        border-color 0.15s,
        background 0.15s,
        color 0.15s;
}

.cfg-layer-tool:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
}

.cfg-layer-tool--danger:hover {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.cfg-layer-tool__ic {
    pointer-events: none;
    opacity: 0.85;
}

/* Configurador — móvil táctil: mockup, controles, capas, espaciados (~44–48px) */
@media (max-width: 768px) {
    .cfg-page .cfg-intro {
        margin-bottom: 1.15rem;
    }

    .cfg-hero-lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .cfg-layout {
        gap: 0.85rem;
    }

    .cfg-panel {
        padding: 1rem 0.9rem 1.2rem;
        border-radius: 14px;
    }

    .cfg-panel-divider {
        margin: 1rem 0;
    }

    .cfg-field {
        margin-bottom: 1.15rem;
    }

    .cfg-field-label {
        font-size: 0.72rem;
        margin-bottom: 0.45rem;
    }

    .cfg-field label,
    .cfg-label {
        font-size: 0.88rem;
        margin-bottom: 0.45rem;
    }

    .cfg-chip {
        min-height: 3rem;
        padding: 0.65rem 0.7rem;
        font-size: 0.88rem;
        border-radius: 14px;
    }

    .cfg-select,
    .cfg-input-num,
    .cfg-file {
        min-height: 3rem;
        padding: 0.65rem 0.85rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    .cfg-color-input {
        height: 3.25rem;
    }

    .cfg-color-input--sm {
        height: 3rem;
    }

    .cfg-hint,
    .cfg-hint--inline {
        font-size: 0.82rem;
    }

    .cfg-zone-btn {
        min-height: 3rem;
        padding: 0.5rem 0.45rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }

    .cfg-align-row {
        gap: 0.5rem;
    }

    .cfg-align-row .btn-sm {
        min-height: 3rem;
        font-size: 0.85rem;
        padding: 0.55rem 0.4rem;
        border-radius: 10px;
    }

    .cfg-actions {
        gap: 0.65rem;
    }

    .cfg-btn-secondary {
        min-height: 3rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .cfg-btn-ghost {
        min-height: 3rem;
        padding: 0.7rem 1rem;
        font-size: 0.92rem;
    }

    .cfg-btn-preview {
        min-height: 3.1rem;
        font-size: 0.8rem;
        padding: 0.9rem 1rem;
    }

    .cfg-btn-save {
        min-height: 3.25rem;
        font-size: 0.82rem;
        padding: 1rem 1rem;
    }

    .cfg-stage {
        padding: 0.6rem 0.45rem 0.9rem;
        border-radius: 14px;
    }

    .cfg-stage-top {
        margin-bottom: 0.75rem;
    }

    .cfg-stage-label {
        font-size: 0.62rem;
    }

    .cfg-stage-hint-mini {
        max-width: none;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .cfg-view-tabs {
        gap: 0.45rem;
    }

    .cfg-view-tab {
        min-height: 2.85rem;
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }

    .cfg-canvas-wrap {
        padding: 0.2rem 0.15rem;
    }

    .cfg-canvas-shell .canvas-container,
    .cfg-canvas-shell .upper-canvas {
        touch-action: none;
    }

    .cfg-turntable {
        margin-top: 0.75rem;
        padding: 0.85rem 0.75rem 0.95rem;
    }

    .cfg-angle-range {
        height: 2.75rem;
        margin-bottom: 0.75rem;
        padding: 0.35rem 0;
    }

    .cfg-angle-preset {
        min-height: 2.85rem;
        padding: 0.5rem 0.4rem;
    }

    .cfg-spin-pad {
        min-height: 3.5rem;
        padding: 0.65rem 0.75rem;
    }

    .cfg-spin-pad-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .cfg-check {
        margin-top: 1rem;
        font-size: 0.88rem;
        gap: 0.65rem;
        padding: 0.35rem 0;
        align-items: center;
    }

    .cfg-check input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0;
    }

    .cfg-layers-intro {
        font-size: 0.82rem;
        margin-bottom: 0.75rem;
    }

    .cfg-layers {
        gap: 0.5rem;
    }

    .cfg-layers-empty {
        padding: 1.25rem 0.75rem;
        font-size: 0.9rem;
    }

    .cfg-layer-row {
        flex-wrap: wrap;
        align-items: center;
        padding: 0.65rem 0.55rem;
        gap: 0.55rem;
        border-radius: 12px;
    }

    .cfg-layer-select {
        flex: 1 1 100%;
        min-width: 0;
        min-height: 2.75rem;
        padding: 0.4rem 0.2rem;
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .cfg-layer-tools {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.4rem;
        align-items: center;
    }

    .cfg-layer-tool {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        border-radius: 10px;
        font-size: 1rem;
    }

    .designer-modal--cfg {
        padding: 0.65rem;
        align-items: flex-end;
    }

    .designer-modal-box--cfg {
        max-width: 100%;
        width: 100%;
        padding: 1rem 1rem 1.25rem;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
        max-height: min(92vh, 720px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .designer-modal--cfg .designer-modal-title {
        font-size: 1.15rem;
    }

    .designer-modal-lead {
        font-size: 0.85rem;
    }

    .designer-modal--cfg .cfg-btn-save {
        min-height: 3rem;
        width: 100%;
        font-size: 0.88rem;
    }
}

.designer-modal--cfg .designer-modal-backdrop {
    backdrop-filter: blur(6px);
    background: rgba(15, 23, 42, 0.45);
}

.designer-modal-box--cfg {
    max-width: min(92vw, 520px);
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.designer-modal--cfg .designer-modal-title {
    margin-bottom: 0.35rem;
}

.designer-modal-lead {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.designer-modal-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #f3f4f6;
    margin-bottom: 1.15rem;
    line-height: 0;
}

.designer-modal--cfg .designer-modal-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: min(70vh, 560px);
    object-fit: contain;
}

.admin-diseno-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-diseno-detail-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
}

.admin-diseno-detail-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.admin-dl {
    margin: 0;
    display: grid;
    gap: 0.35rem 1rem;
    grid-template-columns: auto 1fr;
    font-size: 0.88rem;
}

.admin-dl dt {
    margin: 0;
    font-weight: 700;
    color: var(--color-muted);
}

.admin-dl dd {
    margin: 0;
}

.admin-json-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    line-height: 1.45;
    overflow: auto;
    max-height: 22rem;
    margin: 0 0 1.25rem;
}

.admin-json-block--tall {
    max-height: 36rem;
}

.admin-form-lead {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 52rem;
}

.admin-fieldset {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
}

.admin-fieldset legend {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 0.35rem;
}

.admin-form-row {
    margin-bottom: 1rem;
}

.admin-form-row:last-child {
    margin-bottom: 0;
}

.admin-form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.admin-form-row--inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.admin-form-row--inline > div {
    margin-bottom: 0;
}

.admin-form-row input,
.admin-form-row select,
.admin-form-row textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1.5rem;
}

.admin-pedido-lineas-table .admin-select-producto {
    min-width: 220px;
    width: 100%;
    max-width: 100%;
}

.admin-pedido-lineas-table .admin-input-cantidad {
    width: 5.5rem;
}

.admin-col-actions {
    width: 5rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.8rem !important;
}

.req {
    color: #b91c1c;
}

/* ——— Catálogo pro + ficha producto + home bloques comerciales (v9) ——— */

.grid-products--pro {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .grid-products--pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .grid-products--pro {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.grid-products--home-pro {
    gap: clamp(1.35rem, 2.5vw, 1.85rem);
}

.card-product--pro {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    background: var(--color-surface);
    overflow: hidden;
    transition:
        box-shadow 0.4s var(--ease-out),
        transform 0.4s var(--ease-out),
        border-color 0.35s;
}

.card-product--pro:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
    border-color: rgba(30, 58, 95, 0.12);
}

.card-product__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-product__media-link:hover {
    color: inherit;
}

.card-product__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(165deg, #f3f3f3 0%, #e8e8e8 100%);
    overflow: hidden;
}

.card-product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.65s var(--ease-out);
}

.card-product__brand-logo {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    z-index: 0;
    width: min(62%, 200px);
    max-width: 200px;
    height: auto;
    opacity: 0.92;
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
    transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out);
}

.card-product--pro:hover .card-product__img {
    transform: scale(1.045);
}

.card-product__shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(125deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
}

.card-product--pro:hover .card-product__shine {
    opacity: 1;
}

.card-product__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--color-brand-orange), #ff8533);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

.card-product__body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}

.card-product__cat {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-label);
}

.card-product__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.card-product__title a {
    color: inherit;
    text-decoration: none;
}

.card-product__title a:hover {
    color: var(--color-brand-blue);
}

.card-product__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.card-product__pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-soft);
    background: var(--color-bg-muted);
    border-radius: 6px;
}

.card-product__pill--tech {
    color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
}

.color-swatch {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background-color: var(--swatch, #ccc);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.color-swatch--lg {
    width: 1.65rem;
    height: 1.65rem;
}

.card-product__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.card-product__price {
    margin: 0.35rem 0 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    letter-spacing: -0.02em;
}

.card-product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.85rem;
}

.card-product__form {
    margin: 0;
}

.card-product__out {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-muted);
}

.btn-catalog-cart,
.btn-catalog-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition:
        background 0.25s,
        color 0.25s,
        border-color 0.25s;
}

.btn-catalog-cart {
    background: var(--color-brand-blue);
    color: #fff;
    border-color: var(--color-brand-blue);
}

.btn-catalog-cart:hover {
    background: var(--color-brand-blue-hover);
    border-color: var(--color-brand-blue-hover);
    color: #fff;
}

.btn-catalog-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-catalog-ghost:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.btn-catalog-accent {
    background: var(--color-brand-orange);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

.btn-catalog-accent:hover {
    background: var(--color-brand-orange-hover);
    color: #fff;
}

.btn-catalog-outline {
    border: 2px solid var(--color-text);
    color: var(--color-text);
    background: transparent;
    padding: 0.72rem 1.45rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 0.25s,
        color 0.25s,
        background 0.25s;
}

.btn-catalog-outline:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
    background: var(--color-brand-blue-soft);
}

.catalog-pro-hero {
    position: relative;
    padding: clamp(3rem, 10vw, 5.5rem) 0;
    overflow: hidden;
}

.catalog-pro-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(30, 58, 95, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 20%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    pointer-events: none;
}

.catalog-pro-hero__inner {
    position: relative;
    max-width: 42rem;
}

.catalog-pro-hero__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.catalog-pro-hero__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--color-text);
}

.catalog-pro-hero__lead {
    margin: 0 0 1.75rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--color-muted);
    max-width: 36rem;
}

.catalog-pro-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.catalog-pro-families {
    background: var(--color-bg-muted);
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.catalog-pro-section-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.catalog-pro-section-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.catalog-pro-section-sub {
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
}

.catalog-family-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .catalog-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .catalog-family-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .catalog-family-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.catalog-family-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-xs);
    transition:
        box-shadow 0.35s var(--ease-out),
        transform 0.35s var(--ease-out);
}

.catalog-family-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.catalog-family-card__media {
    aspect-ratio: 16 / 10;
    background: #eee;
    overflow: hidden;
}

.catalog-family-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-family-card__body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.catalog-family-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.catalog-family-card__text {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.catalog-family-card__link {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.catalog-pro-main {
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.catalog-pro-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 960px) {
    .catalog-pro-layout {
        grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1100px) {
    .catalog-pro-layout {
        grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
    }
}

.catalog-pro-filters {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.catalog-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-filter-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.catalog-filter-input,
.catalog-filter-select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    font: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.catalog-filter-group--row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.catalog-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.catalog-pro-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}

.catalog-pro-results-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

.catalog-pro-results-count {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.catalog-pro-chips {
    margin-bottom: 1.75rem;
}

.catalog-pro-empty {
    text-align: left;
}

.page-catalog--pro .section-tight {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* ——— Catálogo estilo tienda (merchandising / rejilla + filtros en paneles) ——— */

.catalog-shop-hero {
    position: relative;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.catalog-shop-hero__stripe {
    height: 4px;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--color-brand-blue, #1e3a5f) 0%,
        var(--color-brand-orange, #ff6600) 48%,
        var(--color-brand-blue, #1e3a5f) 100%
    );
}

.catalog-shop-hero__inner {
    padding-top: clamp(1.25rem, 3vw, 1.75rem);
}

.catalog-shop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.catalog-shop-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.catalog-shop-breadcrumb a:hover {
    color: var(--color-brand-blue);
    text-decoration: underline;
}

.catalog-shop-breadcrumb__sep {
    opacity: 0.45;
    user-select: none;
}

.catalog-shop-breadcrumb__current {
    font-weight: 600;
    color: var(--color-text);
}

.catalog-shop-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 1.75rem;
}

.catalog-shop-hero__logo-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    border-radius: var(--radius-sm);
}

.catalog-shop-hero__logo {
    display: block;
    width: auto;
    max-width: min(160px, 38vw);
    height: auto;
    max-height: 5.25rem;
    object-fit: contain;
}

.catalog-shop-hero__logo-fallback {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-brand-blue);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
}

.catalog-shop-hero__titles {
    flex: 1;
    min-width: min(100%, 16rem);
}

.catalog-shop-hero__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.catalog-shop-hero__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--color-text);
}

.catalog-shop-hero__lead {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--color-muted);
    max-width: 40rem;
}

.catalog-shop-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
}

.catalog-pro-layout--shop {
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .catalog-pro-layout--shop {
        grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
        gap: 2rem 2.25rem;
    }
}

@media (min-width: 1180px) {
    .catalog-pro-layout--shop {
        grid-template-columns: minmax(0, 19.5rem) minmax(0, 1fr);
    }
}

.catalog-pro-filters--shop {
    padding: 1.1rem 1.15rem;
}

.catalog-pro-filters__title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
}

.catalog-pro-filters--shop .catalog-filter-form {
    gap: 0;
}

.catalog-filter-panel {
    border-bottom: 1px solid var(--color-border);
    padding: 0.15rem 0;
}

.catalog-filter-panel:last-of-type {
    border-bottom: none;
}

.catalog-filter-panel__summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 0.55rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.catalog-filter-panel__summary::-webkit-details-marker {
    display: none;
}

.catalog-filter-panel__summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.45;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.catalog-filter-panel[open] .catalog-filter-panel__summary::after {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.catalog-filter-panel__body {
    padding-bottom: 0.65rem;
}

.catalog-filter-panel__body .catalog-filter-group:first-child {
    margin-top: 0;
}

.catalog-pro-results-head--shop {
    margin-bottom: 0.85rem;
}

.catalog-pro-results-head--shop .catalog-pro-results-count {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-soft);
}

.grid-products--shop {
    gap: clamp(1.15rem, 2.2vw, 1.65rem);
}

@media (min-width: 640px) {
    .grid-products--shop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 820px) {
    .grid-products--shop {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .grid-products--shop {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.card-product--shop .card-product__title {
    font-size: 0.98rem;
    line-height: 1.28;
}

.card-product__badge--discount {
    left: auto;
    right: 0.75rem;
    background: linear-gradient(135deg, #111827, #374151);
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-product__variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-top: 0.35rem;
}

.card-product__variant-pill {
    display: inline-block;
    padding: 0.12rem 0.38rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fafafa;
    line-height: 1.2;
}

.card-product__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-top: 0.45rem;
}

.card-product__price-compare {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.card-product--shop .card-product__price {
    margin: 0;
}

/* Ficha producto pro */
.product-section--pro {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.product-layout--pro {
    gap: clamp(2rem, 4vw, 3.5rem);
}

.product-hero-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, #f6f6f6 0%, #ececec 100%);
}

.product-picture--pro {
    display: block;
    margin: 0;
}

.product-main-img--pro {
    max-height: min(88vh, 960px);
}

.product-thumb-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.product-thumb-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.product-thumb-btn img {
    display: block;
    width: 4.25rem;
    height: 5.25rem;
    object-fit: cover;
}

.product-thumb-btn.is-active,
.product-thumb-btn:hover {
    border-color: var(--color-brand-orange);
    box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.25);
}

.product-info--pro {
    max-width: 36rem;
}

.product-title-pro {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.product-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.product-meta-pill {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--color-bg-muted);
    color: var(--color-text-soft);
}

.product-meta-pill--accent {
    background: var(--color-brand-blue-soft);
    color: var(--color-brand-blue);
}

.product-meta-pill--muted {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-muted);
}

.product-price-block--pro {
    margin-bottom: 1rem;
}

.product-price-block__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.35rem;
}

.product-price-block__compare {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.product-price-block__badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #111827, #374151);
    border-radius: 999px;
}

.product-price-block__main {
    margin: 0;
}

.product-price-big--pro {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.product-colors-block {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg-muted);
}

.product-colors-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.65rem;
}

.product-colors-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
}

.product-color-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

.product-desc--pro {
    margin-top: 0.5rem;
}

.stock-line--pro {
    margin-top: 1.5rem;
}

.product-actions-pro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.add-form--pro .add-form-row--pro {
    align-items: stretch;
}

.btn-product-buy {
    min-height: 3rem;
    flex: 1;
    min-width: 12rem;
}

.btn-product-customize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid var(--color-brand-orange);
    color: var(--color-brand-orange);
    background: transparent;
    transition:
        background 0.25s,
        color 0.25s;
}

.btn-product-customize:hover {
    background: var(--color-brand-orange);
    color: #fff;
}

/* Productos relacionados (ficha) */
.product-related-section {
    padding-top: clamp(2rem, 5vw, 3.25rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
}

.product-related-head {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    max-width: 40rem;
}

.product-related-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.product-related-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.product-related-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 720px) {
    .product-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1100px) {
    .product-related-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
}

.product-related-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        transform 0.22s ease;
}

.product-related-card:hover {
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.product-related-media {
    display: block;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #f4f4f4 0%, #e8e8e8 100%);
    overflow: hidden;
}

.product-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.product-related-card:hover .product-related-img {
    transform: scale(1.04);
}

.product-related-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}

.product-related-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-related-name a {
    color: inherit;
    text-decoration: none;
}

.product-related-name a:hover {
    color: var(--color-brand-orange);
}

.product-related-meta {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.product-related-price-row {
    margin: 0.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
}

.product-related-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.product-related-price-old {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-decoration: line-through;
}

.product-related-actions {
    margin-top: auto;
    padding-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-related-view {
    flex: 1 1 auto;
    min-width: 5.5rem;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}

.btn-related-add {
    flex: 1 1 auto;
    min-width: 8rem;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
}

.btn-related-add:disabled {
    opacity: 0.65;
    cursor: wait;
}

.product-related-nostock {
    flex: 1 1 auto;
    min-width: 8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-muted);
    background: var(--color-bg-muted);
    border-radius: 999px;
    border: 1px dashed var(--color-border);
}

/* Home: top ventas + laboral + personalizados */
.home-section-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-brand-orange);
}

.section-head--catalog-pro {
    text-align: center;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.section-home-top {
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

/* Home rediseño premium */
.home-premium-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(2.7rem, 6vw, 4.5rem);
    background: linear-gradient(132deg, #0b1a2c 0%, #10263f 36%, #173b61 72%, #1e4b78 100%);
    color: #fff;
}

.home-premium-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 102, 0, 0.3), transparent 42%),
        radial-gradient(circle at 10% 82%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent 28%);
}

.home-premium-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    mix-blend-mode: soft-light;
    opacity: 0.92;
    filter: saturate(1.05);
}

@media (prefers-reduced-motion: no-preference) {
    .home-premium-hero__bg {
        animation: bru-premium-hero-glow 16s ease-in-out infinite alternate;
    }

    .home-premium-hero__shot {
        animation: bru-premium-shot-float 8s ease-in-out infinite;
    }

    .home-premium-hero__shot--2 {
        animation-delay: -2.5s;
    }

    .home-premium-hero__shot--3 {
        animation-delay: -5s;
    }
}

@keyframes bru-premium-hero-glow {
    0% {
        opacity: 1;
        filter: brightness(1);
    }

    100% {
        opacity: 0.94;
        filter: brightness(1.06);
    }
}

@keyframes bru-premium-shot-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.home-premium-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: clamp(1.2rem, 3vw, 2rem);
}

.home-premium-hero__kicker {
    margin: 0 0 0.65rem;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.83);
}

.home-premium-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.2vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.home-premium-hero__lead {
    margin: 1.05rem 0 0;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    line-height: 1.72;
}

.home-premium-hero__pills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.home-premium-hero__pills span {
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #eaf1f8;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
}

.home-premium-hero__actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-premium-btn {
    min-height: calc(2.95rem * var(--home-cta-scale, 1));
    padding: calc(0.72rem * var(--home-cta-scale, 1)) calc(1.35rem * var(--home-cta-scale, 1));
    border-radius: 999px;
    font-size: calc(0.82rem * var(--home-cta-scale, 1));
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(8, 17, 28, 0.25);
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(8, 17, 28, 0.3);
    filter: saturate(1.08);
}

.home-premium-btn--primary {
    box-shadow: 0 14px 28px rgba(255, 102, 0, 0.35);
}

.home-premium-hero__trust {
    margin: 1.05rem 0 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.42rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
}

.home-premium-hero__cards {
    display: grid;
    gap: 0.72rem;
    margin-top: 1rem;
}

.home-premium-hero__mosaic {
    margin: 0 0 0.9rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 130px 130px;
    gap: 0.6rem;
}

.home-premium-hero__shot {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 30px rgba(7, 14, 23, 0.34);
}

.home-premium-hero__shot--1 {
    grid-row: 1 / span 2;
}

.home-premium-hero__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.03);
}

.home-premium-hero__logo {
    width: min(100%, calc(420px * var(--home-logo-scale, 1)));
    height: auto;
}

.home-premium-mini-card {
    padding: 0.95rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.27);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.home-premium-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.home-premium-mini-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
}

.home-premium-mini-card p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}

.home-premium-services__grid,
.home-premium-benefits__grid,
.home-premium-process__steps,
.home-premium-trust__grid,
.home-premium-cats__grid {
    display: grid;
    gap: 0.9rem;
}

.page-home .section {
    padding-top: calc(4rem * var(--home-density, 1));
    padding-bottom: calc(4rem * var(--home-density, 1));
}

.page-home .container {
    width: min(100% - 2.5rem, calc(var(--max-width) * var(--home-content-width-scale, 1)));
}

@media (min-width: 1100px) {
    .page-home .container {
        width: min(100% - 4rem, calc(var(--max-width) * var(--home-content-width-scale, 1)));
    }
}

.home-premium-service-card,
.home-premium-benefits__grid article,
.home-premium-process__steps article,
.home-premium-quote,
.home-premium-cat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(30, 58, 95, 0.13);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(13, 25, 40, 0.05);
    padding: calc(1.12rem * var(--home-product-card-scale, 1)) calc(1.15rem * var(--home-product-card-scale, 1));
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-premium-service-card:hover,
.home-premium-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(12, 24, 38, 0.11);
    border-color: rgba(255, 102, 0, 0.35);
}

.home-premium-benefits__grid article:hover,
.home-premium-process__steps article:hover,
.home-premium-quote:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(12, 24, 38, 0.1);
    border-color: rgba(255, 102, 0, 0.28);
}

.home-premium-service-card h3,
.home-premium-cat-card h3,
.home-premium-benefits__grid h3 {
    margin: 0 0 0.45rem;
    font-size: calc(1.02rem * var(--home-product-card-scale, 1));
    letter-spacing: -0.01em;
}

.home-premium-service-card p,
.home-premium-cat-card p,
.home-premium-benefits__grid p,
.home-premium-process__steps p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: calc(0.98rem * min(1.06, var(--home-product-card-scale, 1)));
    line-height: 1.58;
}

.home-premium-cat-card {
    color: inherit;
    text-decoration: none;
}

.home-premium-cat-card span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand-orange);
}

.home-premium-quote p {
    margin: 0 0 0.7rem;
    line-height: 1.6;
}

.home-premium-quote span {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 600;
}

.home-premium-proof {
    padding-top: 1.1rem;
}

.home-intuitive-nav {
    padding-top: 0.85rem;
    padding-bottom: 0.35rem;
}

.home-intuitive-nav__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-intuitive-nav__row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-brand-blue);
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.17);
    transition: transform 0.22s var(--ease-out), border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.home-intuitive-nav__row a:hover {
    border-color: rgba(255, 102, 0, 0.5);
    color: var(--color-brand-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.1);
}

.home-premium-proof__grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-premium-proof__grid article {
    border: 1px solid rgba(30, 58, 95, 0.14);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    padding: 0.95rem 0.85rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(13, 25, 40, 0.05);
}

.home-premium-proof__grid strong {
    display: block;
    font-size: 1.3rem;
    color: var(--color-brand-blue);
}

.home-premium-proof__grid span {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.home-premium-b2b {
    padding-top: 0;
}

.home-premium-b2b__box {
    border: 1px solid rgba(30, 58, 95, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f7fbff 0%, #ecf3fb 100%);
    padding: clamp(1.45rem, 3.4vw, 2.15rem);
    display: grid;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(13, 25, 40, 0.07);
}

.home-premium-b2b__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-premium-cta-final {
    padding-top: 0;
}

.home-premium-cta-final__box {
    border-radius: var(--radius-lg);
    padding: clamp(2.3rem, 4.6vw, 3.4rem);
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #12263d 0%, #1a3a5c 60%, #1f4b77 100%);
    box-shadow: 0 20px 42px rgba(9, 19, 31, 0.22);
}

.home-premium-cta-final__box h2 {
    margin: 0 0 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    letter-spacing: -0.02em;
}

.home-premium-cta-final__box p {
    margin: 0 auto 1.2rem;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.86);
}

.home-premium-cta-final__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.home-floating-cta {
    position: fixed;
    right: 0.85rem;
    bottom: 0.9rem;
    z-index: 40;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    text-decoration: none;
    background: var(--color-brand-orange);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 26px rgba(255, 102, 0, 0.35);
}

.home-floating-cta:hover {
    color: #fff;
    transform: translateY(-1px);
}

@media (min-width: 900px) {
    .home-premium-hero__grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
    .home-premium-services__grid,
    .home-premium-benefits__grid,
    .home-premium-process__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .home-premium-trust__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .home-premium-cats__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .home-premium-proof__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .home-premium-b2b__box {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
    .home-floating-cta {
        display: none;
    }
}

@media (max-width: 899px) {
    .home-premium-hero {
        padding-top: 2.7rem;
    }
    .home-premium-hero__actions .home-premium-btn {
        width: 100%;
        justify-content: center;
    }
    .home-premium-hero__trust {
        font-size: 0.84rem;
    }
    .home-premium-services__grid,
    .home-premium-benefits__grid,
    .home-premium-trust__grid,
    .home-premium-process__steps,
    .home-premium-cats__grid {
        gap: 0.75rem;
    }
    .home-premium-hero__mosaic {
        grid-template-rows: 115px 115px;
    }
    .home-intuitive-nav__row a {
        flex: 1 1 calc(50% - 0.55rem);
        min-width: 11.5rem;
    }
    .home-premium-cta-final__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-premium-service-card,
    .home-premium-cat-card,
    .home-floating-cta {
        transition: none !important;
    }
}

/* Home editorial refresh (inspired by fashion storefronts) */
.page-home .home-section-eyebrow {
    color: #111;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.page-home .section-title--sans {
    letter-spacing: -0.01em;
    font-weight: 600;
}

.page-home .section-subtitle {
    color: #444;
}

.page-home .home-premium-hero {
    background: #f7f7f7;
    color: #111;
    border-bottom: 1px solid #e4e4e4;
    padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3.2rem);
}

.page-home .home-premium-hero__bg,
.page-home .home-premium-hero__canvas,
.page-home .home-premium-hero__pills,
.page-home .home-premium-hero__cards,
.page-home .home-premium-hero__trust {
    display: none;
}

.page-home .home-premium-hero__kicker {
    color: #111;
    margin-bottom: 0.5rem;
}

.page-home .home-premium-hero__title {
    font-size: clamp(1.9rem, 5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.page-home .home-premium-hero__lead {
    color: #2f2f2f;
    max-width: 36rem;
    line-height: 1.55;
}

.page-home .home-premium-hero__actions {
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.page-home .home-premium-btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    box-shadow: none;
    border: 1px solid #111;
    min-height: 2.7rem;
}

.page-home .home-premium-btn:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

.page-home .home-premium-btn--primary {
    background: #111;
    color: #fff;
}

.page-home .home-premium-hero__mosaic {
    gap: 0.45rem;
    margin-bottom: 0;
}

.page-home .home-premium-hero__shot {
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.page-home .home-premium-hero__shot img {
    filter: grayscale(8%) contrast(1.02);
}

.page-home .home-premium-hero__logo {
    display: none;
}

.page-home .home-intuitive-nav,
.page-home .home-premium-proof,
.page-home .home-premium-benefits,
.page-home .home-premium-process,
.page-home .home-premium-trust {
    display: none;
}

.page-home .section {
    border-top: 1px solid #ececec;
}

.page-home .home-premium-services__grid,
.page-home .home-premium-cats__grid,
.page-home .home-premium-b2b__box {
    gap: 0;
}

.page-home .home-premium-service-card,
.page-home .home-premium-cat-card,
.page-home .home-premium-b2b__box,
.page-home .home-premium-quote {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    box-shadow: none;
}

.page-home .home-premium-service-card:hover,
.page-home .home-premium-cat-card:hover,
.page-home .home-premium-quote:hover {
    transform: none;
    box-shadow: none;
    border-color: #dcdcdc;
}

.page-home .home-premium-cat-card span {
    color: #111;
}

.page-home .section-home-top .section-head,
.page-home .section-home-recommended .section-head,
.page-home .home-premium-services .section-head,
.page-home .home-premium-cats .section-head,
.page-home .home-premium-b2b .section-head {
    text-align: left;
    max-width: 44rem;
    margin-left: 0;
    margin-right: 0;
}

.page-home .home-premium-b2b {
    padding-top: calc(4rem * var(--home-density, 1));
}

.page-home .home-premium-b2b__actions {
    gap: 0.5rem;
}

.page-home .home-premium-b2b__actions .btn,
.page-home .home-premium-cta-final__actions .btn {
    border-radius: 0;
    border: 1px solid #111;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-home .home-premium-cta-final__box {
    border-radius: 0;
    box-shadow: none;
    background: #111;
    color: #fff;
}

.page-home .home-premium-cta-final__box p {
    color: rgba(255, 255, 255, 0.82);
}

.page-home .home-floating-cta {
    border-radius: 0;
    background: #111;
    box-shadow: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    .page-home .home-premium-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .page-home .home-premium-services__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .page-home .home-premium-cats__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .page-home .home-premium-hero__actions .home-premium-btn {
        width: auto;
    }

    .page-home .home-premium-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.section-home-laboral {
    background: var(--color-bg-muted);
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.home-laboral-empty a {
    color: var(--color-brand-blue);
    font-weight: 600;
}

.section-home-personalizados {
    padding-top: 0;
    padding-bottom: 0;
}

.home-personalizados-strip {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.home-personalizados-strip__inner {
    margin: 0 1.25rem;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1e3a5f 0%, #152a45 55%, #1a3050 100%);
    color: #e8eef5;
    text-align: center;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.home-section-eyebrow--on-dark {
    color: var(--color-brand-orange);
}

.home-personalizados-strip__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-personalizados-strip__text {
    margin: 0 auto 1.5rem;
    max-width: 32rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.home-personalizados-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.btn-outline--on-dark {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    background: transparent;
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.25s,
        border-color 0.25s;
}

.btn-outline--on-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.bordados-spotlight__grid--pro {
    align-items: stretch;
}

.bordados-spotlight__grid--pro .card-product--pro {
    min-width: 0;
}

.admin-color-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0 0 1rem;
}

.admin-color-checkboxes__item {
    margin: 0;
}

.admin-cell-compact {
    max-width: 11rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-cell-category {
    min-width: 14rem;
}

.admin-category-quick-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-category-quick-form select {
    min-width: 8.8rem;
    max-width: 10.5rem;
    padding: 0.28rem 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.82rem;
}

.admin-mass-category-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.admin-mass-category-form select {
    min-width: 12rem;
}

.admin-mass-category-submit {
    min-width: 2.1rem;
    padding-inline: 0.55rem;
    font-weight: 800;
    line-height: 1;
}

.checkout-conv-note {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.home-layout-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.5rem;
}

.home-layout-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    cursor: grab;
}

.home-layout-item.is-dragging {
    opacity: 0.55;
}

.home-layout-drag {
    font-weight: 700;
    color: var(--color-muted);
}

.admin-product-preview-wrap--secondary {
    max-width: 280px;
}

/* ——— Librerías JS (Choices, List.js catálogo, Lightbox/SpriteSpin ficha, admin Chart) ——— */
.catalog-live-list {
    width: 100%;
}

.catalog-live-search-wrap {
    margin-bottom: 1.25rem;
}

.catalog-live-search-input {
    width: 100%;
    max-width: 28rem;
    padding: 0.65rem 0.85rem;
    font: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.catalog-pro-filters .choices {
    margin-bottom: 0;
}

.catalog-pro-filters .choices__inner {
    min-height: 2.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border-color: var(--color-border);
    background: #fff;
}

.catalog-pro-filters .choices__list--dropdown .choices__item {
    font-size: 0.9rem;
}

.product-main-lightbox {
    display: block;
    border-radius: inherit;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.product-main-lightbox:focus-visible {
    outline: 2px solid var(--color-brand-orange);
    outline-offset: 3px;
}

.product-thumb-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.product-thumb-lightbox {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    line-height: 0;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-thumb-lightbox:hover,
.product-thumb-lightbox.is-active-thumb {
    border-color: var(--color-brand-orange);
    box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.2);
}

.product-spin-block {
    margin-top: 1.75rem;
    padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 58, 95, 0.12);
    background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.product-spin-title {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.product-spin-hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.55;
    max-width: 36rem;
}

.product-spin-hint code {
    font-size: 0.76rem;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: rgba(30, 58, 95, 0.06);
    color: var(--color-brand-blue);
}

.product-spritespin {
    max-width: min(100%, 520px);
    margin: 0 auto;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #eceae6 0%, #e2e0dc 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    touch-action: none;
}

.product-spritespin .spritespin-stage {
    margin: 0 auto;
    border-radius: calc(var(--radius-sm) + 2px);
    overflow: hidden;
}

.product-spritespin canvas,
.product-spritespin img {
    border-radius: var(--radius-sm);
}

.admin-dash-chart-section {
    margin: 2rem 0 2.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.admin-chart-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.admin-chart-wrap {
    position: relative;
    height: 220px;
    max-width: 100%;
}

#admin-chart-pedidos {
    width: 100% !important;
    height: 100% !important;
}

/* ——— Venta / gestión: cuenta, solicitud presupuesto, revisión diseño, documentos, calculadora ——— */

.account-card-lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-muted);
}

@media (min-width: 900px) {
    .account-grid .account-card--wide {
        grid-column: 1 / -1;
    }
}

.page-solicitud-presupuesto .solicitud-presupuesto-section {
    padding: var(--section-space) 0 clamp(3rem, 8vw, 5rem);
    background: linear-gradient(180deg, var(--color-bg-muted) 0%, #fff 42%);
}

.solicitud-presupuesto-inner {
    max-width: 920px;
    margin: 0 auto;
}

.solicitud-presupuesto-hero {
    margin-bottom: 2rem;
}

.solicitud-presupuesto-hero .page-title {
    margin-bottom: 0.5rem;
}

.solicitud-presupuesto-hero .page-intro {
    margin: 0;
    max-width: 40rem;
    color: var(--color-muted);
    font-size: 1rem;
}

.solicitud-presupuesto-alert {
    margin-bottom: 1.25rem;
}

.admin-form-like.solicitud-presupuesto-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.solicitud-presupuesto-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .solicitud-presupuesto-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.solicitud-fieldset.admin-fieldset {
    margin: 0;
    min-height: 100%;
}

.solicitud-presupuesto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.page-diseno-revision .diseno-revision-section {
    padding: var(--section-space) 0 clamp(3rem, 8vw, 5rem);
}

.diseno-revision-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.diseno-revision-inner .page-title {
    margin-bottom: 0.35rem;
}

.diseno-revision-inner .page-intro {
    margin: 0 0 1.5rem;
    color: var(--color-muted);
}

.diseno-revision-preview {
    margin: 0 auto 1.25rem;
    max-width: 420px;
    padding: 1rem;
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.diseno-revision-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 520px);
    object-fit: contain;
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

.diseno-revision-meta {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

.diseno-revision-actions {
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.diseno-revision-form {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.diseno-revision-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text-soft);
}

.diseno-revision-form textarea {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-strong);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.diseno-revision-form--cambios .btn {
    width: 100%;
}

.admin-doc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.admin-doc-toolbar__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-right: 0.25rem;
}

.admin-archivos-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-archivos-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0.65rem;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.admin-archivos-list a {
    color: var(--color-brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.admin-archivos-list a:hover {
    text-decoration: underline;
}

body.admin-calculadora .admin-calculadora-layout {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
    max-width: 960px;
}

@media (min-width: 800px) {
    body.admin-calculadora .admin-calculadora-layout {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.admin-calculadora-panel,
.admin-calculadora-result {
    margin: 0;
}

.admin-calculadora-big {
    margin: 0.25rem 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-brand-blue);
}

.admin-calculadora-big .admin-muted {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-muted);
}

.admin-calculadora-total {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.admin-calculadora-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ——— Portal cliente, carrito por tallas, CRM etiquetas, analítica ——— */

.page-portal .portal-section {
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.5rem;
}

.portal-nav__link {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    background: #fff;
}

.portal-nav__link:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.portal-nav__link.is-active {
    background: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
    color: #fff;
}

.portal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portal-card--wide {
    grid-column: 1 / -1;
}

.portal-quick-list {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.7;
}

.portal-quick-list a {
    color: var(--color-brand-blue);
    font-weight: 600;
}

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

.portal-file-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
}

.portal-upload-form {
    max-width: 32rem;
    margin-top: 0.5rem;
}

.header-action-portal {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.35rem;
    color: var(--color-brand-blue);
}

.cart-tallas-cell {
    min-width: 8rem;
    vertical-align: top;
}

.cart-tallas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cart-talla-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-muted);
}

.cart-talla-field input {
    width: 2.5rem;
    padding: 0.2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.75rem;
}

.cart-tallas-warn {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    color: #b45309;
    max-width: 12rem;
}

.cart-price-note {
    display: block;
    font-size: 0.68rem;
    color: var(--color-muted);
    text-decoration: line-through;
}

.admin-etiquetas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-etiqueta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 2px solid var(--color-border);
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--et-color, transparent);
}

.admin-etiqueta-pill input {
    margin: 0;
}

.admin-etiqueta-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.admin-crm-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-crm-timeline li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
}

.admin-crm-timeline__meta {
    display: block;
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.admin-analytics-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 1.25rem;
}

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

.admin-analytics-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}

.ai-chat {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 65;
}
.ai-chat-toggle {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    color: #fff;
    padding: 0.72rem 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}
.ai-chat-panel {
    width: min(92vw, 360px);
    margin-top: 0.6rem;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(2, 10, 28, 0.28);
    overflow: hidden;
}
.ai-chat-head { padding: 0.6rem 0.8rem; font-weight: 700; background: #f4f7fb; }
.ai-chat-messages { max-height: 220px; overflow: auto; padding: 0.7rem; display: grid; gap: 0.4rem; }
.ai-chat-msg { margin: 0; padding: 0.5rem 0.6rem; border-radius: 10px; font-size: 0.92rem; }
.ai-chat-msg--bot { background: #f2f7ff; color: #123; }
.ai-chat-msg--user { background: #1e3a5f; color: #fff; margin-left: 1.5rem; }
.ai-chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 0.7rem 0.6rem; }
.ai-chat-pill { border: 1px solid #cfd8e4; background: #fff; border-radius: 999px; padding: 0.3rem 0.55rem; font-size: 0.78rem; cursor: pointer; }
.ai-chat-form { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem; padding: 0.7rem; border-top: 1px solid #eef3f8; }
.ai-chat-form input { min-width: 0; border: 1px solid #cfd8e4; border-radius: 8px; padding: 0.55rem 0.65rem; }
@media (max-width: 640px) { .ai-chat { right: 0.7rem; bottom: 0.7rem; } }

.footer-bottom-sep {
    color: var(--color-muted);
}

.bru-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0));
    background: rgba(15, 23, 42, 0.94);
    color: #e8eef7;
    box-shadow: 0 -8px 32px rgba(2, 10, 28, 0.35);
}

.bru-cookie-banner[hidden] {
    display: none !important;
}

.bru-cookie-banner__inner {
    display: grid;
    gap: 0.85rem;
}

.bru-cookie-banner__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.bru-cookie-banner__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #c9d4e8;
    max-width: 62rem;
}

.bru-cookie-banner__text a {
    color: #93c5fd;
    text-decoration: underline;
}

.bru-cookie-detail {
    padding: 0.65rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bru-cookie-detail__hint {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #9fb0cc;
}

.bru-cookie-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.bru-cookie-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: #dbe7f7;
    cursor: pointer;
}

.bru-cookie-row input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.bru-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.bru-cookie-banner .btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #e8eef7;
    background: transparent;
}

.bru-cookie-banner .btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.bru-cookie-banner .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    color: #fff;
}

@media (max-width: 640px) {
    .bru-cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bru-cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Accesibilidad: sin transformaciones decorativas si el usuario pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .home-intuitive-nav__row a:hover,
    .home-premium-mini-card:hover,
    .home-premium-benefits__grid article:hover,
    .home-premium-process__steps article:hover,
    .home-premium-quote:hover,
    .home-premium-service-card:hover,
    .home-premium-cat-card:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Global UX pass: focus states + mobile floating actions */
.filter-chips .filter-chip-link:focus-visible,
.wa-float:focus-visible,
.ai-chat-toggle:focus-visible,
.ai-chat-pill:focus-visible,
.ai-chat-form input:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.wa-float {
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.7rem 1rem;
}

.ai-chat-toggle {
    min-height: 2.75rem;
    padding: 0.78rem 1.05rem;
}

.ai-chat-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
}

@media (max-width: 640px) {
    .wa-float {
        right: 0.7rem;
        bottom: 6.2rem;
    }

    .ai-chat {
        right: 0.7rem;
        bottom: 1rem;
    }
}

/* Header refinement: global search + cleaner hierarchy */
.header-inner {
    grid-template-rows: auto auto auto;
}

.header-search {
    display: flex;
    grid-row: 3;
}

@media (min-width: 960px) {
    .header-inner {
        grid-template-rows: auto auto;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0.45rem;
        max-width: 30rem;
    }

    .site-header .nav-main .nav-link {
        font-size: 0.8rem;
        padding: 0.38rem 0.62rem;
        letter-spacing: 0.01em;
        opacity: 0.9;
    }

    .site-header .nav-list--primary {
        gap: 0.2rem clamp(0.45rem, 1.25vw, 0.85rem);
    }
}

/* Header premium polish */
.site-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

@media (min-width: 960px) {
    .site-header .header-brand-mark.logo--wordmark {
        border-radius: 8px;
        padding: 0.16rem 0.44rem 0.16rem 0.28rem;
    }

    .site-header .header-brand-mark .logo-wordmark-full {
        height: clamp(84px, 8.4vw, 116px);
        max-width: min(18.5rem, 42vw);
    }

    .header-inner {
        gap: 0.75rem 1.4rem;
        padding-block: 0.75rem;
    }

    .nav-main {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .nav-list--primary {
        flex-wrap: nowrap;
        justify-content: center;
        white-space: nowrap;
    }

    .site-header .nav-main .nav-link {
        text-transform: uppercase;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        padding: 0.34rem 0.5rem;
        border-radius: 6px;
    }

    .header-search {
        max-width: 22rem;
        margin-top: 0.35rem;
    }

    .header-search input[type="search"] {
        height: 2.2rem;
        border-radius: 6px;
        padding: 0 0.72rem;
        font-size: 0.78rem;
    }

    .header-search-btn {
        height: 2.2rem;
        border-radius: 6px;
        padding: 0 0.85rem;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}

@media (max-width: 959px) {
    .header-search input[type="search"] {
        min-height: 2.5rem;
    }
}

/* Header ultra premium mode */
.site-header {
    background: linear-gradient(120deg, #070c16 0%, #0a1220 45%, #0b1525 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header .header-actions .nav-link {
    color: rgba(255, 255, 255, 0.82);
}

.site-header .header-actions .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 960px) {
    .site-header .header-brand-mark.logo--wordmark {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.52);
        border-radius: 7px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
        padding: 0.14rem 0.38rem 0.14rem 0.24rem;
    }

    .site-header .header-brand-mark .logo-wordmark-full {
        height: clamp(88px, 8.8vw, 124px);
        max-width: min(19.5rem, 44vw);
    }

    .site-header .nav-main .nav-link {
        position: relative;
        background: transparent !important;
        border-radius: 0;
        padding: 0.34rem 0.42rem;
        color: rgba(255, 255, 255, 0.86);
    }

    .site-header .nav-main .nav-link::after {
        content: "";
        position: absolute;
        left: 0.42rem;
        right: 0.42rem;
        bottom: 0.1rem;
        height: 1px;
        background: rgba(255, 255, 255, 0.72);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.2s ease;
    }

    .site-header .nav-main .nav-link:hover {
        color: #fff;
    }

    .site-header .nav-main .nav-link:hover::after,
    .site-header .nav-main .nav-link:focus-visible::after {
        transform: scaleX(1);
    }

    .header-search {
        max-width: 20rem;
        margin-top: 0.28rem;
    }

    .site-header .header-search input[type="search"] {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.24);
        color: #fff;
    }

    .site-header .header-search input[type="search"]::placeholder {
        color: rgba(255, 255, 255, 0.55);
    }

    .site-header .header-search-btn {
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: none;
    }

    .site-header .header-search-btn:hover {
        background: rgba(255, 255, 255, 0.22);
    }
}

/* Header ultra premium v2 */
@media (min-width: 960px) {
    .site-header {
        border-bottom-color: rgba(255, 255, 255, 0.18);
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.44),
            0 1px 0 rgba(255, 255, 255, 0.05) inset;
    }

    .header-inner {
        gap: 0.55rem 1.15rem;
        padding-block: 0.62rem;
    }

    .site-header .header-brand-mark.logo--wordmark {
        border-radius: 6px;
        border-color: rgba(255, 255, 255, 0.64);
        padding: 0.1rem 0.32rem 0.1rem 0.18rem;
        box-shadow:
            0 7px 18px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(20, 32, 52, 0.14) inset;
    }

    .site-header .header-brand-mark .logo-wordmark-full {
        height: clamp(90px, 8.6vw, 128px);
        max-width: min(20.5rem, 45vw);
    }

    .site-header .nav-main {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-block: 0.18rem;
    }

    .site-header .nav-list--primary {
        gap: 0.15rem clamp(0.35rem, 1vw, 0.65rem);
    }

    .site-header .nav-main .nav-link {
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        opacity: 0.95;
        padding: 0.34rem 0.34rem;
    }

    .site-header .nav-main .nav-link::after {
        left: 0.34rem;
        right: 0.34rem;
        bottom: 0.06rem;
        background: rgba(255, 255, 255, 0.86);
    }

    .site-header .header-actions {
        gap: 0.2rem 0.75rem;
    }

    .site-header .header-actions .nav-link {
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 0.28rem 0.38rem;
    }

    .header-search {
        max-width: 18rem;
        margin-top: 0.22rem;
    }

    .site-header .header-search input[type="search"] {
        height: 2.05rem;
        font-size: 0.74rem;
        letter-spacing: 0.03em;
        border-radius: 5px;
    }

    .site-header .header-search-btn {
        height: 2.05rem;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        border-radius: 5px;
        padding: 0 0.68rem;
    }
}
