/* ===== PRINT IT — Catálogo Comercial (Dark Portfolio Style) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --bg: #111113;
    --bg-card: #1a1a1d;
    --bg-card-hover: #222225;
    --bg-elevated: #232326;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent: #00b4d8;
    --accent-soft: rgba(0, 180, 216, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gap: 16px;
    --showcase-bg: #0a0a0c;
    --carousel-btn-bg: rgba(255, 255, 255, 0.12);
    --carousel-btn-border: rgba(255, 255, 255, 0.18);
    --carousel-btn-color: #ffffff;
    --carousel-btn-hover-bg: rgba(255, 255, 255, 0.22);
    --carousel-dot-bg: rgba(255, 255, 255, 0.35);
    --carousel-dot-active: #ffffff;
    --carousel-dot-ring: rgba(255, 255, 255, 0.45);
    --view-project-bg: rgba(255, 255, 255, 0.12);
    --view-project-border: rgba(255, 255, 255, 0.2);
    --view-project-color: #ffffff;
    --view-project-hover-bg: rgba(255, 255, 255, 0.22);
    --view-project-hover-border: rgba(255, 255, 255, 0.3);
    --pill-hover-bg: rgba(255, 255, 255, 0.06);
    --sheet-row-border: rgba(255, 255, 255, 0.08);
    --schematic-bg: rgba(255, 255, 255, 0.03);
    --schematic-border: rgba(255, 255, 255, 0.12);
    --read-more-hover-bg: rgba(255, 255, 255, 0.05);
    --sheet-profile-thumb-bg: rgba(255, 255, 255, 0.04);
    --sheet-profile-active-bg: rgba(0, 187, 255, 0.06);
    --sheet-profile-active-ring: rgba(0, 180, 216, 0.25);
    --swatch-border: rgba(255, 255, 255, 0.12);
    --subcat-bg: rgba(255, 255, 255, 0.05);
    --subcat-active-border: rgba(0, 180, 216, 0.3);
    --variant-card-bg: rgba(255, 255, 255, 0.02);
    --variant-card-hover-bg: rgba(255, 255, 255, 0.04);
    --variant-card-hover-border: rgba(255, 255, 255, 0.2);
    --variant-active-bg: rgba(0, 187, 255, 0.05);
    --variant-img-border: rgba(255, 255, 255, 0.05);
    --variant-img-bg: rgba(255, 255, 255, 0.02);
}

html {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

[data-theme="light"] {
    --bg: #f0f1f5;
    --bg-card: #ffffff;
    --bg-card-hover: #e8eaef;
    --bg-elevated: #e2e5eb;
    --border: rgba(15, 18, 28, 0.1);
    --border-hover: rgba(15, 18, 28, 0.18);
    --text: #14151a;
    --text-secondary: rgba(20, 21, 26, 0.68);
    --text-muted: rgba(20, 21, 26, 0.48);
    --accent: #007e96;
    --accent-soft: rgba(0, 126, 150, 0.12);
    --showcase-bg: #dfe2e8;
    --carousel-btn-bg: rgba(255, 255, 255, 0.94);
    --carousel-btn-border: rgba(15, 18, 28, 0.12);
    --carousel-btn-color: #14151a;
    --carousel-btn-hover-bg: #ffffff;
    --carousel-dot-bg: rgba(15, 18, 28, 0.25);
    --carousel-dot-active: #14151a;
    --carousel-dot-ring: rgba(15, 18, 28, 0.2);
    --view-project-bg: rgba(255, 255, 255, 0.94);
    --view-project-border: rgba(15, 18, 28, 0.14);
    --view-project-color: #14151a;
    --view-project-hover-bg: #ffffff;
    --view-project-hover-border: rgba(15, 18, 28, 0.22);
    --pill-hover-bg: rgba(15, 18, 28, 0.05);
    --sheet-row-border: rgba(15, 18, 28, 0.1);
    --schematic-bg: rgba(15, 18, 28, 0.04);
    --schematic-border: rgba(15, 18, 28, 0.12);
    --read-more-hover-bg: rgba(15, 18, 28, 0.05);
    --sheet-profile-thumb-bg: rgba(15, 18, 28, 0.05);
    --sheet-profile-active-bg: rgba(0, 126, 150, 0.1);
    --sheet-profile-active-ring: rgba(0, 126, 150, 0.35);
    --swatch-border: rgba(15, 18, 28, 0.14);
    --subcat-bg: rgba(15, 18, 28, 0.05);
    --subcat-active-border: rgba(0, 126, 150, 0.4);
    --variant-card-bg: rgba(15, 18, 28, 0.03);
    --variant-card-hover-bg: rgba(15, 18, 28, 0.06);
    --variant-card-hover-border: rgba(15, 18, 28, 0.16);
    --variant-active-bg: rgba(0, 126, 150, 0.1);
    --variant-img-border: rgba(15, 18, 28, 0.1);
    --variant-img-bg: rgba(15, 18, 28, 0.04);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== LAYOUT — Two Column Master (escritorio ≥1000px; tablet+móvil en @media max-width 999px) ===== */
.app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: var(--gap);
    padding: var(--gap);
}

/* ===== LEFT PANEL — Large Image ===== */
.panel-left {
    position: sticky;
    top: var(--gap);
    height: calc(100vh - var(--gap) * 2);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-showcase {
    position: relative;
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--showcase-bg);
}

.image-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.image-showcase video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: #000;
}

/* desmiembre.mp4 en showcase izquierdo: encaje completo, centrado (misma intención que galería --center) */
.image-showcase video.showcase-video--contain-center {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
}

.image-showcase .image-label {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 100px;
}

/* Carousel Navigation */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--carousel-btn-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--carousel-btn-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--carousel-btn-color);
    pointer-events: all;
    transition: var(--transition);
    opacity: 0;
}

.image-showcase:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--carousel-btn-hover-bg);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--carousel-dot-bg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 0 1px var(--carousel-dot-ring);
}

.carousel-dot.active {
    background: var(--carousel-dot-active);
    transform: scale(1.2);
}

/* View Project Button */
.view-project-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--view-project-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--view-project-border);
    color: var(--view-project-color);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.view-project-btn:hover {
    background: var(--view-project-hover-bg);
    border-color: var(--view-project-hover-border);
}

.view-project-btn svg {
    width: 14px;
    height: 14px;
}

/* Logo sobre la imagen principal (panel izquierdo) */
.showcase-brand {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--view-project-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--view-project-border);
    line-height: 0;
    transition: var(--transition);
}

.showcase-brand:hover {
    background: var(--view-project-hover-bg);
    border-color: var(--view-project-hover-border);
}

.showcase-logo {
    height: 80px;
    width: auto;
    max-width: 132px;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.showcase-logo--floating {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    width: auto;
    height: 80px;
    max-width: 200px;
}

/* ===== RIGHT PANEL ===== */
.panel-right {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    overflow-y: auto;
    max-height: calc(100vh - var(--gap) * 2);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.panel-right::-webkit-scrollbar {
    display: none;
}

/* ===== HEADER NAV ===== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand .brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.nav-brand span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.nav-logo {
    height: 77px;
    width: auto;
    max-width: 355px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-theme-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-theme-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--bg);
    border-radius: 0 50% 50% 0;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.profile-avatar--logo {
    width: 94px;
    height: 94px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    padding: 6px;
    background: var(--bg-elevated);
    box-sizing: border-box;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.profile-role {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ===== SOCIAL / CONTACT LINKS ===== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 400;
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.social-link .link-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

/* ===== CONTACT PAGE — Apple-style glass (~30% lift), flush with page bg ===== */
#page-contact .profile-card {
    --contact-glass-fill: color-mix(in srgb, var(--bg) 70%, rgba(255, 255, 255, 0.28));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--contact-glass-fill);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 32px rgba(0, 0, 0, 0.16);
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

#page-contact .profile-card:hover {
    background: color-mix(in srgb, var(--bg) 62%, rgba(255, 255, 255, 0.32));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Slight per-card tint on the glass edge (subtle differentiation) */
#page-contact > .profile-card:nth-child(2) {
    border-color: color-mix(in srgb, rgba(140, 200, 255, 0.22) 35%, rgba(255, 255, 255, 0.09));
}

#page-contact > .profile-card:nth-child(3) {
    border-color: color-mix(in srgb, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0.09));
}

#page-contact > .profile-card:nth-child(4) {
    border-color: color-mix(in srgb, rgba(255, 210, 170, 0.18) 30%, rgba(255, 255, 255, 0.09));
}

[data-theme="light"] #page-contact .profile-card {
    --contact-glass-fill: color-mix(in srgb, var(--bg) 72%, rgba(255, 255, 255, 0.92));
    border-color: rgba(15, 18, 28, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 30px rgba(15, 18, 28, 0.09);
}

[data-theme="light"] #page-contact .profile-card:hover {
    background: color-mix(in srgb, var(--bg) 62%, rgba(255, 255, 255, 0.98));
    border-color: rgba(15, 18, 28, 0.14);
}

[data-theme="light"] #page-contact > .profile-card:nth-child(2) {
    border-color: color-mix(in srgb, rgba(0, 120, 180, 0.14) 40%, rgba(15, 18, 28, 0.08));
}

[data-theme="light"] #page-contact > .profile-card:nth-child(3) {
    border-color: rgba(15, 18, 28, 0.09);
}

[data-theme="light"] #page-contact > .profile-card:nth-child(4) {
    border-color: color-mix(in srgb, rgba(200, 110, 40, 0.12) 35%, rgba(15, 18, 28, 0.08));
}

/* Small person icon — glass chip (replaces logo <img> on contact) */
#page-contact .profile-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--bg) 62%, rgba(255, 255, 255, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.14);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-sizing: border-box;
}

#page-contact .profile-contact-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
}

[data-theme="light"] #page-contact .profile-contact-icon {
    background: color-mix(in srgb, var(--bg) 78%, rgba(255, 255, 255, 0.95));
    border-color: rgba(15, 18, 28, 0.11);
    color: rgba(20, 21, 26, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 2px 10px rgba(15, 18, 28, 0.06);
}

#page-contact .profile-header {
    margin-bottom: 14px;
}

#page-contact .profile-name {
    font-size: calc(19px * 0.95);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#page-contact .profile-role {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    padding: 3px 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.01em;
    white-space: normal;
}

#page-contact .social-links {
    gap: 8px;
}

#page-contact .social-link {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.1);
    background: color-mix(in srgb, var(--bg) 78%, rgba(255, 255, 255, 0.18));
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    font-size: 13px;
    line-height: 1.35;
}

[data-theme="light"] #page-contact .social-link {
    border-color: rgba(15, 18, 28, 0.09);
    background: color-mix(in srgb, var(--bg) 82%, rgba(255, 255, 255, 0.88));
}

#page-contact .social-link span:first-child {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#page-contact .social-link .link-icon {
    order: -1;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4cc9f0;
    background: color-mix(in srgb, #4cc9f0 10%, transparent);
    border: 1px solid color-mix(in srgb, #4cc9f0 42%, var(--border));
    margin-top: 1px;
}

#page-contact .social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
    background: color-mix(in srgb, var(--bg) 70%, rgba(255, 255, 255, 0.24));
}

[data-theme="light"] #page-contact .social-link:hover {
    border-color: rgba(15, 18, 28, 0.14);
    background: color-mix(in srgb, var(--bg) 74%, rgba(255, 255, 255, 0.98));
}

#page-contact .social-link-whatsapp {
    border-color: color-mix(in srgb, #25d366 34%, var(--border)) !important;
}

#page-contact .social-link-whatsapp .link-icon {
    color: #25d366;
    background: color-mix(in srgb, #25d366 8%, transparent);
    border-color: color-mix(in srgb, #25d366 40%, var(--border));
}

#page-contact .social-link-whatsapp .link-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

#page-contact .social-link-whatsapp:hover {
    border-color: color-mix(in srgb, #25d366 50%, var(--border-hover)) !important;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 4px;
}

.contact-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* ===== LATEST WORK / CATEGORIES SECTION ===== */
.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-row h3 {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-row h3 .arrow-down {
    display: inline-flex;
    color: var(--text-secondary);
}

.section-row .view-all {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.section-row .view-all:hover {
    color: var(--text);
}

/* ===== MINI CATEGORY CARDS ===== */
.mini-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--gap);
}

.mini-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: var(--transition);
}

.mini-card:hover {
    transform: translateY(-4px);
}

.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mini-card:hover img {
    transform: scale(1.03);
}

.mini-card .mini-card-label {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    line-height: 1.25;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

/* ===== PAGE: WORK / CATALOGUE LIST ===== */
.page {
    display: none;
}

.page.active {
    display: contents;
}

.catalogue-list {
    display: flex;
    flex-direction: column;
}

.catalogue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.catalogue-item:first-child {
    border-top: 1px solid var(--border);
}

.catalogue-item:hover {
    background: var(--bg-card);
    border-radius: var(--radius-xs);
}

.catalogue-item-name {
    font-size: 15px;
    font-weight: 400;
    order: 2;
    margin-left: auto;
    text-align: right;
}

.catalogue-item-name a {
    color: inherit;
    text-decoration: none;
}

.catalogue-item-name a:hover {
    color: var(--accent);
}

.product-back-wrap {
    margin: 16px 0 8px;
}

.product-back-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.product-back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.related-products-section {
    margin: 28px 0 8px;
}

.related-products-title {
    margin: 0 0 12px;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.related-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-product-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    transition: var(--transition);
}

.related-product-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(29, 170, 255, 0.08);
}

@media (max-width: 999px) {
    .related-products-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.catalogue-item-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    order: 1;
    margin-right: auto;
}

.catalogue-item-type {
    font-size: 13px;
    color: var(--text-secondary);
}

.catalogue-item-ref {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

/* Selected row highlight */
.catalogue-item.active {
    background: var(--bg-card);
    border-radius: var(--radius-xs);
}

.catalogue-item.active .catalogue-item-name {
    color: var(--accent);
}

/* Scoped LIGHTBOX grouped rows */
.lightbox-group {
    align-items: flex-start;
    cursor: default;
}

.lightbox-group .lightbox-group-details {
    width: 100%;
}

.lightbox-group .catalogue-item-name {
    order: 0;
    margin-left: 0;
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.lightbox-group .catalogue-item-name::-webkit-details-marker {
    display: none;
}

.lightbox-group .lightbox-group-option {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 10px;
}

/* Detailed catalogue rows with nested technical specs */
.catalogue-item-detailed {
    align-items: flex-start;
    cursor: default;
}

.catalogue-item-detailed .tech-details {
    width: 100%;
}

.catalogue-item-detailed .catalogue-item-name {
    order: 0;
    margin-left: 0;
    text-align: left;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 18px;
}

.catalogue-item-detailed .catalogue-item-name::-webkit-details-marker {
    display: none;
}

.catalogue-item-detailed .catalogue-item-name::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.catalogue-item-detailed .tech-details[open] .catalogue-item-name::after {
    transform: translateY(-35%) rotate(225deg);
    border-color: var(--accent);
}

.catalogue-item-detailed .tech-spec-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: right;
    padding-top: 8px;
}

.catalogue-item-detailed .tech-spec-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.catalogue-item-detailed .tech-icon {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    flex: 0 0 auto;
}

.catalogue-item-detailed .tech-spec-line .catalogue-item-ref {
    color: #ffffff;
}

.catalogue-item-detailed .tech-spec-line .catalogue-item-ref {
    min-width: 0;
}

.catalogue-item-detailed .tech-pack {
    padding-top: 8px;
}

.catalogue-item-detailed .tech-pack-title {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.catalogue-item-detailed .catalogue-item-cluster-lead {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    padding-top: 6px;
}

.catalogue-item-detailed .catalogue-item-cluster-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 13px;
    line-height: 1.55;
}

.catalogue-item-detailed .catalogue-item-cluster-list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.catalogue-item-detailed .catalogue-item-cluster-list a:hover {
    color: var(--accent);
}

.catalogue-item-cluster-list--plain {
    list-style: disc;
}

.catalogue-item-cluster-sub {
    margin: 6px 0 4px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.catalogue-item-detailed .catalogue-item-cluster-lead a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-desc-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.product-desc-note a {
    color: var(--accent);
}

.catalogue-item-detailed .tech-pack-wide {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0 8px;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.filter-pill:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--pill-hover-bg);
}

.filter-pill.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

a.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* Product standalone pages: same showcase shell, sin carrusel */
.product-page-showcase .carousel-controls,
.product-page-showcase .carousel-dots,
.product-page-showcase .view-project-btn {
    display: none;
}

#product-category-nav {
    padding-bottom: 8px;
}

#product-category-nav .catalogue-section-header {
    scroll-margin-top: 88px;
}

.product-top-actions {
    margin: 10px 0 6px;
}

.product-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(0, 180, 216, 0.45);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2) 0%, rgba(0, 180, 216, 0.08) 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.2);
    transition: var(--transition);
}

.product-home-btn:hover {
    color: #ffffff;
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.34) 0%, rgba(0, 180, 216, 0.14) 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 180, 216, 0.28);
}

/* Custom page class kept for markup compatibility */
.product-home-btn--custom {}

/* ===== CATALOGUE SECTION HEADERS ===== */
.catalogue-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 8px;
    margin-top: 8px;
    scroll-margin-top: 88px;
}

.catalogue-section-header:first-child {
    margin-top: 0;
}

.section-header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header-tags {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Hidden items for filtering */
.catalogue-item.hidden,
.catalogue-section-header.hidden {
    display: none;
}

/* ===== PAGE: PRODUCT DETAIL ===== */
.product-detail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.product-detail-header {
    padding: 48px 36px 32px;
}

.product-detail-header h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 24px;
}

.product-struct-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 8px;
}

.product-detail-header .product-struct-title {
    margin: 0 0 6px;
}

.product-struct-lead {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 24px;
    letter-spacing: 0.06em;
}

.product-desc-block {
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.product-desc-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 14px;
}

.product-desc-block p {
    margin: 0 0 12px;
}

.product-desc-list {
    margin: 8px 0 16px 20px;
    padding: 0;
}

.product-desc-list li {
    margin-bottom: 8px;
}

.product-desc-list li strong {
    color: var(--text);
}

.product-spec-sheet .product-doc-h1 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.product-spec-sheet .product-doc-h2 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--accent);
    margin: 26px 0 12px;
    padding-top: 4px;
    border-top: 1px solid var(--sheet-row-border);
}

.product-spec-sheet .section-title-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    color: var(--accent);
    vertical-align: -2px;
}

.product-spec-sheet .section-title-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.product-spec-sheet .sheet-value--textile-premium {
    padding: 2px 0;
}

.product-spec-sheet .textile-premium-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.product-spec-sheet .textile-premium-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    font-size: 12px;
    line-height: 1.45;
}

.product-spec-sheet .textile-premium-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    margin-top: 1px;
}

.product-spec-sheet .textile-premium-icon svg {
    width: 12px;
    height: 12px;
}

.product-spec-sheet .textile-premium-item strong {
    color: var(--text);
    font-weight: 600;
}

.product-spec-sheet .product-doc-h2:first-of-type {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

/* Rígidos — layout de ficha comercial (legacy) */
.product-spec-sheet--rigidos .product-doc-h1 {
    font-size: 18px;
    line-height: 1.28;
    margin-bottom: 18px;
    max-width: 40rem;
}

.product-spec-sheet--rigidos .rigidos-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 10px;
}

.product-spec-sheet--rigidos .rigidos-section-head:first-of-type {
    margin-top: 4px;
}

.product-spec-sheet--rigidos .rigidos-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--accent);
}

.product-spec-sheet--rigidos .rigidos-section-icon svg {
    display: block;
}

.product-spec-sheet--rigidos .rigidos-section-head .product-doc-h2 {
    margin: 0;
    padding-top: 0;
    border-top: none;
}

.product-spec-sheet--rigidos .rigidos-section-title {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.product-spec-sheet--rigidos .rigidos-chip-row {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-spec-sheet--rigidos .rigidos-chip {
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-spec-sheet--rigidos .rigidos-tech-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 4px;
}

@media (min-width: 420px) {
    .product-spec-sheet--rigidos .rigidos-tech-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-spec-sheet--rigidos .rigidos-tech-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-spec-sheet--rigidos .rigidos-tech-tile-icon {
    display: flex;
    color: var(--accent);
    margin-bottom: 2px;
}

.product-spec-sheet--rigidos .rigidos-tech-tile-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.product-spec-sheet--rigidos .rigidos-tech-tile-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.product-spec-sheet--rigidos .rigidos-flow-steps--visual {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-spec-sheet--rigidos .rigidos-flow-steps--visual li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-spec-sheet--rigidos .rigidos-flow-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme='light'] .product-spec-sheet--rigidos .rigidos-flow-step-num {
    background: rgba(0, 0, 0, 0.04);
}

.product-spec-sheet--rigidos .rigidos-flow-step-body strong {
    color: var(--text);
}

.product-spec-sheet--rigidos .rigidos-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 4px;
}

@media (min-width: 480px) {
    .product-spec-sheet--rigidos .rigidos-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-spec-sheet--rigidos .rigidos-trust-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-spec-sheet--rigidos .rigidos-trust-card-icon {
    display: flex;
    color: var(--accent);
}

.product-spec-sheet--rigidos .rigidos-trust-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.product-spec-sheet--rigidos .rigidos-trust-card-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.product-spec-sheet--rigidos .rigidos-trust-card-text a {
    color: var(--accent);
    text-underline-offset: 2px;
}

.product-spec-sheet--rigidos .rigidos-cap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 4px;
}

@media (min-width: 480px) {
    .product-spec-sheet--rigidos .rigidos-cap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-spec-sheet--rigidos .rigidos-cap-card {
    margin: 0;
    padding: 14px 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-spec-sheet--rigidos .rigidos-cap-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.product-spec-sheet--rigidos .rigidos-cap-card-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--accent);
}

.product-spec-sheet--rigidos .rigidos-cap-card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.product-spec-sheet--rigidos .rigidos-cap-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-spec-sheet--rigidos .rigidos-cap-card-title a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-spec-sheet--rigidos .rigidos-tech-tile-title a {
    color: inherit;
    text-decoration: none;
}

.product-spec-sheet--rigidos .rigidos-tech-tile-title a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-spec-sheet--rigidos .rigidos-tech-tile-desc a,
.product-spec-sheet--rigidos .rigidos-cap-card-desc a {
    color: var(--accent);
    text-underline-offset: 2px;
}

.product-spec-sheet--rigidos .rigidos-cap-card-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.product-spec-sheet--rigidos .rigidos-cap-card-desc strong {
    color: var(--text);
}

.product-spec-sheet--rigidos .sheet-value a {
    color: var(--accent);
    text-underline-offset: 2px;
}

.product-spec-sheet--rigidos .rigidos-motto {
    margin: 24px 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

/* Luxpanel — ficha visual (product-luxpanel.html) */
.product-spec-sheet--luxpanel .product-doc-h1 {
    margin-bottom: 14px;
}

.product-spec-sheet--luxpanel .luxpanel-kpi-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 18px;
}

@media (min-width: 400px) {
    .product-spec-sheet--luxpanel .luxpanel-kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-spec-sheet--luxpanel .luxpanel-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-spec-sheet--luxpanel .luxpanel-kpi-icon {
    display: flex;
    color: var(--accent);
    margin-bottom: 2px;
}

.product-spec-sheet--luxpanel .luxpanel-kpi-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.product-spec-sheet--luxpanel .luxpanel-kpi-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.product-spec-sheet--luxpanel .luxpanel-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px;
}

.product-spec-sheet--luxpanel .luxpanel-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--accent);
}

.product-spec-sheet--luxpanel .luxpanel-section-head .product-doc-h2 {
    margin: 0;
    padding-top: 0;
    border-top: none;
}

.product-spec-sheet--luxpanel .luxpanel-section-title {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.product-spec-sheet--luxpanel .luxpanel-tile-grid {
    display: grid;
    gap: 8px;
    margin: 0 0 6px;
}

.product-spec-sheet--luxpanel .luxpanel-tile-grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 420px) {
    .product-spec-sheet--luxpanel .luxpanel-tile-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-spec-sheet--luxpanel .luxpanel-tile-grid--4 {
    grid-template-columns: 1fr;
}

@media (min-width: 420px) {
    .product-spec-sheet--luxpanel .luxpanel-tile-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 560px) {
    .product-spec-sheet--luxpanel .luxpanel-tile-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-spec-sheet--luxpanel .luxpanel-tile {
    padding: 10px 12px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-spec-sheet--luxpanel .luxpanel-tile-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.product-spec-sheet--luxpanel .luxpanel-tile-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.product-spec-sheet--luxpanel .luxpanel-tile-text strong {
    color: var(--text);
}

.product-spec-sheet--luxpanel .product-schematic-full {
    margin-top: 8px;
}


.product-doc-intro {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
    line-height: 1.5;
}

.product-spec-sheet .sheet-profile-section {
    grid-column: unset;
}

.product-schematic-full {
    width: 75%;
    margin: 4px auto 0;
}

.product-finish-swatches {
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.product-finish-swatches + .product-finish-swatches {
    margin-top: 14px;
}

/* ===== PRODUCT GALLERY (3 items) ===== */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

/* Custom — página 100 % galería (product-custom.html) */
.page--custom-made .custom-made-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    text-align: justify;
    text-justify: inter-word;
}

.page--custom-made .custom-made-eyebrow {
    margin: 0;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: justify;
}

.page--custom-made .custom-made-title {
    margin: 0;
    font-size: clamp(1.25rem, 3.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.12;
    text-align: justify;
}

.page--custom-made .custom-made-line {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    text-align: justify;
}

.page--custom-made .custom-made-line--en {
    font-weight: 500;
}

.page--custom-made .custom-made-line--accent {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-align: justify;
}

.page--custom-made .custom-made-lead {
    margin: 22px 0 0;
    max-width: none;
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.page--custom-made .custom-made-capabilities-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 0 4px;
    border-top: 1px solid var(--border);
}

.page--custom-made .custom-made-lead-capabilities-label {
    margin: 0;
    padding: 0 2px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 180, 216, 0.25);
}

.page--custom-made .custom-made-lead-capabilities-label strong {
    color: #00b4d8;
    font-weight: 700;
    letter-spacing: 0.16em;
}

html[data-theme="light"] .page--custom-made .custom-made-lead-capabilities-label strong {
    color: #0096c7;
}

.page--custom-made .custom-made-lead-capabilities {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    align-items: stretch;
}

.page--custom-made .custom-made-lead-capabilities li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 20px 22px;
    min-height: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.page--custom-made .custom-made-lead-cap-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.32);
}

html[data-theme="light"] .page--custom-made .custom-made-lead-cap-icon {
    color: #0096c7;
    background: rgba(0, 150, 199, 0.08);
    border-color: rgba(0, 150, 199, 0.26);
}

.page--custom-made .custom-made-lead-cap-text {
    display: block;
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    text-align: justify;
    text-justify: inter-word;
}

.page--custom-made .custom-made-lead-cap-text strong {
    display: block;
    margin-bottom: 6px;
    color: #00b4d8;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

html[data-theme="light"] .page--custom-made .custom-made-lead-cap-text strong {
    color: #0096c7;
}

.page--custom-made .custom-made-lead a {
    color: var(--accent);
    text-underline-offset: 2px;
}

@media (max-width: 999px) {
    .page--custom-made .custom-made-lead-capabilities {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .page--custom-made .custom-made-lead-capabilities li {
        padding: 18px 16px;
    }

    .page--custom-made .custom-made-spotlight-grid--stacked {
        grid-template-columns: 1fr;
    }
}

/* Custom showreel: rejilla (hero + spots) y debajo el vídeo principal special custom */
.page--custom-made .custom-made-showreel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 18px;
}

.page--custom-made .custom-made-video-box {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0a0a0a;
    aspect-ratio: 16 / 9;
}

.page--custom-made .custom-made-feature-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page--custom-made .custom-made-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}

/* Fila superior: un bloque = ancho de las dos columnas (doble que cada spot); debajo, dos cajas 4/3 */
.page--custom-made .custom-made-spotlight-grid--stacked {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.page--custom-made .custom-made-spot--hero {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.page--custom-made .custom-made-spot {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
}

.page--custom-made .custom-made-spot img,
.page--custom-made .custom-made-spot-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page--custom-made .custom-made-spot-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 10px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

/* Etiqueta arriba en el hero vídeo para no tapar los controles nativos abajo */
.page--custom-made .custom-made-spot--hero .custom-made-spot-label {
    top: 0;
    bottom: auto;
    padding: 10px 10px 28px;
    background: linear-gradient(rgba(0, 0, 0, 0.72), transparent);
}

/* product-custom.html: producto Custom a ancho completo (sin panel izquierdo ni galería portfolio) */
body.page-layout-custom-solo .app:has(#page-product.active) {
    grid-template-columns: 1fr;
}

body.page-layout-custom-solo .app:has(#page-product.active) .panel-left {
    display: none !important;
}

body.page-layout-custom-solo .app:has(#page-product.active) .panel-right {
    max-height: none;
    min-height: calc(100vh - var(--gap) * 2);
}

body.page-layout-custom-solo:has(#page-product.active) {
    overflow-x: clip;
}

body.page-layout-custom-solo .app:has(#page-product.active) #page-product .footer-bar {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(var(--gap), env(safe-area-inset-left));
    padding-right: max(var(--gap), env(safe-area-inset-right));
    padding-top: 18px;
    padding-bottom: 18px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-item img,
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-video {
    text-align: right;
    background: #000;
    transform: none !important;
}

/* ON/OFF galería: vídeo + poster rellenan la celda 4/5 (recorte centrado, sin bandas) */
.gallery-item--video-fit {
    min-height: 0;
}

.product-gallery .gallery-item--video-fit > .gallery-video.onoff-gallery-video--fit-center {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
}

/* Portada (cover on off / poster 4K): mismo encaje que el vídeo sobre el área del <video> */
.onoff-gallery-video--4k-poster {
    image-rendering: auto;
    backface-visibility: hidden;
}

.onoff-gallery-video--center {
    object-position: center center;
}

.soft-loop-video {
    transition: opacity 0.45s ease;
}

.soft-loop-video.is-fading {
    opacity: 0.35;
}

.product-detail-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 24px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more-btn:hover {
    background: var(--read-more-hover-bg);
    border-color: var(--border-hover);
}

/* CTAs bajo «Otros Sistemas» (página producto) */
.product-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-bottom: 8px;
}

.product-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    flex: 1 1 170px;
    min-width: min(100%, 170px);
}

.product-cta-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.product-cta-btn--primary:hover {
    filter: brightness(1.08);
    border-color: var(--accent);
}

.product-cta-btn--secondary {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

.product-cta-btn--secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text);
}

/* Product Meta Row */
.product-meta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
}

.meta-cell {
    padding: 16px 20px;
    border-right: 1px solid var(--border);
}

.meta-cell:last-child {
    border-right: none;
}

.meta-cell-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-cell-value {
    font-size: 13px;
    font-weight: 500;
}

/* Migas encima de la galería de producto */
.product-gallery-intro {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-right: 4px;
}

.product-gallery-intro + .sheet-media-gallery {
    margin-top: 0;
}

.product-breadcrumb {
    margin-bottom: 0;
}

.product-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
}

.product-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
}

.product-breadcrumb-item:not(:last-child)::after {
    content: "/";
    color: var(--text-muted);
    font-weight: 400;
    user-select: none;
}

.product-breadcrumb-link {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.product-breadcrumb-link:hover {
    color: var(--accent);
    border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.product-breadcrumb-item[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

/* Galería 2 fotos + vídeo (bloque previo a la ficha técnica) */
.sheet-media-gallery {
    margin-top: 24px;
}

.sheet-media-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sheet-media-gallery-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sheet-download-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    text-decoration: none;
    line-height: 1;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.sheet-download-cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

.sheet-download-cta svg {
    flex-shrink: 0;
}

.sheet-media-gallery .product-gallery {
    margin-bottom: 0;
}

/* Galería 2 ítems (p. ej. rígidos): segunda celda más ancha, sin hueco de tercera columna */
.sheet-media-gallery--two-up .product-gallery {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 14px;
    align-items: stretch;
}

.sheet-media-gallery--two-up .gallery-item {
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

.sheet-media-gallery--two-up .gallery-item .gallery-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 999px) {
    .sheet-media-gallery--two-up .product-gallery {
        grid-template-columns: 1fr;
    }

    .sheet-media-gallery--two-up .gallery-item {
        min-height: 0;
    }
}

/* Galería 2 ítems mismo ancho (p. ej. sin luz: vídeo + imagen) */
.sheet-media-gallery--two-equal .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.sheet-media-gallery--two-equal .gallery-item {
    aspect-ratio: 16 / 9;
    min-height: 180px;
}

.sheet-media-gallery--two-equal .gallery-item .gallery-video,
.sheet-media-gallery--two-equal .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 999px) {
    .sheet-media-gallery--two-equal .product-gallery {
        grid-template-columns: 1fr;
    }

    .sheet-media-gallery--two-equal .gallery-item {
        min-height: 0;
    }
}

/* Vídeo y comparador antes/después (página producto) */
/* Solo vídeo: tarjeta = marco del vídeo, sin título ni relleno */
.technical-sheet.product-embed-section--video {
    padding: 0;
    overflow: hidden;
    width: 100%;
    align-self: stretch;
    flex-shrink: 0;
}

.product-embed-section--video .product-video-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
    width: 100%;
    background: #000;
    overflow: hidden;
}

/*
  Altura fiable: inner box fuerza 16∶9 incluso con flex + display:contents arriba.
  padding-bottom 56.25% = fallback si aspect-ratio falla; min-height evita 0px.
*/
.product-embed-section--video .product-video-aspect {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    flex-shrink: 0;
}

@supports not (aspect-ratio: 1) {
    .product-embed-section--video .product-video-aspect {
        height: 0;
        padding-bottom: 56.25%;
        min-height: 0;
    }
}

.product-embed-section--video .product-feature-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

/* Contenedor vídeo por defecto (otros usos) */
.product-video-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}

.product-feature-video {
    display: block;
    width: 100%;
    max-height: min(520px, 70vh);
    object-fit: cover;
}

.ba-section-header {
    margin-bottom: 12px;
}

.product-ba-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.ba-compare {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    --ba-pos: 50%;
    touch-action: none;
}

/* Comparador en formato vertical (p. ej. tótems): más alto y sin recorte fuerte */
.ba-compare.ba-compare--portrait {
    aspect-ratio: 3 / 4;
    max-height: min(78vh, 640px);
    width: 100%;
    max-width: min(100%, 420px);
    margin-inline: auto;
    background: var(--bg-deep, #0d0d0d);
}

.ba-compare.ba-compare--portrait .ba-layer {
    object-fit: contain;
}

/* Comparador cuadrado / retrato suave (p. ej. lightbox a pared — imagen frontal 1:1) */
.ba-compare.ba-compare--square {
    aspect-ratio: 1 / 1;
    max-height: min(88vh, 760px);
    width: 100%;
    max-width: min(100%, 440px);
    margin-inline: auto;
    background: var(--bg-deep, #0a0a0a);
}

.ba-compare.ba-compare--square .ba-layer {
    object-fit: contain;
}

.ba-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.ba-after {
    z-index: 0;
}

.ba-before {
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-divider {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--ba-pos);
    width: 3px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-knob {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px;
    border-radius: var(--radius-xs);
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
}

.ba-knob-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.ba-range {
    position: absolute;
    z-index: 4;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.ba-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: min(100vw, 120px);
    height: 100%;
}

.ba-range::-moz-range-thumb {
    width: 120px;
    height: 100%;
    border: none;
    background: transparent;
}

.ba-label {
    position: absolute;
    z-index: 3;
    bottom: 12px;
    padding: 5px 11px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-xs);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    pointer-events: none;
}

.ba-label-before {
    left: 12px;
}

.ba-label-after {
    right: 12px;
}

/* ===== E-COMMERCE TECHNICAL SHEET ===== */
.technical-sheet {
    margin-top: 24px;
    padding: 32px 28px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.sheet-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.sheet-header-small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.sheet-table {
    display: flex;
    flex-direction: column;
}

.sheet-row {
    display: flex;
    padding: 16px 0;
    border-top: 1px solid var(--sheet-row-border);
}

.sheet-table .sheet-row:last-child {
    border-bottom: 1px solid var(--sheet-row-border);
}

.sheet-label {
    flex: 0 0 35%;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.sheet-value {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.sheet-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--sheet-row-border);
}

.sheet-profile-section {
    grid-column: 1 / -1;
}

.sheet-profile-heading {
    margin-bottom: 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sheet-profile-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sheet-profile-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font: inherit;
    color: inherit;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.sheet-profile-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.sheet-profile-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sheet-profile-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--sheet-profile-active-ring);
    background: var(--sheet-profile-active-bg);
}

.sheet-profile-thumb {
    aspect-ratio: 4/3;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2cm;
    border-bottom: 1px solid var(--border);
}

.sheet-profile-thumb img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(1.35) contrast(1.05);
    opacity: 0.95;
}

[data-theme="light"] .sheet-profile-thumb img {
    filter: grayscale(1) invert(1) brightness(1.35) contrast(1.05);
}

.sheet-profile-card:hover .sheet-profile-thumb img,
.sheet-profile-card.active .sheet-profile-thumb img {
    opacity: 1;
}

.sheet-profile-meta {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sheet-profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.sheet-profile-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.finish-swatches {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.swatch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60px;
}

.swatch-color {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--swatch-border);
}

.swatch-name {
    font-size: 10px;
    color: var(--text-muted);
}

.swatch-color--white {
    box-shadow: inset 0 0 0 1px var(--swatch-border);
}

.swatch-color--dark {
    border: 1px solid var(--swatch-border);
}

.swatch-color--anodized {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.06) 18%, rgba(0, 0, 0, 0.18) 44%, rgba(255, 255, 255, 0.22) 58%, rgba(0, 0, 0, 0.24) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, rgba(0, 0, 0, 0.06) 1px, rgba(0, 0, 0, 0.06) 3px),
        linear-gradient(135deg, #646a70 0%, #b8bcc1 45%, #7f858d 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -2px 3px rgba(0, 0, 0, 0.28);
}

.swatch-color--ral {
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 24%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 52%),
        conic-gradient(from 220deg,
            #ff5a6f 0deg,
            #ff9f43 42deg,
            #ffd166 84deg,
            #5ed98a 132deg,
            #44d6ff 184deg,
            #5b8dff 236deg,
            #8b6bff 292deg,
            #ff66c4 340deg,
            #ff5a6f 360deg);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.22),
        0 0 10px rgba(98, 122, 255, 0.28);
}

.schematic-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--schematic-bg);
    border: 1px dashed var(--schematic-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
}

#schematic-main-image {
    width: calc(100% - 1.2cm);
    height: calc(100% - 1.2cm);
    margin: 0.6cm;
    object-fit: contain;
    object-position: center center;
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
}

[data-theme="light"] #schematic-main-image {
    filter: none;
}

/* ===== SUBCATEGORIES as pills ===== */
.subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 28px 24px;
}

.subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--subcat-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.subcat-pill:hover,
.subcat-pill.active {
    background: var(--accent-soft);
    border-color: var(--subcat-active-border);
    color: var(--accent);
}

.subcat-pill .pill-code {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== VISUAL VARIANT CARDS (Apple Style) ===== */
.variant-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.variant-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--variant-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.variant-card:hover {
    border-color: var(--variant-card-hover-border);
    background: var(--variant-card-hover-bg);
}

.variant-card.active {
    border-color: var(--accent);
    background: var(--variant-active-bg);
}

.variant-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: invert(1) brightness(1.2);
    opacity: 0.8;
    transition: var(--transition);
    border: 1px solid var(--variant-img-border);
    border-radius: 4px;
    background: var(--variant-img-bg);
    padding: 4px;
}

[data-theme="light"] .variant-img {
    filter: none;
    opacity: 1;
}

.variant-card:hover .variant-img,
.variant-card.active .variant-img {
    opacity: 1;
}

.variant-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.variant-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.variant-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.variant-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 6px;
    border-radius: 100px;
    font-weight: 600;
}

/* ===== SELECTED WORK LABEL ===== */
.selected-label {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.65);
    max-width: min(280px, 55vw);
    line-height: 1.35;
    text-align: right;
}

/* ===== FOOTER BAR (inside the right panel) ===== */
.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.footer-logo {
    height: 22px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.92;
}

.footer-bar a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-bar a:hover {
    color: var(--text-secondary);
}

#page-product .footer-bar a[href="#catalogue"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 180, 216, 0.35);
    background: rgba(0, 180, 216, 0.1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#page-product .footer-bar a[href="#catalogue"]:hover {
    color: #ffffff;
    border-color: var(--accent);
    background: rgba(0, 180, 216, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.animate-in {
    animation: fadeIn 0.5s ease-out both;
}

.animate-in:nth-child(1) {
    animation-delay: 0s;
}

.animate-in:nth-child(2) {
    animation-delay: 0.05s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.15s;
}

.animate-in:nth-child(5) {
    animation-delay: 0.2s;
}

.animate-in:nth-child(6) {
    animation-delay: 0.25s;
}

/* ===== RESPONSIVE — Tablet + móvil (≤999px): mismo layout que móvil; escritorio ≥1000px sin estos cambios ===== */
@media (max-width: 999px) {
    :root {
        --gap: 10px;
    }

    html {
        overflow-x: clip;
    }

    body {
        overflow-x: clip;
    }

    .app {
        grid-template-columns: 1fr;
        grid-template-rows: min(42vh, 320px) auto;
        min-height: 100dvh;
        padding: max(var(--gap), env(safe-area-inset-top, 0px))
            max(var(--gap), env(safe-area-inset-right, 0px))
            max(var(--gap), env(safe-area-inset-bottom, 0px))
            max(var(--gap), env(safe-area-inset-left, 0px));
        gap: var(--gap);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .panel-left {
        position: relative;
        top: 0;
        height: min(42vh, 320px);
        min-height: 200px;
        min-width: 0;
        max-width: 100%;
    }

    .panel-right {
        max-height: none;
        min-width: 0;
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible;
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .image-showcase {
        min-height: 0;
        min-width: 0;
        max-width: 100%;
    }

    @keyframes fadeInMobileDockNav {
        from {
            opacity: 0;
            transform: translate(-50%, 16px);
        }

        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    /* Floating glass nav — bottom center (glassmorphism, pill 100px radius) */
    #panel-right .page .top-nav {
        position: fixed;
        bottom: max(14px, calc(10px + env(safe-area-inset-bottom, 0px)));
        left: 50%;
        right: auto;
        top: auto;
        transform: translate(-50%, 0);
        z-index: 60;
        width: auto;
        max-width: min(560px, calc(100vw - 20px));
        min-height: 0;
        padding: 10px 16px 10px 14px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px 12px;
        row-gap: 6px;
        border-radius: 100px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(26, 26, 29, 0.62);
        background: color-mix(in srgb, var(--bg-card) 58%, transparent);
        backdrop-filter: blur(22px) saturate(160%);
        -webkit-backdrop-filter: blur(22px) saturate(160%);
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    #panel-right .page .top-nav.animate-in {
        animation: fadeInMobileDockNav 0.45s ease-out both;
    }

    [data-theme="light"] #panel-right .page .top-nav {
        border-color: rgba(15, 18, 28, 0.12);
        background: rgba(255, 255, 255, 0.78);
        background: color-mix(in srgb, #ffffff 72%, transparent);
        box-shadow:
            0 10px 36px rgba(15, 18, 28, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    #panel-right .page .top-nav .nav-brand:not(:has(img)) {
        display: none;
    }

    #panel-right .page .top-nav .nav-brand:has(img) {
        flex: 0 0 auto;
        min-width: 0;
    }

    /* Ficha producto: sin logo en la barra inferior (misma info que enlaces + tema) */
    #page-product .top-nav .nav-brand {
        display: none !important;
    }

    #panel-right .page .top-nav .nav-logo {
        height: 30px;
        width: auto;
        max-width: min(120px, 28vw);
        display: block;
    }

    #panel-right .page .top-nav .nav-links {
        flex: 0 1 auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 6px 12px;
        min-width: 0;
    }

    #panel-right .page .top-nav .nav-links a {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.01em;
        padding: 6px 10px;
        border-radius: 999px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    #panel-right .page .top-nav .nav-links a.active {
        background: var(--accent-soft);
        color: var(--accent);
    }

    #panel-right .page .top-nav .nav-theme-toggle {
        flex-shrink: 0;
        align-self: center;
        margin-left: 2px;
    }

    .catalogue-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 12px;
        padding: 14px 16px;
    }

    .catalogue-item-meta {
        order: 3;
        width: 100%;
        margin-right: 0;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .catalogue-item-name {
        order: 2;
        margin-left: 0;
        width: 100%;
        text-align: left;
        font-size: 13px;
    }

    .catalogue-item-type,
    .catalogue-item-ref {
        font-size: 12px;
    }

    .catalogue-item-ref {
        min-width: 50px;
    }

    .product-detail-header {
        padding: 28px 20px 20px;
    }

    .product-detail-header h2 {
        font-size: 22px;
    }

    .product-meta-row {
        grid-template-columns: 1fr;
    }

    .meta-cell {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .meta-cell:last-child {
        border-bottom: none;
    }

    .technical-sheet {
        padding: 24px 16px;
    }

    .sheet-header {
        margin-bottom: 16px;
    }

    .sheet-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }

    .sheet-value {
        text-align: left;
        max-width: 100%;
        color: var(--text);
    }

    .sheet-bottom-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sheet-profile-cards {
        grid-template-columns: 1fr;
    }

    .subcat-pills {
        padding: 0 16px 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
    }

    .subcat-pills::-webkit-scrollbar {
        display: none;
    }

    .subcat-pill {
        padding: 6px 14px;
        font-size: 11px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .filter-bar {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        padding: 6px 14px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .catalogue-section-header {
        padding: 16px 16px 6px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
    }

    .section-header-tags {
        display: block;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.45;
        font-weight: 500;
    }

    .mini-cards {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .product-gallery {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .sheet-media-gallery {
        min-width: 0;
        max-width: 100%;
    }

    #page-product {
        min-width: 0;
    }

    .profile-card {
        padding: 24px 16px;
    }

    .profile-name {
        font-size: 16px;
    }

    .showcase-brand {
        top: 12px;
        left: 12px;
        padding: 8px 10px;
    }

    .showcase-logo {
        height: 72px;
        max-width: 100px;
    }

    .footer-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-logo {
        height: 18px;
        max-width: 88px;
    }

    .view-project-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .carousel-btn {
        opacity: 0.92;
    }

    .image-showcase:hover .carousel-btn {
        opacity: 0.92;
    }

    .selected-label {
        font-size: 11px;
        max-width: min(220px, 72vw);
        bottom: 14px;
        right: 12px;
    }

    body.page-layout-custom-solo .app:has(#page-product.active) #page-product .footer-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .technical-sheet,
    .product-detail-header,
    .product-spec-sheet,
    .sheet-value,
    .sheet-label,
    .product-breadcrumb-list,
    .product-doc-h1,
    .product-doc-h2 {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .technical-sheet img,
    .product-spec-sheet img,
    .sheet-profile-thumb img {
        max-width: 100%;
        height: auto;
    }

    video.gallery-video {
        max-width: 100%;
    }

    .ba-range::-webkit-slider-thumb {
        width: 88px;
    }

    .sheet-media-gallery--two-up .product-gallery,
    .sheet-media-gallery--two-equal .product-gallery {
        grid-template-columns: 1fr;
    }

    .sheet-media-gallery--two-up .gallery-item,
    .sheet-media-gallery--two-equal .gallery-item {
        grid-column: auto;
    }

    .printit-log-dock {
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        max-width: none;
        width: auto;
        box-sizing: border-box;
    }

    .variant-cards {
        min-width: 0;
    }
}

/* ===== DIAGNOSTICS LOG (connection / errors) ===== */
.printit-log-dock {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: min(420px, calc(100vw - 32px));
    font-family: var(--font);
}

.printit-log-tab {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.printit-log-tab:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.printit-log-drawer {
    width: 100%;
    max-height: min(50vh, 360px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.printit-log-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.printit-log-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.printit-log-hint {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
}

.printit-log-hint code {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--bg-elevated);
}

.printit-log-output {
    margin: 0;
    padding: 10px 14px;
    flex: 1;
    overflow: auto;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--bg);
    white-space: pre-wrap;
    word-break: break-word;
}

.printit-log-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

.printit-log-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.printit-log-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.printit-log-btn-primary {
    border-color: var(--accent);
    color: var(--accent);
}

[data-theme="light"] .printit-log-drawer {
    box-shadow: 0 12px 40px rgba(15, 18, 28, 0.12);
}

/* Diagnostics dock hidden in the UI — delete this rule to show «Diagnóstico» again */
#printit-log-dock {
    display: none !important;
}

/* ===== TYPOGRAPHY ENFORCEMENT ===== */
body,
p,
li,
span,
label,
small,
input,
textarea,
button {
    font-family: var(--font) !important;
    font-weight: 500 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font) !important;
    font-weight: 700 !important;
}