/* ============================================
   Temas de color de la web (Plataforma > Configuración)
   El clásico es la web sin atributo y no se toca aquí. Los demás se activan con
   html[data-tema] (js/nucleo/tema.js) y solo cambian el aspecto: colores,
   tipografía, esquinas, sombras e iconos del menú. Ningún elemento se oculta ni
   cambia de sitio, salvo los emojis del menú, que se cambian por iconos de línea
   ============================================ */

/* Tipografías del tema nuevo, servidas desde la web; el navegador solo las
   descarga si un tema las usa */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fuentes/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fuentes/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fuentes/work-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fuentes/work-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Paleta de cada tema ---
   principal: botones y enlaces; seleccion: la opción elegida del menú; acento: lo que
   te toca, los globos de avisos y el paso actual del proceso. Salvo Sunlocs (los colores del
   logo), cada tema es de una sola gama: del claro del fondo al color fuerte de lo que te toca,
   sin mezclar colores de otra familia */
html[data-tema="sunlocs"] {
    --tema-principal: #3f3f46;
    --tema-principal-hover: #27272a;
    --tema-seleccion-fondo: #fdf3d7;
    --tema-seleccion-texto: #5c4300;
    --tema-acento: #f2b01e;
    --tema-sobre-acento: #1f1f1f;
    --tema-acento-suave: #fffbeb;
    --tema-acento-texto: #7a5600;
    --tema-fondo: #faf8f3;
    --tema-hover: #f3efe6;
    --tema-borde: #ece7dc;
    --tema-texto: #1f1f1f;
    --tema-texto-2: #57534e;
    --tema-texto-suave: #6f6a64;
}
html[data-tema="verde"] {
    --tema-principal: #047857;
    --tema-principal-hover: #065f46;
    --tema-seleccion-fondo: #d1fae5;
    --tema-seleccion-texto: #064e3b;
    --tema-acento: #34d399;
    --tema-sobre-acento: #022c22;
    --tema-acento-suave: #ecfdf5;
    --tema-acento-texto: #065f46;
    --tema-fondo: #f2f8f5;
    --tema-hover: #e6f1ec;
    --tema-borde: #d4e8df;
    --tema-texto: #0b1f17;
    --tema-texto-2: #43574e;
    --tema-texto-suave: #566b62;
}
html[data-tema="indigo"] {
    --tema-principal: #4f46e5;
    --tema-principal-hover: #4338ca;
    --tema-seleccion-fondo: #e0e7ff;
    --tema-seleccion-texto: #312e81;
    --tema-acento: #818cf8;
    --tema-sobre-acento: #1e1b4b;
    --tema-acento-suave: #eef2ff;
    --tema-acento-texto: #3730a3;
    --tema-fondo: #f3f4fc;
    --tema-hover: #e9ebf8;
    --tema-borde: #dcdff2;
    --tema-texto: #15142e;
    --tema-texto-2: #4a4a6a;
    --tema-texto-suave: #5f5f82;
}

html[data-tema="granate"] {
    --tema-principal: #991b1b;
    --tema-principal-hover: #7f1d1d;
    --tema-seleccion-fondo: #fee2e2;
    --tema-seleccion-texto: #7f1d1d;
    --tema-acento: #f87171;
    --tema-sobre-acento: #450a0a;
    --tema-acento-suave: #fef2f2;
    --tema-acento-texto: #991b1b;
    --tema-fondo: #fbf6f6;
    --tema-hover: #f6eaea;
    --tema-borde: #ebdada;
    --tema-texto: #1f1416;
    --tema-texto-2: #57474a;
    --tema-texto-suave: #6b5b5e;
}
html[data-tema="oceano"] {
    --tema-principal: #0369a1;
    --tema-principal-hover: #075985;
    --tema-seleccion-fondo: #e0f2fe;
    --tema-seleccion-texto: #0c4a6e;
    --tema-acento: #22d3ee;
    --tema-sobre-acento: #083344;
    --tema-acento-suave: #ecfeff;
    --tema-acento-texto: #155e75;
    --tema-fondo: #f4f8fb;
    --tema-hover: #e8f1f7;
    --tema-borde: #dbe7f0;
    --tema-texto: #0c1a26;
    --tema-texto-2: #475569;
    --tema-texto-suave: #566578;
}
html[data-tema="bosque"] {
    --tema-principal: #166534;
    --tema-principal-hover: #14532d;
    --tema-seleccion-fondo: #dcfce7;
    --tema-seleccion-texto: #14532d;
    --tema-acento: #22c55e;
    --tema-sobre-acento: #052e16;
    --tema-acento-suave: #f0fdf4;
    --tema-acento-texto: #166534;
    --tema-fondo: #f6f8f4;
    --tema-hover: #ecf1e8;
    --tema-borde: #dfe6d8;
    --tema-texto: #14201a;
    --tema-texto-2: #4b5a50;
    --tema-texto-suave: #5c6b61;
}
html[data-tema="violeta"] {
    --tema-principal: #5b21b6;
    --tema-principal-hover: #4c1d95;
    --tema-seleccion-fondo: #ede9fe;
    --tema-seleccion-texto: #4c1d95;
    --tema-acento: #a78bfa;
    --tema-sobre-acento: #2e1065;
    --tema-acento-suave: #f5f3ff;
    --tema-acento-texto: #5b21b6;
    --tema-fondo: #f7f6fb;
    --tema-hover: #efecf7;
    --tema-borde: #e4e0f0;
    --tema-texto: #1a1530;
    --tema-texto-2: #4c4766;
    --tema-texto-suave: #605a79;
}
html[data-tema="terracota"] {
    --tema-principal: #c2410c;
    --tema-principal-hover: #9a3412;
    --tema-seleccion-fondo: #ffedd5;
    --tema-seleccion-texto: #7c2d12;
    --tema-acento: #fb923c;
    --tema-sobre-acento: #431407;
    --tema-acento-suave: #fff7ed;
    --tema-acento-texto: #9a3412;
    --tema-fondo: #fbf7f3;
    --tema-hover: #f5ede5;
    --tema-borde: #ebdfd3;
    --tema-texto: #24170f;
    --tema-texto-2: #5c4a3d;
    --tema-texto-suave: #6e5b4e;
}
html[data-tema="pizarra"] {
    --tema-principal: #334155;
    --tema-principal-hover: #1e293b;
    --tema-seleccion-fondo: #e2e8f0;
    --tema-seleccion-texto: #1e293b;
    --tema-acento: #64748b;
    --tema-sobre-acento: #ffffff;
    --tema-acento-suave: #f1f5f9;
    --tema-acento-texto: #334155;
    --tema-fondo: #f5f7fa;
    --tema-hover: #edf1f6;
    --tema-borde: #e2e8f0;
    --tema-texto: #0f172a;
    --tema-texto-2: #475569;
    --tema-texto-suave: #58677b;
}
html[data-tema="rosa"] {
    --tema-principal: #be185d;
    --tema-principal-hover: #9d174d;
    --tema-seleccion-fondo: #fce7f3;
    --tema-seleccion-texto: #831843;
    --tema-acento: #f472b6;
    --tema-sobre-acento: #500724;
    --tema-acento-suave: #fdf2f8;
    --tema-acento-texto: #9d174d;
    --tema-fondo: #fcf7f9;
    --tema-hover: #f7ecf1;
    --tema-borde: #efdde5;
    --tema-texto: #26121b;
    --tema-texto-2: #5e4652;
    --tema-texto-suave: #715864;
}
html[data-tema="oliva"] {
    --tema-principal: #4d7c0f;
    --tema-principal-hover: #3f6212;
    --tema-seleccion-fondo: #ecfccb;
    --tema-seleccion-texto: #365314;
    --tema-acento: #a3e635;
    --tema-sobre-acento: #1a2e05;
    --tema-acento-suave: #f7fee7;
    --tema-acento-texto: #3f6212;
    --tema-fondo: #f7f8f2;
    --tema-hover: #eff1e6;
    --tema-borde: #e3e6d6;
    --tema-texto: #1a1f12;
    --tema-texto-2: #52594a;
    --tema-texto-suave: #62695a;
}
html[data-tema="noche"] {
    --tema-principal: #1e3a8a;
    --tema-principal-hover: #172554;
    --tema-seleccion-fondo: #dbeafe;
    --tema-seleccion-texto: #1e3a8a;
    --tema-acento: #60a5fa;
    --tema-sobre-acento: #172554;
    --tema-acento-suave: #eff6ff;
    --tema-acento-texto: #1e40af;
    --tema-fondo: #f4f6fb;
    --tema-hover: #e9edf6;
    --tema-borde: #dde3ef;
    --tema-texto: #0b1530;
    --tema-texto-2: #475569;
    --tema-texto-suave: #566479;
}
html[data-tema="arena"] {
    --tema-principal: #78350f;
    --tema-principal-hover: #451a03;
    --tema-seleccion-fondo: #fef3c7;
    --tema-seleccion-texto: #78350f;
    --tema-acento: #fbbf24;
    --tema-sobre-acento: #451a03;
    --tema-acento-suave: #fffbeb;
    --tema-acento-texto: #92400e;
    --tema-fondo: #faf7f0;
    --tema-hover: #f3ede0;
    --tema-borde: #e8dfcc;
    --tema-texto: #231a0e;
    --tema-texto-2: #5c4f3c;
    --tema-texto-suave: #6c5f4b;
}

html[data-tema="vainilla"] {
    --tema-principal: #b45309;
    --tema-principal-hover: #92400e;
    --tema-seleccion-fondo: #fdebc8;
    --tema-seleccion-texto: #7c2d12;
    --tema-acento: #f97316;
    --tema-sobre-acento: #1f1300;
    --tema-acento-suave: #fff4e6;
    --tema-acento-texto: #9a3412;
    --tema-fondo: #fdf8ec;
    --tema-hover: #f8eed6;
    --tema-borde: #efe0bd;
    --tema-texto: #2a1a08;
    --tema-texto-2: #6b5133;
    --tema-texto-suave: #7a5f41;
}
html[data-tema="cielo"] {
    --tema-principal: #1d4ed8;
    --tema-principal-hover: #1e40af;
    --tema-seleccion-fondo: #dbeafe;
    --tema-seleccion-texto: #1e3a8a;
    --tema-acento: #38bdf8;
    --tema-sobre-acento: #082f49;
    --tema-acento-suave: #f0f9ff;
    --tema-acento-texto: #075985;
    --tema-fondo: #f3f8fd;
    --tema-hover: #e7f0fa;
    --tema-borde: #d6e4f3;
    --tema-texto: #0b1a2e;
    --tema-texto-2: #43566e;
    --tema-texto-suave: #56697f;
}
html[data-tema="menta"] {
    --tema-principal: #15803d;
    --tema-principal-hover: #166534;
    --tema-seleccion-fondo: #dcfce7;
    --tema-seleccion-texto: #14532d;
    --tema-acento: #4ade80;
    --tema-sobre-acento: #052e16;
    --tema-acento-suave: #f0fdf4;
    --tema-acento-texto: #166534;
    --tema-fondo: #f2f9f4;
    --tema-hover: #e4f2e8;
    --tema-borde: #d3e8da;
    --tema-texto: #0f2417;
    --tema-texto-2: #46594c;
    --tema-texto-suave: #586d5f;
}
html[data-tema="lavanda"] {
    --tema-principal: #6d28d9;
    --tema-principal-hover: #5b21b6;
    --tema-seleccion-fondo: #ede9fe;
    --tema-seleccion-texto: #4c1d95;
    --tema-acento: #c084fc;
    --tema-sobre-acento: #2e1065;
    --tema-acento-suave: #faf5ff;
    --tema-acento-texto: #6b21a8;
    --tema-fondo: #f8f6fd;
    --tema-hover: #efebfa;
    --tema-borde: #e1daf3;
    --tema-texto: #1c1530;
    --tema-texto-2: #514869;
    --tema-texto-suave: #655d7e;
}
html[data-tema="frambuesa"] {
    --tema-principal: #be123c;
    --tema-principal-hover: #9f1239;
    --tema-seleccion-fondo: #ffe4e6;
    --tema-seleccion-texto: #881337;
    --tema-acento: #fb7185;
    --tema-sobre-acento: #4c0519;
    --tema-acento-suave: #fff1f2;
    --tema-acento-texto: #9f1239;
    --tema-fondo: #fdf4f6;
    --tema-hover: #fae8ec;
    --tema-borde: #f1d6dd;
    --tema-texto: #2a0f17;
    --tema-texto-2: #644750;
    --tema-texto-suave: #785a63;
}
html[data-tema="turquesa"] {
    --tema-principal: #0f766e;
    --tema-principal-hover: #115e59;
    --tema-seleccion-fondo: #ccfbf1;
    --tema-seleccion-texto: #134e4a;
    --tema-acento: #2dd4bf;
    --tema-sobre-acento: #042f2e;
    --tema-acento-suave: #f0fdfa;
    --tema-acento-texto: #115e59;
    --tema-fondo: #f1f9f9;
    --tema-hover: #e3f2f1;
    --tema-borde: #cfe6e4;
    --tema-texto: #0d2321;
    --tema-texto-2: #435a58;
    --tema-texto-suave: #546b69;
}
html[data-tema="miel"] {
    --tema-principal: #a16207;
    --tema-principal-hover: #854d0e;
    --tema-seleccion-fondo: #fef3c7;
    --tema-seleccion-texto: #713f12;
    --tema-acento: #facc15;
    --tema-sobre-acento: #422006;
    --tema-acento-suave: #fefce8;
    --tema-acento-texto: #854d0e;
    --tema-fondo: #fefbec;
    --tema-hover: #faf2d2;
    --tema-borde: #efe2b2;
    --tema-texto: #2a2108;
    --tema-texto-2: #66573a;
    --tema-texto-suave: #76674a;
}
html[data-tema="canela"] {
    --tema-principal: #8b4a22;
    --tema-principal-hover: #6e3a1a;
    --tema-seleccion-fondo: #f3e3d3;
    --tema-seleccion-texto: #5a3216;
    --tema-acento: #d4894a;
    --tema-sobre-acento: #2b1405;
    --tema-acento-suave: #fbf1e8;
    --tema-acento-texto: #7c3f16;
    --tema-fondo: #faf6f2;
    --tema-hover: #f3ebe3;
    --tema-borde: #e6d8ca;
    --tema-texto: #26170c;
    --tema-texto-2: #5f4b3c;
    --tema-texto-suave: #725d4d;
}

/* --- Variables de la web en los temas --- */
html[data-tema] {
    --bg-dark: var(--tema-fondo);
    --bg-main: var(--tema-fondo);
    --bg-card: #ffffff;
    --bg-hover: var(--tema-hover);
    --bg-input: #ffffff;
    --text-primary: var(--tema-texto);
    --text-secondary: var(--tema-texto-2);
    --text-muted: var(--tema-texto-suave);
    --primary: var(--tema-principal);
    --primary-hover: var(--tema-principal-hover);
    --primary-light: var(--tema-seleccion-fondo);
    --primary-text: #ffffff;
    --border: var(--tema-borde);
    --border-light: var(--tema-hover);
    --shadow-sm: 0 1px 2px rgba(31, 31, 31, 0.04);
    --shadow: 0 1px 3px rgba(31, 31, 31, 0.06), 0 1px 2px rgba(31, 31, 31, 0.03);
    --shadow-md: 0 6px 16px -4px rgba(31, 31, 31, 0.08), 0 2px 4px -1px rgba(31, 31, 31, 0.04);
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 14px;
    /* lo hecho o correcto (Realizada, Activa, verificada) va con el color principal del tema;
       los verdes fijos los cambia css/nucleo/tema-colores.css */
    --success: var(--tema-principal);
    --success-light: color-mix(in srgb, var(--tema-principal) 9%, #ffffff);
    /* lo pendiente o que pide atención (el ámbar del clásico) va con el acento del tema; en el
       texto, su tono oscuro (css/nucleo/tema-colores.css) */
    --warning: var(--tema-acento);
    --warning-light: var(--tema-acento-suave);
    --warning-dark: var(--tema-acento-texto);
}

/* casillas, opciones y deslizadores del navegador con el color del tema en lugar de su azul */
html[data-tema] {
    accent-color: var(--tema-principal);
}

/* --- Tipografía --- */
html[data-tema] body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[data-tema] :is(button, input, select, textarea) {
    font-family: inherit;
}
html[data-tema] :is(h1, h2, h3, .section-header h1) {
    font-family: 'Outfit', 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

/* --- Menú lateral --- */
html[data-tema] .sidebar {
    background: #ffffff;
    border-right-color: var(--tema-borde);
}
html[data-tema] .nav-item {
    color: var(--tema-texto-2);
    border-radius: var(--radius);
}
html[data-tema] .nav-item:hover {
    background: var(--tema-hover);
    color: var(--tema-texto);
}
html[data-tema] .nav-item.active {
    background: var(--tema-seleccion-fondo);
    color: var(--tema-seleccion-texto);
}
html[data-tema] .nav-item.active .nav-text {
    font-weight: 600;
}
html[data-tema] .user-avatar {
    background: var(--tema-seleccion-fondo);
    color: var(--tema-seleccion-texto);
}

/* globos de avisos y pendientes */
html[data-tema] :is(.nav-badge, .notification-badge, .cart-badge, .msg-badge-inline) {
    background: var(--tema-acento);
    color: var(--tema-sobre-acento);
}

/* Iconos de línea en el menú en lugar de emojis. El icono se dibuja con una máscara
   y toma el color del texto de la opción */
html[data-tema] .nav-item[data-section="global-search"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="zoho-search"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
html[data-tema] :is(#navProyectosGroupHeader, .nav-item[data-section="projects"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z'/%3E%3Cpath d='m6.2 5.3 3.1 3.9'/%3E%3Cpath d='m12.4 3.4 3.1 4'/%3E%3Cpath d='M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="historico-envios"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="proyectos-estrenados"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item:is([data-section="browse-folders"], [data-section="folders"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item:is([data-section="crud-accounts"], [data-section="admin-workspaces"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1'/%3E%3Cpath d='M9 7h2M13 7h2M9 11h2M13 11h2M9 15h2M13 15h2M10 21v-3h4v3'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item:is([data-section="profile"], [data-section="tecnico-profile"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
/* Contactos: una persona delante y dos más pequeñas detrás (Mi Perfil sigue con la persona) */
html[data-tema] .nav-item[data-section="crud-contacts"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='10.5' r='3.3'/%3E%3Cpath d='M6 21c0-3.4 2.7-5.6 6-5.6s6 2.2 6 5.6'/%3E%3Ccircle cx='5' cy='7.5' r='2.2' stroke-width='1.7'/%3E%3Cpath d='M1.5 15.5c0-2.1 1.4-3.5 3.5-3.6' stroke-width='1.7'/%3E%3Ccircle cx='19' cy='7.5' r='2.2' stroke-width='1.7'/%3E%3Cpath d='M22.5 15.5c0-2.1-1.4-3.5-3.5-3.6' stroke-width='1.7'/%3E%3C/svg%3E"); }
html[data-tema] .mobile-nav-item[data-section="crud-contacts"] .emo { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='10.5' r='3.3'/%3E%3Cpath d='M6 21c0-3.4 2.7-5.6 6-5.6s6 2.2 6 5.6'/%3E%3Ccircle cx='5' cy='7.5' r='2.2' stroke-width='1.7'/%3E%3Cpath d='M1.5 15.5c0-2.1 1.4-3.5 3.5-3.6' stroke-width='1.7'/%3E%3Ccircle cx='19' cy='7.5' r='2.2' stroke-width='1.7'/%3E%3Cpath d='M22.5 15.5c0-2.1-1.4-3.5-3.5-3.6' stroke-width='1.7'/%3E%3C/svg%3E"); }
html[data-tema] .mobile-nav-item:is([data-section="sunlocs-calendar"], [data-section="tecnico-calendar"]) .emo { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v3'/%3E%3Cpath d='M16 2v3'/%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item:is([data-section="crud-account-contacts"], [data-section="admin-usuarios"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-6 7-6s7 2 7 6M16 4a4 4 0 0 1 0 8M22 21c0-3-2-5-4-6'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="crud-locations"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item:is([data-section="sunlocs-calendar"], [data-section="tecnico-calendar"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v3'/%3E%3Cpath d='M16 2v3'/%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="sunlocs-chat"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
html[data-tema] :is(#navAdminGroupHeader, .nav-item[data-section="admin"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
html[data-tema] :is(#navCuadroMandoWs, #navCuadroMando) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V11M10 20V4M16 20v-7M2 20h20'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item:is([data-section="gestion-tablas"], [data-section="admin-tablas"]) { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M3 15h18M9 4v16'/%3E%3C/svg%3E"); }
html[data-tema] #navPlataformaGroupHeader { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="admin-platform"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4a5 5 0 0 0-4.7 6.7L4 17v3h3l6.3-6.3A5 5 0 0 0 20 9l-3 1-2-2 1-3z'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="admin-permisos"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="admin-mensajes"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="admin-configuracion"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.2 0-1.1.9-2 2-2h2.3A4.7 4.7 0 0 0 21 9.8C21 6 17 3 12 3z'/%3E%3Ccircle cx='7.5' cy='11' r='1'/%3E%3Ccircle cx='10' cy='7' r='1'/%3E%3Ccircle cx='15' cy='7.5' r='1'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="tecnico-directory"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='14' height='11' rx='2'/%3E%3Cpath d='M16 11l6-3v9l-6-3'/%3E%3C/svg%3E"); }
html[data-tema] #navLocalizacionesGroupHeader { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4L3 6v14l6-2 6 2 6-2V4l-6 2-6-2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
html[data-tema] #navCron { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
/* Personas (búsquedas de técnicos y de proveedores), Proveedores con un camión y Alertas del proveedor */
html[data-tema] #navPersonasGroupHeader { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
html[data-tema] .nav-item[data-section="proveedor-directory"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }
html[data-tema] .mobile-nav-item[data-section="proveedor-directory"] .emo { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }
html[data-tema] #navAlertas { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }

html[data-tema] :is(
    .nav-item[data-section="global-search"], .nav-item[data-section="zoho-search"], #navProyectosGroupHeader,
    .nav-item[data-section="projects"], .nav-item[data-section="historico-envios"], .nav-item[data-section="proyectos-estrenados"],
    .nav-item[data-section="browse-folders"], .nav-item[data-section="folders"], .nav-item[data-section="crud-accounts"],
    .nav-item[data-section="admin-workspaces"], .nav-item[data-section="crud-contacts"], .nav-item[data-section="profile"],
    .nav-item[data-section="tecnico-profile"], .nav-item[data-section="crud-account-contacts"], .nav-item[data-section="admin-usuarios"],
    .nav-item[data-section="crud-locations"], .nav-item[data-section="sunlocs-calendar"], .nav-item[data-section="tecnico-calendar"],
    .nav-item[data-section="sunlocs-chat"], #navAdminGroupHeader, .nav-item[data-section="admin"], #navCuadroMandoWs, #navCuadroMando,
    .nav-item[data-section="gestion-tablas"], .nav-item[data-section="admin-tablas"], #navPlataformaGroupHeader,
    .nav-item[data-section="admin-platform"], .nav-item[data-section="admin-permisos"], .nav-item[data-section="admin-mensajes"],
    .nav-item[data-section="admin-configuracion"], .nav-item[data-section="tecnico-directory"], #navCron,
    #navLocalizacionesGroupHeader, #navPersonasGroupHeader, .nav-item[data-section="proveedor-directory"], #navAlertas
) > .nav-icon {
    font-size: 0;
    width: 20px;
    height: 20px;
    flex: none;
    display: inline-flex;
}
html[data-tema] :is(
    .nav-item[data-section="global-search"], .nav-item[data-section="zoho-search"], #navProyectosGroupHeader,
    .nav-item[data-section="projects"], .nav-item[data-section="historico-envios"], .nav-item[data-section="proyectos-estrenados"],
    .nav-item[data-section="browse-folders"], .nav-item[data-section="folders"], .nav-item[data-section="crud-accounts"],
    .nav-item[data-section="admin-workspaces"], .nav-item[data-section="crud-contacts"], .nav-item[data-section="profile"],
    .nav-item[data-section="tecnico-profile"], .nav-item[data-section="crud-account-contacts"], .nav-item[data-section="admin-usuarios"],
    .nav-item[data-section="crud-locations"], .nav-item[data-section="sunlocs-calendar"], .nav-item[data-section="tecnico-calendar"],
    .nav-item[data-section="sunlocs-chat"], #navAdminGroupHeader, .nav-item[data-section="admin"], #navCuadroMandoWs, #navCuadroMando,
    .nav-item[data-section="gestion-tablas"], .nav-item[data-section="admin-tablas"], #navPlataformaGroupHeader,
    .nav-item[data-section="admin-platform"], .nav-item[data-section="admin-permisos"], .nav-item[data-section="admin-mensajes"],
    .nav-item[data-section="admin-configuracion"], .nav-item[data-section="tecnico-directory"], #navCron,
    #navLocalizacionesGroupHeader, #navPersonasGroupHeader, .nav-item[data-section="proveedor-directory"], #navAlertas
) > .nav-icon::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--icono) center / 20px 20px no-repeat;
    mask: var(--icono) center / 20px 20px no-repeat;
}
/* la chincheta de Buscar localizaciones se dibuja con su propio elemento */
html[data-tema] .nav-item[data-section="zoho-search"] > .nav-icon > .pin-mapa {
    display: none;
}

/* --- Elegir perfil al entrar --- */
html[data-tema] .workspace-select-screen {
    background: var(--tema-fondo);
}
html[data-tema] .workspace-select-container {
    border: 1px solid var(--tema-borde);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
html[data-tema] :is(.workspace-select-header h1, .workspace-select-card-name) {
    color: var(--tema-texto);
}
html[data-tema] :is(.workspace-select-header p, .workspace-select-card-type) {
    color: var(--tema-texto-2);
}
html[data-tema] :is(.workspace-select-card-desc, .workspace-select-card-arrow) {
    color: var(--tema-texto-suave);
}
html[data-tema] .workspace-select-card {
    border: 1px solid var(--tema-borde);
}
html[data-tema] :is(.workspace-select-card:hover, .workspace-select-card.active) {
    border-color: var(--tema-acento);
    background: var(--tema-acento-suave);
    box-shadow: none;
}
html[data-tema] .workspace-select-card-icon {
    background: var(--tema-seleccion-fondo);
    color: var(--tema-seleccion-texto);
}
html[data-tema] .ws-badge {
    background: var(--tema-acento-suave);
    color: var(--tema-acento-texto);
}

/* Avisos y Pendientes de Envío, al pie del menú: el mismo icono de línea */
html[data-tema] .btn-avisos > .boton-icono { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
html[data-tema] .btn-cart > .boton-icono { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-9'/%3E%3Cpath d='M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z'/%3E%3Cpath d='M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13'/%3E%3Cpath d='M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z'/%3E%3C/svg%3E"); }
/* la caja abierta de Pendientes de Envío en el resto de sitios, de línea como los demás iconos */
html[data-tema] .caja-abierta {
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-9'/%3E%3Cpath d='M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z'/%3E%3Cpath d='M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13'/%3E%3Cpath d='M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-9'/%3E%3Cpath d='M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z'/%3E%3Cpath d='M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13'/%3E%3Cpath d='M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-tema] :is(.btn-avisos, .btn-cart) > .boton-icono {
    font-size: 0;
    width: 18px;
    height: 18px;
    flex: none;
    display: inline-flex;
}
html[data-tema] :is(.btn-avisos, .btn-cart) > .boton-icono::before {
    content: '';
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--icono) center / 18px 18px no-repeat;
    mask: var(--icono) center / 18px 18px no-repeat;
}

/* --- Botones --- */
html[data-tema] .btn-primary {
    font-weight: 600;
}
/* con :where el blanco no pisa a los secundarios que van sobre una franja de color */
:where(html[data-tema]) .btn-secondary {
    background: #ffffff;
    border-radius: var(--radius);
}
:where(html[data-tema]) .btn-secondary:hover {
    background: var(--tema-hover);
}

/* --- Ficha del proyecto: la franja de arriba y su fondo suave con el acento --- */
html[data-tema] .proy-hero::before {
    background: var(--tema-acento);
}
html[data-tema] .proy-hero::after {
    background: linear-gradient(110deg, var(--tema-acento-suave), transparent 65%);
}
html[data-tema] .pf-cabecera {
    background: var(--tema-principal);
}

/* --- Proceso del proyecto: hecho en el color principal, el paso actual en el acento --- */
html[data-tema] .flujo-paso.hecho .flujo-paso-marca {
    background: var(--tema-principal);
    border-color: var(--tema-principal);
}
html[data-tema] .flujo-paso.flujo-paso-meta .flujo-paso-marca {
    box-shadow: 0 0 0 4px var(--tema-seleccion-fondo);
}
html[data-tema] .flujo-paso.actual .flujo-paso-marca {
    border-color: var(--tema-acento);
    background: var(--tema-acento-suave);
    box-shadow: 0 0 0 4px var(--tema-acento-suave);
}
html[data-tema] .flujo-paso.actual .flujo-paso-t,
html[data-tema] .flujo-paso-quien,
html[data-tema] .flujo-paso-quien-yo {
    color: var(--tema-acento-texto);
}
html[data-tema] .flujo-paso-quien-despues {
    color: var(--tema-texto-suave);
}

/* --- Colores fijos de la web llevados al tema ---
   Los botones, cabeceras, etiquetas y enlaces que tenían su propio verde, azul o morado
   toman los colores del tema. Los que llevan significado se quedan como están: rojo de
   borrar o error, verde de aceptado, ámbar de aviso y los colores de los estados del proceso */

/* acciones principales: Pendientes de Envío, añadir al envío y Ver fotos */
html[data-tema] :is(.btn-cart, .btn-add-cart, .btn-add-folder-cart, .btn-ver-fotos:not(:disabled)) {
    background: var(--tema-principal);
    border-color: var(--tema-principal);
    color: #ffffff;
    box-shadow: none;
}
html[data-tema] :is(.btn-cart, .btn-add-cart, .btn-add-folder-cart, .btn-ver-fotos:not(:disabled)):hover {
    background: var(--tema-principal-hover);
    box-shadow: var(--shadow-md);
}
/* Ver fotos apagado (mientras comprueba si hay fotos) se ve apagado también con tema */
html[data-tema] .btn-ver-fotos:disabled {
    background: var(--bg-hover);
    border-color: var(--border);
    color: var(--text-muted, #94a3b8);
    box-shadow: none;
}
html[data-tema] :is(.invitation-card-actions .btn-primary.btn-sm, .deco-director-selection .btn-small) {
    background: var(--tema-principal);
    border-color: var(--tema-principal);
    color: #ffffff;
}
html[data-tema] :is(.invitation-card-actions .btn-primary.btn-sm, .deco-director-selection .btn-small):hover {
    background: var(--tema-principal-hover);
}
html[data-tema] .btn-make-admin {
    color: var(--tema-principal);
    border-color: var(--tema-principal);
}
html[data-tema] .btn-make-admin:hover {
    background: var(--tema-principal);
    color: #ffffff;
}

/* Cronología: el botón y la ventana */
html[data-tema] .btn-cronologia {
    color: var(--tema-principal);
    background: color-mix(in srgb, var(--tema-principal) 6%, transparent);
    border-color: color-mix(in srgb, var(--tema-principal) 25%, transparent);
}
html[data-tema] .btn-cronologia:hover {
    background: color-mix(in srgb, var(--tema-principal) 12%, transparent);
    border-color: color-mix(in srgb, var(--tema-principal) 40%, transparent);
}
html[data-tema] .cronologia-modal-content {
    --crono-color: var(--tema-principal);
}
html[data-tema] .cronologia-entry.action-update::before {
    background: var(--tema-acento);
}
html[data-tema] .cronologia-action-badge.badge-update {
    color: var(--tema-acento-texto);
}

/* cabeceras de color de las fichas y ventanas */
html[data-tema] :is(.td-hero-fondo, .disp-cabecera, .wr-cabecera:not(.wr-cabecera-peligro)) {
    background: linear-gradient(120deg, var(--tema-principal), var(--tema-principal-hover));
}
html[data-tema] .cuenta-hero::before {
    background: var(--cuenta-color);
}
html[data-tema] .cuenta-hero-icono {
    background: color-mix(in srgb, var(--cuenta-color) 14%, var(--bg-card));
}
html[data-tema] .proy-hero-productora-icono {
    background: var(--tema-acento-suave);
}
html[data-tema] :is(.profile-avatar-large, .tec-dir-photo-placeholder-sm) {
    background: var(--tema-seleccion-fondo);
    color: var(--tema-seleccion-texto);
}

/* etiquetas y avisos informativos */
html[data-tema] :is(.crud-badge.crud-badge-info, .badge-account-blue, .zoho-link, .ob-inv-banner, .sol-fiab-hist, .ruta-hf-ok,
    .profile-role-badge, .ws-profile-badge-private, .workspace-switcher-option-badge, .role-user,
    .prod-cal-stat-icon.total, .deco-director-selection-count, .zoho-badge-caracteristica) {
    background: var(--tema-acento-suave);
    color: var(--tema-acento-texto);
}
html[data-tema] .ob-inv-banner {
    border-color: var(--tema-borde);
}
html[data-tema] .zoho-link:hover {
    background: var(--tema-seleccion-fondo);
    color: var(--tema-seleccion-texto);
}

/* textos y enlaces en azul */
html[data-tema] :is(.zoho-section-title, .zoho-precio, .profile-activity-value, .historico-productora, .deco-director-selection-label) {
    color: var(--tema-principal);
}
html[data-tema] .zoho-section-title {
    border-bottom-color: var(--tema-borde);
}
html[data-tema] :is(.wr-email-link, .zoho-link-inline, .tecnico-photo-upload-btn, .ruta-hf-ok-txt, .search-tag-match, .search-highlight) {
    color: var(--tema-acento-texto);
}
html[data-tema] .wr-email-link:hover {
    color: var(--tema-texto);
}

/* puntos de no leído, novedad y enviado */
html[data-tema] :is(.msg-unread .msg-inbox-dot, .prod-cal-card-title .prod-cal-new-dot) {
    background: var(--tema-acento);
}
html[data-tema] .prod-wr-timeline-dot.sent {
    background: var(--tema-principal);
    box-shadow: 0 0 0 2px var(--tema-seleccion-fondo);
}
html[data-tema] .notif-item-unread {
    background: var(--tema-acento-suave);
}

/* selección de fotos */
html[data-tema] .photo-select-bar {
    background: var(--tema-acento-suave);
    border-color: var(--tema-acento);
}
html[data-tema] :is(.photo-card.selected, .loc-photo-card.selected) {
    outline-color: var(--tema-acento);
}

/* tarjetas de Buscar Localizaciones */
html[data-tema] .zoho-card-header {
    background: var(--tema-hover);
    border-bottom-color: var(--tema-borde);
    color: var(--tema-texto);
}
html[data-tema] .zoho-title {
    color: var(--tema-texto);
}
html[data-tema] .zoho-title-link:hover {
    color: var(--tema-acento-texto);
}
html[data-tema] .zoho-codigo {
    background: var(--tema-texto);
    color: #ffffff;
}
html[data-tema] .folder-thumbnail-name {
    background: var(--tema-hover);
    color: var(--tema-texto);
}
html[data-tema] :is(.zoho-estado.estado-alta, .zoho-badge-categoria) {
    background: var(--tema-principal);
    color: #ffffff;
}
html[data-tema] .zoho-badge-subcategoria {
    background: #ffffff;
    color: var(--tema-principal);
    box-shadow: inset 0 0 0 1px var(--tema-principal);
}
html[data-tema] .found-filter-toggle {
    background: var(--tema-acento-suave);
    border-color: var(--tema-borde);
}
html[data-tema] .found-filter-toggle .toggle-label {
    color: var(--tema-texto);
}
html[data-tema] .found-filter-toggle .toggle-switch input:checked + .toggle-slider {
    background-color: var(--tema-principal);
}
html[data-tema] .tags-multiselect-control.has-selection {
    border-color: var(--tema-acento);
}

/* Filtros de Buscar Localizaciones, el único de su clase resaltado */
html[data-tema] #zohoFormToggleBtn {
    background: var(--tema-principal);
    border-color: var(--tema-principal);
    color: #ffffff;
}
html[data-tema] #zohoFormToggleBtn:hover {
    background: var(--tema-principal-hover);
    border-color: var(--tema-principal-hover);
}

html[data-tema] .zoho-criterios {
    background: var(--tema-acento-suave);
    border-color: var(--tema-acento);
}

/* WhatsApp: el logo va del color del texto o del icono que lo rodea (menú, Mi perfil y Plataforma),
   sin el verde de la marca; la tarjeta y los grupos van con el tema */
html[data-tema] .wa-icono {
    color: currentColor;
}
html[data-tema] .nav-item.active .nav-icon-wa {
    background: none;
    padding: 0;
}
/* Teléfono con enlace (listados y fichas): de línea, sin el verde; su color, el principal del tema,
   lo pone tema-colores.css a partir del verde de insignias.css */
html[data-tema] .phone-icon-green {
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-tema] .phone-icon-green svg {
    display: none;
}
html[data-tema] .wa-card {
    border-top-color: var(--tema-acento);
}
html[data-tema] .wa-grupo:hover {
    border-color: var(--tema-acento);
}
html[data-tema] .wa-grupo:has(input:checked) {
    border-color: var(--tema-acento);
    background: var(--tema-acento-suave);
}
html[data-tema] .wa-grupo input {
    accent-color: var(--tema-principal);
}

/* cabecera de la ficha de localización: el estado se ve en la franja de la izquierda y en
   su pastilla; el fondo va con el tema en lugar del verde o el rojo */
html[data-tema] :is(.lf-cabecera, .lf-estado-activa, .lf-estado-inactiva) {
    background: linear-gradient(120deg, var(--tema-acento-suave) 0%, #ffffff 65%);
}

/* etiquetas de las localizaciones: conservan su color, pero en suave */
html[data-tema] .zoho-tag-chip[style*="--tag"] {
    background: color-mix(in srgb, var(--tag) 16%, #ffffff) !important;
    color: color-mix(in srgb, var(--tag) 70%, #1f1f1f) !important;
    border-color: color-mix(in srgb, var(--tag) 35%, transparent);
}

/* aviso de cookies con la letra del tema */
html[data-tema] :is(.aviso-cookies, .pie-cookies) {
    font-family: inherit;
}

/* estrella de favoritos sin marcar: que se vea sobre el blanco */
html[data-tema] .tec-dir-fav-btn-tbl:not(.is-favorite):not(:hover) {
    color: var(--tema-texto-suave);
}

/* aviso en texto: el tono oscuro del acento para que se lea sobre fondo claro */
html[data-tema] :is(.usuarios-estado.pendiente, .paquete-falta-destino) {
    color: var(--tema-acento-texto);
}
html[data-tema] :is(.usuarios-avatar, .user-avatar-small).es-sa {
    background: var(--tema-acento-texto);
}

/* tipo de perfil y rol en las listas de usuarios: el texto ya dice cuál es, van en neutro */
html[data-tema] :is(.badge-localizador_empresa, .badge-localizador_individual, .badge-film_commission, .badge-tecnico,
    .badge-productora, .badge-proveedor, .badge-admin, .badge-member) {
    background: var(--tema-hover);
    color: var(--tema-texto-2);
}
html[data-tema] .role-admin {
    background: var(--tema-acento-suave);
    color: var(--tema-acento-texto);
}

/* leyenda del mapa de Buscar Localizaciones, con los mismos colores que sus marcas (colorPin) */
html[data-tema] .leyenda-punto.verde { background: var(--tema-principal); }
html[data-tema] .leyenda-punto.ambar { background: var(--tema-acento); }
html[data-tema] .leyenda-punto.rojo { background: color-mix(in srgb, var(--tema-texto-suave) 45%, var(--tema-borde)); }

/* tipo de visita: Recce técnico en el acento y Recce artístico en el color principal, igual que sus
   eventos en el calendario (_slCalInfoDeTipo) */
html[data-tema] .pastilla-visita-recce {
    background: var(--tema-acento-suave);
    border-color: color-mix(in srgb, var(--tema-acento) 45%, transparent);
    color: var(--tema-acento-texto);
}
html[data-tema] .pastilla-visita-directors_scout {
    background: var(--tema-seleccion-fondo);
    border-color: color-mix(in srgb, var(--tema-principal) 40%, transparent);
    color: var(--tema-seleccion-texto);
}

/* estado de los proyectos, igual en la lista, la ficha y el histórico: activo en el color de
   selección del tema, cerrado y archivado en neutro y estrenado, el final, en el acento */
html[data-tema] :is(.proyecto-estado-activo, .historico-estado-proyecto.historico-estado-info) {
    background: var(--tema-seleccion-fondo);
    border-color: color-mix(in srgb, var(--tema-principal) 35%, transparent);
    color: var(--tema-seleccion-texto);
}
html[data-tema] :is(.cerrado-badge, .proyecto-estado-archivado, .historico-estado-proyecto.historico-estado-neutro) {
    background: var(--tema-hover);
    border-color: color-mix(in srgb, var(--tema-texto-suave) 45%, var(--tema-borde));
    color: var(--tema-texto-2);
}
html[data-tema] :is(.estrenado-badge, .historico-estado-estrenado) {
    background: var(--tema-acento);
    border-color: var(--tema-acento);
    color: var(--tema-sobre-acento);
}
html[data-tema] .estrenado-check:has(input:checked) {
    background: var(--tema-acento-suave);
    border-color: var(--tema-acento);
    color: var(--tema-acento-texto);
}
html[data-tema] .lista-fila:is(.proyecto-fila-estrenado, .historico-fila-estrenado) {
    background: var(--tema-acento-suave);
    box-shadow: inset 3px 0 0 var(--tema-acento);
}
html[data-tema] .historico-grupo-estrenado { border-color: var(--tema-acento); }

/* estado de los envíos, igual en el Histórico y en la tabla de envíos del decorado: pendiente de
   la productora en el color de selección del tema, seleccionado o hecho en el principal, lo que
   espera al localizador o pide un ajuste con borde del acento, con el director relleno del acento
   (como su corona) y retirado o caducado en neutro; quitado o borrado sigue en rojo */
html[data-tema] :is(.historico-estado-info, .historico-estado-flujo.historico-estado-info, .package-status-pendiente_productora) {
    background: var(--tema-seleccion-fondo);
    border-color: color-mix(in srgb, var(--tema-principal) 35%, transparent);
    color: var(--tema-seleccion-texto);
}
html[data-tema] :is(.historico-estado-ok, .package-status-seleccionado) {
    background: color-mix(in srgb, var(--tema-principal) 10%, #ffffff);
    border-color: var(--tema-principal);
    color: var(--tema-principal);
}
html[data-tema] :is(.historico-estado-aviso, .package-status-solicitado, .package-status-aclaracion) {
    background: #ffffff;
    border-color: var(--tema-acento);
    color: var(--tema-acento-texto);
}
html[data-tema] :is(.historico-estado-director, .package-status-enviado_director) {
    background: var(--tema-acento-suave);
    border-color: var(--tema-acento);
    color: var(--tema-acento-texto);
}
html[data-tema] :is(.historico-estado-neutro, .package-status-retirado) {
    background: var(--tema-hover);
    border-color: color-mix(in srgb, var(--tema-texto-suave) 45%, var(--tema-borde));
    color: var(--tema-texto-2);
}
html[data-tema] .historico-estado-borrador { border-color: var(--tema-texto-suave); color: var(--tema-texto-2); }
html[data-tema] .package-status-catalogo { border-color: var(--tema-acento); }

/* columna Estado del flujo: el Recce técnico en el acento y Listo para rodar en el color de
   selección del tema */
html[data-tema] .flujo-lista-etapa-8 {
    background: var(--tema-acento-suave);
    border-color: var(--tema-acento);
    color: var(--tema-acento-texto);
}
html[data-tema] .flujo-lista-etapa-9 {
    background: var(--tema-seleccion-fondo);
    border-color: color-mix(in srgb, var(--tema-principal) 35%, transparent);
    color: var(--tema-seleccion-texto);
}

/* deslizadores de Amplia a Estricta */
html[data-tema] :is(.similitud-slider, .similarity-control input[type="range"]) {
    background: linear-gradient(to right, var(--tema-borde), var(--tema-principal));
}
html[data-tema] :is(.similitud-slider, .similarity-control input[type="range"]):not(:disabled)::-webkit-slider-thumb {
    border-color: var(--tema-principal);
}
html[data-tema] :is(.similitud-slider, .similarity-control input[type="range"]):not(:disabled)::-moz-range-thumb {
    border-color: var(--tema-principal);
}
html[data-tema] :is(.similitud-label-right, .similarity-control label span) {
    color: var(--tema-principal);
}

/* alta de cuenta, cambio de workspace y subida de fotos */
html[data-tema] .onboarding-screen {
    background: var(--tema-fondo);
}
html[data-tema] .onboarding-option:hover {
    border-color: var(--tema-acento);
}
html[data-tema] .workspace-switcher-btn:hover {
    border-color: var(--tema-acento);
}
html[data-tema] .workspace-switcher-option.active {
    background: var(--tema-acento-suave);
}
html[data-tema] #uploadWidget:not(.uw-done) .uw-bar-fill {
    background: var(--tema-acento);
}
html[data-tema] #uploadWidget:not(.uw-done) .uw-counter {
    color: var(--tema-acento);
}

/* --- Desarrollo: el fondo amarillo de aviso taparía el tema; en su lugar, una
   etiqueta DEV junto al logo --- */
html[data-tema] body.dev-mode {
    --bg-main: var(--tema-fondo);
    --bg-dark: var(--tema-fondo);
    --bg-card: #ffffff;
    --bg-input: #ffffff;
}
html[data-tema] body.dev-mode,
html[data-tema] body.dev-mode .main-content,
html[data-tema] body.dev-mode .auth-screen {
    background: var(--tema-fondo) !important;
}
html[data-tema] body.dev-mode .file-item,
html[data-tema] body.dev-mode .zoho-badges,
html[data-tema] body.dev-mode .folder-thumbnail-card,
html[data-tema] body.dev-mode .sync-modal,
html[data-tema] body.dev-mode .sidebar,
html[data-tema] body.dev-mode .mobile-bottom-nav {
    background: #ffffff !important;
}
html[data-tema] body.dev-mode .logo-small {
    position: relative;
}
html[data-tema] body.dev-mode .logo-small::after {
    content: 'DEV';
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--tema-texto);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
