/**
 * ProSilicones64 - Modulo Aplicaciones AISLADO
 * CSS Premium Enterprise - Nivel Samsung/Tesla
 * @version 3.0.0 Enterprise
 */

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER GLOBAL - Forzar fondo azul en este módulo (no transparente)
   Excepto cuando el megamenu está abierto (entonces pasa a blanco)
   ═══════════════════════════════════════════════════════════════════════════ */
.ps64-app-body .hp:not(.is-mega-open) {
    background: rgba(0, 34, 68, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

/* Reset solo para el contenido del módulo, NO para el header global */
.ps64-app-shell,
.ps64-app-shell *,
.ps64-app-shell *::before,
.ps64-app-shell *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ps64-app-shell { line-height: 1; }
.ps64-app-root { visibility: visible !important; }
.ps64-app-root.loaded { visibility: visible !important; }
.ps64-app-shell ol, .ps64-app-shell ul { list-style: none; }
.ps64-app-shell a { text-decoration: none; color: inherit; }
.ps64-app-shell button { background: none; cursor: pointer; }
.ps64-app-shell img { max-width: 100%; height: auto; display: block; }

.ps64-app-body {
    --ps64-navy: #002244;
    --ps64-navy-dark: #001a33;
    --ps64-navy-light: #003366;
    --ps64-teal: #3BAAFE;
    --ps64-teal-hover: #2B9AEE;
    --ps64-teal-light: #5BB8FF;
    --ps64-teal-subtle: rgba(59, 170, 254, 0.08);
    --ps64-teal-glow: rgba(59, 170, 254, 0.15);
    --ps64-bg: #f8fafc;
    --ps64-bg-alt: #f1f5f9;
    --ps64-surface: #ffffff;
    --ps64-border: #e2e8f0;
    --ps64-border-light: #f1f5f9;
    --ps64-text: #0f172a;
    --ps64-text-secondary: #475569;
    --ps64-text-muted: #64748b;
    --ps64-text-light: #94a3b8;
    --ps64-text-inverse: #ffffff;
    --ps64-font: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    --ps64-font-mono: SF Mono, Fira Code, Consolas, monospace;
    --ps64-text-xs: 0.75rem;
    --ps64-text-sm: 0.8125rem;
    --ps64-text-base: 0.9375rem;
    --ps64-text-lg: 1.0625rem;
    --ps64-text-xl: 1.25rem;
    --ps64-text-2xl: 1.5rem;
    --ps64-space-1: 0.25rem;
    --ps64-space-2: 0.5rem;
    --ps64-space-3: 0.75rem;
    --ps64-space-4: 1rem;
    --ps64-space-5: 1.25rem;
    --ps64-space-6: 1.5rem;
    --ps64-space-8: 2rem;
    --ps64-radius-sm: 6px;
    --ps64-radius-md: 8px;
    --ps64-radius-lg: 12px;
    --ps64-radius-full: 9999px;
    --ps64-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --ps64-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ps64-shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.08);
    --ps64-shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.06);
    --ps64-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ps64-duration-fast: 150ms;
    --ps64-duration-base: 200ms;
    --ps64-duration-slow: 300ms;
    --ps64-header-height: 56px;
    --ps64-sidebar-width: 300px;
    --ps64-listado-width: 400px;
    margin: 0;
    padding: 0;
    font-family: var(--ps64-font);
    font-size: var(--ps64-text-base);
    line-height: 1.6;
    color: var(--ps64-text);
    background: var(--ps64-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* El header del módulo ya no se usa - ahora usa el header global */
/* Se mantiene para compatibilidad pero está oculto */
.ps64-module-header {
    display: none !important;
}

/* Ajustar el contenido para el header global fixed (72px) */
.ps64-app-body {
    padding-top: 72px;
}

/* Ajustar sidebar para que no se solape con el header global */
.ps64-app-body .ps64-sidebar {
    top: 72px;
    height: calc(100vh - 72px);
}

.ps64-header-inner {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--ps64-space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ps64-logo-link {
    display: flex;
    align-items: center;
    transition: opacity var(--ps64-duration-fast) var(--ps64-ease);
}

.ps64-logo-link:hover { opacity: 0.85; }
.ps64-logo-img { height: 36px; width: auto; max-height: 36px; max-width: 180px; object-fit: contain; display: block; }

.ps64-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-2);
    font-size: var(--ps64-text-sm);
    color: var(--ps64-text-muted);
}

.ps64-breadcrumb a {
    color: var(--ps64-text-secondary);
    transition: color var(--ps64-duration-fast) var(--ps64-ease);
}

.ps64-breadcrumb a:hover { color: var(--ps64-teal); }
.ps64-bc-sep { color: var(--ps64-border); }
.ps64-bc-current { color: var(--ps64-text); font-weight: 600; }

.ps64-app-shell {
    display: grid;
    grid-template-columns: var(--ps64-sidebar-width) var(--ps64-listado-width) 1fr;
    /* Altura ajustada para header global (72px) */
    height: calc(100vh - 72px);
    overflow: hidden;
}

.ps64-sidebar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--ps64-navy) 0%, var(--ps64-navy-dark) 100%);
    color: var(--ps64-text-inverse);
    overflow: hidden;
    box-shadow: var(--ps64-shadow-lg);
}

.ps64-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ps64-space-6);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 72px;
}

.ps64-sidebar-title {
    font-size: var(--ps64-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
}

.ps64-sidebar-close {
    display: none;
    padding: var(--ps64-space-2);
    color: rgba(255,255,255,0.6);
    border-radius: var(--ps64-radius-sm);
    transition: all var(--ps64-duration-fast) var(--ps64-ease);
}

.ps64-sidebar-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.ps64-sidebar-search { padding: var(--ps64-space-5) var(--ps64-space-6) var(--ps64-space-4); }

.ps64-sidebar .ps64-search-input {
    width: 100%;
    padding: var(--ps64-space-3) var(--ps64-space-4);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--ps64-radius-md);
    color: #fff;
    font-size: var(--ps64-text-sm);
    transition: all var(--ps64-duration-base) var(--ps64-ease);
}

.ps64-sidebar .ps64-search-input::placeholder { color: rgba(255,255,255,0.5); }

.ps64-sidebar .ps64-search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.12);
    border-color: var(--ps64-teal);
    box-shadow: 0 0 0 3px rgba(5,134,157,0.25);
}

.ps64-sectores-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--ps64-space-2) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.ps64-sectores-nav::-webkit-scrollbar { width: 6px; }
.ps64-sectores-nav::-webkit-scrollbar-track { background: transparent; }
.ps64-sectores-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.ps64-sector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ps64-space-3) var(--ps64-space-6);
    color: rgba(255,255,255,0.85);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--ps64-duration-fast) var(--ps64-ease);
    cursor: pointer;
}

.ps64-sector-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding-left: calc(var(--ps64-space-6) + 4px);
}

.ps64-sector-item.active {
    background: rgba(5,134,157,0.25);
    border-left-color: var(--ps64-teal-light);
    color: #fff;
}

.ps64-sector-nombre { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ps64-sector-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 var(--ps64-space-2);
    background: rgba(255,255,255,0.15);
    border-radius: var(--ps64-radius-full);
    font-size: var(--ps64-text-xs);
    font-weight: 600;
    flex-shrink: 0;
    margin-left: var(--ps64-space-3);
}

.ps64-sector-item.active .ps64-sector-count { background: var(--ps64-teal); }

.ps64-listado {
    display: flex;
    flex-direction: column;
    background: var(--ps64-surface);
    border-right: 1px solid var(--ps64-border);
    overflow: hidden;
}

.ps64-listado-header {
    display: flex;
    flex-direction: column;
    gap: var(--ps64-space-4);
    padding: var(--ps64-space-6);
    border-bottom: 1px solid var(--ps64-border);
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
}

.ps64-listado-top { display: flex; align-items: center; gap: var(--ps64-space-3); }

.ps64-btn-menu {
    display: none;
    padding: var(--ps64-space-2);
    color: var(--ps64-text-muted);
    border-radius: var(--ps64-radius-sm);
    transition: all var(--ps64-duration-fast) var(--ps64-ease);
}

.ps64-btn-menu:hover { background: var(--ps64-bg); color: var(--ps64-text); }

.ps64-listado-title-wrap { display: flex; align-items: center; gap: var(--ps64-space-3); flex: 1; }

.ps64-listado-title {
    font-size: var(--ps64-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ps64-text-muted);
}

.ps64-listado-count {
    display: inline-flex;
    align-items: center;
    padding: var(--ps64-space-1) var(--ps64-space-3);
    background: var(--ps64-navy);
    color: #fff;
    font-size: var(--ps64-text-xs);
    font-weight: 600;
    border-radius: var(--ps64-radius-full);
}

.ps64-listado-search { display: flex; }

.ps64-listado .ps64-search-input {
    width: 100%;
    padding: var(--ps64-space-3) var(--ps64-space-4);
    background: var(--ps64-bg);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-md);
    font-size: var(--ps64-text-sm);
    color: var(--ps64-text);
    transition: all var(--ps64-duration-base) var(--ps64-ease);
}

.ps64-listado .ps64-search-input:focus {
    outline: none;
    border-color: var(--ps64-teal);
    background: var(--ps64-surface);
    box-shadow: 0 0 0 3px var(--ps64-teal-subtle);
}

.ps64-listado .ps64-search-input:disabled { opacity: 0.5; cursor: not-allowed; }

.ps64-listado-grid {
    flex: 1;
    overflow-y: auto;
    padding: var(--ps64-space-4);
    scrollbar-width: thin;
    scrollbar-color: var(--ps64-teal-subtle) transparent;
}

.ps64-listado-grid::-webkit-scrollbar { width: 6px; }
.ps64-listado-grid::-webkit-scrollbar-track { background: transparent; }
.ps64-listado-grid::-webkit-scrollbar-thumb { background: rgba(5,134,157,0.25); border-radius: 3px; }
.ps64-listado-grid::-webkit-scrollbar-thumb:hover { background: rgba(5,134,157,0.4); }

.ps64-app-card {
    display: flex;
    align-items: center;
    padding: var(--ps64-space-4) var(--ps64-space-5);
    margin-bottom: var(--ps64-space-2);
    background: var(--ps64-surface);
    border: 1px solid var(--ps64-border-light);
    border-radius: var(--ps64-radius-md);
    cursor: pointer;
    transition: all var(--ps64-duration-base) var(--ps64-ease);
    box-shadow: var(--ps64-shadow-xs);
    position: relative;
}

.ps64-app-card:hover {
    border-color: var(--ps64-teal);
    background: var(--ps64-bg);
    transform: translateX(2px);
    box-shadow: var(--ps64-shadow-sm);
}

.ps64-app-card.active {
    border-color: var(--ps64-teal);
    background: linear-gradient(90deg, var(--ps64-teal-subtle) 0%, var(--ps64-surface) 100%);
    box-shadow: var(--ps64-shadow-md), inset 0 0 0 1px rgba(59, 170, 254, 0.1);
}

.ps64-app-card.active .ps64-app-card-title {
    color: var(--ps64-navy);
}

.ps64-app-card-title {
    font-size: var(--ps64-text-base);
    font-weight: 500;
    color: var(--ps64-text);
    line-height: 1.5;
    margin: 0;
}

.ps64-listado-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    padding: var(--ps64-space-8);
    text-align: center;
    color: var(--ps64-text-light);
}

.ps64-listado-empty svg { margin-bottom: var(--ps64-space-4); opacity: 0.3; }
.ps64-listado-empty p { font-size: var(--ps64-text-base); font-weight: 500; color: var(--ps64-text-muted); }

.ps64-visor {
    display: flex;
    flex-direction: column;
    background: var(--ps64-bg);
    overflow: hidden;
    position: relative;
}

.ps64-visor-close {
    display: none;
    position: absolute;
    top: var(--ps64-space-4);
    right: var(--ps64-space-4);
    padding: var(--ps64-space-3);
    background: var(--ps64-surface);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-md);
    color: var(--ps64-text-muted);
    box-shadow: var(--ps64-shadow-md);
    z-index: 10;
    transition: all var(--ps64-duration-fast) var(--ps64-ease);
}

.ps64-visor-close:hover { background: var(--ps64-bg); color: var(--ps64-text); box-shadow: var(--ps64-shadow-lg); }

.ps64-visor-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--ps64-space-8);
    scrollbar-width: thin;
    scrollbar-color: rgba(5,134,157,0.25) transparent;
}

.ps64-visor-content::-webkit-scrollbar { width: 8px; }
.ps64-visor-content::-webkit-scrollbar-track { background: transparent; }
.ps64-visor-content::-webkit-scrollbar-thumb { background: rgba(5,134,157,0.25); border-radius: 4px; }
.ps64-visor-content::-webkit-scrollbar-thumb:hover { background: rgba(5,134,157,0.4); }

.ps64-visor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
    text-align: center;
    color: var(--ps64-text-light);
}

.ps64-visor-placeholder svg { margin-bottom: var(--ps64-space-6); opacity: 0.2; }
.ps64-visor-placeholder p { font-size: var(--ps64-text-lg); font-weight: 500; color: var(--ps64-text-muted); }

@keyframes ps64-fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════════════════
   FICHA 2025 - EDITORIAL PREMIUM DESIGN SYSTEM
   Inspirado en Samsung/Apple + Estilo Editorial ProSilicones64
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container principal */
.ficha-2025 {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--ps64-surface);
    border-radius: var(--ps64-radius-lg);
    overflow: hidden;
    box-shadow: var(--ps64-shadow-lg);
    animation: ps64-fadeIn 0.4s var(--ps64-ease);
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO HEADER - Se mantiene intacto
   ───────────────────────────────────────────────────────────────────────────── */
.ficha-hero {
    position: relative;
    padding: var(--ps64-space-8);
    background: linear-gradient(135deg, var(--ps64-navy) 0%, var(--ps64-navy-dark) 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--ps64-space-6);
}

.ficha-hero-content {
    flex: 1;
    min-width: 280px;
}

.ficha-badge {
    display: inline-block;
    padding: var(--ps64-space-1) var(--ps64-space-3);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--ps64-radius-full);
    font-size: var(--ps64-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--ps64-space-4);
}

.ficha-h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--ps64-space-4) 0;
}

.ficha-lead {
    font-size: var(--ps64-text-lg);
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.ficha-certs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ps64-space-2);
    margin-top: var(--ps64-space-5);
}

.ficha-cert {
    padding: var(--ps64-space-1) var(--ps64-space-3);
    background: rgba(59, 170, 254, 0.2);
    border: 1px solid rgba(59, 170, 254, 0.3);
    border-radius: var(--ps64-radius-sm);
    font-size: var(--ps64-text-xs);
    font-weight: 600;
}

.ficha-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ps64-space-3);
    align-items: flex-start;
}

.ficha-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ps64-space-2);
    padding: var(--ps64-space-3) var(--ps64-space-5);
    font-size: var(--ps64-text-sm);
    font-weight: 600;
    border-radius: var(--ps64-radius-md);
    transition: all var(--ps64-duration-base) var(--ps64-ease);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.ficha-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ficha-btn-glass {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}

.ficha-btn-glass:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.ficha-btn-primary {
    background: var(--ps64-teal);
    color: #fff;
    border: 1px solid var(--ps64-teal);
    box-shadow: 0 2px 8px rgba(59, 170, 254, 0.3);
}

.ficha-btn-primary:hover {
    background: var(--ps64-teal-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 170, 254, 0.4);
}

.ficha-hero-logo {
    position: absolute;
    bottom: var(--ps64-space-6);
    right: var(--ps64-space-6);
    height: 42px !important;
    width: auto !important;
    max-height: 42px !important;
    max-width: 180px !important;
    object-fit: contain !important;
    opacity: 0.9;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SISTEMA EDITORIAL - Asimetrías, Títulos Negros, Drama Visual
   ═══════════════════════════════════════════════════════════════════════════ */

/* Eyebrow - Mini título azul claro */
.ficha-eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ps64-teal);
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTEXTO - Layout Asimétrico Editorial Real
   ───────────────────────────────────────────────────────────────────────────── */
.ficha-contexto {
    padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
    position: relative;
}

.ficha-contexto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 4.5rem);
}

/* Card de contexto - Base */
.ficha-card {
    position: relative;
}

.ficha-card-challenge {
    padding: 0;
    background: transparent;
    border: none;
}

.ficha-card-header {
    margin-bottom: 0.75rem;
}

.ficha-card-icon {
    display: none;
}

.ficha-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ps64-teal);
}

/* H2/H3 Títulos NEGROS potentes */
.ficha-card-title {
    font-size: clamp(1.375rem, 3vw, 1.625rem);
    font-weight: 800;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Texto principal - MÁS PEQUEÑO */
.ficha-card-text {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #555;
    margin-top: 1.25rem;
}

.ficha-card-text p {
    margin: 0 0 1rem 0;
}

.ficha-card-text p:last-child {
    margin-bottom: 0;
}

.ficha-card-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Lista estilizada minimalista */
.ficha-card-text .ficha-lista {
    margin: 1.25rem 0 0 0;
    padding: 0;
    list-style: none;
}

.ficha-card-text .ficha-lista li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #555;
}

.ficha-card-text .ficha-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background: var(--ps64-teal);
    border-radius: 50%;
}

/* Card Solución - LIMPIA, sin border-left gordo */
.ficha-card-solution {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #f8f9fa;
    border: none;
    border-radius: 0;
    position: relative;
}

/* Línea decorativa arriba de la solución */
.ficha-card-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--ps64-teal);
}

.ficha-card-solution .ficha-card-label {
    color: var(--ps64-teal);
}

.ficha-card-solution .ficha-card-title {
    color: #0a0a0a;
}

.ficha-card-solution .ficha-card-text .ficha-lista li::before {
    background: var(--ps64-teal);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ESPECIFICACIONES - Editorial Magazine Style
   ───────────────────────────────────────────────────────────────────────────── */
.ficha-specs {
    padding: clamp(3.5rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
    position: relative;
}

/* Línea superior decorativa */
.ficha-specs::before {
    content: '';
    position: absolute;
    top: 0;
    left: clamp(1.5rem, 4vw, 2.5rem);
    right: clamp(1.5rem, 4vw, 2.5rem);
    height: 1px;
    background: #e0e0e0;
}

.ficha-section-header {
    margin-bottom: 2.5rem;
}

.ficha-section-header .ficha-eyebrow {
    margin-bottom: 0.5rem;
}

/* Títulos H2 NEGROS */
.ficha-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Grid de specs - 2 columnas */
.ficha-specs-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #0a0a0a;
}

.ficha-spec-group {
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    overflow: visible;
    padding: 1.75rem 0;
    display: flex;
    flex-direction: column;
}

/* Borde derecho en columna izquierda */
.ficha-spec-group:nth-child(odd) {
    padding-right: 2rem;
    border-right: 1px solid #e0e0e0;
}

.ficha-spec-group:nth-child(even) {
    padding-left: 2rem;
}

/* Últimas dos sin borde inferior */
.ficha-spec-group:nth-last-child(-n+2) {
    border-bottom: none;
}

.ficha-spec-group:hover {
    border-color: #e0e0e0;
    box-shadow: none;
    transform: none;
}

/* Número + Categoría */
.ficha-spec-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1.25rem 0;
    padding: 0;
    background: transparent;
    border-bottom: none;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.ficha-spec-category::before {
    content: counter(spec-counter, decimal-leading-zero);
    counter-increment: spec-counter;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ps64-teal);
    letter-spacing: 0;
}

.ficha-spec-category::after {
    display: none;
}

/* Inicializar counter */
.ficha-specs-dashboard {
    counter-reset: spec-counter;
}

.ficha-spec-items {
    padding: 0;
    flex: 1;
}

.ficha-spec-row {
    display: block;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0.5rem;
}

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

.ficha-spec-row:hover {
    background: transparent;
}

.ficha-spec-key {
    display: none;
}

.ficha-spec-val {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #555;
    text-align: left;
    font-family: var(--ps64-font);
    max-width: none;
    line-height: 1.55;
    position: relative;
    padding-left: 0;
}

.ficha-spec-val::before {
    display: none;
}

.ficha-spec-single {
    display: block;
}

.ficha-spec-single .ficha-spec-val {
    text-align: left;
    font-weight: 400;
    max-width: none;
    color: #555;
}

/* Responsive - 1 columna en móvil */
@media (max-width: 700px) {
    .ficha-specs-dashboard {
        grid-template-columns: 1fr;
    }

    .ficha-spec-group:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }

    .ficha-spec-group:nth-child(even) {
        padding-left: 0;
    }

    .ficha-spec-group:nth-last-child(-n+2) {
        border-bottom: 1px solid #e0e0e0;
    }

    .ficha-spec-group:last-child {
        border-bottom: none;
    }

    .ficha-section-header {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ficha-section-header::after {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SERIES RECOMENDADAS - Card Serie Aplicaciones (clases únicas, sin herencia)
   ───────────────────────────────────────────────────────────────────────────── */
.ficha-serie {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
}

.ficha-serie .ficha-section-header {
    margin-bottom: 1.25rem;
}

/* Lista de cards de serie */
.card_serie_aplicaciones_list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Card serie (details) */
.card_serie_aplicaciones {
    background: linear-gradient(135deg, var(--ps64-navy) 0%, var(--ps64-navy-dark) 100%);
    border-radius: 0;
    overflow: hidden;
}

/* Header clickeable (summary) */
.card_serie_aplicaciones_header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    color: #fff;
    transition: background 0.3s ease;
}

.card_serie_aplicaciones_header::-webkit-details-marker {
    display: none;
}

.card_serie_aplicaciones_header::marker {
    display: none;
    content: '';
}

.card_serie_aplicaciones:hover .card_serie_aplicaciones_header {
    background: rgba(255, 255, 255, 0.05);
}

.card_serie_aplicaciones_badge {
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--ps64-font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 0;
}

.card_serie_aplicaciones_body {
    flex: 1;
    min-width: 0;
}

.card_serie_aplicaciones_name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.125rem;
}

.card_serie_aplicaciones_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.card_serie_aplicaciones_arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s var(--ps64-ease), color 0.3s ease;
}

.card_serie_aplicaciones:hover .card_serie_aplicaciones_arrow {
    color: rgba(255, 255, 255, 0.8);
}

/* Rotación de flecha cuando está abierto */
.card_serie_aplicaciones[open] .card_serie_aplicaciones_arrow {
    transform: rotate(180deg);
    color: var(--ps64-teal);
}

/* Contenido expandible */
.card_serie_aplicaciones_content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   DATOS TECNICOS SERIE - Usando DIVs (sin table, inmune a estilos globales)
   ───────────────────────────────────────────────────────────────────────────── */
.datos_tecnicos_serie {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0;
}

.datos_tecnicos_serie_row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.datos_tecnicos_serie_row:last-child {
    border-bottom: none;
}

.datos_tecnicos_serie_label {
    width: 40%;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.15);
}

.datos_tecnicos_serie_value {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #fff;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRODUCTOS RECOMENDADOS - Dentro de Solución Material
   ───────────────────────────────────────────────────────────────────────────── */

/* Subtítulo dentro de ficha-serie */
.ficha-subtitulo {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
}

/* Card de producto - horizontal, MISMO ANCHO que series */
.ficha-producto-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fafafa;
    border: 1px solid rgba(0, 34, 68, 0.12);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.ficha-producto-card:hover {
    border-color: rgba(0, 34, 68, 0.2);
    box-shadow: 0 2px 8px rgba(0, 34, 68, 0.06);
}

/* Imagen del producto - ocupa todo el alto de la card */
.ficha-producto-img {
    width: 150px;
    min-width: 150px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.ficha-producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ficha-producto-card:hover .ficha-producto-img img {
    transform: scale(1.05);
}

/* Contenido del producto - a la derecha */
.ficha-producto-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
    flex: 1;
}

.ficha-producto-categoria {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ps64-teal, #3BAAFE);
}

.ficha-producto-nombre {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.ficha-producto-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0.25rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ficha-producto-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ps64-teal, #3BAAFE);
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.ficha-producto-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.ficha-producto-card:hover .ficha-producto-link {
    gap: 0.625rem;
}

.ficha-producto-card:hover .ficha-producto-link svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 500px) {
    .ficha-producto-card {
        flex-direction: column;
    }

    .ficha-producto-img {
        width: 100%;
        height: 160px;
    }

    .ficha-productos-block {
        padding: 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FAQ - Acordeón Minimal Limpio
   ───────────────────────────────────────────────────────────────────────────── */
.ficha-faq {
    padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
    position: relative;
}

.ficha-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: clamp(1.5rem, 4vw, 2.5rem);
    right: clamp(1.5rem, 4vw, 2.5rem);
    height: 1px;
    background: #e5e5e5;
}

.ficha-faq .ficha-section-header {
    margin-bottom: 2rem;
}

.ficha-faq .ficha-section-header .ficha-eyebrow {
    display: block;
}

.ficha-faq .ficha-section-title {
    margin: 0;
}

.ficha-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ficha-faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    transition: none;
    overflow: hidden;
}

.ficha-faq-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.ficha-faq-item:hover {
    border-color: #e5e5e5;
    box-shadow: none;
}

.ficha-faq-item[open] {
    background: #fafafa;
    border-color: #e5e5e5;
    box-shadow: none;
}

.ficha-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.ficha-faq-q::-webkit-details-marker {
    display: none;
}

.ficha-faq-item:hover .ficha-faq-q {
    color: var(--ps64-teal);
}

.ficha-faq-item[open] .ficha-faq-q {
    color: #0a0a0a;
    border-bottom: none;
    padding-bottom: 0.75rem;
}

.ficha-faq-q span {
    flex: 1;
}

.ficha-faq-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #888;
    transition: all 0.2s ease;
}

.ficha-faq-item:hover .ficha-faq-icon {
    color: var(--ps64-teal);
}

.ficha-faq-item[open] .ficha-faq-icon {
    transform: rotate(45deg);
    color: var(--ps64-teal);
}

.ficha-faq-a {
    padding: 0 0 1.25rem 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #555;
}

.ficha-faq-item[open] .ficha-faq-a {
    animation: faqFadeIn 0.2s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA SECTION - Navy Limpio y Directo
   ───────────────────────────────────────────────────────────────────────────── */
.ficha-cta-section {
    padding: clamp(3rem, 8vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, var(--ps64-navy) 0%, var(--ps64-navy-dark) 100%);
    position: relative;
}

.ficha-cta-section::before,
.ficha-cta-section::after {
    display: none;
}

.ficha-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.ficha-cta-section .ficha-eyebrow {
    color: var(--ps64-teal);
    margin-bottom: 0.75rem;
}

.ficha-cta-title {
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ficha-cta-text {
    max-width: 100%;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.ficha-cta-text p {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.5rem 0;
}

.ficha-cta-text p:last-child {
    margin-bottom: 0;
}

.ficha-cta-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.ficha-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--ps64-teal);
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--ps64-radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

.ficha-cta-btn:hover {
    background: #2B9AEE;
    transform: none;
    box-shadow: none;
}

.ficha-cta-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.ficha-cta-btn:hover svg {
    transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE - Adaptativo Limpio
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ficha-hero {
        padding: var(--ps64-space-6);
    }

    .ficha-hero-logo {
        position: static;
        margin-top: var(--ps64-space-4);
        height: 32px !important;
        max-height: 32px !important;
        opacity: 0.7;
    }

    .ficha-contexto-grid {
        gap: 2.5rem;
    }

    .ficha-card-solution {
        padding: 1.5rem;
    }

    .ficha-specs-dashboard {
        grid-template-columns: 1fr;
    }

    .card_serie_aplicaciones_header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .card_serie_aplicaciones_body {
        flex: 1 1 100%;
        order: 3;
    }

    .card_serie_aplicaciones_badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .card_serie_aplicaciones_content {
        padding: 0 1.25rem 1.25rem;
    }

    .datos_tecnicos_serie_label,
    .datos_tecnicos_serie_value {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .datos_tecnicos_serie_label {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .ficha-hero,
    .ficha-contexto,
    .ficha-specs,
    .ficha-serie,
    .ficha-faq,
    .ficha-cta-section {
        padding: 2rem 1.25rem;
    }

    .ficha-h1 {
        font-size: 1.25rem;
    }

    .ficha-card-title {
        font-size: 1.125rem;
    }

    .ficha-section-title {
        font-size: 1.125rem;
    }

    .ficha-card-solution {
        padding: 1.25rem;
    }

    .ficha-faq-q {
        font-size: 0.8125rem;
    }

    .ficha-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FICHA HERO - RESPONSIVE MÓVIL MEJORADO
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Hero respeta header fijo del sitio */
    .ficha-hero {
        padding: 1.5rem 1.25rem 1.75rem !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        min-height: auto !important;
    }

    /* Ocultar logo en móvil */
    .ficha-hero-logo {
        display: none !important;
    }

    /* Contenido hero ordenado */
    .ficha-hero-content {
        min-width: 100% !important;
        order: 1 !important;
    }

    /* Badge sector más pequeño */
    .ficha-badge {
        font-size: 10px !important;
        padding: 6px 12px !important;
        margin-bottom: 12px !important;
    }

    /* Título más grande y legible */
    .ficha-h1 {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
    }

    /* Descripción */
    .ficha-lead {
        font-size: 0.9375rem !important;
        line-height: 1.55 !important;
    }

    /* Certificaciones en línea */
    .ficha-certs {
        margin-top: 1rem !important;
        gap: 6px !important;
    }

    .ficha-cert {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }

    /* Botones de acción */
    .ficha-hero-actions {
        order: 2 !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .ficha-hero-actions .ficha-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 0.9375rem !important;
    }
}

/* Ajuste del visor en móvil para respetar header fijo del sitio (72px) */
@media (max-width: 768px) {
    .ps64-visor.open {
        top: 72px !important; /* Debajo del header fijo */
        height: calc(100vh - 72px) !important;
        height: calc(100dvh - 72px) !important;
    }

    .ps64-visor-content {
        padding: 0 !important;
    }

    /* Cruz de cerrar - estilo coherente con el proyecto */
    .ps64-visor-close {
        top: 16px !important;
        right: 16px !important;
        padding: 8px !important;
        background: var(--ps64-navy) !important;
        border: none !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        z-index: 20 !important;
        color: #fff !important;
    }

    .ps64-visor-close:hover {
        background: var(--ps64-navy-light) !important;
    }

    .ps64-visor-close svg {
        width: 20px !important;
        height: 20px !important;
        stroke: #fff !important;
    }

    /* Ficha container sin bordes en móvil */
    .ficha-2025 {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILIDADES GLOBALES
   ═══════════════════════════════════════════════════════════════════════════ */
.ps64-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--ps64-space-8); color: var(--ps64-text-muted); font-size: var(--ps64-text-sm); }
.ps64-loading::after { content: ""; width: 24px; height: 24px; margin-top: var(--ps64-space-3); border: 3px solid var(--ps64-border); border-top-color: var(--ps64-teal); border-radius: 50%; animation: ps64-spin 0.8s linear infinite; }
@keyframes ps64-spin { to { transform: rotate(360deg); } }

.ps64-overlay { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; z-index: 50; transition: all var(--ps64-duration-base) var(--ps64-ease); }
.ps64-overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 1600px) { .ps64-app-body { --ps64-sidebar-width: 280px; --ps64-listado-width: 380px; } }
@media (max-width: 1400px) { .ps64-app-body { --ps64-sidebar-width: 260px; --ps64-listado-width: 360px; } }
@media (max-width: 1200px) { .ps64-app-body { --ps64-sidebar-width: 240px; --ps64-listado-width: 340px; } }

@media (max-width: 1024px) {
    .ps64-app-shell { grid-template-columns: 1fr; }
    .ps64-sidebar { position: fixed; left: -100%; top: 72px; bottom: 0; width: 320px; z-index: 100; transition: left var(--ps64-duration-slow) var(--ps64-ease); height: auto; }
    .ps64-sidebar.open { left: 0; }
    .ps64-sidebar-close { display: flex; }
    .ps64-btn-menu { display: flex; }
    .ps64-listado { border-right: none; }
}

@media (max-width: 768px) {
    .ps64-app-body { --ps64-space-8: 1.5rem; }
    /* Visor móvil: top 72px para no solapar con header global */
    .ps64-visor { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 90; transform: translateX(100%); transition: transform var(--ps64-duration-slow) var(--ps64-ease); }
    .ps64-visor.open { transform: translateX(0); }
    .ps64-visor-close { display: block; }
    .ficha-contexto { padding: var(--ps64-space-6); }
    .ficha-header { flex-direction: column; gap: var(--ps64-space-4); align-items: flex-start; padding: var(--ps64-space-6); }
    .ficha-titulo h2 { font-size: var(--ps64-text-xl); }
    .ps64-breadcrumb { display: none; }
}

@media (max-width: 480px) {
    .ps64-app-body { --ps64-space-6: 1rem; --ps64-space-8: 1.25rem; }
    .ps64-visor-content { padding: var(--ps64-space-4); }
    .ficha-titulo, .ficha-specs, .ficha-serie, .ficha-faq, .ficha-conclusion { padding: var(--ps64-space-4); }
    .ficha-contexto { padding: var(--ps64-space-4); }
}

.ps64-app-body :focus-visible { outline: 3px solid var(--ps64-teal); outline-offset: 2px; border-radius: var(--ps64-radius-sm); }
.ps64-app-body ::selection { background: var(--ps64-teal-glow); color: var(--ps64-text); }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER ACTIONS 2025 - Botones Premium y Selector de Idioma Full-Width
   ═══════════════════════════════════════════════════════════════════════════ */
.ps64-header-actions {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-3);
}

.ps64-header-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ps64-space-2);
    padding: var(--ps64-space-2) var(--ps64-space-4);
    background: var(--ps64-navy);
    color: #ffffff !important;
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    border-radius: var(--ps64-radius-md);
    text-decoration: none;
    transition: all var(--ps64-duration-base) var(--ps64-ease);
    white-space: nowrap;
    border: 1px solid var(--ps64-navy);
}

.ps64-header-btn span {
    color: #ffffff !important;
}

.ps64-header-btn:hover {
    background: var(--ps64-navy-light);
    border-color: var(--ps64-navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 34, 68, 0.25);
    color: #ffffff !important;
}

.ps64-header-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SELECTOR DE IDIOMA 2025 - Barra Full-Width Premium
   ───────────────────────────────────────────────────────────────────────────── */
.ps64-lang-selector {
    position: relative;
}

.ps64-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ps64-space-2);
    padding: var(--ps64-space-2) var(--ps64-space-3);
    background: transparent;
    color: var(--ps64-text);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-md);
    cursor: pointer;
    transition: all var(--ps64-duration-base) var(--ps64-ease);
}

.ps64-lang-btn:hover {
    background: var(--ps64-bg);
    border-color: var(--ps64-navy);
}

.ps64-lang-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ps64-lang-arrow {
    width: 14px !important;
    height: 14px !important;
    transition: transform var(--ps64-duration-base) var(--ps64-ease);
}

.ps64-lang-selector.open .ps64-lang-arrow {
    transform: rotate(180deg);
}

.ps64-lang-current {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Barra de idiomas full-width */
.ps64-lang-bar {
    position: fixed;
    top: var(--ps64-header-height);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--ps64-navy) 0%, var(--ps64-navy-dark) 100%);
    height: 0;
    overflow: hidden;
    z-index: 99;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 34, 68, 0.15);
}

.ps64-lang-bar.open {
    height: 56px;
}

.ps64-lang-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 56px;
    padding: 0 var(--ps64-space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ps64-space-2);
}

.ps64-lang-option {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-2);
    padding: var(--ps64-space-2) var(--ps64-space-5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ps64-radius-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--ps64-duration-base) var(--ps64-ease);
    text-decoration: none;
}

.ps64-lang-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.ps64-lang-option.active {
    background: var(--ps64-teal);
    border-color: var(--ps64-teal);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(59, 170, 254, 0.35);
}

.ps64-lang-option.active:hover {
    background: var(--ps64-teal-hover);
    transform: translateY(-1px);
}

.ps64-lang-option-code {
    font-weight: 700;
    font-size: var(--ps64-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.ps64-lang-option.active .ps64-lang-option-code {
    opacity: 1;
}

.ps64-lang-option-name {
    font-weight: 500;
}

/* Overlay cuando el selector está abierto */
.ps64-lang-overlay {
    position: fixed;
    inset: 0;
    top: calc(var(--ps64-header-height) + 56px);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    z-index: 98;
    transition: all var(--ps64-duration-base) var(--ps64-ease);
}

.ps64-lang-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive para header actions */
@media (max-width: 900px) {
    .ps64-header-btn span {
        display: none;
    }

    .ps64-header-btn {
        padding: var(--ps64-space-2);
    }

    .ps64-header-actions {
        gap: var(--ps64-space-2);
    }

    .ps64-lang-bar-inner {
        gap: var(--ps64-space-1);
        padding: 0 var(--ps64-space-3);
    }

    .ps64-lang-option {
        padding: var(--ps64-space-2) var(--ps64-space-3);
    }

    .ps64-lang-option-name {
        display: none;
    }

    .ps64-lang-option-code {
        font-size: var(--ps64-text-sm);
    }
}

@media (max-width: 480px) {
    .ps64-header-actions {
        gap: var(--ps64-space-1);
    }

    .ps64-header-btn svg {
        width: 16px;
        height: 16px;
    }

    .ps64-lang-btn svg:first-child {
        width: 16px;
        height: 16px;
    }

    .ps64-lang-current {
        font-size: var(--ps64-text-xs);
    }

    .ps64-lang-bar.open {
        height: 50px;
    }

    .ps64-lang-bar-inner {
        height: 50px;
    }

    .ps64-lang-option {
        padding: var(--ps64-space-2);
        min-width: 44px;
        justify-content: center;
    }
}

@media print {
    .ps64-module-header, .ps64-sidebar, .ps64-listado, .ps64-visor-close, .btn-action, .btn-cta { display: none !important; }
    .ps64-app-shell { display: block; }
    .ps64-visor { position: static; transform: none; }
}
