/**
 * Estilos para CPT Productos Hikvision
 */

/* ===========================================
   GRID DE PRODUCTOS
   =========================================== */
.hik-productos-section {
    padding: 2rem 0;
}

.hik-productos-grid {
    display: grid;
    gap: 1.5rem;
}

.hik-productos-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hik-productos-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hik-productos-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .hik-productos-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hik-productos-cols-3,
    .hik-productos-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hik-productos-cols-2,
    .hik-productos-cols-3,
    .hik-productos-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   TARJETA DE PRODUCTO
   =========================================== */
.hik-producto-card {
    position: relative;
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hik-producto-card:hover {
    transform: translateY(-4px);
    border-color: var(--hik-primary, #E31937);
    box-shadow: 0 12px 40px rgba(227, 25, 55, 0.15);
}

/* Badge */
.hik-producto-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 2;
}

.hik-badge-nuevo {
    background: #10B981;
    color: #fff;
}

.hik-badge-popular {
    background: var(--hik-primary, #E31937);
    color: #fff;
}

.hik-badge-recomendado {
    background: #3B82F6;
    color: #fff;
}

.hik-badge-oferta {
    background: #F59E0B;
    color: #000;
}

.hik-badge-agotado {
    background: #6B7280;
    color: #fff;
}

.hik-badge-exclusivo {
    background: #8B5CF6;
    color: #fff;
}

.hik-badge-promocion {
    background: #EC4899;
    color: #fff;
}

/* Múltiples badges */
.hik-producto-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.hik-producto-badges .hik-producto-badge {
    position: static;
}

/* Imagen Link - Clickeable */
.hik-producto-imagen-link {
    display: block;
    text-decoration: none;
}

.hik-producto-imagen-link:hover .hik-producto-imagen {
    background: #ffffff;
}

/* Imagen */
.hik-producto-imagen {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hik-producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.hik-producto-placeholder {
    color: var(--text-tertiary, rgba(255, 255, 255, 0.3));
}

/* Info */
.hik-producto-info {
    padding: 1.25rem;
}

/* SKU como link */
.hik-producto-sku-link {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--hik-primary, #E31937);
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hik-producto-sku-link:hover {
    color: #ff4d6a;
    text-decoration: underline;
}

.hik-producto-sku {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--hik-primary, #E31937);
    margin-bottom: 0.5rem;
}

/* Nombre como link */
.hik-producto-nombre a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hik-producto-nombre a:hover {
    color: var(--hik-primary, #E31937);
}

/* Categoría del producto */
.hik-producto-categoria {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 0.5rem;
}

.hik-producto-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.hik-producto-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.hik-producto-features li {
    position: relative;
    padding-left: 1rem;
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.hik-producto-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--hik-primary, #E31937);
    border-radius: 50%;
}

.hik-producto-precio {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

/* Etiquetas/Tags del producto */
.hik-producto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hik-producto-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.hik-producto-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    background: transparent;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hik-producto-btn:hover {
    background: var(--hik-primary, #E31937);
    border-color: var(--hik-primary, #E31937);
    color: #fff;
}

/* Contenedor de botones */
.hik-producto-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Botón WhatsApp */
.hik-producto-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #25D366;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hik-producto-whatsapp:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-1px);
}

.hik-producto-whatsapp svg {
    flex-shrink: 0;
}

/* ===========================================
   PRODUCTO COMPACTO (para grids agrupados)
   =========================================== */
.hik-producto-compact .hik-producto-imagen {
    aspect-ratio: 4 / 3;
}

.hik-producto-compact .hik-producto-info {
    padding: 1rem;
}

.hik-producto-compact .hik-producto-nombre {
    font-size: 1.3rem;
}

.hik-producto-features-mini {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.hik-producto-features-mini li {
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    padding: 0.15rem 0;
}

.hik-producto-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--hik-primary, #E31937);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.hik-producto-link:hover {
    gap: 0.6rem;
}

/* ===========================================
   PRODUCTO HORIZONTAL
   =========================================== */
.hik-producto-horizontal {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    overflow: hidden;
}

.hik-producto-horizontal .hik-producto-imagen {
    aspect-ratio: auto;
    height: 100%;
    min-height: 250px;
}

.hik-producto-horizontal .hik-producto-contenido {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hik-producto-horizontal .hik-producto-nombre {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hik-producto-horizontal .hik-producto-desc {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 1rem;
}

.hik-producto-horizontal .hik-producto-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .hik-producto-horizontal {
        grid-template-columns: 1fr;
    }

    .hik-producto-horizontal .hik-producto-contenido {
        padding: 1.5rem;
    }
}

/* ===========================================
   PRODUCTOS AGRUPADOS
   =========================================== */
.hik-productos-agrupados {
    padding: 2rem 0;
}

.hik-productos-categoria {
    margin-bottom: 3rem;
}

.hik-categoria-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

/* ===========================================
   CATEGORÍAS GRID
   =========================================== */
.hik-categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.hik-categoria-item {
    padding: 1.5rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.hik-categoria-item:hover {
    border-color: var(--hik-primary, #E31937);
}

.hik-categoria-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem 0;
}

.hik-categoria-conteo {
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

/* ===========================================
   NO PRODUCTOS
   =========================================== */
.hik-no-productos {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border-radius: 8px;
}

/* ===========================================
   LIGHT MODE
   =========================================== */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-card {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-nombre {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-features li {
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-precio {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-btn {
    color: #1d1d1f;
    border-color: #d1d5db;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-imagen {
    background: #ffffff;
}

.hikvision-parking-page[data-color-mode="light"] .hik-categoria-title {
    color: #1d1d1f;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-categoria-item {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-categoria-nombre {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-no-productos {
    background: #f8f9fa;
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-horizontal {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-categoria,
.hikvision-parking-page[data-color-mode="light"] .hik-producto-tag {
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-precio {
    border-color: #e5e7eb;
}

/* Correcciones adicionales light mode */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.hikvision-parking-page[data-color-mode="light"] .hik-categoria-item:hover {
    border-color: var(--hik-primary, #E31937);
    background: #ffffff;
}

.hikvision-parking-page[data-color-mode="light"] .hik-product-image-link:hover {
    background: rgba(227, 25, 55, 0.03);
}

.hikvision-parking-page[data-color-mode="light"] .hik-categoria-conteo {
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-sku {
    color: var(--hik-primary, #E31937);
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-caracteristicas {
    color: #6b7280;
}

/* Badges light mode corrections */
.hikvision-parking-page[data-color-mode="light"] .hik-badge-nuevo {
    background: #10B981;
    color: #ffffff;
}

.hikvision-parking-page[data-color-mode="light"] .hik-badge-oferta {
    background: #F59E0B;
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-badge-agotado {
    background: #6B7280;
    color: #ffffff;
}

/* ===========================================
   CORRECCIONES DE CONTRASTE LIGHT MODE
   =========================================== */

/* Producto features mini */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-features-mini li {
    color: #6e6e73;
}

/* Producto descripción */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-desc {
    color: #6e6e73;
}

/* Producto horizontal desc */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-horizontal .hik-producto-desc {
    color: #6e6e73;
}

/* Tags de producto */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-tag {
    color: #6e6e73;
    background: rgba(0, 0, 0, 0.05);
}

/* Producto categoría texto */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-categoria {
    color: #6e6e73;
    background: rgba(0, 0, 0, 0.05);
}

/* Texto terciario/placeholder */
.hikvision-parking-page[data-color-mode="light"] .hik-producto-placeholder svg {
    color: rgba(0, 0, 0, 0.2);
}

/* Badges con fondo de color - siempre texto blanco */
.hikvision-parking-page[data-color-mode="light"] .hik-badge-popular,
.hikvision-parking-page[data-color-mode="light"] .hik-badge-recomendado,
.hikvision-parking-page[data-color-mode="light"] .hik-badge-exclusivo,
.hikvision-parking-page[data-color-mode="light"] .hik-badge-promocion {
    color: #ffffff;
}

/* No productos mensaje */
.hikvision-parking-page[data-color-mode="light"] .hik-no-productos p {
    color: #6e6e73;
}

/* ===========================================
   SINGLE PRODUCT V4 — NEW SECTIONS
   =========================================== */

/* Estado Venta Badge */
.hik-estado-venta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Fabricante link */
.hik-fabricante-link {
    margin-bottom: 1rem;
}

.hik-fabricante-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hik-fabricante-link a:hover {
    color: var(--hik-primary, #E31937);
}

/* Descripcion Hik section */
.hik-descripcion-hik {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    line-height: 1.7;
}

/* Features list (from pipe-separated) */
.hik-features-list {
    margin-bottom: 2.5rem;
}

.hik-features-list h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 1.25rem 0;
}

.hik-features-grid-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.hik-features-grid-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 0.95rem;
}

.hik-features-grid-list li svg {
    flex-shrink: 0;
    color: #10B981;
    margin-top: 2px;
}

.hik-features-grid-list li strong {
    color: var(--text-primary, #fff);
}

.hik-features-grid-list li small {
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 0.85rem;
}

/* Ficha tecnica */
.hik-ficha-tecnica {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
}

.hik-ficha-tecnica h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 1rem 0;
}

/* Collapsible spec groups */
.hik-spec-group-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(227, 25, 55, 0.1);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.hik-spec-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hik-spec-group.collapsed .hik-spec-toggle-icon {
    transform: rotate(-90deg);
}

.hik-spec-group.collapsed .hik-spec-table {
    display: none;
}

/* Envio tab */
.hik-envio-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hik-envio-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hik-envio-card:hover {
    border-color: var(--hik-primary, #E31937);
}

.hik-envio-icon {
    flex-shrink: 0;
    color: var(--hik-primary, #E31937);
    margin-top: 2px;
}

.hik-envio-card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 0.25rem 0;
}

.hik-envio-card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin: 0 0 0.25rem 0;
}

/* ===========================================
   FENIX LOGIN PAGE
   Uses --fenix-input-bg, --fenix-placeholder, --fenix-muted
   so light/dark works via a single variable block.
   =========================================== */

/* Scope variables for login (dark defaults) */
.hikvision-parking-page .fenix-login-wrapper,
.hikvision-parking-page .fenix-login-status {
    --fenix-input-bg: rgba(255, 255, 255, 0.05);
    --fenix-placeholder: rgba(255, 255, 255, 0.3);
    --fenix-muted: rgba(255, 255, 255, 0.5);
}

/* Light overrides — one block switches everything */
.hikvision-parking-page[data-color-mode="light"] .fenix-login-wrapper,
.hikvision-parking-page[data-color-mode="light"] .fenix-login-status {
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --fenix-input-bg: #f3f4f6;
    --fenix-placeholder: rgba(0, 0, 0, 0.35);
    --fenix-muted: rgba(0, 0, 0, 0.45);
}

/* Auto mode: same overrides when OS prefers light */
@media (prefers-color-scheme: light) {
    .hikvision-parking-page[data-color-mode="auto"] .fenix-login-wrapper,
    .hikvision-parking-page[data-color-mode="auto"] .fenix-login-status {
        --text-primary: #1d1d1f;
        --text-secondary: #6e6e73;
        --bg-card: #ffffff;
        --border-color: #e5e7eb;
        --fenix-input-bg: #f3f4f6;
        --fenix-placeholder: rgba(0, 0, 0, 0.35);
        --fenix-muted: rgba(0, 0, 0, 0.45);
    }
}

.fenix-login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    padding-top: 100px; /* clear fixed navbar */
}

.fenix-login-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.fenix-login-box {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 2.5rem 2rem;
    color: var(--text-primary, #fff);
}

.fenix-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.fenix-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.fenix-login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    margin: 0 0 2rem 0;
    text-align: center;
}

/* Section label for registration form (v7.2.0) */
.fenix-form-section-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,0.4);
    margin: 0 0 .75rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-color-mode="light"] .fenix-form-section-label { color: #9ca3af; border-color: rgba(0,0,0,0.06); }

/* Two-column field row */
.fenix-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 .75rem;
}
@media (max-width: 480px) {
    .fenix-field-row { grid-template-columns: 1fr; }
}

/* Select styling for registration form */
.fenix-field-group select {
    width: 100%;
    padding: .75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}
.fenix-field-group select:focus { border-color: #E31937; }
[data-color-mode="light"] .fenix-field-group select { background: #f5f5f5; border-color: rgba(0,0,0,0.1); color: #1d1d1f; }

.fenix-field-group {
    margin-bottom: 1.25rem;
}

.fenix-field-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.fenix-field-group label svg {
    color: var(--hik-primary, #E31937);
}

.fenix-field-group input[type="text"],
.fenix-field-group input[type="password"],
.fenix-field-group input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--fenix-input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.fenix-field-group input:focus {
    outline: none;
    border-color: var(--hik-primary, #E31937);
    box-shadow: 0 0 0 3px rgba(227, 25, 55, 0.15);
}

.fenix-field-group input::placeholder {
    color: var(--fenix-placeholder, rgba(255, 255, 255, 0.3));
}

.fenix-password-wrapper {
    position: relative;
}

.fenix-password-wrapper input {
    padding-right: 48px;
}

.fenix-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--fenix-muted, rgba(255, 255, 255, 0.5));
    cursor: pointer;
    padding: 4px;
}

.fenix-password-toggle:hover {
    color: var(--text-primary, #fff);
}

.fenix-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.fenix-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    cursor: pointer;
}

.fenix-checkbox-label input {
    accent-color: var(--hik-primary, #E31937);
}

.fenix-forgot-link {
    color: var(--hik-primary, #E31937);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.fenix-forgot-link:hover {
    opacity: 0.8;
}

.fenix-login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.fenix-btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--hik-primary, #E31937);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fenix-btn-login:hover {
    background: #C01530;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(227, 25, 55, 0.3);
}

.fenix-btn-login:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Login status (when logged in) */
.fenix-login-status {
    text-align: center;
    padding: 2rem;
}

.fenix-login-status p {
    font-size: 1.1rem;
    color: var(--text-primary, #fff);
    margin: 0 0 1.5rem 0;
}

.fenix-login-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fenix-btn-catalog {
    padding: 0.75rem 1.5rem;
    background: var(--hik-primary, #E31937);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fenix-btn-catalog:hover {
    background: #C01530;
}

.fenix-btn-logout {
    padding: 0.75rem 1.5rem;
    background: var(--fenix-input-bg, rgba(255, 255, 255, 0.05));
    color: var(--text-primary, #fff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fenix-btn-logout:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ===========================================
   NAVBAR — LOGIN / SEARCH ADDITIONS
   =========================================== */

.hada-search-item {
    display: flex;
    align-items: center;
}

.hada-search-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hada-search-toggle:hover {
    opacity: 1;
}

.hada-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hada-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hada-logout-link {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.hada-logout-link:hover {
    opacity: 1;
    color: #ef4444;
}

.hada-login-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hada-login-link:hover {
    opacity: 1;
}

/* Search Overlay */
.hada-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    backdrop-filter: blur(4px);
}

.hada-search-form {
    display: flex;
    width: 90%;
    max-width: 600px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hada-search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 1.1rem;
    outline: none;
}

.hada-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hada-search-submit {
    background: var(--hik-primary, #E31937);
    border: none;
    color: #fff;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hada-search-submit:hover {
    background: #C01530;
}

.hada-search-close {
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hada-search-close:hover {
    color: #fff;
}

/* Mobile drawer user */
.hada-drawer-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0;
    font-weight: 500;
}

/* ===========================================
   LIGHT MODE — NEW SECTIONS
   =========================================== */

.hikvision-parking-page[data-color-mode="light"] .hik-descripcion-hik {
    background: #f8f9fa;
    border-color: #e5e7eb;
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .hik-features-grid-list li {
    background: #f8f9fa;
    border-color: #e5e7eb;
    color: #374151;
}

.hikvision-parking-page[data-color-mode="light"] .hik-features-grid-list li strong {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-features-list h3 {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-ficha-tecnica {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-ficha-tecnica h3 {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-envio-card {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-envio-card-info h4 {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .hik-envio-card-info p {
    color: #6b7280;
}

/* Login light mode — safety net for elements with hardcoded rgba(255,...) */
.hikvision-parking-page[data-color-mode="light"] .fenix-login-box p {
    color: #374151;
}
.hikvision-parking-page[data-color-mode="light"] .fenix-login-box p a {
    color: #E31937;
}
@media (prefers-color-scheme: light) {
    .hikvision-parking-page[data-color-mode="auto"] .fenix-login-box p {
        color: #374151;
    }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-login-box p a {
        color: #E31937;
    }
}

.hikvision-parking-page[data-color-mode="light"] .hik-spec-group-header {
    background: rgba(227, 25, 55, 0.06);
}

/* ===========================================
   FENIX MI CUENTA PAGE
   =========================================== */

/* ===========================================
   PORTAL MI CUENTA — Full-width sidebar layout (v5.9.3)
   =========================================== */
.fenix-account-body {
    margin: 0;
    padding: 0;
}

.fenix-portal-wrap {
    display: flex;
    min-height: 100vh;
}

.fenix-portal-content {
    flex: 1;
    padding: 2rem 2.5rem;
    min-width: 0;
    overflow-x: hidden;
}

/* Sidebar */
.fenix-account-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-card, rgba(10, 10, 12, 0.98));
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.fenix-portal-content {
    margin-left: 260px;
}

/* Sidebar logo */
.fenix-sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.fenix-sidebar-logo a {
    display: block;
}

.fenix-sidebar-logo img {
    max-width: 140px;
    height: auto;
    display: block;
}

.fenix-account-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.fenix-account-user-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.fenix-account-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.fenix-account-user-info strong {
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nav */
.fenix-account-nav {
    padding: 0.5rem 0;
}

.fenix-account-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.fenix-account-nav-item:hover {
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.03);
}

.fenix-account-nav-item.active {
    color: var(--hik-primary, #E31937);
    border-left-color: var(--hik-primary, #E31937);
    background: rgba(227, 25, 55, 0.05);
}

.fenix-account-nav-item svg {
    flex-shrink: 0;
}

.fenix-account-nav-logout {
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.fenix-account-nav-logout:hover {
    color: #ef4444;
}

/* Content */
.fenix-account-content {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 2rem;
}

.fenix-account-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 1.5rem 0;
}

/* Dashboard cards */
.fenix-account-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fenix-account-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fenix-account-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
}

.fenix-account-card-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    word-break: break-all;
}

/* Notice */
.fenix-account-notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.fenix-account-notice-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Success message */
.fenix-login-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Pending badge */
.fenix-tier-pending {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
}

/* User link in navbar */
.hada-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.hada-user-link:hover {
    opacity: 0.8;
}

/* Sidebar close row (mobile only) */
.fenix-sidebar-close-row {
    display: none;
}

/* Sidebar toggle button (mobile only) */
.fenix-sidebar-toggle {
    display: none;
}

/* Sidebar overlay (mobile only) */
.fenix-sidebar-overlay {
    display: none;
}

/* Field row (2 columns) */
.fenix-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive — Mi Cuenta portal */
@media (max-width: 768px) {
    .fenix-portal-content {
        margin-left: 0;
        padding: 1.25rem;
        padding-top: 68px;
    }

    .fenix-account-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10000;
    }

    .fenix-account-sidebar.open {
        transform: translateX(0);
    }

    .fenix-sidebar-close-row {
        display: flex;
        justify-content: flex-end;
        padding: 0.75rem 1rem 0;
    }

    .fenix-sidebar-close {
        background: none;
        border: none;
        color: var(--text-secondary, rgba(255, 255, 255, 0.6));
        cursor: pointer;
        padding: 0.25rem;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .fenix-sidebar-close:hover {
        color: var(--text-primary, #fff);
        background: rgba(255, 255, 255, 0.05);
    }

    .fenix-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 9998;
        width: 44px;
        height: 44px;
        padding: 0;
        background: var(--bg-card, rgba(10, 10, 12, 0.95));
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
        border-radius: 10px;
        color: var(--text-primary, #fff);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .fenix-sidebar-toggle:hover {
        border-color: var(--hik-primary, #E31937);
    }

    .fenix-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }

    .fenix-sidebar-overlay.open {
        display: block;
    }

    .fenix-account-content {
        padding: 1.5rem;
    }

    .fenix-account-cards-grid {
        grid-template-columns: 1fr;
    }

    .fenix-field-row {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   LIGHT MODE — MI CUENTA
   =========================================== */

.hikvision-parking-page[data-color-mode="light"] .fenix-account-sidebar {
    background: #ffffff;
    border-color: #e5e7eb;
    border-right-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-sidebar-logo {
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-user-card {
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-user-info strong {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-nav-item {
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-nav-item:hover {
    color: #1d1d1f;
    background: #f3f4f6;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-nav-item.active {
    color: var(--hik-primary, #E31937);
    background: rgba(227, 25, 55, 0.04);
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-nav-logout {
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-sidebar-toggle {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-sidebar-close {
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-sidebar-close:hover {
    color: #1d1d1f;
    background: #f3f4f6;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-content {
    background: #ffffff;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-section-title {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-card {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-card-label {
    color: #6b7280;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-card-value {
    color: #1d1d1f;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-account-notice-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #d97706;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-login-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #059669;
}

.hikvision-parking-page[data-color-mode="light"] .fenix-tier-pending {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
}

/* ===========================================
   PRODUCT IMAGES — White background fix (v4.7.3)
   Images from R2/Hikvision have white JPEG backgrounds.
   Use white container + rounded corners for clean look.
   =========================================== */

/* Main product image container */
.hik-gallery-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hik-gallery-main img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Thumbnail strip */
.hik-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hik-thumb {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hik-thumb:hover {
    border-color: rgba(227, 25, 55, 0.4);
}

.hik-thumb.active {
    border-color: #E31937;
}

.hik-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Product cards in grid (archive, related, etc) */
.hik-producto-card-image,
.hik-product-card .hik-product-image {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hik-producto-card-image img,
.hik-product-card .hik-product-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Light mode — subtle border instead of white bg on white */
.hikvision-parking-page[data-color-mode="light"] .hik-gallery-main {
    border: 1px solid #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-thumb {
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-thumb.active {
    border-color: #E31937;
}

.hikvision-parking-page[data-color-mode="light"] .hik-producto-card-image,
.hikvision-parking-page[data-color-mode="light"] .hik-product-card .hik-product-image {
    border: 1px solid #e5e7eb;
}

/* =====================================================================
   PRODUCT DETAIL PAGE — Amazon 3-Col Layout (v4.10.1)
   Layout: Gallery | Info Blocks | Buy Box (sticky)
   Wrapper: .hikvision-parking-page.pdp-page (inherits theme dark/light)
   ===================================================================== */

/* PDP page-level overrides — force clean white bg by default */
.hikvision-parking-page.pdp-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px; /* clear fixed navbar */
}

.pdp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Breadcrumb ─── */
.pdp-breadcrumb {
    padding: 10px 0;
    border-bottom: 1px solid var(--hik-border, rgba(255,255,255,0.1));
}

.pdp-breadcrumb .pdp-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pdp-breadcrumb a {
    color: var(--hik-primary, #E31937);
    text-decoration: none;
    font-size: 13px;
}

.pdp-breadcrumb a:hover {
    text-decoration: underline;
}

.pdp-bc-sep {
    color: var(--hik-text-muted, rgba(255,255,255,0.4));
    margin: 0 6px;
    font-size: 13px;
}

/* ─── Main Section ─── */
.pdp-main {
    padding: 24px 0 32px;
}

/* ─── 3-Column Grid ─── */
.pdp-grid-3col {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.4fr) 300px;
    gap: 24px;
    align-items: start;
}

/* ─── Column 1: Gallery ─── */
.pdp-col-gallery {
    position: sticky;
    top: 90px;
}

.pdp-gallery-main {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.pdp-gallery-main img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    display: block;
}

.pdp-img-placeholder {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hik-text-muted);
}

.pdp-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.pdp-thumb {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid var(--hik-border, rgba(255,255,255,0.15));
    border-radius: 6px;
    padding: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.15s;
}

.pdp-thumb:hover {
    border-color: var(--hik-primary, #E31937);
}

.pdp-thumb.active {
    border-color: var(--hik-primary, #E31937);
    box-shadow: 0 0 0 1px var(--hik-primary, #E31937);
}

.pdp-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ─── Column 2: Product Info (cards) ─── */
.pdp-col-info {
    min-width: 0;
}

/* ─── Full-width content zone below 3-col grid ─── */
.pdp-content-full {
    margin-top: 32px;
    background: transparent;
    margin-left: -20px;
    margin-right: -20px;
    padding: 32px 20px;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-content-full {
    background: transparent;
}

.pdp-category-link {
    display: inline-block;
    color: var(--hik-primary, #E31937);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pdp-category-link:hover {
    text-decoration: underline;
}

.pdp-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hik-text, #fff);
    margin: 0 0 10px 0;
}

.pdp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pdp-model-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--hik-primary, #E31937);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.pdp-badge--nombre {
    display: inline-block;
    padding: 3px 10px;
    background: var(--hik-primary, #E31937);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.pdp-status-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pdp-tech-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--hik-bg-card, #111);
    color: var(--hik-text-muted, rgba(255,255,255,0.6));
    border: 1px solid var(--hik-border, rgba(255,255,255,0.15));
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pdp-short-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hik-text-muted, rgba(255,255,255,0.7));
    margin: 0 0 16px 0;
}

.pdp-divider {
    border: none;
    border-top: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    margin: 16px 0;
}

/* ── Info Cards ── */
.pdp-card {
    background: var(--hik-bg-card, #111);
    border: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.pdp-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hik-primary, #E31937);
}

/* ── Descripcion Detallada (standalone, no card box) ── */
.pdp-desc-detallada {
    margin-bottom: 24px;
    padding: 0;
}

.pdp-desc-detallada-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin: 0 0 16px 0;
}

.pdp-desc-detallada-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--hik-text-muted, rgba(255,255,255,0.8));
}

.pdp-desc-detallada-body p {
    margin: 0 0 14px 0;
}

.pdp-desc-detallada-body strong {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin-top: 10px;
    padding-bottom: 2px;
    background-image: linear-gradient(var(--hik-primary, #E31937), var(--hik-primary, #E31937));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.pdp-desc-detallada-body strong:hover {
    background-size: 100% 2px;
}

.pdp-card-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hik-text-muted, rgba(255,255,255,0.8));
}

.pdp-card-body p { margin: 0 0 10px 0; }

/* Feature list */
.pdp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdp-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--hik-text, #fff);
    border-bottom: 1px solid var(--hik-border, rgba(255,255,255,0.05));
}

.pdp-feature-list li:last-child { border-bottom: none; }

.pdp-feature-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Specs Section: tabbed layout with vertical nav ── */
.pdp-specs-section {
    margin-bottom: 24px;
}

.pdp-specs-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    text-align: center;
    margin: 0 0 20px 0;
}

/* Language tabs (ES / EN) */
.pdp-specs-lang-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

.pdp-specs-lang-tab {
    padding: 6px 18px;
    border: 1px solid var(--hik-border, rgba(255,255,255,0.15));
    border-radius: 20px;
    background: none;
    color: var(--hik-text-muted, rgba(255,255,255,0.6));
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdp-specs-lang-tab.active {
    background: var(--hik-primary, #E31937);
    border-color: var(--hik-primary, #E31937);
    color: #fff;
}

/* Tabbed container: hide inactive */
.pdp-specs-tabbed {
    display: none;
}

.pdp-specs-tabbed.active {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    background: var(--hik-bg-card, #111);
    border: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
}

/* Vertical nav (left sidebar) */
.pdp-specs-nav {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    padding: 8px 0;
    overflow-y: auto;
}

.pdp-specs-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    font-size: 14px;
    color: var(--hik-text-muted, rgba(255,255,255,0.6));
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pdp-specs-nav-item:hover {
    color: var(--hik-text, #fff);
    background: rgba(255,255,255,0.03);
}

.pdp-specs-nav-item.active {
    color: var(--hik-text, #fff);
    font-weight: 600;
    border-left-color: var(--hik-primary, #E31937);
}

/* Panels (right content) */
.pdp-specs-panels {
    padding: 20px;
    overflow-y: auto;
}

.pdp-specs-panel {
    display: none;
}

.pdp-specs-panel.active {
    display: block;
}

.pdp-specs-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin: 0 0 16px 0;
}

/* Legacy spec-group (keep for fallback) */
.pdp-spec-group {
    margin-bottom: 16px;
}

.pdp-spec-group:last-child { margin-bottom: 0; }

.pdp-spec-group-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin: 0 0 8px 0;
    padding-left: 10px;
    border-left: 3px solid var(--hik-primary, #E31937);
}

.pdp-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.pdp-spec-table th,
.pdp-spec-table td {
    padding: 7px 10px;
    font-size: 13px;
    text-align: left;
    vertical-align: top;
    border: none;
}

.pdp-spec-table th {
    font-weight: 600;
    color: var(--hik-text-muted, rgba(255,255,255,0.6));
    width: 35%;
}

.pdp-spec-table td {
    color: var(--hik-text, #fff);
}

.pdp-row-even {
    background: rgba(255,255,255,0.03);
}

/* Info table */
.pdp-info-table {
    width: 100%;
    border-collapse: collapse;
}

.pdp-info-table th,
.pdp-info-table td {
    padding: 9px 12px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid var(--hik-border, rgba(255,255,255,0.08));
}

.pdp-info-table th {
    font-weight: 600;
    color: var(--hik-text-muted, rgba(255,255,255,0.5));
    width: 35%;
}

.pdp-info-table td {
    color: var(--hik-text, #fff);
}

/* Documents */
.pdp-docs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    border-radius: 8px;
    text-decoration: none;
    color: var(--hik-text, #fff);
    transition: border-color 0.2s;
}

.pdp-doc-item:hover {
    border-color: var(--hik-primary, #E31937);
}

.pdp-doc-item.pdp-doc-main {
    border-color: var(--hik-primary, #E31937);
    background: rgba(227, 25, 55, 0.05);
}

.pdp-doc-item svg {
    flex-shrink: 0;
    color: var(--hik-primary, #E31937);
}

.pdp-doc-item strong {
    display: block;
    font-size: 14px;
}

.pdp-doc-item small {
    display: block;
    font-size: 12px;
    color: var(--hik-text-muted, rgba(255,255,255,0.5));
}

/* FAQ */
.pdp-faq-list { /* no special styling needed, inside card */ }

.pdp-faq-item {
    border-bottom: 1px solid var(--hik-border, rgba(255,255,255,0.08));
}

.pdp-faq-item:last-child { border-bottom: none; }

.pdp-faq-q {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: var(--hik-text, #fff);
}

.pdp-faq-q:hover { color: var(--hik-primary, #E31937); }

.pdp-faq-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--hik-primary, #E31937);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.pdp-faq-label-a {
    background: #10b981;
}

.pdp-faq-text {
    flex: 1;
    font-weight: 600;
}

.pdp-faq-arrow {
    flex-shrink: 0;
    margin-top: 3px;
    transition: transform 0.2s;
    color: var(--hik-text-muted);
}

.pdp-faq-item.active .pdp-faq-arrow {
    transform: rotate(180deg);
}

.pdp-faq-a {
    display: none;
    padding: 0 0 12px 30px;
}

.pdp-faq-a-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hik-text-muted, rgba(255,255,255,0.8));
    display: inline;
}

.pdp-faq-a-text p { display: inline; margin: 0; }

/* ─── Column 3: Buy Box ─── */
.pdp-col-buybox {
    position: sticky;
    top: 90px;
    align-self: start;
}

.pdp-buybox {
    background: var(--hik-bg-card, #111);
    border: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 20px;
}

.pdp-price-block { margin-bottom: 12px; }

.pdp-price-label {
    display: block;
    font-size: 12px;
    color: var(--hik-text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pdp-price-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    line-height: 1.2;
}

.pdp-price-iva {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--hik-text-muted, rgba(255,255,255,0.5));
    margin-top: 2px;
}

.pdp-price-gated {
    display: block;
    font-size: 13px;
    color: var(--hik-text-muted);
    margin-bottom: 6px;
}

.pdp-btn-login-price {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 20px;
    background: var(--hik-primary, #E31937);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, opacity 0.2s;
}

.pdp-btn-login-price:hover {
    background: #c0112c;
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.pdp-tier-badge {
    font-size: 13px;
    color: var(--hik-text-muted);
    margin-bottom: 10px;
}

.pdp-avail {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pdp-avail-en_stock { color: #10b981; }
.pdp-avail-bajo_pedido { color: #f59e0b; }
.pdp-avail-agotado { color: #ef4444; }
.pdp-avail-descontinuado { color: #6b7280; }

.pdp-meta-small {
    font-size: 13px;
    color: var(--hik-text-muted);
    margin-bottom: 4px;
}

.pdp-buybox-sep {
    border: none;
    border-top: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    margin: 14px 0;
}

/* CTA Buttons */
.pdp-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 8px;
}

.pdp-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-1px);
}

.pdp-btn-whatsapp svg { flex-shrink: 0; }

.pdp-btn-whatsapp.pdp-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    width: auto;
    display: inline-flex;
    border-radius: 10px;
}

.pdp-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: var(--hik-text, #fff);
    border: 1px solid var(--hik-border, rgba(255,255,255,0.2));
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 8px;
}

.pdp-btn-secondary:hover {
    border-color: var(--hik-primary, #E31937);
    background: rgba(227, 25, 55, 0.05);
    color: var(--hik-text, #fff);
}

.pdp-link-fab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hik-text-muted);
    font-size: 13px;
    text-decoration: none;
}

.pdp-link-fab:hover {
    color: var(--hik-primary, #E31937);
}

/* Trust list */
.pdp-trust-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--hik-text-muted);
}

.pdp-trust-item svg {
    flex-shrink: 0;
    color: var(--hik-primary, #E31937);
}

/* ─── Cross-sell Section ─── */
.pdp-crosssell-section {
    padding: 24px 0;
    border-top: 1px solid var(--hik-border, rgba(255,255,255,0.1));
}

.pdp-section-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin: 0 0 16px 0;
}

.pdp-crosssell-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.pdp-crosssell-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
    max-width: 180px;
    flex-shrink: 0;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.pdp-crosssell-card:hover {
    border-color: var(--hik-border, rgba(255,255,255,0.15));
    background: var(--hik-bg-card, #111);
}

.pdp-crosssell-img {
    width: 120px;
    height: 120px;
    background: #fff;
    border: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.pdp-crosssell-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdp-crosssell-name {
    font-size: 13px;
    color: var(--hik-primary, #E31937);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-crosssell-card:hover .pdp-crosssell-name {
    text-decoration: underline;
}

.pdp-crosssell-model {
    font-size: 11px;
    color: var(--hik-text-muted);
    margin-top: 2px;
}

.pdp-crosssell-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin-top: 4px;
}

/* ─── CTA Final ─── */
.pdp-cta-final {
    background: var(--hik-bg-card, #111);
    border-top: 1px solid var(--hik-border, rgba(255,255,255,0.1));
    padding: 48px 0;
}

.pdp-cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.pdp-cta-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--hik-text, #fff);
    margin: 0 0 10px 0;
}

.pdp-cta-box p {
    font-size: 15px;
    color: var(--hik-text-muted);
    margin: 0 0 24px 0;
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 1024px) {
    .pdp-grid-3col {
        grid-template-columns: 1fr 280px;
    }

    .pdp-col-gallery {
        grid-column: 1 / -1;
        position: static;
    }

    .pdp-gallery-main {
        max-width: 500px;
        margin: 0 auto;
    }

    .pdp-gallery-thumbs {
        justify-content: center;
    }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 768px) {
    .pdp-grid-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pdp-col-gallery { position: static; }
    .pdp-col-buybox { position: static; }

    .pdp-title { font-size: 18px; }
    .pdp-price-value { font-size: 24px; }

    .pdp-gallery-main { min-height: 250px; padding: 16px; }
    .pdp-gallery-main img { max-height: 300px; }

    .pdp-thumb { width: 50px; height: 50px; }
    .pdp-card { padding: 16px; }

    .pdp-specs-tabbed.active {
        grid-template-columns: 1fr;
    }

    .pdp-specs-nav {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--hik-border, rgba(255,255,255,0.1));
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }

    .pdp-specs-nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 14px;
        font-size: 13px;
    }

    .pdp-specs-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--hik-primary, #E31937);
    }
}

@media (max-width: 480px) {
    .pdp-container { padding: 0 14px; }

    .pdp-meta-row { gap: 6px; }

    .pdp-spec-table th,
    .pdp-spec-table td {
        display: block;
        width: 100%;
    }
    .pdp-spec-table th { padding-bottom: 2px; }
    .pdp-spec-table td { padding-top: 0; padding-bottom: 10px; }

    .pdp-info-table th,
    .pdp-info-table td {
        display: block;
        width: 100%;
    }
    .pdp-info-table th { padding-bottom: 0; border-bottom: none; }
    .pdp-info-table td { padding-top: 2px; }
}

/* ─── Light Mode overrides for PDP ─── */
.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-gallery-main {
    border-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-thumb {
    border-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-thumb.active {
    border-color: var(--hik-primary, #E31937);
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-card {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-card-title {
    color: #1d1d1f;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-desc-detallada-title {
    color: #1d1d1f;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-desc-detallada-body strong {
    color: #1d1d1f;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-heading,
.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-panel-title {
    color: #1d1d1f;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-tabbed.active {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-nav {
    border-right-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-nav-item {
    color: rgba(0,0,0,0.5);
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-nav-item:hover {
    color: #1d1d1f;
    background: rgba(0,0,0,0.03);
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-nav-item.active {
    color: #1d1d1f;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-lang-tab {
    border-color: #e5e7eb;
    color: rgba(0,0,0,0.5);
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-specs-lang-tab.active {
    color: #fff;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-buybox {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-crosssell-img {
    border-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-row-even {
    background: rgba(0,0,0,0.03);
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-doc-item {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-doc-item.pdp-doc-main {
    background: #fef9ee;
    border-color: var(--hik-primary);
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-status-badge {
    background: rgba(16, 185, 129, 0.1);
}

.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-tech-badge {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

/* ═══════════════════════════════════════════════════════════════
   HOT Badge, Promo Pricing, Substitute Link  (v4.22.0)
   ═══════════════════════════════════════════════════════════════ */

/* HOT Badge — PDP gallery (absolute) */
.pdp-hot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E31937;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 6px;
    z-index: 5;
    animation: pdp-hot-pulse 2s ease-in-out infinite;
}
@keyframes pdp-hot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(227,25,55,0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(227,25,55,0); }
}

/* HOT Badge — Catalog cards */
.hik-badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #E31937;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 3;
}

/* Condición especial badge — Catalog cards (Outlet / Caja Abierta) */
.hik-badge-condicion {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 3;
    text-transform: uppercase;
}

/* Condición especial price row — Catalog cards */
.hik-condicion-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
}
.hik-condicion-label {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    white-space: nowrap;
}
.hik-condicion-price {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
}

/* Sidebar special filter dot — condicion */
.hik-special-dot--condicion {
    background: #f59e0b;
}

/* Price original (strikethrough) — PDP */
.pdp-price-original {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.85em;
    margin-right: 6px;
}

/* Price original — Catalog cards */
.hik-price-original {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.8em;
    margin-right: 4px;
}

/* Discounted price — PDP */
.pdp-price-discounted {
    color: #10b981;
    font-weight: 700;
}

/* Discount badge — PDP */
.pdp-discount-badge {
    display: inline-block;
    background: #10b981;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Discount badge — Catalog cards */
.hik-price-discount-badge {
    display: inline-block;
    background: #10b981;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
}

/* Discount expiry text — PDP */
.pdp-discount-expires {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* Substitute product link — PDP buybox */
.pdp-substitute-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #E31937;
    margin-top: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.pdp-substitute-link:hover {
    opacity: 0.8;
}
.pdp-substitute-link svg {
    flex-shrink: 0;
}

/* ═══ Light mode overrides ═══ */
.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-price-original,
.hikvision-parking-page[data-color-mode="light"] .hik-price-original {
    color: #9ca3af;
}
.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-discount-expires {
    color: #9ca3af;
}
.hikvision-parking-page.pdp-page[data-color-mode="light"] .pdp-substitute-link {
    color: #E31937;
}

/* ===========================================
   FAVORITES GRID — Mi Cuenta (v5.9.0)
   =========================================== */
.fenix-fav-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.fenix-fav-card{position:relative;background:rgba(255,255,255,.03);border:1px solid var(--border-color,rgba(255,255,255,.08));border-radius:12px;overflow:hidden;transition:all .3s ease}
.fenix-fav-card:hover{border-color:rgba(227,25,55,.3);box-shadow:0 4px 16px rgba(0,0,0,.2)}
.fenix-fav-card-link{display:block;text-decoration:none;color:inherit}
.fenix-fav-card-image{width:100%;aspect-ratio:1/1;background:#ffffff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.fenix-fav-card-image img{width:100%;height:100%;object-fit:contain;padding:12px;transition:transform .3s ease}
.fenix-fav-card:hover .fenix-fav-card-image img{transform:scale(1.05)}
.fenix-fav-card-placeholder{color:var(--text-secondary,rgba(255,255,255,.3))}
.fenix-fav-card-info{padding:.75rem 1rem;display:flex;flex-direction:column;gap:.25rem}
.fenix-fav-card-title{font-size:.85rem;font-weight:600;color:var(--text-primary,#fff);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fenix-fav-card-nombre{font-size:.75rem;color:var(--text-secondary,rgba(255,255,255,.5));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fenix-fav-card-price{font-size:.8rem;font-weight:700;color:#10b981;margin-top:.25rem}
.fenix-fav-card-remove{position:absolute;top:8px;right:8px;width:28px;height:28px;background:rgba(0,0,0,.6);border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;z-index:2}
.fenix-fav-card-remove:hover{background:#ef4444}
.fenix-fav-empty{grid-column:1/-1;text-align:center;padding:3rem 1rem;color:var(--text-secondary,rgba(255,255,255,.5))}
.fenix-fav-empty svg{margin-bottom:1rem;opacity:.4}
.fenix-fav-empty h3{font-size:1.1rem;color:var(--text-primary,#fff);margin:0 0 .5rem 0}
.fenix-fav-empty p{font-size:.9rem;margin:0 0 1.5rem 0}
.fenix-fav-loading{grid-column:1/-1;text-align:center;padding:2rem;color:var(--text-secondary,rgba(255,255,255,.5));font-size:.9rem}
.fenix-fav-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}
.fenix-fav-header .fenix-account-section-title{display:flex;align-items:center;gap:.5rem;margin:0}
.fenix-fav-count-label{font-size:1rem;font-weight:400;color:var(--text-secondary,rgba(255,255,255,.5))}

/* ===========================================
   DASHBOARD REDESIGN (v5.9.0)
   =========================================== */
.fenix-dash-welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border-color,rgba(255,255,255,.08))}
.fenix-dash-greeting{font-size:1.5rem;font-weight:700;color:var(--text-primary,#fff);margin:0 0 .25rem 0}
.fenix-dash-subtitle{font-size:.9rem;color:var(--text-secondary,rgba(255,255,255,.5));margin:0}
.fenix-dash-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}
.fenix-dash-action-card{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1.5rem 1rem;background:rgba(255,255,255,.03);border:1px solid var(--border-color,rgba(255,255,255,.08));border-radius:12px;text-decoration:none;transition:all .3s ease;text-align:center}
.fenix-dash-action-card:hover{border-color:var(--hik-primary,#E31937);background:rgba(227,25,55,.05);transform:translateY(-2px);box-shadow:0 4px 16px rgba(227,25,55,.1)}
.fenix-dash-action-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.fenix-dash-action-icon--catalog{background:rgba(59,130,246,.15);color:#3b82f6}
.fenix-dash-action-icon--compare{background:rgba(198,89,12,.15);color:#c6590c}
.fenix-dash-action-icon--favorites{background:rgba(227,25,55,.15);color:#E31937}
.fenix-dash-action-label{font-size:.95rem;font-weight:600;color:var(--text-primary,#fff)}
.fenix-dash-action-desc{font-size:.8rem;color:var(--text-secondary,rgba(255,255,255,.5))}
.fenix-dash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}
.fenix-dash-stat{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:1.25rem;background:rgba(255,255,255,.02);border:1px solid var(--border-color,rgba(255,255,255,.06));border-radius:10px}
.fenix-dash-stat-number{font-size:1.5rem;font-weight:800;color:var(--hik-primary,#E31937)}
.fenix-dash-stat-label{font-size:.75rem;font-weight:500;color:var(--text-secondary,rgba(255,255,255,.5));text-transform:uppercase;letter-spacing:.5px;text-align:center}
.fenix-dash-section-heading{font-size:1rem;font-weight:600;color:var(--text-primary,#fff);margin:0 0 1rem 0;padding-top:.5rem}

/* ===========================================
   LIGHT MODE — FAVORITES + DASHBOARD (v5.9.0)
   =========================================== */
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-card{background:#f8f9fa;border-color:#e5e7eb}
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-card:hover{border-color:rgba(227,25,55,.3);box-shadow:0 4px 16px rgba(0,0,0,.08)}
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-card-title{color:#1d1d1f}
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-card-nombre{color:#6b7280}
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-card-remove{background:rgba(0,0,0,.1);color:#6b7280}
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-card-remove:hover{background:#ef4444;color:#fff}
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-empty{color:#6b7280}
.hikvision-parking-page[data-color-mode="light"] .fenix-fav-empty h3{color:#1d1d1f}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-greeting{color:#1d1d1f}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-subtitle{color:#6b7280}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-action-card{background:#f8f9fa;border-color:#e5e7eb}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-action-card:hover{background:rgba(227,25,55,.03)}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-action-label{color:#1d1d1f}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-action-desc{color:#6b7280}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-stat{background:#f8f9fa;border-color:#e5e7eb}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-stat-label{color:#6b7280}
.hikvision-parking-page[data-color-mode="light"] .fenix-dash-section-heading{color:#1d1d1f}

/* Responsive — Favorites + Dashboard (v5.9.0) */
@media(max-width:768px){
    .fenix-dash-actions{grid-template-columns:1fr}
    .fenix-dash-stats{grid-template-columns:1fr}
    .fenix-dash-welcome{flex-direction:column;align-items:flex-start;gap:.75rem}
    .fenix-fav-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
    .fenix-fav-grid{grid-template-columns:1fr}
}

/* ===========================================
   INLINE ACTION BUTTONS — List view only (v5.9.3)
   =========================================== */
.hik-product-actions-inline {
    display: none;
}

.hik-favorite-btn-inline,
.hik-compare-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: none;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hik-favorite-btn-inline svg,
.hik-compare-btn-inline svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hik-favorite-btn-inline:hover {
    color: #E31937;
    border-color: rgba(227, 25, 55, 0.3);
    background: rgba(227, 25, 55, 0.05);
}

.hik-favorite-btn-inline.active {
    color: #E31937;
    border-color: rgba(227, 25, 55, 0.3);
    background: rgba(227, 25, 55, 0.1);
}

.hik-favorite-btn-inline.active svg {
    fill: #E31937;
}

.hik-compare-btn-inline:hover {
    color: #c6590c;
    border-color: rgba(198, 89, 12, 0.3);
    background: rgba(198, 89, 12, 0.05);
}

.hik-compare-btn-inline.active {
    color: #c6590c;
    border-color: rgba(198, 89, 12, 0.3);
    background: rgba(198, 89, 12, 0.1);
}

.hikvision-parking-page[data-color-mode="light"] .hik-favorite-btn-inline,
.hikvision-parking-page[data-color-mode="light"] .hik-compare-btn-inline {
    color: #6b7280;
    border-color: #e5e7eb;
}

.hikvision-parking-page[data-color-mode="light"] .hik-favorite-btn-inline:hover {
    color: #E31937;
    background: rgba(227, 25, 55, 0.04);
}

.hikvision-parking-page[data-color-mode="light"] .hik-compare-btn-inline:hover {
    color: #c6590c;
    background: rgba(198, 89, 12, 0.04);
}

/* =========================================
   Phone Field with Country Selector (v5.9.4)
   ========================================= */

.fenix-phone-field {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
    position: relative;
}
.fenix-phone-field:focus-within {
    border-color: var(--hik-primary, #E31937);
    box-shadow: 0 0 0 3px rgba(227, 25, 55, 0.15);
}
.fenix-phone-country-select { position: relative; }
.fenix-phone-country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.875rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary, #fff);
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    border-radius: 8px 0 0 8px;
}
.fenix-phone-country-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.fenix-phone-flag { font-size: 1.25rem; line-height: 1; }
.fenix-phone-code { font-weight: 600; font-size: 0.9rem; }
.fenix-phone-field input[type="tel"] {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary, #fff);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    min-width: 0;
    outline: none;
}
.fenix-phone-field input[type="tel"]::placeholder {
    color: var(--fenix-placeholder, rgba(255, 255, 255, 0.3));
}
.fenix-phone-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 220px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-top: 4px;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    list-style: none;
}
.fenix-phone-country-dropdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    transition: background 0.15s;
}
.fenix-phone-country-dropdown li:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #fff);
}
.fenix-phone-li-flag { font-size: 1.15rem; }
.fenix-phone-code-label { margin-left: auto; font-weight: 600; opacity: 0.6; }

/* Phone field: Light mode + Auto mode */
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-field { background: #fff; border-color: rgba(0, 0, 0, 0.15); }
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-country-btn { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.15); color: #1a1a2e; }
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-country-btn:hover { background: rgba(0, 0, 0, 0.06); }
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-field input[type="tel"] { color: #1a1a2e; }
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-field input[type="tel"]::placeholder { color: rgba(0, 0, 0, 0.3); }
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-country-dropdown { background: #fff; border-color: rgba(0, 0, 0, 0.15); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-country-dropdown li { color: rgba(0, 0, 0, 0.6); }
.hikvision-parking-page[data-color-mode="light"] .fenix-phone-country-dropdown li:hover { background: rgba(0, 0, 0, 0.05); color: #1a1a2e; }
@media (prefers-color-scheme: light) {
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-field { background: #fff; border-color: rgba(0, 0, 0, 0.15); }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-country-btn { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.15); color: #1a1a2e; }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-country-btn:hover { background: rgba(0, 0, 0, 0.06); }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-field input[type="tel"] { color: #1a1a2e; }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-field input[type="tel"]::placeholder { color: rgba(0, 0, 0, 0.3); }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-country-dropdown { background: #fff; border-color: rgba(0, 0, 0, 0.15); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-country-dropdown li { color: rgba(0, 0, 0, 0.6); }
    .hikvision-parking-page[data-color-mode="auto"] .fenix-phone-country-dropdown li:hover { background: rgba(0, 0, 0, 0.05); color: #1a1a2e; }
}

/* =========================================
   Multiple Addresses — Accordion Cards (v5.9.4)
   ========================================= */

.fenix-address-count { font-weight: 400; font-size: 0.85rem; opacity: 0.6; margin-left: 0.5rem; }
.fenix-address-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.fenix-address-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.fenix-address-card-header {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    cursor: pointer;
    gap: 0.5rem;
    user-select: none;
}
.fenix-address-title-text { font-weight: 600; font-size: 0.95rem; flex: 1; }
.fenix-address-badge-principal {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 4px;
}
.fenix-address-header-actions { display: flex; align-items: center; gap: 0.25rem; }
.fenix-addr-action {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
}
.fenix-addr-action:hover { color: var(--hik-primary, #E31937); background: rgba(227, 25, 55, 0.1); }
.fenix-addr-delete:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.fenix-addr-chevron { transition: transform 0.2s; opacity: 0.5; }
.fenix-address-card-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fenix-address-card-body .fenix-field-group { margin-bottom: 0.75rem; }
.fenix-address-card-body label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}
.fenix-address-card-body input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}
.fenix-address-card-body input:focus {
    border-color: var(--hik-primary, #E31937);
    box-shadow: 0 0 0 2px rgba(227, 25, 55, 0.1);
}
.fenix-address-card-body input::placeholder { color: rgba(255, 255, 255, 0.25); }
.fenix-btn-add-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}
.fenix-btn-add-address:hover {
    border-color: var(--hik-primary, #E31937);
    color: var(--hik-primary, #E31937);
    background: rgba(227, 25, 55, 0.05);
}

/* Addresses: Light mode */
[data-color-mode="light"] .fenix-address-card { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.1); }
[data-color-mode="light"] .fenix-address-card:hover { border-color: rgba(0, 0, 0, 0.2); }
[data-color-mode="light"] .fenix-addr-action { color: rgba(0, 0, 0, 0.3); }
[data-color-mode="light"] .fenix-address-card-body { border-color: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .fenix-address-card-body input { background: #fff; border-color: rgba(0, 0, 0, 0.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-address-card-body input::placeholder { color: rgba(0, 0, 0, 0.25); }
[data-color-mode="light"] .fenix-btn-add-address { border-color: rgba(0, 0, 0, 0.15); color: rgba(0, 0, 0, 0.4); }

/* =========================================
   Wishlist Tabs & List Management (v5.9.4)
   ========================================= */

.fenix-fav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.fenix-btn-new-list {
    padding: 0.5rem 1rem;
    background: rgba(227, 25, 55, 0.1);
    border: 1px solid rgba(227, 25, 55, 0.2);
    border-radius: 8px;
    color: #E31937;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.fenix-btn-new-list:hover {
    background: rgba(227, 25, 55, 0.2);
    border-color: rgba(227, 25, 55, 0.4);
}
.fenix-new-list-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}
.fenix-new-list-form input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    outline: none;
}
.fenix-new-list-form input:focus { border-color: var(--hik-primary, #E31937); }
.fenix-new-list-form button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fenix-new-list-form button:first-of-type { background: #E31937; color: #fff; }
.fenix-new-list-form button:last-of-type { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.fenix-wishlist-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}
.fenix-wishlist-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.fenix-wishlist-tab:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary, #fff); }
.fenix-wishlist-tab.active {
    background: rgba(227, 25, 55, 0.15);
    border-color: rgba(227, 25, 55, 0.3);
    color: #E31937;
    font-weight: 600;
}
.fenix-wishlist-tab-count { opacity: 0.6; font-size: 0.75em; margin-left: 0.2rem; }
.fenix-wishlist-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.fenix-wishlist-action-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.fenix-wishlist-action-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary, #fff); }
.fenix-wishlist-action-delete:hover { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.1); }

/* Move button on fav cards */
.fenix-fav-card-move {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 3;
}
.fenix-fav-card:hover .fenix-fav-card-move { opacity: 1; }
.fenix-fav-card-move:hover { background: var(--hik-primary, #E31937); }
.fenix-fav-move-dropdown {
    position: absolute;
    top: 2.5rem;
    left: 0.5rem;
    z-index: 100;
    min-width: 180px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 0.25rem 0;
}
.fenix-fav-move-title {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fenix-fav-move-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.fenix-fav-move-option:hover { background: rgba(255, 255, 255, 0.08); }

/* Wishlists: Light mode */
[data-color-mode="light"] .fenix-new-list-form input { background: #fff; border-color: rgba(0, 0, 0, 0.15); color: #1a1a2e; }
[data-color-mode="light"] .fenix-new-list-form button:last-of-type { background: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-wishlist-tab { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-wishlist-tab:hover { background: rgba(0, 0, 0, 0.06); color: #1a1a2e; }
[data-color-mode="light"] .fenix-wishlist-tab.active { background: rgba(227, 25, 55, 0.08); border-color: rgba(227, 25, 55, 0.2); }
[data-color-mode="light"] .fenix-wishlist-action-btn { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-fav-move-dropdown { background: #fff; border-color: rgba(0, 0, 0, 0.12); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
[data-color-mode="light"] .fenix-fav-move-option { color: #1a1a2e; }
[data-color-mode="light"] .fenix-fav-move-option:hover { background: rgba(0, 0, 0, 0.04); }

/* =========================================
   CART SYSTEM (v6.0.0)
   ========================================= */

/* --- Cart row with qty selector on catalog cards --- */
.hik-cart-row {
    display: flex;
    gap: .4rem;
    margin-top: .6rem;
    align-items: stretch;
}
.hik-cart-row-inline {
    display: inline-flex;
    gap: .35rem;
    align-items: stretch;
}
/* Hide grid cart row in list view */
.hik-view-list .hik-cart-row { display: none; }

/* Mini qty selector (shared by grid + list) */
.hik-cart-qty-mini {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}
.hik-cart-qty-mini-btn {
    width: 28px;
    height: 100%;
    min-height: 32px;
    border: none;
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    padding: 0;
    line-height: 1;
}
.hik-cart-qty-mini-btn:hover { background: rgba(255, 255, 255, 0.1); }
.hik-cart-qty-mini-input {
    width: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: .8rem;
    font-weight: 600;
    -moz-appearance: textfield;
    padding: 0;
}
.hik-cart-qty-mini-input::-webkit-outer-spin-button,
.hik-cart-qty-mini-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Cart button on product cards (grid) --- */
.hik-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex: 1;
    padding: .5rem .75rem;
    background: rgba(26, 115, 232, 0.12);
    border: 1px solid rgba(26, 115, 232, 0.25);
    border-radius: 6px;
    color: #4da3ff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}
.hik-cart-btn:hover { background: rgba(26, 115, 232, 0.22); border-color: rgba(26, 115, 232, 0.4); }
.hik-cart-btn.in-cart { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.hik-cart-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Cart button on list view (inline) --- */
.hik-cart-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .7rem;
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 6px;
    color: #4da3ff;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.hik-cart-btn-inline:hover { background: rgba(26, 115, 232, 0.2); border-color: rgba(26, 115, 232, 0.35); }
.hik-cart-btn-inline.in-cart { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); color: #34d399; }
.hik-cart-btn-inline svg { width: 14px; height: 14px; }

/* --- PDP: Qty selector + Add to Cart --- */
.pdp-cart-row {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
    align-items: stretch;
}
.pdp-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}
.pdp-qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.pdp-qty-btn:hover { background: rgba(255, 255, 255, 0.1); }
.pdp-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: .95rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: rgba(26, 115, 232, 0.12);
    border: 1px solid rgba(26, 115, 232, 0.25);
    border-radius: 8px;
    color: #4da3ff;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}
.pdp-btn-add-to-cart:hover { background: rgba(26, 115, 232, 0.22); border-color: rgba(26, 115, 232, 0.4); }
.pdp-btn-add-to-cart.in-cart { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.pdp-btn-add-to-cart svg { width: 20px; height: 20px; }

/* --- Navbar: Cart + Notification icons --- */
.hada-nav-icon-item { display: flex; align-items: center; }
.hada-nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary, #fff);
    text-decoration: none;
    transition: background .2s;
}
.hada-nav-icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.hada-nav-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.hada-nav-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #e53935;
    border-radius: 50%;
}
.hada-drawer-icon-link {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hada-drawer-icon-link .hada-nav-badge {
    position: static;
    display: inline-flex;
    margin-left: .25rem;
}
.hada-drawer-icon-link .hada-nav-dot {
    position: static;
    display: inline-block;
    margin-left: .25rem;
}

/* --- Theme Toggle (SVG sun/moon switch) --- */
.hada-switch {
    position: relative;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}
.hada-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.hada-switch__track {
    position: relative;
    display: block;
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1a1a3e 0%, #2d2b55 100%);
    cursor: pointer;
    transition: background 0.6s ease;
    overflow: hidden;
}
/* Subtle stars on dark track */
.hada-switch__track::before {
    content: "";
    position: absolute;
    top: 5px; right: 8px;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    box-shadow:
        6px 4px 0 0 rgba(255,255,255,0.3),
        3px 12px 0 0 rgba(255,255,255,0.2),
        12px 8px 0 -0.5px rgba(255,255,255,0.4);
    transition: opacity 0.6s ease;
    opacity: 1;
}
.hada-switch__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFD93D;
    box-shadow: 0 0 8px rgba(255, 217, 61, 0.5), 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.6s ease,
        box-shadow 0.6s ease;
}
/* SVG icons inside knob */
.hada-switch__svg-sun,
.hada-switch__svg-moon {
    position: absolute;
    width: 14px;
    height: 14px;
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.hada-switch__svg-sun {
    color: #b8860b;
    opacity: 1;
    transform: rotate(0deg);
}
.hada-switch__svg-moon {
    color: #4a5568;
    opacity: 0;
    transform: rotate(-90deg);
}
.hada-switch__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ===== Checked = dark mode (moon) ===== */
.hada-switch__input:checked ~ .hada-switch__track {
    background: linear-gradient(135deg, #0a0a1f 0%, #151538 100%);
}
.hada-switch__input:checked ~ .hada-switch__track .hada-switch__knob {
    transform: translateX(22px);
    background: #e8eaf0;
    box-shadow: 0 0 10px rgba(200, 210, 240, 0.4), 0 1px 3px rgba(0,0,0,0.3);
}
.hada-switch__input:checked ~ .hada-switch__track .hada-switch__svg-sun {
    opacity: 0;
    transform: rotate(90deg);
}
.hada-switch__input:checked ~ .hada-switch__track .hada-switch__svg-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Light mode: warm sky track when showing sun */
html[data-color-mode="light"] .hada-switch__track {
    background: linear-gradient(135deg, #4a4c4e 0%, #e3e3e3 100%);
}
html[data-color-mode="light"] .hada-switch__track::before { opacity: 0; }
html[data-color-mode="light"] .hada-switch__input:checked ~ .hada-switch__track {
    background: linear-gradient(135deg, #0a0a1f 0%, #151538 100%);
}
html[data-color-mode="light"] .hada-switch__input:checked ~ .hada-switch__track::before { opacity: 1; }

/* Focus ring for accessibility */
.hada-switch__input:focus-visible ~ .hada-switch__track {
    outline: 2px solid #E31937;
    outline-offset: 2px;
}

/* Mobile drawer theme item */
.hada-drawer-theme-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .25rem 0;
}
.hada-theme-label {
    font-size: .9rem;
    color: inherit;
}

/* Global transition for color mode switch */
.hikvision-parking-page,
.hikvision-parking-page *,
.hada-bar,
.hada-drawer-panel {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* Light mode navbar */
html[data-color-mode="light"] .hada-bar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html[data-color-mode="light"] .hada-links a { color: #1d1d1f; }
html[data-color-mode="light"] .hada-links a:hover { color: #E31937; }
html[data-color-mode="light"] .hada-nav-icon-btn { color: #1d1d1f; }
html[data-color-mode="light"] .hada-nav-icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
html[data-color-mode="light"] .hada-user-name { color: #1d1d1f; }
html[data-color-mode="light"] .hada-logout-link { color: #6b7280; }
html[data-color-mode="light"] .hada-logout-link:hover { color: #E31937; }
html[data-color-mode="light"] .hada-login-link { color: #1d1d1f; }
html[data-color-mode="light"] .hada-burger span { background: #1d1d1f; }
html[data-color-mode="light"] .hada-drawer-panel { background: #fff; color: #1d1d1f; }
html[data-color-mode="light"] .hada-drawer-menu a { color: #1d1d1f; }
html[data-color-mode="light"] .hada-theme-label { color: #1d1d1f; }
html[data-color-mode="light"] .hada-search-overlay { background: rgba(255, 255, 255, 0.95); }
html[data-color-mode="light"] .hada-search-input { background: #f5f5f5; color: #1d1d1f; border-color: rgba(0, 0, 0, 0.1); }

/* --- Quote Modal (post-cotización v7.1.0) --- */
.fenix-qm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.fenix-qm-show { opacity: 1; }
.fenix-qm-modal {
    position: relative;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    transform: scale(0.92);
    transition: transform .35s cubic-bezier(0.34,1.56,0.64,1);
}
.fenix-qm-show .fenix-qm-modal { transform: scale(1); }
.fenix-qm-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: .25rem;
    transition: color .2s;
}
.fenix-qm-close:hover { color: #fff; }

/* Header */
.fenix-qm-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.fenix-qm-icon {
    width: 48px;
    height: 48px;
    color: #E31937;
    margin-bottom: .5rem;
}
.fenix-qm-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .25rem;
}
.fenix-qm-subtitle {
    font-size: .8rem;
    color: rgba(255,255,255,0.5);
    margin: .5rem 0 0;
}
.fenix-qm-number {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    color: #E31937;
    background: rgba(227,25,55,0.1);
    padding: .2rem .7rem;
    border-radius: 6px;
}

/* Top WhatsApp CTA */
.fenix-qm-modal > .fenix-qm-btn--wa {
    margin-bottom: 1.25rem;
}

/* Items list */
.fenix-qm-items { margin-bottom: 1.25rem; }
.fenix-qm-items h4 {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .5rem;
}
.fenix-qm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fenix-qm-item-title {
    font-size: .82rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: .5rem;
}
.fenix-qm-item-qty {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

/* Related products */
.fenix-qm-related { margin-bottom: 1.5rem; }
.fenix-qm-related-title {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .75rem;
}
.fenix-qm-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
}
.fenix-qm-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.fenix-qm-card:hover {
    border-color: rgba(227,25,55,0.3);
    transform: translateY(-2px);
}
.fenix-qm-card-img {
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fenix-qm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fenix-qm-card-noimg { color: rgba(255,255,255,0.15); }
.fenix-qm-card-body { padding: .5rem; }
.fenix-qm-card-name {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fenix-qm-card-price {
    display: block;
    font-size: .7rem;
    color: #E31937;
    font-weight: 600;
    margin-top: .15rem;
}
.fenix-qm-card-price small {
    font-weight: 400;
    color: rgba(255,255,255,0.4);
}

/* Loading */
.fenix-qm-loading {
    text-align: center;
    padding: 1rem;
    font-size: .8rem;
    color: rgba(255,255,255,0.5);
}
.fenix-qm-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: #E31937;
    border-radius: 50%;
    animation: fenix-qm-spin .6s linear infinite;
    vertical-align: middle;
    margin-right: .35rem;
}
@keyframes fenix-qm-spin { to { transform: rotate(360deg); } }

/* Action buttons */
.fenix-qm-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.fenix-qm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.fenix-qm-btn:active { transform: scale(0.97); }
.fenix-qm-btn--wa {
    background: #25d366;
    color: #fff;
}
.fenix-qm-btn--wa:hover { background: #1fb855; color: #fff; }
.fenix-qm-btn--secondary {
    background: rgba(227,25,55,0.1);
    color: #E31937;
}
.fenix-qm-btn--secondary:hover { background: rgba(227,25,55,0.2); color: #E31937; }
.fenix-qm-btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}
.fenix-qm-btn--ghost:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Light mode */
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-modal { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 24px 64px rgba(0,0,0,0.15); }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-header h3 { color: #1d1d1f; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-subtitle { color: #6b7280; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-items h4,
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-related-title { color: #6b7280; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-item { border-color: rgba(0,0,0,0.06); }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-item-title { color: #1d1d1f; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-item-qty { color: #6b7280; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-card { background: #f9fafb; border-color: rgba(0,0,0,0.06); }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-card-name { color: #1d1d1f; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-card-price small { color: #9ca3af; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-btn--ghost { color: #6b7280; border-color: rgba(0,0,0,0.1); }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-btn--ghost:hover { background: rgba(0,0,0,0.04); color: #1d1d1f; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-close { color: #9ca3af; }
.hikvision-parking-page[data-color-mode="light"] .fenix-qm-close:hover { color: #1d1d1f; }

/* Tablet */
@media (max-width: 768px) {
    .fenix-qm-modal { padding: 1.75rem; max-width: 95vw; }
}
/* Mobile */
@media (max-width: 480px) {
    .fenix-qm-modal { padding: 1.5rem 1rem; max-width: 90vw; }
    .fenix-qm-related-grid { gap: .5rem; }
}

/* --- Toast --- */
.fenix-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    padding: .75rem 1.25rem;
    background: rgba(26, 26, 46, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.fenix-toast-show { opacity: 1; transform: translateY(0); }

/* --- Snackbar (add-to-cart confirmation) --- */
.fenix-snackbar-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    display: flex;
    flex-direction: column-reverse;
    gap: .5rem;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 2rem);
}
.fenix-snackbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease;
}
.fenix-snackbar-show { opacity: 1; transform: translateY(0); }
.fenix-snackbar-exit { opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }

.fenix-snackbar-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fenix-snackbar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fenix-snackbar-img--placeholder { color: rgba(255, 255, 255, 0.3); }

.fenix-snackbar-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fenix-snackbar-title {
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fenix-snackbar-msg {
    font-size: .72rem;
    color: rgba(255, 255, 255, 0.7);
}

.fenix-snackbar-action {
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 600;
    color: #E31937;
    text-decoration: none;
    padding: .35rem .65rem;
    border-radius: 6px;
    transition: background .2s;
    white-space: nowrap;
}
.fenix-snackbar-action:hover {
    background: rgba(227, 25, 55, 0.1);
    color: #E31937;
}

.fenix-snackbar-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 .25rem;
    line-height: 1;
    transition: color .2s;
}
.fenix-snackbar-close:hover { color: #fff; }

/* Snackbar: always dark style (appended to body, outside data-color-mode) */
.fenix-snackbar { background: rgba(26, 26, 46, 0.95); border-color: rgba(255, 255, 255, 0.1); }
.fenix-snackbar-title { color: #fff; }
.fenix-snackbar-msg { color: rgba(255, 255, 255, 0.7); }
.fenix-snackbar-img--placeholder { color: rgba(255, 255, 255, 0.3); }
.fenix-snackbar-close { color: rgba(255, 255, 255, 0.3); }
.fenix-snackbar-action { color: #E31937; }
.fenix-snackbar-action:hover { background: rgba(227, 25, 55, 0.1); color: #E31937; }

/* Snackbar mobile */
@media (max-width: 480px) {
    .fenix-snackbar-container {
        left: .75rem;
        right: .75rem;
        bottom: 1rem;
        max-width: none;
        width: auto;
    }
    .fenix-snackbar-action { padding: .3rem .5rem; font-size: .68rem; }
}

/* --- Mi Cuenta: Cart (Cotizaciones) section --- */
.fenix-cart-container { display: flex; flex-direction: column; gap: .5rem; }
.fenix-cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    gap: .75rem;
    align-items: center;
    padding: .75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: background .2s;
}
.fenix-cart-item:hover { background: rgba(255, 255, 255, 0.06); }
.fenix-cart-item-image { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.05); flex-shrink: 0; }
.fenix-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.fenix-cart-item-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); }
.fenix-cart-item-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.fenix-cart-item-title { color: var(--text-primary, #fff); font-weight: 600; font-size: .85rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fenix-cart-item-title:hover { text-decoration: underline; }
.fenix-cart-item-sap { font-size: .75rem; color: var(--text-secondary, rgba(255,255,255,0.5)); }
.fenix-cart-item-price { font-size: .8rem; color: #4da3ff; font-weight: 600; }
.fenix-cart-item-qty { display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; overflow: hidden; }
.fenix-cart-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s;
}
.fenix-cart-qty-btn:hover { background: rgba(255,255,255,0.1); }
.fenix-cart-qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: .8rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.fenix-cart-qty-input::-webkit-outer-spin-button,
.fenix-cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fenix-cart-item-subtotal { font-weight: 700; font-size: .85rem; color: var(--text-primary, #fff); white-space: nowrap; }
.fenix-cart-item-remove {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.fenix-cart-item-remove:hover { background: rgba(227,25,55,0.15); color: #E31937; }
.fenix-cart-footer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.fenix-cart-total {
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}
.fenix-btn-whatsapp-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .9rem 1.5rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.fenix-btn-whatsapp-send:hover { background: #20bd5a; }
.fenix-btn-whatsapp-send:active { transform: scale(0.98); }
.fenix-btn-whatsapp-send:disabled { opacity: 0.6; cursor: not-allowed; }
.fenix-btn-whatsapp-send svg { width: 20px; height: 20px; }

/* --- Section header + actions --- */
.fenix-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.fenix-section-header h2 { margin: 0; font-size: 1.2rem; color: var(--text-primary, #fff); }
.fenix-section-header-actions { display: flex; gap: .5rem; }
.fenix-btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.fenix-btn-outline-sm:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: var(--text-primary, #fff); }

/* --- Empty state --- */
.fenix-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary, rgba(255,255,255,0.5));
}
.fenix-empty-state svg { opacity: .3; margin-bottom: 1rem; }
.fenix-empty-state h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--text-primary, #fff); }
.fenix-empty-state p { margin: 0 0 1rem; font-size: .9rem; }
.fenix-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    background: #E31937;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.fenix-btn-primary:hover { background: #c9152f; color: #fff; text-decoration: none; }

/* --- Loading spinner --- */
.fenix-loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary, rgba(255,255,255,0.4));
    font-size: .85rem;
}

/* --- Mi Cuenta: Notifications --- */
.fenix-notif-list { display: flex; flex-direction: column; gap: 0; }
.fenix-notif-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background .2s;
}
.fenix-notif-item:last-child { border-bottom: none; }
.fenix-notif-item:hover { background: rgba(255, 255, 255, 0.03); }
.fenix-notif-item.unread { background: rgba(26, 115, 232, 0.06); }
.fenix-notif-item.unread .fenix-notif-title { font-weight: 700; }
.fenix-notif-icon { flex-shrink: 0; margin-top: 2px; }
.fenix-notif-body { flex: 1; min-width: 0; }
.fenix-notif-title { font-size: .85rem; color: var(--text-primary, #fff); font-weight: 500; margin-bottom: .15rem; }
.fenix-notif-message { font-size: .8rem; color: var(--text-secondary, rgba(255,255,255,0.6)); line-height: 1.4; }
.fenix-notif-time { font-size: .7rem; color: rgba(255, 255, 255, 0.3); margin-top: .25rem; }
.fenix-notif-dismiss {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.fenix-notif-dismiss:hover { background: rgba(227, 25, 55, 0.12); color: #E31937; }

/* --- Light mode overrides for v6.0.0 --- */
[data-color-mode="light"] .hik-cart-qty-mini { border-color: rgba(0, 0, 0, 0.12); background: #f9fafb; }
[data-color-mode="light"] .hik-cart-qty-mini-btn { color: #1d1d1f; }
[data-color-mode="light"] .hik-cart-qty-mini-btn:hover { background: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .hik-cart-qty-mini-input { color: #1d1d1f; border-color: rgba(0, 0, 0, 0.08); }
[data-color-mode="light"] .hik-cart-btn { background: rgba(26, 115, 232, 0.08); border-color: rgba(26, 115, 232, 0.2); color: #1a73e8; }
[data-color-mode="light"] .hik-cart-btn:hover { background: rgba(26, 115, 232, 0.15); }
[data-color-mode="light"] .hik-cart-btn.in-cart { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); color: #059669; }
[data-color-mode="light"] .hik-cart-btn-inline { background: rgba(26, 115, 232, 0.06); border-color: rgba(26, 115, 232, 0.15); color: #1a73e8; }
[data-color-mode="light"] .hik-cart-btn-inline.in-cart { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); color: #059669; }
[data-color-mode="light"] .pdp-qty-selector { border-color: rgba(0, 0, 0, 0.12); background: #f9fafb; }
[data-color-mode="light"] .pdp-qty-btn { color: #1d1d1f; }
[data-color-mode="light"] .pdp-qty-btn:hover { background: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .pdp-qty-input { color: #1d1d1f; border-color: rgba(0, 0, 0, 0.08); }
[data-color-mode="light"] .pdp-btn-add-to-cart { background: rgba(26, 115, 232, 0.08); border-color: rgba(26, 115, 232, 0.2); color: #1a73e8; }
[data-color-mode="light"] .pdp-btn-add-to-cart:hover { background: rgba(26, 115, 232, 0.15); }
[data-color-mode="light"] .pdp-btn-add-to-cart.in-cart { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); color: #059669; }
[data-color-mode="light"] .hada-nav-icon-btn { color: #1d1d1f; }
[data-color-mode="light"] .hada-nav-icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .fenix-toast { background: #fff; color: #1d1d1f; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
[data-color-mode="light"] .fenix-cart-item { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .fenix-cart-item:hover { background: rgba(0, 0, 0, 0.04); }
[data-color-mode="light"] .fenix-cart-item-placeholder { color: rgba(0, 0, 0, 0.15); }
[data-color-mode="light"] .fenix-cart-item-price { color: #1a73e8; }
[data-color-mode="light"] .fenix-cart-item-qty { border-color: rgba(0, 0, 0, 0.1); }
[data-color-mode="light"] .fenix-cart-qty-btn { color: #1d1d1f; }
[data-color-mode="light"] .fenix-cart-qty-btn:hover { background: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .fenix-cart-qty-input { color: #1d1d1f; border-color: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .fenix-cart-item-remove { color: rgba(0, 0, 0, 0.3); }
[data-color-mode="light"] .fenix-cart-item-remove:hover { background: rgba(227, 25, 55, 0.08); }
[data-color-mode="light"] .fenix-btn-outline-sm { border-color: rgba(0, 0, 0, 0.12); color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-btn-outline-sm:hover { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.2); color: #1d1d1f; }
[data-color-mode="light"] .fenix-notif-item { border-color: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .fenix-notif-item:hover { background: rgba(0, 0, 0, 0.02); }
[data-color-mode="light"] .fenix-notif-item.unread { background: rgba(26, 115, 232, 0.04); }
[data-color-mode="light"] .fenix-notif-time { color: rgba(0, 0, 0, 0.3); }
[data-color-mode="light"] .fenix-notif-dismiss { color: rgba(0, 0, 0, 0.25); }
[data-color-mode="light"] .fenix-notif-dismiss:hover { background: rgba(227, 25, 55, 0.06); }

/* --- Auto mode light overrides for v6.0.0 --- */
@media (prefers-color-scheme: light) {
    [data-color-mode="auto"] .hik-cart-qty-mini { border-color: rgba(0, 0, 0, 0.12); background: #f9fafb; }
    [data-color-mode="auto"] .hik-cart-qty-mini-btn { color: #1d1d1f; }
    [data-color-mode="auto"] .hik-cart-qty-mini-btn:hover { background: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .hik-cart-qty-mini-input { color: #1d1d1f; border-color: rgba(0, 0, 0, 0.08); }
    [data-color-mode="auto"] .hik-cart-btn { background: rgba(26, 115, 232, 0.08); border-color: rgba(26, 115, 232, 0.2); color: #1a73e8; }
    [data-color-mode="auto"] .hik-cart-btn:hover { background: rgba(26, 115, 232, 0.15); }
    [data-color-mode="auto"] .hik-cart-btn.in-cart { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); color: #059669; }
    [data-color-mode="auto"] .hik-cart-btn-inline { background: rgba(26, 115, 232, 0.06); border-color: rgba(26, 115, 232, 0.15); color: #1a73e8; }
    [data-color-mode="auto"] .hik-cart-btn-inline.in-cart { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); color: #059669; }
    [data-color-mode="auto"] .pdp-qty-selector { border-color: rgba(0, 0, 0, 0.12); background: #f9fafb; }
    [data-color-mode="auto"] .pdp-qty-btn { color: #1d1d1f; }
    [data-color-mode="auto"] .pdp-qty-btn:hover { background: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .pdp-qty-input { color: #1d1d1f; border-color: rgba(0, 0, 0, 0.08); }
    [data-color-mode="auto"] .pdp-btn-add-to-cart { background: rgba(26, 115, 232, 0.08); border-color: rgba(26, 115, 232, 0.2); color: #1a73e8; }
    [data-color-mode="auto"] .pdp-btn-add-to-cart:hover { background: rgba(26, 115, 232, 0.15); }
    [data-color-mode="auto"] .pdp-btn-add-to-cart.in-cart { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); color: #059669; }
    [data-color-mode="auto"] .hada-nav-icon-btn { color: #1d1d1f; }
    [data-color-mode="auto"] .hada-nav-icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .fenix-toast { background: #fff; color: #1d1d1f; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
    [data-color-mode="auto"] .fenix-cart-item { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .fenix-cart-item:hover { background: rgba(0, 0, 0, 0.04); }
    [data-color-mode="auto"] .fenix-cart-item-placeholder { color: rgba(0, 0, 0, 0.15); }
    [data-color-mode="auto"] .fenix-cart-item-price { color: #1a73e8; }
    [data-color-mode="auto"] .fenix-cart-item-qty { border-color: rgba(0, 0, 0, 0.1); }
    [data-color-mode="auto"] .fenix-cart-qty-btn { color: #1d1d1f; }
    [data-color-mode="auto"] .fenix-cart-qty-btn:hover { background: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .fenix-cart-qty-input { color: #1d1d1f; border-color: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .fenix-cart-item-remove { color: rgba(0, 0, 0, 0.3); }
    [data-color-mode="auto"] .fenix-cart-item-remove:hover { background: rgba(227, 25, 55, 0.08); }
    [data-color-mode="auto"] .fenix-btn-outline-sm { border-color: rgba(0, 0, 0, 0.12); color: rgba(0, 0, 0, 0.5); }
    [data-color-mode="auto"] .fenix-btn-outline-sm:hover { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.2); color: #1d1d1f; }
    [data-color-mode="auto"] .fenix-notif-item { border-color: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .fenix-notif-item:hover { background: rgba(0, 0, 0, 0.02); }
    [data-color-mode="auto"] .fenix-notif-item.unread { background: rgba(26, 115, 232, 0.04); }
    [data-color-mode="auto"] .fenix-notif-time { color: rgba(0, 0, 0, 0.3); }
    [data-color-mode="auto"] .fenix-notif-dismiss { color: rgba(0, 0, 0, 0.25); }
    [data-color-mode="auto"] .fenix-notif-dismiss:hover { background: rgba(227, 25, 55, 0.06); }
}

/* --- Responsive: Cart items on mobile --- */
@media (max-width: 768px) {
    .fenix-cart-item {
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto;
        gap: .5rem;
    }
    .fenix-cart-item-image { width: 50px; height: 50px; }
    .fenix-cart-item-qty { grid-column: 1 / -1; justify-self: start; }
    .fenix-cart-item-subtotal { grid-column: 1 / -1; }
    .fenix-cart-item-remove { position: absolute; top: .5rem; right: .5rem; }
    .fenix-cart-item { position: relative; }
    .pdp-cart-row { flex-direction: column; }
    .fenix-section-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* =========================================
   REP. VENTA — TIER SWITCHER (v6.0.1)
   ========================================= */

.fenix-tier-switcher {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .5rem .75rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

.fenix-tier-switcher label {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.fenix-tier-select {
    padding: .4rem .75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: .85rem;
    cursor: pointer;
    outline: none;
}

.fenix-tier-select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.fenix-tier-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Tier badge for Rep */
.fenix-tier-rep {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* =========================================
   SDC SEARCH + FILTERS + PAGINATION (v6.0.2)
   ========================================= */

.fenix-sdc-filters {
    margin-bottom: 1rem;
}

.fenix-sdc-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}

.fenix-sdc-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}

.fenix-sdc-filter-group label {
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: .25rem;
}

.fenix-sdc-filter-actions {
    flex-direction: row;
    align-items: flex-end;
    gap: .5rem;
}

.fenix-sdc-summary {
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: .75rem;
}

.fenix-sdc-pagination {
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.fenix-pag-btn {
    padding: .4rem .7rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: .8rem;
    transition: all .15s;
}

.fenix-pag-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fenix-pag-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-weight: 600;
}

.fenix-sdc-search {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}

.fenix-sdc-input {
    flex: 1;
    padding: .6rem .75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: .9rem;
    outline: none;
}

.fenix-sdc-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.fenix-sdc-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.fenix-sdc-btn {
    white-space: nowrap;
}

.fenix-sdc-card {
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: .5rem;
    cursor: pointer;
    transition: background .15s;
}

.fenix-sdc-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.fenix-sdc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .25rem;
}

.fenix-sdc-card-header strong {
    color: #60a5fa;
    font-size: .95rem;
}

.fenix-sdc-date {
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.4);
}

.fenix-sdc-card-info {
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.5);
}

.fenix-sdc-detail {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fenix-sdc-detail-info p {
    margin: .25rem 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.6);
}

.fenix-sdc-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .5rem;
    font-size: .8rem;
}

.fenix-sdc-items-table th {
    text-align: left;
    padding: .4rem .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.fenix-sdc-items-table td {
    padding: .35rem .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   LIGHT MODE OVERRIDES — TIER + SDC (v6.0.1)
   ========================================= */

[data-color-mode="light"] .fenix-tier-switcher {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
}
[data-color-mode="light"] .fenix-tier-switcher label { color: rgba(0, 0, 0, 0.6); }
[data-color-mode="light"] .fenix-tier-select {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}
[data-color-mode="light"] .fenix-tier-select option { background: #fff; color: #1a1a2e; }
[data-color-mode="light"] .fenix-sdc-filter-group label { color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-sdc-summary { color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-pag-btn { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.12); color: rgba(0, 0, 0, 0.6); }
[data-color-mode="light"] .fenix-pag-btn:hover { background: rgba(0, 0, 0, 0.08); color: #1a1a2e; }
[data-color-mode="light"] .fenix-pag-btn.active { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: #2563eb; }
[data-color-mode="light"] .fenix-sdc-input {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}
[data-color-mode="light"] .fenix-sdc-input::placeholder { color: rgba(0, 0, 0, 0.3); }
[data-color-mode="light"] .fenix-sdc-card { border-color: rgba(0, 0, 0, 0.08); }
[data-color-mode="light"] .fenix-sdc-card:hover { background: rgba(0, 0, 0, 0.02); }
[data-color-mode="light"] .fenix-sdc-card-header strong { color: #2563eb; }
[data-color-mode="light"] .fenix-sdc-date { color: rgba(0, 0, 0, 0.4); }
[data-color-mode="light"] .fenix-sdc-card-info { color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-sdc-detail { border-top-color: rgba(0, 0, 0, 0.06); }
[data-color-mode="light"] .fenix-sdc-detail-info p { color: rgba(0, 0, 0, 0.6); }
[data-color-mode="light"] .fenix-sdc-items-table th { border-bottom-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.5); }
[data-color-mode="light"] .fenix-sdc-items-table td { border-bottom-color: rgba(0, 0, 0, 0.04); color: rgba(0, 0, 0, 0.7); }

/* AUTO MODE OVERRIDES — TIER + SDC (v6.0.1) */
@media (prefers-color-scheme: light) {
    [data-color-mode="auto"] .fenix-tier-switcher {
        background: rgba(59, 130, 246, 0.06);
        border-color: rgba(59, 130, 246, 0.15);
    }
    [data-color-mode="auto"] .fenix-tier-switcher label { color: rgba(0, 0, 0, 0.6); }
    [data-color-mode="auto"] .fenix-tier-select {
        background: #fff;
        border-color: rgba(0, 0, 0, 0.15);
        color: #1a1a2e;
    }
    [data-color-mode="auto"] .fenix-tier-select option { background: #fff; color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-sdc-input {
        background: #fff;
        border-color: rgba(0, 0, 0, 0.15);
        color: #1a1a2e;
    }
    [data-color-mode="auto"] .fenix-sdc-input::placeholder { color: rgba(0, 0, 0, 0.3); }
    [data-color-mode="auto"] .fenix-sdc-card { border-color: rgba(0, 0, 0, 0.08); }
    [data-color-mode="auto"] .fenix-sdc-card:hover { background: rgba(0, 0, 0, 0.02); }
    [data-color-mode="auto"] .fenix-sdc-card-header strong { color: #2563eb; }
    [data-color-mode="auto"] .fenix-sdc-date { color: rgba(0, 0, 0, 0.4); }
    [data-color-mode="auto"] .fenix-sdc-card-info { color: rgba(0, 0, 0, 0.5); }
    [data-color-mode="auto"] .fenix-sdc-detail { border-top-color: rgba(0, 0, 0, 0.06); }
    [data-color-mode="auto"] .fenix-sdc-detail-info p { color: rgba(0, 0, 0, 0.6); }
    [data-color-mode="auto"] .fenix-sdc-items-table th { border-bottom-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.5); }
    [data-color-mode="auto"] .fenix-sdc-items-table td { border-bottom-color: rgba(0, 0, 0, 0.04); color: rgba(0, 0, 0, 0.7); }
    [data-color-mode="auto"] .fenix-sdc-filter-group label { color: rgba(0, 0, 0, 0.5); }
    [data-color-mode="auto"] .fenix-sdc-summary { color: rgba(0, 0, 0, 0.5); }
    [data-color-mode="auto"] .fenix-pag-btn { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.12); color: rgba(0, 0, 0, 0.6); }
    [data-color-mode="auto"] .fenix-pag-btn:hover { background: rgba(0, 0, 0, 0.08); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-pag-btn.active { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: #2563eb; }
}

/* =============================================
   SOPORTE: Garantias + Tickets + KB (v6.1.0)
   ============================================= */

/* Section header with action button */
.fenix-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 10px; }
.fenix-section-header .fenix-account-section-title { margin-bottom: 0; }

/* Buttons */
.fenix-btn-primary { background: #3b82f6; color: #fff; border: none; padding: 8px 18px; border-radius: 8px; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.fenix-btn-primary:hover { background: #2563eb; }
.fenix-btn-secondary { background: rgba(255,255,255,.08); color: var(--text-primary, #e0e0e0); border: 1px solid rgba(255,255,255,.12); padding: 8px 18px; border-radius: 8px; font-size: .875rem; cursor: pointer; transition: all .2s; }
.fenix-btn-secondary:hover { background: rgba(255,255,255,.14); }
.fenix-btn-sm { padding: 4px 12px; font-size: .8rem; }

/* Filters row */
.fenix-filters-row { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.fenix-filter-input { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-primary, #e0e0e0); padding: 8px 12px; border-radius: 8px; font-size: .85rem; flex: 1; min-width: 120px; }
.fenix-filter-input::placeholder { color: rgba(255,255,255,.35); }
.fenix-filter-select { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-primary, #e0e0e0); padding: 8px 12px; border-radius: 8px; font-size: .85rem; min-width: 140px; }

/* Results grid */
.fenix-results-grid { display: flex; flex-direction: column; gap: 10px; }
.fenix-result-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px 18px; cursor: pointer; transition: all .2s; }
.fenix-result-card:hover { background: rgba(255,255,255,.08); border-color: rgba(59,130,246,.3); }
.fenix-result-badges { display: flex; gap: 6px; margin-bottom: 6px; }
.fenix-result-title { font-weight: 600; font-size: .95rem; color: var(--text-primary, #e0e0e0); margin-bottom: 4px; }
.fenix-result-meta { font-size: .8rem; color: rgba(255,255,255,.45); }
.fenix-no-results { color: rgba(255,255,255,.4); text-align: center; padding: 2rem; }

/* Stage badges — Garantias */
.fenix-stage-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .75rem; font-weight: 600; }
.fenix-stage-recibido { background: rgba(59,130,246,.15); color: #3b82f6; }
.fenix-stage-en_diagnostico { background: rgba(139,92,246,.15); color: #8b5cf6; }
.fenix-stage-aprobado { background: rgba(16,185,129,.15); color: #10b981; }
.fenix-stage-en_reparacion { background: rgba(245,158,11,.15); color: #f59e0b; }
.fenix-stage-control_calidad { background: rgba(236,72,153,.15); color: #ec4899; }
.fenix-stage-listo_entrega { background: rgba(6,182,212,.15); color: #06b6d4; }
.fenix-stage-entregado { background: rgba(107,114,128,.15); color: #6b7280; }

/* Ticket status + priority badges */
.fenix-ticket-status-badge, .fenix-ticket-priority-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .75rem; font-weight: 600; }

/* Timeline — Garantias stages */
.fenix-timeline { display: flex; gap: 0; margin: 1rem 0; overflow-x: auto; padding-bottom: 8px; }
.fenix-timeline-item { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 90px; position: relative; }
.fenix-timeline-item::after { content: ''; position: absolute; top: 10px; left: 50%; width: 100%; height: 2px; background: rgba(255,255,255,.1); z-index: 0; }
.fenix-timeline-item:last-child::after { display: none; }
.fenix-timeline-item.done::after { background: rgba(59,130,246,.4); }
.fenix-timeline-dot { width: 20px; height: 20px; border-radius: 50%; z-index: 1; margin-bottom: 6px; transition: all .3s; }
.fenix-timeline-item.current .fenix-timeline-dot { box-shadow: 0 0 0 4px rgba(59,130,246,.25); transform: scale(1.2); }
.fenix-timeline-label { font-size: .7rem; text-align: center; color: rgba(255,255,255,.5); line-height: 1.2; }
.fenix-timeline-item.done .fenix-timeline-label { color: var(--text-primary, #e0e0e0); }
.fenix-timeline-date { font-size: .6rem; color: rgba(255,255,255,.3); margin-top: 2px; }

/* Detail panel */
.fenix-detail-panel { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 20px; margin-top: 1rem; }
.fenix-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.fenix-detail-header h3 { margin: 0; font-size: 1.1rem; color: var(--text-primary, #e0e0e0); }
.fenix-detail-close { background: none; border: none; color: rgba(255,255,255,.5); font-size: 1.5rem; cursor: pointer; }
.fenix-detail-close:hover { color: #fff; }
.fenix-detail-info p { margin: 4px 0; font-size: .875rem; color: rgba(255,255,255,.7); }
.fenix-detail-info strong { color: var(--text-primary, #e0e0e0); }

/* Stage actions */
.fenix-stage-actions { display: flex; align-items: center; gap: 10px; margin: 1rem 0; padding: 12px; background: rgba(255,255,255,.03); border-radius: 8px; flex-wrap: wrap; }
.fenix-stage-actions label { color: rgba(255,255,255,.6); font-size: .85rem; }
.fenix-stage-actions select { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-primary, #e0e0e0); padding: 6px 10px; border-radius: 6px; font-size: .85rem; }

/* Notes */
.fenix-notes-list { margin-bottom: 1rem; }
.fenix-note { background: rgba(255,255,255,.03); border-left: 3px solid rgba(139,92,246,.4); padding: 10px 14px; margin-bottom: 8px; border-radius: 0 8px 8px 0; }
.fenix-note strong { color: var(--text-primary, #e0e0e0); font-size: .85rem; }
.fenix-note small { color: rgba(255,255,255,.35); font-size: .75rem; margin-left: 8px; }
.fenix-note p { margin: 4px 0 0; font-size: .85rem; color: rgba(255,255,255,.7); }
.fenix-note-add { display: flex; gap: 8px; align-items: flex-end; }
.fenix-note-add textarea { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-primary, #e0e0e0); padding: 8px; border-radius: 8px; font-size: .85rem; resize: vertical; }

/* Thread — Ticket messages (chat style) */
.fenix-thread { max-height: 400px; overflow-y: auto; margin-bottom: 1rem; padding-right: 8px; }
.fenix-thread-msg { background: rgba(59,130,246,.06); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.fenix-thread-system { background: rgba(107,114,128,.06); border-radius: 10px; padding: 8px 14px; margin-bottom: 8px; font-style: italic; }
.fenix-thread-header { margin-bottom: 4px; }
.fenix-thread-header strong { font-size: .85rem; color: var(--text-primary, #e0e0e0); }
.fenix-thread-header small { color: rgba(255,255,255,.35); font-size: .75rem; margin-left: 8px; }
.fenix-thread-msg p, .fenix-thread-system p { margin: 0; font-size: .875rem; color: rgba(255,255,255,.75); }

/* Modal */
.fenix-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.fenix-modal-content { background: #1a1a2e; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 24px; width: 90%; max-width: 500px; max-height: 85vh; overflow-y: auto; }
.fenix-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.fenix-modal-header h3 { margin: 0; color: var(--text-primary, #e0e0e0); }
.fenix-modal-close { background: none; border: none; color: rgba(255,255,255,.5); font-size: 1.5rem; cursor: pointer; }
.fenix-modal-form .fenix-field-group { margin-bottom: 1rem; }
.fenix-modal-form label { display: block; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.fenix-modal-form input, .fenix-modal-form textarea, .fenix-modal-form select { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-primary, #e0e0e0); padding: 8px 12px; border-radius: 8px; font-size: .875rem; box-sizing: border-box; }
.fenix-modal-form hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 1rem 0; }
.fenix-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fenix-modal-actions { display: flex; gap: 10px; margin-top: 1.5rem; }

/* Pagination */
.fenix-pagination { display: flex; gap: 4px; margin-top: 1rem; flex-wrap: wrap; }
.fenix-page-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--text-primary, #e0e0e0); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: .85rem; }
.fenix-page-btn:hover { background: rgba(255,255,255,.12); }
.fenix-page-btn.active { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.3); color: #3b82f6; }

/* KB — Knowledge Base grid */
.fenix-kb-tabs { display: flex; gap: 4px; margin-bottom: 1rem; }
.fenix-kb-tab { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.5); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-size: .85rem; transition: all .2s; }
.fenix-kb-tab:hover { background: rgba(255,255,255,.08); color: var(--text-primary, #e0e0e0); }
.fenix-kb-tab.active { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); color: #3b82f6; }

.fenix-kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.fenix-kb-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 18px; cursor: pointer; transition: all .2s; }
.fenix-kb-card:hover { background: rgba(255,255,255,.08); border-color: rgba(59,130,246,.3); transform: translateY(-2px); }
.fenix-kb-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.2rem; font-weight: 700; }
.fenix-kb-icon--faq { background: rgba(245,158,11,.12); color: #f59e0b; }
.fenix-kb-icon--video { background: rgba(239,68,68,.12); color: #ef4444; }
.fenix-kb-icon--pdf { background: rgba(59,130,246,.12); color: #3b82f6; }
.fenix-kb-card-title { font-size: .95rem; font-weight: 600; color: var(--text-primary, #e0e0e0); margin-bottom: 6px; }
.fenix-kb-card-excerpt { font-size: .825rem; color: rgba(255,255,255,.45); line-height: 1.5; margin-bottom: 8px; }
.fenix-kb-card-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.fenix-kb-tag { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); padding: 2px 8px; border-radius: 4px; font-size: .7rem; }

/* KB Detail */
.fenix-kb-video-wrap { margin: 1rem 0; border-radius: 10px; overflow: hidden; }
.fenix-kb-video-wrap iframe { display: block; border-radius: 10px; }
.fenix-kb-pdf-actions { margin: 1rem 0; }
.fenix-kb-pdf-actions .fenix-btn-primary { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.fenix-kb-content { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.75); margin-top: 1rem; }
.fenix-kb-content h1, .fenix-kb-content h2, .fenix-kb-content h3, .fenix-kb-content h4 { color: var(--text-primary, #e0e0e0); }

/* Dashboard quick action icons — warranty & tickets */
.fenix-dash-action-icon--warranty { background: rgba(139,92,246,.12); color: #8b5cf6; }
.fenix-dash-action-icon--tickets { background: rgba(6,182,212,.12); color: #06b6d4; }

/* Rep. Soporte tier badge */
.fenix-tier-badge.fenix-tier-support-rep { background: rgba(139,92,246,.12); color: #8b5cf6; }

/* =============================================
   Light Mode Overrides — Soporte (v6.1.0)
   ============================================= */

[data-color-mode="light"] .fenix-btn-secondary { background: rgba(0,0,0,.04); color: #1a1a2e; border-color: rgba(0,0,0,.12); }
[data-color-mode="light"] .fenix-btn-secondary:hover { background: rgba(0,0,0,.08); }
[data-color-mode="light"] .fenix-filter-input { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-filter-input::placeholder { color: rgba(0,0,0,.35); }
[data-color-mode="light"] .fenix-filter-select { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-result-card { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08); }
[data-color-mode="light"] .fenix-result-card:hover { background: rgba(0,0,0,.04); border-color: rgba(59,130,246,.3); }
[data-color-mode="light"] .fenix-result-title { color: #1a1a2e; }
[data-color-mode="light"] .fenix-result-meta { color: rgba(0,0,0,.45); }
[data-color-mode="light"] .fenix-no-results { color: rgba(0,0,0,.4); }
[data-color-mode="light"] .fenix-detail-panel { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.1); }
[data-color-mode="light"] .fenix-detail-header h3 { color: #1a1a2e; }
[data-color-mode="light"] .fenix-detail-close { color: rgba(0,0,0,.4); }
[data-color-mode="light"] .fenix-detail-close:hover { color: #1a1a2e; }
[data-color-mode="light"] .fenix-detail-info p { color: rgba(0,0,0,.6); }
[data-color-mode="light"] .fenix-detail-info strong { color: #1a1a2e; }
[data-color-mode="light"] .fenix-stage-actions { background: rgba(0,0,0,.02); }
[data-color-mode="light"] .fenix-stage-actions label { color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-stage-actions select { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-timeline-item::after { background: rgba(0,0,0,.1); }
[data-color-mode="light"] .fenix-timeline-label { color: rgba(0,0,0,.45); }
[data-color-mode="light"] .fenix-timeline-item.done .fenix-timeline-label { color: #1a1a2e; }
[data-color-mode="light"] .fenix-timeline-date { color: rgba(0,0,0,.3); }
[data-color-mode="light"] .fenix-note { background: rgba(0,0,0,.02); border-left-color: rgba(139,92,246,.3); }
[data-color-mode="light"] .fenix-note strong { color: #1a1a2e; }
[data-color-mode="light"] .fenix-note small { color: rgba(0,0,0,.35); }
[data-color-mode="light"] .fenix-note p { color: rgba(0,0,0,.6); }
[data-color-mode="light"] .fenix-note-add textarea { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-thread-msg { background: rgba(59,130,246,.04); }
[data-color-mode="light"] .fenix-thread-system { background: rgba(0,0,0,.03); }
[data-color-mode="light"] .fenix-thread-header strong { color: #1a1a2e; }
[data-color-mode="light"] .fenix-thread-header small { color: rgba(0,0,0,.35); }
[data-color-mode="light"] .fenix-thread-msg p, [data-color-mode="light"] .fenix-thread-system p { color: rgba(0,0,0,.7); }
[data-color-mode="light"] .fenix-modal-content { background: #fff; border-color: rgba(0,0,0,.12); }
[data-color-mode="light"] .fenix-modal-header h3 { color: #1a1a2e; }
[data-color-mode="light"] .fenix-modal-close { color: rgba(0,0,0,.4); }
[data-color-mode="light"] .fenix-modal-form label { color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-modal-form input, [data-color-mode="light"] .fenix-modal-form textarea, [data-color-mode="light"] .fenix-modal-form select { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-modal-form .fenix-field-group label { color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-modal-form .fenix-field-group input[type="text"],
[data-color-mode="light"] .fenix-modal-form .fenix-field-group input[type="email"],
[data-color-mode="light"] .fenix-modal-form .fenix-field-group input[type="tel"],
[data-color-mode="light"] .fenix-modal-form .fenix-field-group input[type="number"],
[data-color-mode="light"] .fenix-modal-form .fenix-field-group input[type="password"],
[data-color-mode="light"] .fenix-modal-form .fenix-field-group textarea,
[data-color-mode="light"] .fenix-modal-form .fenix-field-group select { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-modal-form .fenix-field-group input::placeholder { color: rgba(0,0,0,.35); }
[data-color-mode="light"] .fenix-modal-form hr { border-top-color: rgba(0,0,0,.08); }
[data-color-mode="light"] .fenix-detail-panel h4 { color: #1a1a2e; }
[data-color-mode="light"] .fenix-page-btn { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: #1a1a2e; }
[data-color-mode="light"] .fenix-page-btn:hover { background: rgba(0,0,0,.08); }
[data-color-mode="light"] .fenix-page-btn.active { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #2563eb; }
[data-color-mode="light"] .fenix-kb-tab { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-kb-tab:hover { background: rgba(0,0,0,.06); color: #1a1a2e; }
[data-color-mode="light"] .fenix-kb-tab.active { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.25); color: #2563eb; }
[data-color-mode="light"] .fenix-kb-card { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08); }
[data-color-mode="light"] .fenix-kb-card:hover { background: rgba(0,0,0,.04); border-color: rgba(59,130,246,.3); }
[data-color-mode="light"] .fenix-kb-card-title { color: #1a1a2e; }
[data-color-mode="light"] .fenix-kb-card-excerpt { color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-kb-tag { background: rgba(0,0,0,.05); color: rgba(0,0,0,.4); }
[data-color-mode="light"] .fenix-kb-content { color: rgba(0,0,0,.7); }
[data-color-mode="light"] .fenix-kb-content h1, [data-color-mode="light"] .fenix-kb-content h2, [data-color-mode="light"] .fenix-kb-content h3, [data-color-mode="light"] .fenix-kb-content h4 { color: #1a1a2e; }

/* Auto mode overrides */
@media (prefers-color-scheme: light) {
    [data-color-mode="auto"] .fenix-btn-secondary { background: rgba(0,0,0,.04); color: #1a1a2e; border-color: rgba(0,0,0,.12); }
    [data-color-mode="auto"] .fenix-filter-input { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.12); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-filter-input::placeholder { color: rgba(0,0,0,.35); }
    [data-color-mode="auto"] .fenix-filter-select { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.12); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-result-card { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08); }
    [data-color-mode="auto"] .fenix-result-card:hover { background: rgba(0,0,0,.04); }
    [data-color-mode="auto"] .fenix-result-title { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-result-meta { color: rgba(0,0,0,.45); }
    [data-color-mode="auto"] .fenix-no-results { color: rgba(0,0,0,.4); }
    [data-color-mode="auto"] .fenix-detail-panel { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.1); }
    [data-color-mode="auto"] .fenix-detail-header h3 { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-detail-close { color: rgba(0,0,0,.4); }
    [data-color-mode="auto"] .fenix-detail-info p { color: rgba(0,0,0,.6); }
    [data-color-mode="auto"] .fenix-detail-info strong { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-stage-actions { background: rgba(0,0,0,.02); }
    [data-color-mode="auto"] .fenix-stage-actions select { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-timeline-item::after { background: rgba(0,0,0,.1); }
    [data-color-mode="auto"] .fenix-timeline-label { color: rgba(0,0,0,.45); }
    [data-color-mode="auto"] .fenix-timeline-item.done .fenix-timeline-label { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-note { background: rgba(0,0,0,.02); }
    [data-color-mode="auto"] .fenix-note strong { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-note p { color: rgba(0,0,0,.6); }
    [data-color-mode="auto"] .fenix-note-add textarea { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-thread-msg { background: rgba(59,130,246,.04); }
    [data-color-mode="auto"] .fenix-thread-system { background: rgba(0,0,0,.03); }
    [data-color-mode="auto"] .fenix-thread-header strong { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-thread-msg p, [data-color-mode="auto"] .fenix-thread-system p { color: rgba(0,0,0,.7); }
    [data-color-mode="auto"] .fenix-modal-content { background: #fff; border-color: rgba(0,0,0,.12); }
    [data-color-mode="auto"] .fenix-modal-header h3 { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-modal-close { color: rgba(0,0,0,.4); }
    [data-color-mode="auto"] .fenix-modal-form label { color: rgba(0,0,0,.5); }
    [data-color-mode="auto"] .fenix-modal-form input, [data-color-mode="auto"] .fenix-modal-form textarea, [data-color-mode="auto"] .fenix-modal-form select { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group label { color: rgba(0,0,0,.5); }
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group input[type="text"],
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group input[type="email"],
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group input[type="tel"],
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group input[type="number"],
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group input[type="password"],
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group textarea,
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group select { background: #fff; border-color: rgba(0,0,0,.12); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-modal-form .fenix-field-group input::placeholder { color: rgba(0,0,0,.35); }
    [data-color-mode="auto"] .fenix-modal-form hr { border-top-color: rgba(0,0,0,.08); }
    [data-color-mode="auto"] .fenix-detail-panel h4 { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-page-btn { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-page-btn.active { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #2563eb; }
    [data-color-mode="auto"] .fenix-kb-tab { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); color: rgba(0,0,0,.5); }
    [data-color-mode="auto"] .fenix-kb-tab.active { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.25); color: #2563eb; }
    [data-color-mode="auto"] .fenix-kb-card { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08); }
    [data-color-mode="auto"] .fenix-kb-card-title { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-kb-card-excerpt { color: rgba(0,0,0,.5); }
    [data-color-mode="auto"] .fenix-kb-tag { background: rgba(0,0,0,.05); color: rgba(0,0,0,.4); }
    [data-color-mode="auto"] .fenix-kb-content { color: rgba(0,0,0,.7); }
    [data-color-mode="auto"] .fenix-kb-content h1, [data-color-mode="auto"] .fenix-kb-content h2, [data-color-mode="auto"] .fenix-kb-content h3 { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-solicitudes-tab { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); color: rgba(0,0,0,.5); }
    [data-color-mode="auto"] .fenix-solicitudes-tab.active { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.25); color: #2563eb; }
    [data-color-mode="auto"] .fenix-section-subtitle { color: rgba(0,0,0,.5); }
    [data-color-mode="auto"] .fenix-sol-info-label { color: rgba(0,0,0,.5); }
    [data-color-mode="auto"] .fenix-sol-info-row span:last-child { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-sol-timeline h4 { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-sol-status-row { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-thread-message { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
    [data-color-mode="auto"] .fenix-thread-msg-header strong { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-thread-msg-date { color: rgba(0,0,0,.4); }
    [data-color-mode="auto"] .fenix-thread-message p { color: rgba(0,0,0,.7); }
}

/* ================================================
   Mis Solicitudes — Client view
   ================================================ */

.fenix-section-subtitle {
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    margin: -8px 0 20px 0;
}

.fenix-solicitudes-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.fenix-solicitudes-tab {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.fenix-solicitudes-tab.active {
    background: rgba(59,130,246,.1);
    border-color: rgba(59,130,246,.3);
    color: #3b82f6;
}

.fenix-solicitudes-tab:hover:not(.active) {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.7);
}

.fenix-sol-card {
    transition: transform .15s, box-shadow .15s;
}

.fenix-sol-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.fenix-sol-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.fenix-sol-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.fenix-sol-info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fenix-sol-info-label {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fenix-sol-info-row span:last-child {
    font-size: .9rem;
    color: rgba(255,255,255,.9);
}

.fenix-sol-timeline {
    margin-top: 20px;
}

.fenix-sol-timeline h4 {
    font-size: .95rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 16px;
}

.fenix-sol-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.fenix-sol-tab-content .fenix-thread-message {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    margin-bottom: 8px;
}

.fenix-sol-tab-content .fenix-thread-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fenix-sol-tab-content .fenix-thread-msg-header strong {
    font-size: .85rem;
    color: rgba(255,255,255,.8);
}

.fenix-sol-tab-content .fenix-thread-msg-date {
    font-size: .75rem;
    color: rgba(255,255,255,.35);
}

.fenix-sol-tab-content .fenix-thread-message p {
    margin: 0;
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
}

.fenix-dash-action-icon--solicitudes {
    background: rgba(168,85,247,.12);
    color: #a855f7;
}

/* Light mode overrides */
[data-color-mode="light"] .fenix-section-subtitle { color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-solicitudes-tab { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-solicitudes-tab.active { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.25); color: #2563eb; }
[data-color-mode="light"] .fenix-sol-detail-info { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
[data-color-mode="light"] .fenix-sol-info-label { color: rgba(0,0,0,.5); }
[data-color-mode="light"] .fenix-sol-info-row span:last-child { color: #1a1a2e; }
[data-color-mode="light"] .fenix-sol-timeline h4 { color: #1a1a2e; }
[data-color-mode="light"] .fenix-sol-status-row { color: #1a1a2e; }
[data-color-mode="light"] .fenix-sol-tab-content .fenix-thread-message { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
[data-color-mode="light"] .fenix-sol-tab-content .fenix-thread-msg-header strong { color: #1a1a2e; }
[data-color-mode="light"] .fenix-sol-tab-content .fenix-thread-msg-date { color: rgba(0,0,0,.4); }
[data-color-mode="light"] .fenix-sol-tab-content .fenix-thread-message p { color: rgba(0,0,0,.7); }

/* ===========================================
   HOME B2B — v6.2.0
   =========================================== */

/* Container */
.fenix-home-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fenix-home-section {
    padding: 3rem 0;
}

.fenix-home-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ---- Hero ---- */
/* Navbar (.hada-bar) is position:fixed transparent — hero starts at top:0
   so the navbar overlaps the hero gradient mesh naturally */
.fenix-home-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px; /* space for fixed navbar */
    background:
        radial-gradient(ellipse at 20% 50%, rgba(227,25,55,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(227,25,55,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(139,92,246,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(30,30,30,1) 0%, rgba(0,0,0,1) 100%);
}

.fenix-home-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.fenix-home-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.fenix-home-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 2rem 0;
}

.fenix-home-hero__search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.fenix-home-hero__search:focus-within {
    border-color: var(--hik-primary, #E31937);
}

.fenix-home-hero__search input {
    flex: 1;
    background: none;
    border: none;
    padding: 0.9rem 1.25rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.fenix-home-hero__search input::placeholder {
    color: rgba(255,255,255,0.35);
}

.fenix-home-hero__search button {
    background: var(--hik-primary, #E31937);
    border: none;
    padding: 0.9rem 1.25rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.fenix-home-hero__search button:hover {
    background: #c41630;
}

/* Hero stats */
.fenix-home-hero__stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.fenix-home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fenix-home-stat__number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.fenix-home-stat__label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero CTAs */
.fenix-home-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fenix-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fenix-home-btn--primary {
    background: var(--hik-primary, #E31937);
    color: #fff;
    border: 1px solid var(--hik-primary, #E31937);
}

.fenix-home-btn--primary:hover {
    background: #c41630;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(227,25,55,0.35);
}

.fenix-home-btn--secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.fenix-home-btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}

/* ---- Categories Grid ---- */
.fenix-home-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.fenix-home-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.fenix-home-cat-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--hik-primary, #E31937);
    transform: translateY(-2px);
}

.fenix-home-cat-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: rgba(227,25,55,0.08);
    border-radius: 12px;
    color: var(--hik-primary, #E31937);
    overflow: hidden;
}

.fenix-home-cat-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.fenix-home-cat-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.25rem;
}

.fenix-home-cat-card__count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

.fenix-home-categories__more {
    text-align: center;
    margin-top: 1.25rem;
}

.fenix-home-categories__more a {
    color: var(--hik-primary, #E31937);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.fenix-home-categories__more a:hover {
    text-decoration: underline;
}

/* ---- Product Carousel ---- */
.fenix-home-carousel__header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.fenix-home-carousel__count {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.fenix-home-carousel__badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fenix-home-carousel__badge--hot {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.fenix-home-carousel__badge--discount {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.fenix-home-carousel__badge--promo {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.fenix-home-carousel__wrapper {
    position: relative;
}

.fenix-home-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    padding-bottom: 0.5rem;
}

.fenix-home-carousel__track::-webkit-scrollbar {
    height: 6px;
}

.fenix-home-carousel__track::-webkit-scrollbar-track {
    background: transparent;
}

.fenix-home-carousel__track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.fenix-home-carousel__card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.fenix-home-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.fenix-home-carousel__arrow:hover {
    background: rgba(0,0,0,0.9);
    border-color: var(--hik-primary, #E31937);
}

.fenix-home-carousel__arrow--prev {
    left: -12px;
}

.fenix-home-carousel__arrow--next {
    right: -12px;
}

/* ---- Benefits ---- */
.fenix-home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.fenix-home-benefit-card {
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.fenix-home-benefit-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.fenix-home-benefit-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 14px;
}

.fenix-home-benefit-card__icon--tier {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}

.fenix-home-benefit-card__icon--whatsapp {
    background: rgba(37,211,102,0.1);
    color: #25d366;
}

.fenix-home-benefit-card__icon--support {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

.fenix-home-benefit-card__icon--stock {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
}

.fenix-home-benefit-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.fenix-home-benefit-card__desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.5;
}

/* ---- Quick Access (logged in) ---- */
.fenix-home-quick__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.fenix-home-quick__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.fenix-home-quick__card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.fenix-home-quick__card--cart svg { color: var(--hik-primary, #E31937); }
.fenix-home-quick__card--favs svg { color: #ef4444; }
.fenix-home-quick__card--support svg { color: #3b82f6; }

.fenix-home-quick__card-title {
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
}

.fenix-home-quick__card-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    display: block;
}

/* Quick Access CTA banner (anonymous) */
.fenix-home-quick__cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(227,25,55,0.08) 0%, transparent 60%),
        rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

.fenix-home-quick__cta-text h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.fenix-home-quick__cta-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.fenix-home-quick__cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Navbar transparent over hero on home B2B (light mode would normally be opaque) */
.fenix-home-b2b-page .hada-bar:not(.is-scrolled) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============ LIGHT MODE ============ */
[data-color-mode="light"] .fenix-home-hero {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(227,25,55,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(227,25,55,0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(139,92,246,0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, #f9fafb 0%, #ffffff 100%);
}

[data-color-mode="light"] .fenix-home-hero__title { color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-hero__subtitle { color: rgba(0,0,0,0.5); }
[data-color-mode="light"] .fenix-home-hero__search { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
[data-color-mode="light"] .fenix-home-hero__search input { color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-hero__search input::placeholder { color: rgba(0,0,0,0.35); }
[data-color-mode="light"] .fenix-home-stat__number { color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-stat__label { color: rgba(0,0,0,0.45); }
[data-color-mode="light"] .fenix-home-btn--secondary { background: rgba(0,0,0,0.04); color: #1a1a2e; border-color: rgba(0,0,0,0.12); }
[data-color-mode="light"] .fenix-home-btn--secondary:hover { background: rgba(0,0,0,0.08); }
[data-color-mode="light"] .fenix-home-section__title { color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-cat-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-cat-card:hover { background: rgba(0,0,0,0.04); }
[data-color-mode="light"] .fenix-home-cat-card__count { color: rgba(0,0,0,0.45); }
[data-color-mode="light"] .fenix-home-carousel__count { color: rgba(0,0,0,0.4); }
[data-color-mode="light"] .fenix-home-carousel__track { scrollbar-color: rgba(0,0,0,0.12) transparent; }
[data-color-mode="light"] .fenix-home-carousel__track::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }
[data-color-mode="light"] .fenix-home-carousel__arrow { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.12); color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-carousel__arrow:hover { background: #fff; }
[data-color-mode="light"] .fenix-home-benefit-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
[data-color-mode="light"] .fenix-home-benefit-card:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); }
[data-color-mode="light"] .fenix-home-benefit-card__title { color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-benefit-card__desc { color: rgba(0,0,0,0.55); }
[data-color-mode="light"] .fenix-home-quick__card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-quick__card:hover { background: rgba(0,0,0,0.04); }
[data-color-mode="light"] .fenix-home-quick__card-meta { color: rgba(0,0,0,0.45); }
[data-color-mode="light"] .fenix-home-quick__cta-banner { background: radial-gradient(ellipse at 30% 50%, rgba(227,25,55,0.04) 0%, transparent 60%), rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
[data-color-mode="light"] .fenix-home-quick__cta-text h2 { color: #1a1a2e; }
[data-color-mode="light"] .fenix-home-quick__cta-text p { color: rgba(0,0,0,0.55); }

/* ============ AUTO MODE (system preference light) ============ */
@media (prefers-color-scheme: light) {
    [data-color-mode="auto"] .fenix-home-hero {
        background:
            radial-gradient(ellipse at 20% 50%, rgba(227,25,55,0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(227,25,55,0.04) 0%, transparent 40%),
            radial-gradient(ellipse at 60% 80%, rgba(139,92,246,0.03) 0%, transparent 40%),
            radial-gradient(ellipse at 50% 50%, #f9fafb 0%, #ffffff 100%);
    }
    [data-color-mode="auto"] .fenix-home-hero__title { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-hero__subtitle { color: rgba(0,0,0,0.5); }
    [data-color-mode="auto"] .fenix-home-hero__search { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
    [data-color-mode="auto"] .fenix-home-hero__search input { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-hero__search input::placeholder { color: rgba(0,0,0,0.35); }
    [data-color-mode="auto"] .fenix-home-stat__number { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-stat__label { color: rgba(0,0,0,0.45); }
    [data-color-mode="auto"] .fenix-home-btn--secondary { background: rgba(0,0,0,0.04); color: #1a1a2e; border-color: rgba(0,0,0,0.12); }
    [data-color-mode="auto"] .fenix-home-btn--secondary:hover { background: rgba(0,0,0,0.08); }
    [data-color-mode="auto"] .fenix-home-section__title { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-cat-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-cat-card:hover { background: rgba(0,0,0,0.04); }
    [data-color-mode="auto"] .fenix-home-cat-card__count { color: rgba(0,0,0,0.45); }
    [data-color-mode="auto"] .fenix-home-carousel__count { color: rgba(0,0,0,0.4); }
    [data-color-mode="auto"] .fenix-home-carousel__track { scrollbar-color: rgba(0,0,0,0.12) transparent; }
    [data-color-mode="auto"] .fenix-home-carousel__track::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }
    [data-color-mode="auto"] .fenix-home-carousel__arrow { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.12); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-carousel__arrow:hover { background: #fff; }
    [data-color-mode="auto"] .fenix-home-benefit-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
    [data-color-mode="auto"] .fenix-home-benefit-card:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); }
    [data-color-mode="auto"] .fenix-home-benefit-card__title { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-benefit-card__desc { color: rgba(0,0,0,0.55); }
    [data-color-mode="auto"] .fenix-home-quick__card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-quick__card:hover { background: rgba(0,0,0,0.04); }
    [data-color-mode="auto"] .fenix-home-quick__card-meta { color: rgba(0,0,0,0.45); }
    [data-color-mode="auto"] .fenix-home-quick__cta-banner { background: radial-gradient(ellipse at 30% 50%, rgba(227,25,55,0.04) 0%, transparent 60%), rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
    [data-color-mode="auto"] .fenix-home-quick__cta-text h2 { color: #1a1a2e; }
    [data-color-mode="auto"] .fenix-home-quick__cta-text p { color: rgba(0,0,0,0.55); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .fenix-home-hero__title {
        font-size: 1.75rem;
    }
    .fenix-home-hero__subtitle {
        font-size: 0.95rem;
    }
    .fenix-home-hero__stats {
        gap: 1.5rem;
    }
    .fenix-home-stat__number {
        font-size: 1.35rem;
    }
    .fenix-home-hero__inner {
        padding: 3rem 1.25rem;
    }
    .fenix-home-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fenix-home-carousel__arrow {
        display: none;
    }
    .fenix-home-carousel__card {
        min-width: 240px;
        max-width: 240px;
    }
    .fenix-home-quick__cta-banner {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    .fenix-home-quick__cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .fenix-home-quick__cta-actions .fenix-home-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fenix-home-categories__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .fenix-home-cat-card {
        padding: 1rem 0.75rem;
    }
    .fenix-home-carousel__card {
        min-width: 220px;
        max-width: 220px;
    }
    .fenix-home-hero__ctas {
        flex-direction: column;
    }
    .fenix-home-hero__ctas .fenix-home-btn {
        width: 100%;
    }
}

/* =============================================
   CAPACITACIONES / TRAININGS (v6.3.0)
   ============================================= */

/* Hero */
.fenix-trainings-hero {
    padding: 100px 20px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(227, 25, 55, 0.08), rgba(0,0,0,0));
}
.fenix-trainings-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}
.fenix-trainings-hero__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.fenix-trainings-hero__subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0;
}

/* Filters */
.fenix-trainings-filters {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fenix-trainings-filters__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.fenix-trainings-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
    min-width: 180px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.fenix-trainings-select:focus {
    outline: none;
    border-color: #E31937;
}
.fenix-trainings-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Grid */
.fenix-trainings-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.fenix-trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.fenix-trainings-loading,
.fenix-trainings-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1rem;
}

/* Card */
.fenix-training-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.fenix-training-card:hover {
    border-color: rgba(227, 25, 55, 0.4);
    transform: translateY(-2px);
}

/* Card Image */
.fenix-training-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.fenix-training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fenix-training-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #555;
}

/* Modality Badge */
.fenix-training-modality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fenix-training-modality-badge--presencial {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}
.fenix-training-modality-badge--virtual {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

/* Type Badge (top-left) */
.fenix-training-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
}
.fenix-training-type-badge--capacitacion { background: rgba(59, 130, 246, 0.9); }
.fenix-training-type-badge--certificacion { background: rgba(139, 92, 246, 0.9); }
.fenix-training-type-badge--workshop { background: rgba(245, 158, 11, 0.9); }
.fenix-training-type-badge--lanzamiento { background: rgba(16, 185, 129, 0.9); }

/* Card Info */
.fenix-training-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Brand Badge */
.fenix-training-brand-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(227, 25, 55, 0.15);
    color: #E31937;
    width: fit-content;
}

/* Title */
.fenix-training-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.fenix-training-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #aaa;
}
.fenix-training-meta svg {
    flex-shrink: 0;
}

/* Details */
.fenix-training-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.82rem;
    color: #888;
}

/* Tags (level + cert) */
.fenix-training-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.fenix-training-level-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}
.fenix-training-level-badge--basico {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.fenix-training-level-badge--intermedio {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.fenix-training-level-badge--avanzado {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.fenix-training-cert-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

/* Detail rows (instructor, location, meeting) */
.fenix-training-detail-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #aaa;
}
.fenix-training-detail-row svg {
    flex-shrink: 0;
    color: #666;
}

/* Clickable Location */
.fenix-training-location-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.fenix-training-location-link:hover {
    color: #2563eb;
    text-decoration: underline;
}
.fenix-training-location-link--virtual {
    color: #8b5cf6;
}
.fenix-training-location-link--virtual:hover {
    color: #7c3aed;
}

/* More Info Button */
.fenix-training-more-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
    transition: color 0.2s;
}
.fenix-training-more-btn:hover {
    color: #2563eb;
}
.fenix-training-more-btn--open {
    color: #ef4444;
}
.fenix-training-description {
    font-size: 0.82rem;
    color: #aaa;
    line-height: 1.5;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 4px;
}

/* Pending badge */
.fenix-training-registered-badge--pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Capacity Bar */
.fenix-training-capacity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fenix-training-capacity-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.fenix-training-capacity-fill {
    height: 100%;
    border-radius: 3px;
    background: #10b981;
    transition: width 0.3s;
}
.fenix-training-capacity-fill--full {
    background: #ef4444;
}
.fenix-training-capacity-text {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
}

/* Actions */
.fenix-training-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.fenix-training-register-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #E31937;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.fenix-training-register-btn:hover {
    background: #c41530;
}
a.fenix-training-register-btn {
    font-size: 0.8rem;
    padding: 7px 14px;
}
.fenix-training-registered-badge {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}
.fenix-training-cancel-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: transparent;
    color: #ef4444;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}
.fenix-training-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}
.fenix-training-ics-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: transparent;
    color: #3b82f6;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}
.fenix-training-ics-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}
.fenix-training-status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}
.fenix-training-status-badge--cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.fenix-training-status-badge--completed {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}
.fenix-training-status-badge--full {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Pagination */
.fenix-trainings-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}
.fenix-trainings-page-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.fenix-trainings-page-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
}
.fenix-trainings-page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.fenix-trainings-page-info {
    font-size: 0.85rem;
    color: #999;
}

/* Modal */
.fenix-training-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fenix-training-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.fenix-training-modal__content {
    position: relative;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    color: #fff;
}
.fenix-training-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mi Cuenta — Capacitaciones section */
.fenix-cap-tab {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.fenix-cap-tab--active {
    background: #E31937;
    color: #fff;
    border-color: #E31937;
}
.fenix-cap-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.fenix-cap-card h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1rem;
}
.fenix-cap-card-meta {
    font-size: 0.82rem;
    color: #aaa;
    margin-bottom: 6px;
}
.fenix-cap-card-location {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px;
}
.fenix-cap-card-brand {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(227, 25, 55, 0.15);
    color: #E31937;
    margin-bottom: 6px;
}
.fenix-cap-card-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.fenix-cap-card-status--confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.fenix-cap-card-status--attended {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.fenix-cap-card-status--no_show {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.fenix-cap-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.fenix-cap-ics-btn {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: transparent;
    color: #3b82f6;
    font-size: 0.78rem;
    cursor: pointer;
}
.fenix-cap-cancel-btn {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: transparent;
    color: #ef4444;
    font-size: 0.78rem;
    cursor: pointer;
}

/* Dashboard training icon */
.fenix-dash-action-icon--training {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

/* =============================================
   CAPACITACIONES — LIGHT MODE
   ============================================= */

[data-color-mode="light"] .fenix-trainings-hero {
    background: linear-gradient(135deg, rgba(227, 25, 55, 0.06), rgba(255,255,255,0));
}
[data-color-mode="light"] .fenix-trainings-hero__title {
    color: #111;
}
[data-color-mode="light"] .fenix-trainings-hero__subtitle {
    color: #666;
}
[data-color-mode="light"] .fenix-trainings-filters {
    border-bottom-color: rgba(0,0,0,0.08);
}
[data-color-mode="light"] .fenix-trainings-select {
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
[data-color-mode="light"] .fenix-trainings-select option {
    background: #fff;
    color: #333;
}
[data-color-mode="light"] .fenix-training-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-color-mode="light"] .fenix-training-card:hover {
    border-color: rgba(227, 25, 55, 0.3);
}
[data-color-mode="light"] .fenix-training-image {
    background: #f5f5f5;
}
[data-color-mode="light"] .fenix-training-image-placeholder {
    color: #ccc;
}
[data-color-mode="light"] .fenix-training-title {
    color: #111;
}
[data-color-mode="light"] .fenix-training-meta {
    color: #666;
}
[data-color-mode="light"] .fenix-training-details {
    color: #777;
}
[data-color-mode="light"] .fenix-training-capacity-bar {
    background: rgba(0,0,0,0.06);
}
[data-color-mode="light"] .fenix-training-capacity-text {
    color: #777;
}
[data-color-mode="light"] .fenix-training-detail-row {
    color: #666;
}
[data-color-mode="light"] .fenix-training-detail-row svg {
    color: #999;
}
[data-color-mode="light"] .fenix-training-description {
    color: #666;
    border-top-color: rgba(0,0,0,0.06);
}
[data-color-mode="light"] .fenix-trainings-page-btn {
    border-color: rgba(0,0,0,0.15);
    color: #333;
}
[data-color-mode="light"] .fenix-trainings-page-btn:hover:not(:disabled) {
    background: rgba(0,0,0,0.04);
}
[data-color-mode="light"] .fenix-trainings-page-info {
    color: #666;
}
[data-color-mode="light"] .fenix-training-modal__content {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    color: #111;
}
[data-color-mode="light"] .fenix-training-modal__close {
    color: #666;
}
[data-color-mode="light"] .fenix-cap-tab {
    border-color: rgba(0,0,0,0.15);
    color: #666;
}
[data-color-mode="light"] .fenix-cap-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-color-mode="light"] .fenix-cap-card h4 {
    color: #111;
}
[data-color-mode="light"] .fenix-cap-card-meta {
    color: #666;
}
[data-color-mode="light"] .fenix-cap-card-location {
    color: #777;
}

/* =============================================
   CAPACITACIONES — AUTO MODE
   ============================================= */

@media (prefers-color-scheme: light) {
    [data-color-mode="auto"] .fenix-trainings-hero {
        background: linear-gradient(135deg, rgba(227, 25, 55, 0.06), rgba(255,255,255,0));
    }
    [data-color-mode="auto"] .fenix-trainings-hero__title {
        color: #111;
    }
    [data-color-mode="auto"] .fenix-trainings-hero__subtitle {
        color: #666;
    }
    [data-color-mode="auto"] .fenix-trainings-filters {
        border-bottom-color: rgba(0,0,0,0.08);
    }
    [data-color-mode="auto"] .fenix-trainings-select {
        border-color: rgba(0,0,0,0.15);
        background: rgba(0,0,0,0.03);
        color: #333;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
    }
    [data-color-mode="auto"] .fenix-trainings-select option {
        background: #fff;
        color: #333;
    }
    [data-color-mode="auto"] .fenix-training-card {
        background: #fff;
        border-color: rgba(0,0,0,0.08);
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    [data-color-mode="auto"] .fenix-training-card:hover {
        border-color: rgba(227, 25, 55, 0.3);
    }
    [data-color-mode="auto"] .fenix-training-image {
        background: #f5f5f5;
    }
    [data-color-mode="auto"] .fenix-training-image-placeholder {
        color: #ccc;
    }
    [data-color-mode="auto"] .fenix-training-title {
        color: #111;
    }
    [data-color-mode="auto"] .fenix-training-meta {
        color: #666;
    }
    [data-color-mode="auto"] .fenix-training-details {
        color: #777;
    }
    [data-color-mode="auto"] .fenix-training-capacity-bar {
        background: rgba(0,0,0,0.06);
    }
    [data-color-mode="auto"] .fenix-training-capacity-text {
        color: #777;
    }
    [data-color-mode="auto"] .fenix-training-detail-row {
        color: #666;
    }
    [data-color-mode="auto"] .fenix-training-detail-row svg {
        color: #999;
    }
    [data-color-mode="auto"] .fenix-training-description {
        color: #666;
        border-top-color: rgba(0,0,0,0.06);
    }
    [data-color-mode="auto"] .fenix-trainings-page-btn {
        border-color: rgba(0,0,0,0.15);
        color: #333;
    }
    [data-color-mode="auto"] .fenix-trainings-page-btn:hover:not(:disabled) {
        background: rgba(0,0,0,0.04);
    }
    [data-color-mode="auto"] .fenix-trainings-page-info {
        color: #666;
    }
    [data-color-mode="auto"] .fenix-training-modal__content {
        background: #fff;
        border-color: rgba(0,0,0,0.1);
        color: #111;
    }
    [data-color-mode="auto"] .fenix-training-modal__close {
        color: #666;
    }
    [data-color-mode="auto"] .fenix-cap-tab {
        border-color: rgba(0,0,0,0.15);
        color: #666;
    }
    [data-color-mode="auto"] .fenix-cap-card {
        background: #fff;
        border-color: rgba(0,0,0,0.08);
    }
    [data-color-mode="auto"] .fenix-cap-card h4 {
        color: #111;
    }
    [data-color-mode="auto"] .fenix-cap-card-meta {
        color: #666;
    }
    [data-color-mode="auto"] .fenix-cap-card-location {
        color: #777;
    }
}

/* =============================================
   CAPACITACIONES — RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .fenix-trainings-hero {
        padding: 80px 16px 30px;
    }
    .fenix-trainings-hero__title {
        font-size: 1.6rem;
    }
    .fenix-trainings-filters__inner {
        flex-direction: column;
    }
    .fenix-trainings-select {
        min-width: auto;
        width: 100%;
    }
    .fenix-trainings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .fenix-trainings-hero__title {
        font-size: 1.3rem;
    }
    .fenix-trainings-hero__subtitle {
        font-size: 0.9rem;
    }
    .fenix-training-actions {
        flex-direction: column;
    }
    .fenix-training-register-btn,
    a.fenix-training-register-btn {
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   Anti-FOUC: reveal body once CSS is loaded
   ============================================= */
body { opacity: 1 !important; }
