@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --body-color: #090909;
    --blanco: #181818;
    --bg-logo: #2b2d31;
    --bg-sidebar: #2b2d31;
    --text-color-sidebar: #ececf1;
    --bg-gris: rgba(255, 255, 255, 0.08);
    --color-btn: #f5f5f5;
    --bg-color-btn: #343541;
    --bg-red-btn: #fa5c7c;
    --primary-color: #D7E72C;
    --primary-color-light: #343541;
    --primary-soft: rgba(255, 255, 255, 0.08);
    --primary-ring: rgba(255, 255, 255, 0.16);
    --toggle-color: #ececf1;
    --text-color: #FEFEFE;
    --text-muted: #a8adb7;
    --linea: #313131;
    --btn-cancel-delete: #343541;
    --text-btn-cancel: #a8adb7;
    --skeleton-base: #292a2d;
    --skeleton-highlight: #343541;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(255, 255, 255, 0.4) inset;
    --shadow-dark: 0 12px 16px rgba(0, 0, 0, 0.2);
    --shadow-dropdown-light: 0 3px 8px rgba(0, 0, 0, 0.10), 0 1px 1px rgba(255, 255, 255, 0.45) inset;
    --shadow-dropdown-dark: 0 3px 10px rgba(0, 0, 0, 0.35);
    --shadow-active: var(--shadow-dark);
    --shadow-dropdown-active: var(--shadow-dropdown-dark);

/* Wi asistente */

   --wi-bg:          #202123;
    --wi-surface:     #2b2d31;
    --wi-surface2:    #343541;
    --wi-border:      rgba(255,255,255,0.08);
    --wi-accent:      #f5f5f5;
    --wi-accent2:     #d4d4d4;
    --wi-accent3:     #43e97b;
    --wi-text:        #f0f0f5;
    --wi-muted:       #a8adb7;
    --wi-radius:      18px;
    --wi-radius-sm:   10px;
    --wi-sheet-h:     52vh;
    --sidebar-motion: 0.32s cubic-bezier(0.4, 0, 0.2, 1);


}

/* ===== TEMA OSCURO - ACTIVADO POR ATRIBUTO DATA-THEME ===== */
[data-theme="dark"] {
    --body-color: #090909;
    --blanco: #181818;
    --bg-logo: #2b2d31;
    --bg-sidebar: #2b2d31;
    --text-color-sidebar: #ececf1;
    --primary-color: #D7E72C;
    --primary-color-light: #343541;
    --primary-soft: rgba(255, 255, 255, 0.08);
    --primary-ring: rgba(255, 255, 255, 0.16);
    --toggle-color: #ececf1;
    --color-btn: #f5f5f5;
    --text-color: #FEFEFE;
    --text-muted: #a8adb7;
    --linea: #3f4147;
    --bg-color-btn: #343541;
    --btn-cancel-delete: #343541;
    --text-btn-cancel: #a8adb7;
    --shadow-active: var(--shadow-dark);
    --shadow-dropdown-active: var(--shadow-dropdown-dark);
    --skeleton-base: #292a2d;
    --skeleton-highlight: #343541;
}

/* Compatibilidad con clase .dark */
.dark {
    --body-color: #090909;
    --blanco: #181818;
    --bg-logo: #2b2d31;
    --bg-sidebar: #2b2d31;
    --text-color-sidebar: #ececf1;
    --primary-color: #D7E72C;
    --primary-color-light: #343541;
    --primary-soft: rgba(255, 255, 255, 0.08);
    --primary-ring: rgba(255, 255, 255, 0.16);
    --toggle-color: #ececf1;
    --color-btn: #f5f5f5;
    --text-color: #FEFEFE;
    --text-muted: #a8adb7;
    --linea: #313131;
    --bg-color-btn: #313131;
    --btn-cancel-delete: #343541;
    --text-btn-cancel: #a8adb7;
    --shadow-active: var(--shadow-dark);
    --shadow-dropdown-active: var(--shadow-dropdown-dark);
    --skeleton-base: #292a2d;
    --skeleton-highlight: #343541;
}


* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

body {
    background: var(--body-color);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}



::selection {
    background-color: var(--primary-color);
}



.fondo-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* siempre detrás de todo */
    pointer-events: none;

}




h1 {
    font-weight: 500;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 15px 0 0;
}

h2 {
    font-weight: 500;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px;
}

h3 {
    color: var(--color-btn);
    font-weight: 500;
    font-size: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 15px 0 0;
}

h4 {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

b {
    font-weight: 500;
}

hr {
    height: 1px;
    background-color: var(--linea);
    border: none;
    margin: 20px 5px;
    transition: var(--tran-05);
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none;
}

.link {
    color: var(--primary-color);
    font-weight: 500;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    -webkit-transition: all .2s;
    transition: all .2s;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 500;
}

img {
    border: none;
}

.btn-redondo {
    background: transparent;
    border-radius: 250px;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    vertical-align: middle;
    padding: 10px;
    text-align: center;
    -webkit-transition: all .2s;
    transition: all .2s;
    line-height: 0;
    display: inline-block;
}

.btn-redondo:hover {
    background: var(--body-color);
    -webkit-transition: all .2s;
    transition: all .2s;
}

.btn-redondo.dropdown-trigger.active,
.btn-redondo.dropdown-trigger.dropdown-open {
    background: var(--body-color);
    -webkit-transition: all .2s;
    transition: all .2s;
}

.btn-redondo-danger {
    background: transparent;
    border-radius: 250px;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    vertical-align: middle;
    padding: 10px;
    text-align: center;
    -webkit-transition: all .2s;
    transition: all .2s;
    line-height: 0;
    display: inline-block;
}

.btn-redondo-danger:hover {
    color: #FF4040;
    background: rgba(239, 68, 68, 0.12);
    -webkit-transition: all .2s;
    transition: all .2s;
}

body.dark .btn-redondo:hover {
    color: var(--text-color);
    background: #313131;
}

body.dark .btn-redondo.dropdown-trigger.active,
body.dark .btn-redondo.dropdown-trigger.dropdown-open {
    color: var(--text-color);
    background: #313131;
}

.btn-blue {
    background: var(--primary-color);
    border-radius: 250px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding: 14px 24px;
    border: 1px solid var(--primary-color);
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease;
}


.btn-blue:hover {

}

.btn-grey {
    background: transparent;
    border-radius: 250px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 14px 24px;
    border: 0;
    outline: none;
    text-align: center;
    transition: var(--tran-03);    
}

.btn-grey:hover {
    background: var(--body-color); 
}


.btn-red {
    background: #ef4444;
    border-radius: 250px;
    font-weight: 500;
    color: #FFF;
    text-decoration: none;
    padding: 14px 24px;
    border: 0;
    outline: none;
    text-align: center;
}

.btn-cancel-delete {
    background: transparent;
    border-radius: 250px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 14px 24px;
    border: 0;
    outline: none;
    text-align: center;
    transition: var(--tran-03);      
}

.btn-cancel-delete:hover {
    background: var(--btn-cancel-delete); 
}

@media screen and (max-width:920px) {

    .btn-blue,
    .btn-grey,
    .btn-red,
    .btn-cancel-delete {
        width: 100%;
        text-align: center;
    }
}

.btn-dropdown {
    background: transparent;
    border-radius: 12px;
    align-items: left;
    justify-content: center;
    color: var(--text-color);
    font-weight: 500;
    vertical-align: middle;
    padding: 10px;
    text-align: left;
    -webkit-transition: all .2s;
    transition: all .2s;
    display: block;
}

button.btn-dropdown {
    width: 100%;
    display: block;
}

.btn-dropdown svg {
    float: left;
}

.btn-dropdown e {
    float: left;
    margin: 3px 10px 0;
}

.btn-dropdown:hover {
    background: var(--body-color);
    -webkit-transition: all .2s;
    transition: all .2s;
}

.btn-dropdown.dropdown-trigger.active,
.btn-dropdown.dropdown-trigger.dropdown-open {
    background: var(--body-color);
    -webkit-transition: all .2s;
    transition: all .2s;
}

body.dark .btn-dropdown:hover {
    color: var(--text-color);
    background: #313131;
}

body.dark .btn-dropdown.dropdown-trigger.active,
body.dark .btn-dropdown.dropdown-trigger.dropdown-open {
    color: var(--text-color);
    background: #313131;
}

.btn-dropdown-on {
    background: var(--bg-color-btn);
    border-radius: 4px;
    align-items: left;
    justify-content: center;
    color: var(--text-color);
    font-weight: 500;
    vertical-align: middle;
    padding: 11px;
    text-align: left;
    -webkit-transition: all .2s;
    transition: all .2s;
    display: block;
    margin: 0;
}

.btn-dropdown-on:hover {
    color: var(--color-btn);
    -webkit-transition: all .2s;
    transition: all .2s;
}

@media screen and (max-width:920px) {
    a.btn-dropdown-on {
        display: block;
        margin: 0 0 5px;
    }
}

.btn-top-create {
    align-items: center;
    vertical-align: middle;
    background: var(--blanco);
    display: inline-flex;
    border-radius: 250px;
padding: 0px 24px 0px 16px;
  height: 50px;
    color: var(--text-color);
    font-weight: 500;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.btn-top-create:hover {
    background: #313131;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.btn-top-create.dropdown-trigger.active,
.btn-top-create.dropdown-trigger.dropdown-open {
    background: #313131;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.btn-top-create svg {
    margin-right: 4px;
}

@media screen and (max-width:920px) {
    .btn-top-create {
        display: none;
    }
}

.productivity-container {}

/* Estilos para el título de productividad */
.productivity-title {}


/* Login */

.regisFrm {
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-active);
    padding: 30px 30px 35px;
    border-radius: 24px;
    z-index: 100;
    margin-bottom: 40px;
}

@media screen and (max-width:920px) {
    .regisFrm {
        margin: 25px;
        padding: 0 0 20px;
        box-shadow: none;
    }
}

.regisFrm-bottom {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 100;
}

@media screen and (max-width:920px) {
    .regisFrm-bottom {
        width: 90%;
        text-align: center;
        line-height: 23px;
    }
}



.sidebar {
    background: var(--blanco);
    position: fixed;
    left: 8px;
    top: 8px;
    bottom: 8px;
    height: auto;
    
    transition: left var(--sidebar-motion), width var(--sidebar-motion), background-color var(--sidebar-motion), box-shadow var(--sidebar-motion);
    z-index: 100;
    border-radius: 24px;
    width: 250px;
    box-shadow: none;
}

#mainSidebar:not(.close) {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.sidebar.close {
    left: 8px;
    width: 82px;
    z-index: 98;
}

body.modal-overlay-open #mainSidebar,
body:has(.modal-overlay[style*="display: block"]) #mainSidebar {
    z-index: 0 !important;
    pointer-events: none;
}




/* ===== HEADER ===== */
.sidebar header {
    position: relative;
    padding: 10px 8px 8px 16px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    height: 82px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar header .image-text {
    display: flex;
    align-items: center;
    gap: 0px;
    height: 40px;
    min-width: 0;
    flex: 1;
}

.sidebar header .logo-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header .image-text .name {
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 600;
    user-select: none;
    letter-spacing: -0.3px;
    white-space: nowrap;
}



.sidebar.close header .image-text .name {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar header .image {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tran-03);
    flex-shrink: 0;
    color: var(--text-color);
}

.sidebar header .image img {
    width: 38px;
    height: 38px;
    transition: var(--tran-03);
}

.sidebar.close header .image img { display: block; }
.sidebar.close header .image svg {

    max-width: 32px;
    max-height: 32px;
    color: var(--text-color);
    transition: var(--tran-03);
}

.sidebar.close header .image:hover svg {
    color: var(--text-color);
}

.sidebar:not(.close) header .image img { display: block; }


body.dark .sidebar header .image img {
    content: url('../img/wimanager.png?v=7');
}



/* ===== TOGGLE — estilo ChatGPT ===== */
.sidebar-toggle {
    position: absolute;
top: 61px;
  right: -11px;
  width: 22px;
  height: 22px;
    border-radius: 250px;

    background: #313131;
    color: #FEFEFE;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;


}


.sidebar-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

/* Íconos según estado */
.sidebar-toggle .icon-open  { display: none; }
.sidebar-toggle .icon-close { display: block; }

.sidebar.close .sidebar-toggle .icon-open  { display: block; }
.sidebar.close .sidebar-toggle .icon-close { display: none; }


/* ===== TOOLTIPS Materialize ===== */
.sidebar:not(.close) .tooltipped:before,
.sidebar:not(.close) .tooltipped:after {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media screen and (max-width:920px) {
    .sidebar { box-shadow: none; }
}


/* ===== LIST ITEMS ===== */
.sidebar li {
    height: 44px;
    list-style: none;
    display: flex;
    align-items: center;
}

.sidebar.close li {
    height: 44px;
}

.sidebar.close.is-collapsed li a,
.sidebar.close.is-collapsed li button {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    justify-content: center;
    border-radius: 250px;
}

.sidebar header .image,
.sidebar .icon {
    min-width: 50px;
}

.sidebar .icon {
    min-width: 50px;
    border-radius: 250px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar .text,
.sidebar .icon {
    background: transparent;
    transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .text {
    font-size: 1em;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.18s ease 0.12s;
}

.sidebar.close .text {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar.close.is-collapsed .icon {
    min-width: 44px;
    width: 44px;
    height: 44px;
}

.menu hr { margin: 10px 15px; }

.sidebar .menu-section-separator {
    height: 28px;
    display: flex;
    align-items: center;
    position: relative;
    list-style: none;
    margin: 4px 0;
    padding: 0 15px;
    pointer-events: none;
}

.sidebar .menu-section-separator hr {
    width: 100%;
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--linea);
    opacity: 0;
    transform: scaleX(0.75);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sidebar .menu-section-separator span {
    position: absolute;
    top: 50%;
    left: 15px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0.6;
    transform: translateY(-50%);
    transition: opacity 0.18s ease 0.12s;
}

.sidebar.close .menu-section-separator hr {
    opacity: 1;
    transform: scaleX(1);
}

.sidebar.close .menu-section-separator {
    height: 28px;
}

.sidebar.close .menu-section-separator span {
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}


/* ===== MENU-BAR: flex column para que bottom-setting-faq quede abajo ===== */
.sidebar .menu-bar {
    padding: 0 16px 22px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
    box-sizing: border-box;
}

.sidebar.close .menu-bar { overflow: hidden; }

@media screen and (max-width:920px) {
    .sidebar-toggle {
        display: none;
    }

    .sidebar .menu-bar {
        height: 50px;
        padding: 0;
    }
}

.sidebar .menu-bar .mode {
    border-radius: 4px;
    position: relative;
    transition: var(--tran-05);
}

@media screen and (max-width:920px) {
    .sidebar .menu-bar .mode { background-color: transparent; }
}

/* .menu ocupa todo el espacio y distribuye en columna */
.sidebar .menu-bar .menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* menu-links mantiene su alto real; bottom-setting-faq usa margin-top:auto */
.sidebar .menu-bar .menu .menu-links {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}

.sidebar .menu-bar .menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar .menu-bar .menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .menu-bar .menu::-webkit-scrollbar-thumb {
    background: var(--linea);
    border-radius: 999px;
}

/* ===== BOTTOM-SETTING-FAQ al fondo ===== */
.menu .bottom-setting-faq {
    position: static;
    margin-top: auto;
    flex-shrink: 0;
    left: unset;
    bottom: unset;
}

@media screen and (max-height: 680px) {
    .sidebar .menu .bottom-setting-faq {
        display: none;
    }
}


/* ===== LINKS & BUTTONS ===== */
.sidebar li a {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: var(--text-color);
}

.sidebar li button {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: var(--text-color);
}

.sidebar li a:hover,
.sidebar li button:hover {
    background: var(--body-color);
}

body.dark .sidebar li a:hover,
body.dark .sidebar li button:hover {
    background: var(--primary-soft);
}

body.dark .sidebar.close.is-collapsed li a,
body.dark .sidebar.close.is-collapsed li button {
    border-radius: 250px;
    background: transparent;
}

.sidebar.close.is-collapsed .icon {
    min-width: 44px;
    width: 44px;
    height: 44px;
}

body.dark .sidebar.close li a:hover,
body.dark .sidebar.close li button:hover {
    color: var(--color-btn);
    background: var(--primary-soft);
}


/* ===== CLOUD ===== */
.sidebar .cloud {
    width: 260px;
    display: block;
    transition: opacity 0.3s ease 0.2s;
}

.sidebar.close .cloud {
    display: none;
    width: 0;
    transition: var(--tran-03);
    overflow: hidden;
    user-select: none;
}


/* ===== ACTIVE: solo color, sin ::before ===== */
.nav-link.active a,
.sidebar.close .nav-link.active a,
body.dark .nav-link.active a,
body.dark .sidebar.close .nav-link.active a {
    color: #D7E72C;
}

.sidebar.close .nav-link.active .text { padding-left: 0; }

.nav-link.active a:hover,
.sidebar.close .nav-link.active a:hover,
body.dark .nav-link.active a:hover,
body.dark .sidebar.close .nav-link.active a:hover {
    background: var(--primary-soft);
    color: var(--color-btn);
}


/* ===== ACTIVE MENÚ MÓVIL ===== */
.menu-movil-sidenav a.btn-dropdown.active,
.menu-movil-sidenav a.btn-dropdown.active svg,
.menu-movil-sidenav a.btn-dropdown.active e {
    color: var(--primary-color);
}


/* ===== HOME ===== */
.home {
    position: fixed;
    top: 0;
    left: 110px;
    width: calc(100% - 110px);
    transition: left var(--sidebar-motion), width var(--sidebar-motion);
    height: 100vh;
    overflow-y: auto;
    will-change: left, width;
}

.home .text {
    font-size: 1em;
    color: var(--text-color);
    padding: 20px 20px 20px 0;
}

.sidebar.close~.home {
    left: 110px;
    width: calc(100% - 110px);
}

body.dark .home .text { color: var(--text-color); }

@media screen and (max-width:920px) {
    .sidebar {
        left: 0;
        top: 0;
        bottom: 0;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .sidebar.close {
        left: 0;
    }

    .sidebar.close~.home { left: 0; width: 100%; }
}

@media screen and (max-width:920px) {
    .home {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
    }

    .sidebar.close~.home {
        left: 0;
        width: 100%;
    }

    .home .text {
        padding: 0 10px 10px;
        position: relative;
        margin-top: 0;
        border-radius: 20px 20px 0 0;
        z-index: auto;
        background: var(--body-color);
    }
}

.container-menu-movil {
    position: static;
    padding: 0 14px 0 14px;
    height: 75px;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    z-index: auto;
    display: none;
    overflow: visible;
    margin-top: var(--status-bar-height, 0px);
}

@media screen and (max-width:920px) {
    .container-menu-movil {
        display: grid;
    }
}

.container-menu-movil button {
    
    border-radius: 250px;

}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1px;
    user-select: none;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo span {
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;

}

.container-logo-movil {
    width: auto;
    min-width: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    display: flex;
}

.logo-movil {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    margin-left: -11px;
}

.logo-movil img,
.logo-movil svg {
    width: 31px;
    height: 31px;
    color: var(--text-color);
}

.logo-movil span {
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.right-movil {
    display: flex;
    gap: 6px;
    overflow: hidden;
    text-align: center;
}

.mobile-top-left,
.mobile-top-actions {
    display: flex;
    align-items: center;
}

.mobile-top-left {
    justify-content: flex-start;
}

.mobile-top-actions {
    justify-content: flex-end;
    gap: 5px;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-bottom-link,
.mobile-bottom-create {
    width: 46px;
    height: 46px;
    border-radius: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: transparent;
    line-height: 0;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.mobile-bottom-link:hover,
.mobile-bottom-create:hover,
.mobile-bottom-link.active {
    color: var(--primary-color);
    background: transparent;
}





.mobile-bottom-profile img,
.mobile-bottom-profile svg {
    width: 28px;
    height: 28px;
    border-radius: 250px;
    display: block;
    flex-shrink: 0;
}

#modalCrearMobile .wm-create-option {
    width: 100%;
    min-height: 98px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 16px 10px;
    border: 1px solid var(--linea);
    border-radius: 18px;
    background: var(--body-color);
    text-align: center;
}

#modalCrearMobile .wm-create-option svg {
    float: none;
    flex: 0 0 auto;
    margin: 0;
    width: 26px;
    height: 26px;
}

#modalCrearMobile .wm-create-option e {
    float: none;
    margin: 0;
    line-height: 1.2;
}

.create-mobile-modal .modal-content {
    padding: 0;
}

.create-mobile-modal .modal-header h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.create-mobile-modal .modal-body {
    padding: 12px 20px 24px;
}

.create-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media screen and (max-width:920px) {
    #wiAsistenteBtn {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 6px;
        right: 6px;
        bottom: max(6px, env(safe-area-inset-bottom));
        height: 60px;
        padding: 6px 8px;
        border-radius: 24px;
        background: var(--blanco);
        border: 1px solid var(--linea);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
        z-index: 850;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        justify-items: center;
    }

    .home {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .container-menu-movil .btn-redondo {
        width: 44px;
        height: 44px;
        padding: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.container-logo-sidenav {
    padding: 18px 13px;
    display: none;
}




.menu-movil-sidenav {
    padding: 10px 10px;
}

.menu-movil-sidenav .sidenav-section-label {
    display: block;
    padding: 14px 11px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-color);
    opacity: 0.6;
}

.menu-movil-sidenav svg {
    margin-right: 4px;
}

@media screen and (max-width: 920px), (pointer: coarse) {
    .material-tooltip {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.mode-movil {
    position: relative;
    width: auto;
    padding: 0 10px;
    overflow: hidden;
    display: block;
    margin-top: 5px;
}

.top {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 40px;
    align-items: center;
}

.top .btn-redondo {
    background: var(--blanco);
    width: 50px;
    height: 50px;
}

.top .btn-redondo:has(#profile-img),
.top .btn-redondo:has(.fotoperfil-menu),
.container-menu-movil .btn-redondo:has(#profile-img),
.container-menu-movil .btn-redondo:has(.fotoperfil-menu) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top .btn-redondo:hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);
    -webkit-transition: all .2s;
    transition: all .2s;
}

.top .btn-redondo.dropdown-trigger.active,
.top .btn-redondo.dropdown-trigger.dropdown-open {
    color: var(--color-btn);
    background: var(--bg-color-btn);
    -webkit-transition: all .2s;
    transition: all .2s;
}


.navegacion {
    display: inline-block;
    z-index: 99;
}

@media screen and (max-width: 920px) {
    .top {
        display: block;
        height: 60px;
    }

    .logo {
        display: none;
    }
}

.navegacion h1 {
    float: left;
    font-size: 1em;
    margin-top: 13px;
    margin-left: 7px;
}

.navegacion button {
    float: left;
}

/* buscador */

.search-container {
    padding: 0px;
    position: relative;
    width: 100%;
    height: 50px;
    border-radius: 250px;
    box-shadow: none;
    max-width: 655px;
}

.results-container {
    margin-top: 20px;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

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

.search-container .icon-search {
    position: absolute;
    top: 13px;
    left: 16px;
}


.search-container input {
    background: var(--blanco);
    border: 2px solid var(--blanco) !important;
    outline: none !important;
    font-size: 1em;
    width: calc(100% - 55px);
    border-radius: 250px;
    padding-left: 50px;
    height: 46px;
    line-height: 46px;
    text-overflow: "...";
    text-overflow: ellipsis;
    overflow: hidden;
    transition: border .2s !important;
    color: var(--text-color);
}

.search-container input:focus {
    background: var(--blanco);
    border: 2px solid var(--primary-color) !important;
}

.search-container:focus-within .search-shortcut{
  opacity: 0;
}


.search-shortcut{
  font-size: 11px;
  color: var(--text-color);
  background: var(--body-color);
  border: 1px solid var(--body-color);
  padding: 7px 7px;
  border-radius: 10px;
    position: absolute;
    right: 15px;
    top: 11px;
    opacity: 0;
    letter-spacing: 0.05em;
    font-weight: 500;
      transition: opacity .2s ease;
}

.search-container:hover .search-shortcut {
 opacity: 1;
}

.cancel-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
    border-radius: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.cancel-button:hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);
}


.cancel-button:active {
    transform: translateY(-50%) scale(0.95);
}

@keyframes placeHolderShimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.skeleton-box {
    background: var(--skeleton-base);
    background-image: linear-gradient(
        90deg,
        var(--skeleton-base)      0%,
        var(--skeleton-highlight) 20%,
        var(--skeleton-base)      40%,
        var(--skeleton-base)      100%
    );
    background-size: 600px 100%;
    background-position: -600px 0;
    animation: placeHolderShimmer 1s linear infinite;
    border-radius: 12px;
}

.autocomplete-item.skeleton-item-autocomplete {
    cursor: default;
    pointer-events: none;
        background: transparent;
        padding: 11px 16px;
}

.autocomplete-item.skeleton-item-autocomplete:hover {
    background: transparent;
}


.autocomplete-dropdown {
    position: absolute;
    top: 103%;
    left: 1px;
    right: 1px;
    padding: 8px;
    background: var(--blanco);
    border-radius: 15px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(16px);
    border: solid 1px var(--linea);
    z-index: 1000;
    max-height: 365px;
    overflow-y: auto;
    display: none;
}

.autocomplete-group-header {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
    padding: 18px 0px;
    pointer-events: none;
    margin-left: 15px;
    margin-right: 15px;
    letter-spacing: 0.03em;
}

.autocomplete-group-header:first-child {
    border-top: none;
}

.autocomplete-item {
    padding: 16px ;
    cursor: pointer;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #313131;
}

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

.autocomplete-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.autocomplete-content {
    flex: 1;
}

.autocomplete-title {
    font-size: 1em;
    font-weight: 500;
}

.autocomplete-type {
    font-size: 13px;
    opacity: 0.8;
    text-transform: capitalize;
}

.autocomplete-date {
    font-size: 13px;
    opacity: 0.8;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

/* Iconos específicos */
.icon-calendar:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23353436"><path d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-40q0-17 11.5-28.5T280-880q17 0 28.5 11.5T320-840v40h320v-40q0-17 11.5-28.5T680-880q17 0 28.5 11.5T720-840v40h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-task-completed:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23353436"><path d="m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-task-pending:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23353436"><path d="M480-71.87q-84.91 0-159.34-32.12-74.44-32.12-129.5-87.17-55.05-55.06-87.17-129.5Q71.87-395.09 71.87-480t32.12-159.34q32.12-74.44 87.17-129.5 55.06-55.05 129.5-87.17 74.43-32.12 159.34-32.12t159.34 32.12q74.44 32.12 129.5 87.17 55.05 55.06 87.17 129.5 32.12 74.43 32.12 159.34t-32.12 159.34q-32.12 74.44-87.17 129.5-55.06 55.05-129.5 87.17Q564.91-71.87 480-71.87Zm0-91q133.04 0 225.09-92.04 92.04-92.05 92.04-225.09 0-133.04-92.04-225.09-92.05-92.04-225.09-92.04-133.04 0-225.09 92.04-92.04 92.05-92.04 225.09 0 133.04 92.04 225.09 92.05 92.04 225.09 92.04Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-project:before {
    content: "📋";
}

.icon-person:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23353436"><path d="M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-240v-32q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v32q0 33-23.5 56.5T720-160H240q-33 0-56.5-23.5T160-240Zm80 0h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-inventory:before {
    content: "📦";
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.autocomplete-dropdown[style*="block"] {
    animation: fadeIn 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        max-height: 200px;
    }

}

.autocomplete-no-results {
    padding: 24px 15px 28px;
    text-align: center;
    user-select: none;
}

.no-results-icon svg {
    width: 68px;
    height: 68px;
}

.no-results-text {
    font-weight: 500;
    font-size: 1.1em;
    white-space: nowrap;

    margin-top: 10px;
}

.no-results-text-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 7px;
}


/* INICIO */


.chart-container {
    width: 500px;
}

.saludo-inicio {
    overflow: hidden;
    margin: 0 0 30px;
}

@media screen and (max-width:920px) {
    .saludo-inicio {
        margin: 0;
    }
}

.container_fotoperfil_datos {
    display: flex;
    padding: 30px 20px;
    overflow: hidden;
}

@media screen and (max-width:920px) {
    .container_fotoperfil_datos {
        display: block;
        padding: 45px 0 0;
    }
}

.container_fotoperfil {

    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

@media screen and (max-width:920px) {
    .container_fotoperfil {
        width: 150px;
        float: none;
        margin: 0 auto;
    }
}

.borde_fotoperfil {
    position: relative;
    border-radius: 250px;
    width: 100px;
    height: 100px;
    border: 4px solid #313131;
    padding: 0px;

}

.fotoperfil {
    border-radius: 250px;
    width: 100px;
    height: 100px;
    overflow: hidden;
    z-index: 99;
}

.fotoperfil img {
    object-fit: cover;
    object-position: center;
    height: 100px;
    width: 100px;
}



.fotoperfil-menu img {
    object-fit: cover;
    object-position: center;
    height: 42px;
    width: 42px;
    border-radius: 250px;
}

.fotoperfil-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}




.container_fotoperfil a {
    background: var(--blanco);
    position: absolute;
    bottom: 0;
    right: 0;

    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



body.dark .container_fotoperfil a {
    color: var(--text-color);
    background: var(--primary-color);
    -webkit-transition: all .2s;
    transition: all .2s;
}

.container_datos {
    margin: 0 20px 0;
    padding: 47px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width:920px) {
    .container_datos {
        text-align: center;
        padding: 40px 0;
        margin: 0;
    }
}

.container_datos h2 {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container_datos span {
    margin-top: 5px;
    opacity: 0.7;
}

.fotoperfil-cambio {
    border-radius: 250px;
    width: 250px;
    height: 250px;
    overflow: hidden;
    z-index: 99;
    margin: 20px auto;
    border: solid 4px rgba(230, 232, 255, 0.5);
}

.fotoperfil-cambio img {
    object-fit: cover;
    object-position: center;
    height: 250px;
    width: 250px;
}

input[type="file"].custom {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    white-space: nowrap;
    width: 1px;
}

.mensaje-jpg {
    background-color: var(--primary-color-light);
    padding: 10px;
    margin: 20px 20px 18px;
    border-radius: 4px;
}

.mensaje-jpg p {
    line-height: 21px;
    font-size: 14px;
    opacity: 0.8;
}

.container-item-proceso {
    background-color: var(--primary-color-light);
    border-radius: .25rem;
    margin: 0 20px 20px;
}



.circle {
    color: #acb0b9;
    height: 24px;
    width: 300px;
    margin-bottom: 47px;
    margin-left: -14px;
    position: relative;
    transition: .4s ease;
}

.circle.active {
    color: var(--color-btn);
    transition: 2s ease;
}

.progress-container .active span {
    float: left;
    margin-left: 10px;
    border-radius: 250px;
    width: 11px;
    height: 11px;
    background: var(--color-btn);
    border: 6px solid var(--primary-color-light);
}

.icono-proceso {
    float: left;
}

.icono-proceso svg {
    color: var(--text-color);
    margin-top: -1px;
    margin-left: 5px;
}

.content-fotos-seleccionadas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}

@media screen and (max-width:920px) {
    .content-fotos-seleccionadas {
        width: 100%;
        position: relative;
        display: block;
    }
}

.numeros-fotos {
    background-color: var(--primary-color-light);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
    overflow: hidden;
    height: 58px;
    border-radius: .25rem;
    padding: 20px 20px 0;
    margin: 20px;
}

.cantidad_fotos h2 {
    color: var(--color-btn);
    font-size: 1.1em;
    margin-top: -3px;
}

.cantidad_fotos span {
    position: absolute;
    left: 40px;
    bottom: 36px;
    opacity: 0.7;

}

.icono_cantidad_fotos {
    padding: 1px 0;
    height: 37px;
}

.icono_cantidad_fotos svg {
    float: right;
    margin-top: 5px;
}

.container-grid-dos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}

@media screen and (max-width:920px) {
    .container-grid-dos {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 0;
    }
}

.container-grid-tres {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    padding-top: 30px;
}

@media screen and (max-width:920px) {
    .container-grid-tres {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 10px;
        padding-top: 0;
    }
}

.proceso-entrega {
    background: var(--blanco);
    border-radius: .25rem;
    height: auto;
    padding: 20px 20px;
    overflow: hidden;
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .03);
}

.acceso-directo {
    width: 100%;
    background: var(--blanco);
    border-radius: .25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .03);
    display: flex;
    justify-content: center;
    align-items: center;
}

.acceso-directo:after {
    content: '';
    display: block;
    padding-bottom: 100%;
}

@media screen and (max-width:920px) {
    .acceso-directo svg {
        width: 30px;
        height: 30px;
    }
}

.acceso-directo a {
    color: var(--text-color);
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.acceso-directo button {
    color: var(--text-color);
    display: block;
    width: 100%;
    height: 100%;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.acceso-directo a:hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);
    -webkit-transition: all .2s;
    transition: all .2s;
}

body.dark .acceso-directo a:hover {
    color: var(--text-color);
    background: var(--primary-color);
    -webkit-transition: all .2s;
    transition: all .2s;
}

.acceso-directo button:hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);
    -webkit-transition: all .2s;
    transition: all .2s;
}

body.dark .acceso-directo button:hover {
    color: var(--text-color);
    background: var(--primary-color);
    -webkit-transition: all .2s;
    transition: all .2s;
}

.icon-acceso-directo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width:920px) {
    .icon-acceso-directo {
        width: 100%;
        height: 10vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.foto-del-mes {
    position: relative;
    width: 100%;
    height: 43vh;
    background: var(--blanco);
    border-radius: .25rem;
    padding: 0;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .03);
}

@media screen and (max-width:920px) {
    .foto-del-mes {
        width: auto;
        position: relative;
        float: none;
        margin-top: 10px;
    }
}

.foto-del-mes img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    cursor: pointer;
    -webkit-transition: all .2s;
    transition: all .2s;
}

@media screen and (max-width:920px) {
    .foto-del-mes img {
        width: auto;
        height: 50vh;
    }
}

.top_cuadro {
    height: 45px;
    padding: 15px 20px;
}

.top_cuadro h2 {
    margin: 11px 0 0;
    float: left;
}

.top_cuadro_opciones {
    float: right;
}

.cuadro {
    background: var(--blanco);
    border-radius: 24px;

    box-shadow: none;
    position: relative;
    padding: 20px;
    margin-top: 20px;
    transition: margin-right 0.3s ease-in-out !important;
 
   
}



@media screen and (max-width:920px) {
    .cuadro {
        margin-bottom: 10px;
        margin-top: 0px !important;
    }
}


.cuadro-top {
    position: relative;
    padding-top: 11px;
}


.cuadro-opciones {
    position: absolute;
    top: 0;
    right: 0;
}

.cuadro-gris {
    background: var(--bg-gris);
    border-radius: 15px;
    overflow: hidden;

    position: relative;
    padding: 20px;
    margin-top: 20px;
}

/* Modulo de ventas: ventas, propuestas y contratos */
.header-section {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-section h2 {
    margin: 0;
    display: flex;
    align-items: center;
}

.sales-module {
    padding: 0;
    min-height: calc(100vh - 111px);
    margin-top: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sales-module .header-section {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sales-header-actions {
    display: flex;
    align-items: center;
    gap: 0px;
}

.sales-module .header-section h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.sales-count-badge,
.sales-module .badge {
    min-width: 26px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--body-color);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    opacity: .72;
}

.sales-summary-row,
.resumen-cobros {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px;
    padding: 0 8px 8px;
}

.resumen-card {
    background: var(--body-color);
    border-radius: 14px;
    min-height: 76px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: var(--text-color);
}

.resumen-card span {
    font-size: 12px;
    opacity: .62;
    font-weight: 600;
}

.resumen-card strong {
    font-size: 1.15em;
    font-weight: 700;
}



.sales-module .filter-bar {
    display: flex;
    gap: 10px;
    padding: 0 20px 16px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--linea);
}

.sales-module .filter-select,
.sales-module .filter-input {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--linea);
    background: var(--body-color);
    color: var(--text-color);
    outline: none;
}

.sales-module .filter-input {
    min-width: 220px;
}

.sales-module .table-responsive {
    width: 100%;
    overflow-x: auto;
    padding: 0 20px 20px;
    flex: 1;
}

.sales-table,
.propuestas-table,
.contratos-table,
.cobros-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--blanco);
    overflow: hidden;
}

.sales-table th,
.sales-table td,
.propuestas-table th,
.propuestas-table td,
.contratos-table th,
.contratos-table td,
.cobros-table th,
.cobros-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--linea);
    color: var(--text-color);
    vertical-align: middle;
}

.sales-table th,
.propuestas-table th,
.contratos-table th,
.cobros-table th {
    background: var(--body-color);
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
}

.sales-table tr:hover td,
.propuestas-table tr:hover td,
.contratos-table tr:hover td,
.cobros-table tr:hover td {
    background: var(--bg-color-btn);
}

.sales-empty-row td {
    text-align: center !important;
    padding: 32px 12px !important;
    opacity: .52;
}

.cuadro.filter-panel-open {
    margin-right: 300px !important;
}

#filterTasksPanel {
    position: fixed;
    right: 0;
    top: 90px;
    width: 240px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--blanco);
    border-radius: 24px;
    padding: 20px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#filterTasksPanel.open {
    right: 20px;
    transform: translateX(0);
}

.sales-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.sales-filter-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
}

.sales-filter-section {
    margin-bottom: 20px;
}

.sales-filter-title {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 13px;
    opacity: .8;
}

.sales-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sales-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.sales-filter-option span {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.filter-task-checkbox[data-filter-type="estado"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
    background-color: var(--filter-color, #10b981);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='M202.87-111.87q-37.78 0-64.39-26.61t-26.61-64.39v-554.26q0-37.78 26.61-64.39t64.39-26.61h554.26q37.78 0 64.39 26.61t26.61 64.39v554.26q0 37.78-26.61 64.39t-64.39 26.61H202.87Zm0-91h554.26v-554.26H202.87v554.26Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='M202.87-111.87q-37.78 0-64.39-26.61t-26.61-64.39v-554.26q0-37.78 26.61-64.39t64.39-26.61h554.26q37.78 0 64.39 26.61t26.61 64.39v554.26q0 37.78-26.61 64.39t-64.39 26.61H202.87Zm0-91h554.26v-554.26H202.87v554.26Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.filter-task-checkbox[data-filter-type="estado"]:checked {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='m423.28-431.41-80.02-79.79q-12.43-12.43-31.23-12.31-18.79.12-31.23 12.55-12.43 12.44-12.43 31.11 0 18.68 12.43 31.11l110.42 110.65q13.67 13.68 32.06 13.68t32.07-13.68l222.41-222.65q12.44-12.43 12.32-31.23-.12-18.79-12.56-31.23-12.43-12.43-31.11-12.43-18.67 0-31.11 12.43L423.28-431.41ZM202.87-111.87q-37.78 0-64.39-26.61t-26.61-64.39v-554.26q0-37.78 26.61-64.39t64.39-26.61h554.26q37.78 0 64.39 26.61t26.61 64.39v554.26q0 37.78-26.61 64.39t-64.39 26.61H202.87Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='m423.28-431.41-80.02-79.79q-12.43-12.43-31.23-12.31-18.79.12-31.23 12.55-12.43 12.44-12.43 31.11 0 18.68 12.43 31.11l110.42 110.65q13.67 13.68 32.06 13.68t32.07-13.68l222.41-222.65q12.44-12.43 12.32-31.23-.12-18.79-12.56-31.23-12.43-12.43-31.11-12.43-18.67 0-31.11 12.43L423.28-431.41ZM202.87-111.87q-37.78 0-64.39-26.61t-26.61-64.39v-554.26q0-37.78 26.61-64.39t64.39-26.61h554.26q37.78 0 64.39 26.61t26.61 64.39v554.26q0 37.78-26.61 64.39t-64.39 26.61H202.87Z'/%3E%3C/svg%3E");
}

.filter-task-checkbox[data-filter-type="estado"][data-filter-value="borrador"] { --filter-color: #64748b; }
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="enviada"] { --filter-color: #7c3aed; }
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="vista"] { --filter-color: #2563eb; }
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="aceptada"],
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="firmado"],
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="pagado"] { --filter-color: #10b981; }
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="rechazada"],
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="cancelado"],
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="vencido"] { --filter-color: #ef4444; }
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="vencida"],
.filter-task-checkbox[data-filter-type="estado"][data-filter-value="pendiente"] { --filter-color: #f59e0b; }

.sales-list-wrap {
    padding: 0 8px 20px;
    flex: 1;
    overflow-x: auto;
}

.sales-list-body {
    min-width: 860px;
}

.sales-list-header,
.sales-list-row {
    display: grid;
    gap: 16px;
    align-items: center;
}

.sales-list-header {
    background: transparent;
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
    min-width: 860px;
    margin: 0 8px;
    padding: 14px 24px;
}

.sales-list-row {
    padding: 16px 24px;
    margin-top: 8px;
    background: var(--body-color);
    border-radius: 15px;
    color: var(--text-color);
    transition: background-color var(--tran-03);
}

.sales-list-row:hover {
    background: var(--body-color);
}

.sales-list-cobros {
    grid-template-columns: minmax(220px, 1.45fr) minmax(150px, .9fr) minmax(120px, .7fr) minmax(120px, .7fr) minmax(110px, .6fr) 120px;
}

.sales-list-propuestas {
    grid-template-columns: minmax(240px, 1.5fr) minmax(150px, .9fr) minmax(120px, .7fr) minmax(120px, .7fr) minmax(120px, .7fr) 150px;
}

.sales-list-contratos {
    grid-template-columns: minmax(240px, 1.5fr) minmax(150px, .9fr) minmax(110px, .65fr) minmax(120px, .7fr) minmax(120px, .7fr) 110px;
}

.sales-list-title {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-list-sub {
    margin-top: 4px;
    color: var(--text-color);
    font-size: 12px;
    opacity: .58;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-list-meta,
.sales-list-date {
    color: var(--text-color);
    font-size: 14px;
    opacity: .78;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-list-money {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.sales-list-actions,
.sales-list-actions-label {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.sales-list-actions {
    gap: 0;
}

.sales-list-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sales-list-empty {
    min-width: 0;
    margin-top: 8px;
    padding: 28px 24px;
    border-radius: 15px;
    background: var(--body-color);
    color: var(--text-color);
    text-align: center;
    opacity: .55;
}

.estado-badge,
.estado-contrato {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.estado-borrador { background: rgba(148, 163, 184, 0.18); color: #64748b; }
.estado-enviada { background: rgba(124, 58, 237, 0.16); color: #7c3aed; }
.estado-vista { background: rgba(37, 99, 235, 0.16); color: #2563eb; }
.estado-aceptada,
.estado-firmado,
.estado-pagado { background: rgba(16, 185, 129, 0.16); color: #059669; }
.estado-rechazada,
.estado-cancelado,
.estado-vencido { background: rgba(239, 68, 68, 0.16); color: #dc2626; }
.estado-vencida,
.estado-pendiente { background: rgba(245, 158, 11, 0.16); color: #d97706; }

.sales-modal .modal-body,
.sales-modal-body {
    padding: 20px !important;
}

.sales-modal .row {
    margin-bottom: 12px;
}

.sales-modal .input-field {
    margin-top: 0;
    margin-bottom: 0;
}

.sales-modal input:not([type="hidden"]):not([type="file"]),
.sales-modal textarea,
.sales-modal .browser-default {
    background: var(--body-color) !important;
    border: 1px solid var(--linea) !important;
    border-radius: .75rem !important;
    color: var(--text-color) !important;
    min-height: 55px;
    box-shadow: none !important;
    padding: 0 13px !important;
    box-sizing: border-box;
}

.sales-modal textarea {
    padding-top: 15px !important;
    min-height: 110px;
}

.sales-modal .venta-service-field {
    background: var(--body-color);
    border: 1px solid var(--linea) !important;
    border-radius: .75rem !important;
    color: var(--text-color);
    height: 55px;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    margin: 0 !important;
    transition: border .2s, box-shadow .2s;
}

.sales-modal .venta-service-field:focus-within {
    border: 1px solid #7c3aed !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.6) !important;
}

.sales-modal .servicio-selector {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    border-right: none;
    margin-right: 0;
    height: 100%;
}

.sales-modal .servicio-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    padding: 0 12px;
}

.sales-modal .servicio-code {
    font-weight: 500;
    font-size: 1em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-modal .servicio-dropdown-icon svg {
    margin-top: 4px;
}

.sales-modal .servicio-dropdown {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 15px;
    box-shadow: var(--shadow-dropdown-active) !important;
    max-height: 191px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: none;
    padding: 8px;
}

.sales-modal .servicio-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    color: var(--text-color);
    border-radius: 10px;
    font-weight: 500;
}

.sales-modal .servicio-option.disabled {
    opacity: 0.58;
    pointer-events: none;
}

.sales-modal .servicio-option:hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);
}

body.dark .sales-modal .servicio-option:hover {
    color: var(--text-color);
    background: var(--primary-color);
}

.sales-form-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-bottom: 14px;
}

.sales-form-row > div:first-child {
    width: 30px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.sales-form-row > div:first-child svg {
    width: 24px;
    height: 24px;
}

.sales-form-row > .row {
    margin-bottom: 0;
}

.sales-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 12px;
    z-index: 1000;
    list-style: none;
    padding: 8px;
    margin: 0;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    min-width: 34px;
    width: auto;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 999px;
    transition: var(--tran-03);
}

.btn-icon:hover {
    background: var(--body-color);
    color: var(--primary-color);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

@media screen and (max-width: 920px) {
    .sales-module .header-section {
        padding: 16px;
    }

    .sales-module .filter-bar,
    .sales-module .table-responsive,
    .sales-list-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sales-list-wrap {
        padding-bottom: 16px;
    }

    .sales-list-header {
        display: none;
    }

    .sales-list-body {
        min-width: 0;
    }

    .sales-list-row,
    .sales-list-cobros,
    .sales-list-propuestas,
    .sales-list-contratos {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sales-list-actions {
        justify-content: flex-start;
    }

    .sales-module .filter-input {
        min-width: 100%;
    }

    .sales-summary-row,
    .resumen-cobros {
        grid-template-columns: 1fr;
        padding-left: 16px;
        padding-right: 16px;
    }

    .sales-form-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }
}

.movil {
    opacity: 0;
    display: none;
}

@media screen and (max-width:920px) {
    .movil {
        opacity: 1;
        display: block;
    }
}

.movil-none {}

@media screen and (max-width:920px) {
    .movil-none {
        display: none !important;
        visibility: hidden;
    }
}

#si {}

#no {
    display: none;
    margin: 0;
}

.gallery_grid_albumes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 30px;
}

@media screen and (max-width:1502px) {
    .gallery_grid_albumes {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width:1240px) {
    .gallery_grid_albumes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width:990px) {
    .gallery_grid_albumes {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
}

.gallery__item__albumes {
    overflow: hidden;
    -moz-user-select: none;
    user-select: none;
    text-decoration: none;
    margin-bottom: 0;
}

.gallery__img__albumes {
    -moz-user-select: none;
    user-select: none;
    overflow: hidden;
}

.gallery__img__albumes img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-transition: all .2s;
    transition: all .2s;
    padding: 0;
    border: none;
}

@media screen and (max-width:920px) {
    .gallery__img__albumes img {
        height: auto;
    }
}

.gallery__item__albumes h2 {
    font-size: 1em;
    margin: 15px 20px 3px;
}

.gallery__item__albumes p {
    margin: 0 20px 20px;
    opacity: 0.7;
    font-size: 14px;
    font-weight: 400;
}

.gallery__border {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 4px;
}

@media screen and (max-width:1366px) {
    .gallery__border {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width:920px) {
    .gallery__border {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2px;
    }
}

.gallery__item {
    background: var(--primary-color-light);
    display: inline-block;
    overflow: hidden;
    line-height: 0;
    -moz-user-select: none;
    user-select: none;
    position: relative;
}

.overlay-icon {
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: center;
    opacity: 0;
    transition: .2s ease;
    cursor: pointer;
}

.gallery-item:hover .overlay-icon {
    opacity: 1;
}

.gallery__img {
    -moz-user-select: none;
    user-select: none;
}

.gallery__img img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    cursor: pointer;
    -webkit-transition: all .1s;
    transition: all .1s;
}

@media screen and (max-width:920px) {
    .gallery__img img {
        height: auto;
    }
}

.borde-gallery {
    transform: translateZ(0px) scale3d(0.88, 0.88, 88);
    border-radius: 10px;
}

.content-seleccion {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 650px;
    width: 100%;
    padding: 17px 15px;
    background: var(--blanco);
    border-radius: .25rem;
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .09);
    display: none;
    z-index: 110;
    overflow: hidden;
}

@media screen and (max-width:920px) {
    .content-seleccion {
        width: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

.content-seleccion-left {
    background: var(--primary-color-light);
    border-radius: .25rem;
    padding: 13px;
    float: left;
    color: var(--color-btn);
    font-weight: 500;
    margin-left: 5px;
}

.content-seleccion-right {
    float: right;
}

@media screen and (max-width:920px) {
    .content-seleccion-right {
        width: 230px;
        display: flex;
        text-align: right;
    }
}

.content-seleccion-right a,
.content-seleccion-right button {
    margin: 0 5px;
}

.sin-datos {
    background-color: var(--primary-color-light);
    border-radius: .25rem;
    padding: 20px 20px;
    margin: 0 20px 20px;
}

.sin-datos p {
    line-height: 25px;
}

.confirmo-pedido {
    width: 470px;
    position: fixed;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 0 0;
    text-align: center;
    overflow: hidden;
}

.confirmo-pedido a {
    display: block;
    text-align: center;
}

@media screen and (max-width:920px) {
    .confirmo-pedido {
        width: auto;
        top: 46%;
    }
}

.confirmo-pedido h2 {
    margin: 30px 0 40px;
    line-height: 30px;
}

/* Materialice */

.waves-effect {
    position: relative;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
    z-index: 1;
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
}



.sidenav {
    background: var(--blanco);
    position: fixed;
    width: 300px;
    left: 0;
    top: 0;
    margin: 0;
    border-radius: 16px 0px 0px 16px;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    height: 100%;
    height: calc(100% + 60px);
    height: -moz-calc(100%);

    z-index: 10003;

    will-change: transform;
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
}

.sidenav.right-aligned {
    right: 0;
    -webkit-transform: translateX(105%);
    transform: translateX(105%);
    left: auto;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}

.sidenav .collapsible {
    margin: 0;
}

.sidenav .divider {
    margin: 8px 0 0 0;
}

.sidenav .subheader {
    cursor: initial;
    pointer-events: none;
    color: rgba(0, 0, 0, 0.54);
    font-size: 14px;
    font-weight: 500;
    line-height: 48px;
}

.sidenav .subheader:hover {
    background-color: transparent;
}

.sidenav .user-view .background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.sidenav .collapsible-body {
    padding: 0;
}

.sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    height: 120vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 997;
    display: none;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}


.dropdown-content {
    margin: 0;
    margin-top: 1px !important;
    display: none;
    opacity: 0;
    position: absolute;
    left: 20px;
    top: 0px;
    overflow-y: auto;
    z-index: 1002;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    padding: 10px 10px 0px;
    overflow-x: hidden;
    text-align: left;
    background: var(--blanco);
    border-radius: 15px;
border: 1px solid var(--linea);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
    min-width: 190px;
}

.dropdown-content:focus {
    outline: 0;
}

.dropdown-content li {
    clear: both;
    border-radius: 10px;
    cursor: pointer;
    padding: 5px 5px;
    display: block;
    text-align: left;
    font-weight: 500;
}

.dropdown-content li:hover,
.dropdown-content li.active {}

.dropdown-content li:focus {
    outline: none;
}

.dropdown-content li.divider {
    min-height: 0;
    height: 1px;
}

.dropdown-content li>a,
.dropdown-content li>span {
    display: block;
    padding: 10px 11px;
}

.dropdown-content li>span>label {
    top: 0;
    left: 0;
}

.dropdown-content li>a>i {
    height: inherit;
    line-height: inherit;
    float: left;
    margin: 0 24px 0 0;
    width: 24px;
}

.select-wrapper {
    cursor: none;
}

.caret {
    position: absolute;
    top: 27px;
    right: 30px;
}

.input-field.col .dropdown-content [type="checkbox"]+label {
    top: 1px;
    left: 0;
    height: 18px;
    -webkit-transform: none;
    transform: none;
    user-select: none;
}

.dropdown-trigger {
    cursor: pointer;
}

button.dropdown-trigger.dropdown-open,
a.dropdown-trigger.dropdown-open,
button.dropdown-trigger.active,
a.dropdown-trigger.active {
    color: var(--color-btn);
    background: #313131 !important;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.dropdown-content hr {
    border: none;
    height: 1px;
    background: var(--linea);
    margin: 10px 0;
}

/* INPUTS */

/* Estilos personalizados para inputs estilo Materialize */
.input-field {
    position: relative;
    margin-bottom: 10px;
}

.input-field input {
    background: var(--body-color);
    border: 1px solid var(--linea) !important;
    color: var(--text-color);
    border-radius: .75rem !important;
    outline: none !important;
    font-size: 1em;

    width: 100% !important;
    height: 55px;
    margin: 0 0 8px 0 !important;
    padding: 0 13px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border .2s !important;
}

.input-field input:focus {
    border: 1px solid var(--color-btn) !important;
    box-shadow: 0 0 0 2px var(--primary-ring) !important;
}



.input-field input.invalid {
    border: 1px solid #F44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.6) !important;
}

.input-field label {

    position: absolute;
    top: 3px;
    left: 5px;

    color: var(--text-color);
    font-weight: 500;
    transition: transform .2s ease-out, color .2s ease-out;
    transform-origin: 0% 100%;
    text-align: initial;
    transform: translateY(-29px) translateX(0px) scale(0.8);
}


.input-field input:focus+label,
.input-field input.valid+label {
    color: var(--color-btn);
}

.input-field input.invalid+label {
    color: #F44336;
}

.group-input-date {
    position: relative;
    padding: 0 20px;
    display: grid;
    width: auto;
}

/* IMPUT SELECT */


/* Textarea */

.input-field textarea {
    position: relative;
    background: var(--body-color);
    border: 1px solid var(--linea) !important;
    color: var(--text-color);
    border-radius: .75rem !important;
    outline: none !important;
    font-size: 1em;

    width: 100% !important;
    min-height: 55px !important;

    margin: 0 0 8px 0 !important;
    padding: 16px 13px 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border .2s !important;
}


.input-field textarea:focus {
    border: 1px solid var(--color-btn) !important;
    box-shadow: 0 0 0 2px var(--primary-ring) !important;
}

.group {
    position: relative;
    display: flex;
}


::placeholder {
    color: var(--text-color);
}


textarea.materialize-textarea {
    resize: vertical;
    overflow-y: auto;
}

.hiddendiv {
    display: none !important;
}


.inputs-icon {

    width: 24px;
    height: 40px;
    float: left;
    padding: 10px 0 0;
    margin-top: 11px;
    margin-right: 15px;
    text-align: center;
}

.inputs-icon-fechas {
    width: 24px;
    height: 40px;
    float: left;
    padding: 10px 0 0;
    margin-top: 11px;
    margin-right: 15px;
    text-align: center;
}

@media only screen and (max-width: 992px) {
    .inputs-icon-fechas {
        padding: 25px 0 0;
    }
}


.container-fechas {

    width: 100%;
    position: relative;
    display: inline-flex;
}

@media only screen and (max-width: 992px) {
    .container-fechas {
        display: block;
        margin-right: 30px;
    }
}

.fecha-start {
    float: left;
}

.fecha-end {
    float: right;
}

@media only screen and (max-width: 992px) {

    .fecha-start,
    .fecha-end {
        float: none;
    }
}

.container-fechas input {

    width: 84%;
}

@media only screen and (max-width: 992px) {
    .container-fechas input {

        width: 100%;
    }
}

.separador-fechas {

    width: 18%;
    padding-top: 18px;
    text-align: center;
    font-weight: 500;
    float: left;
}

@media only screen and (max-width: 992px) {
    .separador-fechas {
        display: none;
    }
}


/* MENSAJE ALERTA */

#toast-container {
    display: block;
    position: fixed;
    z-index: 10000;
}

@media only screen and (max-width: 600px) {
    #toast-container {
        bottom: 7px;
        left: 7px;
        right: 7px;
    }
}

@media only screen and (min-width: 993px) {
    #toast-container {
        bottom: 20px;
        left: 20px;
        max-width: 86%;
    }
}

.toast {
    border-radius: 250px;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    width: auto;
    margin: 0 !important;
    position: fixed !important;
    max-width: 90%;
    height: auto;
    min-height: 20px;
    background: rgba(51, 51, 51, 0.92);
    backdrop-filter: blur(4px);
    padding: 11px 18px;
    font-weight: 400;
    font-size: 14px;
    color: #FFF;

    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    cursor: default;
    z-index: 10000;
    animation: slideUp 0.4s ease-out !important;
}

@keyframes slideUp {
    from {
        bottom: -100px !important;
        opacity: 0 !important;
    }

    to {
        bottom: 20px !important;
        opacity: 1 !important;
    }
}

.toast .toast-action {
    color: #eeff41;
    font-weight: 500;
    margin-right: -25px;
    margin-left: 3rem;
}



/* PANEL ADMINISTRADOR */

.grid-admin-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

@media screen and (max-width:920px) {
    .grid-admin-3 {
        width: 100%;
        position: relative;
        display: block;
    }
}

.grid-admin-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}

@media screen and (max-width:920px) {
    .grid-admin-2 {
        width: 100%;
        position: relative;
        display: block;
    }
}

.total-fotos-admin {
    margin-bottom: 30px;
}

@media screen and (max-width:920px) {
    .total-fotos-admin {
        margin-bottom: 10px;
    }
}

.numeros-total-admin {
    background-color: var(--primary-color-light);
    height: 24px;
    padding: 6px 6px;
    margin: 0 20px 20px;
    border-radius: 4px;
}

.numeros-total-admin h3 {
    color: var(--color-btn);
    font-weight: 500;
}

.fila-cuadro-admin {
    border-bottom: var(--linea) solid 1px;
    position: relative;
    width: auto;
    height: 70px;
    display: flex;
}

.fila-cuadro-admin-chico {
    width: 50%;
    padding: 25px 20px 0;
}

.fila-cuadro-admin-chico e {
    font-weight: 500;
    color: var(--color-btn);
}

.fotoperfil-usuarios {
    border-radius: 250px;
    width: 36px;
    height: 36px;
    overflow: hidden;
    z-index: 99;
    float: left;
    margin-top: -8px;
    margin-right: 20px;
}

.fotoperfil-usuarios img {
    object-fit: cover;
    object-position: center;
    height: 36px;
    width: 36px;
}

.buscar {
    width: 380px;
    float: left;
    margin-top: 2px;
}

.buscar input {
    opacity: 1;

}

#campo {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23707070'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");

    background-position: left 12px bottom 9px;
    background-repeat: no-repeat;
    width: 100%;

    padding: 11px 25px 11px 45px;


    background-color: rgba(64, 87, 109, .07);



    border-radius: 100px;
    box-sizing: border-box;
    -webkit-transition: 0.2s;
    transition: 0.2s;
    outline: none;

    color: #343a40;
    border: 0;
    margin: 0;
}

#lbl-total {
    float: left;
    margin-top: 7px;
    font-size: 1em;
}

.pagination {
    float: right;
    margin-bottom: 19px;
    margin-right: 5px;
}

.page-link {
    color: var(--color-btn);
    background: var(--bg-color-btn);
    margin: 4px;
    border-radius: 1250px;
    padding: 5px;
    font-size: 12px;
    width: 29px;
    height: 29px;
    text-align: center;
}

.page-active {
    color: #FFF;
    background: var(--color-btn);

}







.material-tooltip {
        font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
     padding: 9px 14px;
    border-radius: 250px;

    z-index: 2000;
    color: #fff;
    line-height: 120%;
    opacity: 0;
    position: absolute;
    text-align: center;
    max-width: calc(100% - 4px);
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;

    /* Nuevo estilo */
background: rgba(20,20,20,0.92);
    backdrop-filter: blur(8px);

    /* Pastilla */

}





.tooltip-cuenta-custom {
        font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
     padding: 9px 14px;
    z-index: 2000;
    color: #fff;
    line-height: 120%;
    opacity: 0;
    position: absolute;
    text-align: left;
    pointer-events: none;
    visibility: hidden;
background: rgba(20,20,20,0.92);
    backdrop-filter: blur(8px);
    border-radius: 20px;

    
    /* Posición - ABAJO del botón */
    top: 100%;
    right: -10px; /* Ajusta este valor para moverlo más a la izquierda o derecha */
    margin-top: 14px;
    white-space: nowrap;
    
    /* Transición igual a Materialize */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    transform-origin: top center;
}

/* Mostrar tooltip al hacer hover */
.btn-redondo:hover .tooltip-cuenta-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


ul {
    list-style: none;
}

select {
    display: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    caret-color: transparent;/
}

select.browser-default {
    display: block;
    caret-color: transparent;/
}



.select-label {
    position: absolute;
}

.select-wrapper {
    position: relative;
}

.select-wrapper.valid+label,
.select-wrapper.invalid+label {
    width: 100%;
    pointer-events: none;
}

.select-wrapper input.select-dropdown {
    position: relative;
    cursor: pointer;

    color: var(--text-color);
    border: 1px solid var(--linea) !important;
    outline: none;
    height: 55px;
    line-height: 55px;

    font-weight: 500;
    margin: 0 0 0px 0;
    padding: 0 10px;

    border-radius: .75rem !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 1;
    caret-color: transparent;
}

.select-wrapper input.select-dropdown:focus {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid var(--color-btn) !important;
    box-shadow: 0 0 0 2px var(--primary-ring) !important;
}

.select-wrapper .caret {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 8px;
    margin: auto 0;
    z-index: 100;
    fill: var(--text-color);
}

.select-wrapper+label {
    position: absolute;
    top: 3px;
    transform: translateY(-29px) translateX(0px) scale(0.8);
    font-weight: 500;
    background: var(--blanco);
}

select:disabled {
    color: rgba(0, 0, 0, 0.42);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    caret-color: transparent;
}

.select-wrapper.disabled+label {
    color: rgba(0, 0, 0, 0);
}

.select-wrapper.disabled .caret {
    fill: rgba(0, 0, 0, 0.42);
}

.select-wrapper input.select-dropdown:disabled {
    caret-color: transparent;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.select-wrapper i {}

.select-dropdown li.disabled,
.select-dropdown li.disabled>span,
.select-dropdown li.optgroup {

    color: var(--text-color);
    background-color: transparent;
}

body.keyboard-focused .select-dropdown.dropdown-content li:focus {
    border-radius: 10px;

    color: var(--color-btn);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

.select-dropdown.dropdown-content {
    padding: 5px 5px 0px !important;
    left: 10px;
    z-index: 9999 !important;

}



.select-dropdown.dropdown-content li:hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);
}

.select-dropdown.dropdown-content li.selected {
    caret-color: transparent;/
}

.prefix~.select-wrapper {
    margin-left: 3rem;
    width: 92%;
    width: calc(100% - 3rem);
}

.prefix~label {
    margin-left: 3rem;
}

.select-dropdown li img {
    height: 40px;
    width: 40px;
    margin: 5px 15px;
    float: right;
}

.select-dropdown li.optgroup {
    border-top: 1px solid #eee;
}

.select-dropdown li.optgroup.selected>span {}

.select-dropdown li.optgroup>span {}

.select-dropdown li.optgroup~li.optgroup-option {
    padding-left: 1rem;
}


/* DROP FOTO PERFIL */

.drag-drop-area {
    position: relative;
    padding: 10px 0 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-area.drag-over {
    filter: blur(5px);
    background: var(--bg-color-btn);
}

.drag-drop-text {

    font-size: 16px;
    margin-bottom: 10px;
}



.file-info {
    margin: auto 10px;
    margin-top: 10px;
    margin-bottom: 10px;

    padding: 20px 20px 19px;
    background-color: var(--bg-color-btn);
    border-radius: 7px;
    transition: all 0.3s ease;
}

.drag-drop-text strong {
    margin: 20px 0;
}


/* MODAL */


.modal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    background-color: var(--blanco);
    padding: 0;
    height: auto;
    max-height: 70%;
    /* Altura por defecto */
    width: 560px;
    margin: auto;
    border-radius: 24px;
    will-change: top, opacity;
    transition: max-height 0.3s ease;
    min-width: 400px;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}



.modal {
    outline: none !important;
}

/* Alturas específicas según data-height */
.modal[data-height="small"] {
    max-height: 40%;
}

.modal[data-height="medium"] {
    max-height: 90%;
}

.modal[data-height="large"] {
    max-height: 90%;
}

/* Header fijo que no se mueve con el scroll */
.modal-header {
    position: relative;
    background-color: var(--blanco);
    padding: 15px;
    border-bottom: 0px solid var(--linea);
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
    /* No se reduce */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
}

/* Contenido con scroll - estructura separada */
.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: inherit;
}

.modal-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: calc(70vh - 140px);
    /* Resta header y footer */
}

.modal[data-height="small"] .modal-body {
    max-height: calc(40vh - 100px);
}

.modal[data-height="medium"] .modal-body {
    max-height: calc(60vh - 120px);
}

.modal[data-height="large"] .modal-body {
    max-height: calc(90vh - 140px);
}

.modal[data-height="small"] .modal-content {
    max-height: calc(80vh - 80px);
    /* Ajustado para header relativo */
}

.modal[data-height="medium"] .modal-content {
    max-height: calc(80vh - 100px);
    /* Ajustado para header relativo */
}

.modal[data-height="large"] .modal-content {
    max-height: calc(90vh - 120px);
}

/* Footer siempre visible */
.modal-footer {
    padding: 15px;
    border-top: 0px solid var(--linea);
    background-color: var(--blanco);
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-radius: 0 0 15px 15px;
    text-align: right;
}

.modal-footer a {
    margin-left: 5px;
}

.modal-footer button {
    margin-left: 5px;
}


/* Estilos para mostrar/ocultar contenido dinámico */
.contenido-extra {
    display: none;
}

.contenido-extra.active {
    display: block;
}

@media (max-width: 768px) {
    .modal {
        width: 90%;
        min-width: 300px;
    }

    .modal-footer {
        display: flex;
        gap: 5px;
    }

    .modal-footer a {
        margin-left: 0px;
    }

    .modal-footer button {
        margin-left: 0px;
    }

}

.modal-overlay {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease-out !important;
    will-change: opacity;

}






.modal-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
}

.view-toggle {
    display: flex;
    margin-left: auto;
    gap: 0px;
    overflow: hidden;
}



.modal.bottom-sheet {
    top: 0%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, 0%);
    width: 95%;
    height: 90vh; 
    height: 90dvh;
    padding: 8px;
    border-radius: 24px;    
    box-shadow: var(--shadow-active);    
}



.modal.bottom-sheet .modal-content {
    max-height: calc(90vh - 16px); /* solo padding */
    max-height: calc(90dvh - 16px);    
}

.modal.bottom-sheet .modal-body {
    max-height: calc(90vh - 74px - 77px - 48px);
    max-height: calc(90dvh - 74px - 77px - 48px);
}

.modal.bottom-sheet .modal-footer {
    position: sticky;
    bottom: 0;
}

.modal.bottom-sheet.sin-footer .modal-body {
        max-height: 87vh !important;
    max-height: 87dvh !important;

}

.icon-modal-svg {
    color: var(--text-color);
    margin-top: 14px;
}


/* Comienzo datepicker */

.custom-datepicker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out !important;
    will-change: opacity;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

.custom-datepicker-content {
    background: var(--blanco);
    border-radius: 15px;
    padding: 15px;
    width: 330px;
    box-shadow: var(--shadow-active);
    will-change: top, opacity;
    transition: max-height 0.3s ease;
}

.custom-datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    margin-bottom: 15px;
}

.custom-datepicker-title {
    font-size: 1em;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    flex: 1;
    text-align: left;
}

.custom-datepicker-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: opacity 0.2s;
}

.custom-datepicker-btn:hover {
    opacity: 0.7;
}

.custom-datepicker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    padding: 8px 0;
}

.custom-datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.custom-datepicker-days .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--tran-03);
}

.custom-datepicker-days .day:not(.empty):hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);
}

body.dark .custom-datepicker-days .day:not(.empty):hover {
    color: var(--text-color);
}

.custom-datepicker-days .day.empty {
    cursor: default;
    opacity: 0.3;
}

.custom-datepicker-days .day.selected {
    background-color: var(--primary-color);
    color: #000000;
    font-weight: 500;
}

.custom-datepicker-footer {
    display: flex;
    justify-content: right;
    gap: 10px;
    margin-bottom: 3px;
}

.custom-datepicker-btn-cancel,
.custom-datepicker-btn-accept {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: var(--tran-03);
}

.custom-datepicker-btn-cancel {
    color: var(--color-btn);
}

.custom-datepicker-btn-accept {
    color: var(--color-btn);
}


/* ===== CUSTOM TIMEPICKER ===== */

.custom-timepicker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;

}

.custom-timepicker-content {
    background: var(--blanco);
    border-radius: 15px;
    padding: 15px;
    width: 330px;
    box-shadow: var(--shadow-active);
    will-change: top, opacity;
    transition: max-height 0.3s ease;
}

.custom-timepicker-display {
    display: none;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.time-display span {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.time-separator {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.custom-timepicker-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 18px;
}

.time-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    background: var(--body-color);
    color: var(--text-color);
}

.time-input-wrapper label {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: lowercase;
}

.time-spinner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 15px;
    border-right: 1px solid var(--linea);
    gap: 0px;
}

.time-input {
    width: 100%;
    text-align: center;
    font-size: 45px;
    font-weight: 600;
    color: var(--text-color);
    border: none;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
    margin: 0;
    padding: 0;
}

.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input:focus {
    outline: none;
    box-shadow: none;
}

.time-input::after {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: lowercase;
    margin-top: 2px;
}

.spinner-btn {
    padding: 10px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 250px;
    -webkit-transition: all 0.2s ease;
    width: auto;
    height: auto;
}

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

body.dark .spinner-btn:hover {
    color: var(--text-color);
}


.spinner-btn svg {
    width: 24px;
    height: 24px;
}


input.custom-datepicker,
input.custom-timepicker {
    cursor: pointer !important;
    caret-color: transparent !important;
    pointer-events: auto !important;
}

input.custom-datepicker:focus,
input.custom-timepicker:focus {
    caret-color: transparent !important;
}



/* Chrome, Safari and Opera */
.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.time-input[type=number] {
    -moz-appearance: textfield;
}



.datepicker,
.timepicker {
    caret-color: transparent !important;
    cursor: pointer !important;
}





/* Fin datepicker */

.legend-footer {
    padding: 20px;
    margin-top: 10px;
}

.legend-footer h4 {
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 2px 0;
}

.legend-item span {
    font-weight: 500;
}

.legend-item svg {
    margin-right: 5px;
}




.footer {
    position: relative;
    text-align: right;
    padding: 0px 7px 17px;
    font-size: 14px;
    display: none;
}

@media screen and (max-width:920px) {
    .footer {
        text-align: center;
        padding: 20px;
    }
}




/* POMODORO */

.settings-panel {
    background: white;
    padding: 0px;
    border-radius: 16px;

    max-width: 450px;
    width: 100%;
}

.settings-title {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.setting-row {
    margin-bottom: 20px;
}

.setting-label {
    display: block;
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--body-color);
}

.input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    border-right: 1px solid var(--linea);
}

.setting-input {
    width: 100%;
    text-align: center;
    font-size: 45px;
    font-weight: 600;
    color: var(--text-color);
    border: none;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
    margin-bottom: 2px;
}

.setting-input::-webkit-outer-spin-button,
.setting-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-label {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: lowercase;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.control-btn {
    padding: 10px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 250px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.control-btn:hover {
    color: var(--color-btn);
    background: var(--bg-color-btn);

}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.apply-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.apply-btn:active {
    transform: translateY(0);
}

#settingsBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;

}



.mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.mode-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mode-btn.work.active {
    background-color: #5865f3;
}

.mode-btn.shortBreak.active {
    background-color: #22c55e;
}

.mode-btn:not(.active) {
    color: #6b7280;
    border: 1px solid #d1d5db;
    background: white;
}

.mode-btn:not(.active):hover:not(:disabled) {
    color: #1f2937;
    background-color: #f3f4f6;
}

.mode-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background-color: #f9fafb;
}

.timer-display {
    position: relative;
    margin-bottom: 15px;
    border-radius: 24px;
    height: 170px;
    padding: 60px;
}

.timer-display.work {
    background-color: var(--body-color);
}

.timer-display.shortBreak,
.timer-display.longBreak {
    background-color: var(--body-color);
}

.timer-content {
    text-align: center;
}

.timer-time {
    margin-top: 50px;
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 0px;
}

.timer-time.work {
    color: var(--color-btn);
}



.timer-mode-label {
    font-size: 14px;



}

.progress-ring {
    overflow: hidden;
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    border-radius: 50%;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    color: #FFFFFF;
}

#progress-svg {
    width: 260px;
    /* más grande */
    height: 260px;
    /* más grande */
}

#progressCircle {
    stroke-width: 5;
    /* más ancho */
}


.controls-play-reset {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 7px 0 20px;
}



.play-btn {
    background: var(--color-btn);
    border-radius: 250px;
    align-items: center;
    justify-content: center;
    color: #FFF;
    vertical-align: middle;
    padding: 10px;
    text-align: center;
    -webkit-transition: all .2s;
    transition: all .2s;
    line-height: 0;
    display: inline-block;
}









.reset-btn {
    background: var(--bg-color-btn);
    border-radius: 250px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    vertical-align: middle;
    padding: 10px;
    text-align: center;
    -webkit-transition: all .2s;
    transition: all .2s;
    line-height: 0;
    display: inline-block;
}



.stats {
    position: absolute;
    top: 20px;
    left: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;



    padding: 4px 0;
}

.stats-divider {
    width: 4px;
    height: 4px;
    background-color: #9ca3af;
    border-radius: 50%;
}

.auto-info {
    width: 100%;
    position: absolute;
    bottom: 165px;
    left: 0;
    right: 0;

    font-size: 13px;
    color: #9ca3af;
    margin-bottom: -150px;
    text-align: center;
}

.auto-info svg {
    margin-bottom: -6px;
}

.icon {
    width: 16px;
    height: 16px;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.locked-mode {
    position: relative;
}

.locked-mode::after {
    content: "";
    position: absolute;
    right: -5px;
    top: -5px;
    font-size: 12px;
}




/* Estilos para versión minimizada */
.widget-minimized {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    border: 3px solid white;
    z-index: 999;
    transition: all 0.3s ease;

}

.widget-minimized:hover {

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.widget-minimized-time {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 1;
}

.widget-minimized-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
    text-align: center;
}

.minimize-btn-header {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
    padding: 0;
}

.minimize-btn-header:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Botón de voz - Estilos */
/* Demo trigger button */
  .demo-trigger {

    background: linear-gradient(135deg, var(--wi-accent), #9b59b6);
    color: #fff;
    border: none;

    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(108,99,255,0.45);
    transition: transform .2s, box-shadow .2s;
    z-index: 100;
  }
  .demo-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108,99,255,0.6);
  }
  .demo-trigger .mic-dot {
    width: 8px; height: 8px;
    background: var(--wi-accent3);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
  }
  @keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(1.4); }
  }


.btn-redondo.wi-ai-btn{
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color-btn);
    border: 1px solid var(--linea);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    position: relative;
}

.btn-redondo.wi-ai-btn img {
 width: 26px;
 height: 26px;

}


.btn-redondo.wi-ai-btn:hover {
    margin-right: 5px;
    background: var(--primary-color);
    color: #111;
    transform: translateY(-1px);

}


@keyframes wiAiGradient{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}




  /* ═══════════════════════════════════════════════════
     OVERLAY
  ═══════════════════════════════════════════════════ */
  .wi-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(5px) !important;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }
  .wi-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  body.wi-assistant-open .modal-overlay {
    z-index: 1002 !important;
  }
  body.wi-assistant-open .modal {
    z-index: 1003 !important;
  }

  /* ═══════════════════════════════════════════════════
     BOTTOM SHEET
  ═══════════════════════════════════════════════════ */
  .wi-sheet {
    max-width: 860px;
    margin: 0 auto;
    position: fixed;
    bottom: 18px; left: 0; right: 0;
    height: auto;
    max-height: min(680px, 76vh);
    background: var(--blanco);
    background: color-mix(in srgb, var(--blanco) 92%, #000 8%);
    border-radius: 24px;
    z-index: 1001;
    transform: translateY(calc(100% + 34px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .34s cubic-bezier(.2,.9,.2,1), opacity .24s ease, visibility .24s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  }
  .wi-sheet.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.wi-assistant-open #mainSidebar {
    z-index: 0 !important;
    pointer-events: none;
  }

  /* Drag handle */
  .wi-handle {
    display: flex;
    justify-content: center;
    padding: 14px 0 6px;
    flex-shrink: 0;
    cursor: grab;
  }
  .wi-handle span {
    width: 40px; height: 4px;
    background: var(--linea);
    border-radius: 99px;
  }

  /* ── Header ── */
  .wi-header {
    padding: 0 24px 16px;
    flex-shrink: 0;
    position: relative;
  }
  .wi-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .wi-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0px;
  }
  .wi-logo {
    margin: 0;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .wi-logo span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--body-color);
    color: var(--text-color);
    font-size: .68rem;
    font-weight: 400;
    opacity: .78;
  }
  .wi-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--wi-surface2);
    border: 1px solid var(--wi-border);
    color: var(--wi-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s;
    font-size: 18px;
    line-height: 1;
  }
  .wi-close:hover { background: rgba(255,255,255,.1); color: var(--wi-text); }

  .wi-greeting {
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.5;
    text-align: center;
    margin: 0;
  }
  .wi-greeting strong {
    color: var(--text-color);
    font-weight: 600;
  }

  /* ── Command input ── */
  .wi-input-wrap {
    padding: 0 24px 24px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .wi-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--body-color);
border: 2px solid var(--body-color) !important;
  color: var(--text-color);
    border-radius: 250px !important;
    padding: 8px 10px;
    transition: border .2s, box-shadow .2s, background .2s !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .wi-input-row:focus-within {
    border-color: var(--primary-color) !important;
  }


  .wi-input-row input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1em;
    outline: none;
    padding-left: 14px;
    margin: 0 !important;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity .2s ease;
  }
  .wi-input-row input::placeholder { color: var(--text-color); opacity: .55; }
  .wi-input-disclaimer {
    margin-top: 8px;
    color: var(--text-color);
    font-size: .78em;
    line-height: 1.35;
    text-align: center;
    opacity: .55;
  }

  .wi-send-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: #111;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .15s;
    flex: 0 0 44px;
  }
  .wi-send-btn:hover { filter: brightness(.92);  }


  /* Mic button inside input */
  .wi-mic-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: transparent;
    
    color: var(--text-color);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .2s;
    flex: 0 0 34px;
  }
  .wi-mic-btn:hover { border-color: var(--wi-accent); color: var(--wi-accent); }
  .wi-mic-btn.listening {
    background: rgba(255,101,132,.15);
    border-color: var(--wi-accent2);
    color: var(--wi-accent2);
    animation: micPulse 1s infinite;
  }
  .wi-mic-btn .material-icons {  }
  @keyframes micPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,101,132,.4); }
    50%      { box-shadow: 0 0 0 8px rgba(255,101,132,0); }
  }

  /* ── Feedback chip ── */
  .wi-feedback {
    margin: 0 24px 16px;
    padding: 10px 14px;
    border-radius: var(--wi-radius-sm);
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .wi-feedback.show { display: flex; }
  .wi-header .wi-feedback {
    margin: 0;
    padding: 0;
    border-radius: 0;
    line-height: 1.45;
  }
  .wi-feedback.success { background: rgba(67,233,123,.12); color: var(--wi-accent3); border: 1px solid rgba(67,233,123,.2); }
  .wi-feedback.error   { background: rgba(255,101,132,.12); color: var(--wi-accent2); border: 1px solid rgba(255,101,132,.2); }
  .wi-feedback.info    { background: rgba(108,99,255,.12);  color: #a09fff;           border: 1px solid rgba(108,99,255,.2); }
  #wiFeedback.wi-feedback,
  #wiFeedback.wi-feedback.show,
  #wiFeedback.wi-feedback.info,
  #wiFeedback.wi-feedback.success,
  #wiFeedback.wi-feedback.error {
    display: block;
    background: transparent !important;
    border: 0 !important;
    color: var(--text-color) !important;
    font-size: 1em;
    font-weight: 400;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  #wiFeedback.wi-feedback.typing {
    display: block;
  }
  .wi-feedback-content {
    display: none;
    width: 98%;
    height: clamp(240px, 40vh, 420px);
    min-height: 0;
    max-height: clamp(240px, 40vh, 420px);
    overflow-y: auto;
    text-align: left;
    font-size: 1em;
    line-height: 1.45;
    padding-right: 4px;
    margin: 0 auto;
  }
  #wiFeedback.has-chat .wi-feedback-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
  }
  .wi-greeting-intro {
    height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 96%;
  }
  .wi-greeting-title {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
  }
  .wi-greeting-subtitle {
    display: block;
    margin-top: 10px;
    color: var(--text-color);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.18;
    opacity: .82;
    text-align: center;
  }
  #wiFeedback strong {
    color: var(--text-color);
    font-weight: 600;
  }
  .wi-chat-message {
    width: fit-content;
    max-width: min(86%, 560px);
    font-size: 1em;
    line-height: 1.45;
    word-break: break-word;
  }
  .wi-chat-text {
    white-space: pre-wrap;
    font-size: 0.95em;
  }
  .wi-places-list {
    display: flex;
    flex-direction: column;
    gap: var(--wi-radius-sm);
  }
  .wi-place-card {
    background: var(--body-color);
    color: var(--text-color);
    border-radius: var(--wi-radius-sm);
    padding: var(--wi-radius-sm);
    overflow: hidden;
  }
  .wi-place-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--body-color);
    background-size: cover;
    background-position: center;
    border-radius: var(--wi-radius-sm);
    margin-bottom: var(--wi-radius-sm);
  }
  .wi-place-info {
    display: flex;
    flex-direction: column;
    gap: var(--wi-radius-sm);
  }
  .wi-place-name {
    color: var(--text-color);
  }
  .wi-place-address,
  .wi-place-summary {
    color: var(--text-muted);
  }
  .wi-place-rating {
    color: var(--primary-color);
  }
  .wi-place-summary {
    margin: 0;
  }
  .wi-places-sources {
    display: flex;
    flex-direction: column;
    gap: var(--wi-radius-sm);
    margin-top: var(--wi-radius-sm);
  }
  .wi-sources-label {
    color: var(--text-muted);
  }
  .wi-sources-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wi-radius-sm);
  }
.wi-source-chip {
background: var(--body-color);
  color: var(--text-color);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .86em;
  font-weight: 500;
  align-items: center;
  display: flex;
  gap: 4px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
  .wi-source-chip:hover,
  .wi-source-chip:focus-visible {
    background: var(--primary-soft);
    color: var(--text-color);
    outline: none;
  }
  .wi-source-chip img {
    flex: none;
  }
  .wi-chat-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .wi-chat-chip {

    background: var(--body-color);
    color: var(--text-color);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .86em;
    font-weight: 500;
align-items: center;
  display: flex;
  gap: 4px;    
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
  }
  .wi-chat-chip:hover,
  .wi-chat-chip:focus-visible {
 
    background: var(--primary-ring);
    outline: none;
  }
  .wi-chat-chip:active {
    transform: translateY(1px);
  }
  .wi-chat-assistant {
    align-self: flex-start;
    color: var(--text-color);
  }
  .wi-chat-typing {
    align-self: center;
    margin-top: auto;
    margin-bottom: 10px;
  }
  .wi-chat-user {
    align-self: flex-end;
    background: var(--body-color);
    color: var(--text-color);
    border-radius: 18px;
    padding: 10px 14px;
    font-size: 0.95em;
  }
  .wi-chat-assistant.error {
    color: var(--wi-accent2);
  }

  .wi-typing-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 54px;
  }
  .wi-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-color);
    opacity: .35;
    animation: wiTypingDot 1s infinite ease-in-out;
  }
  .wi-typing-dots span:nth-child(2) {
    animation-delay: .16s;
  }
  .wi-typing-dots span:nth-child(3) {
    animation-delay: .32s;
  }
  @keyframes wiTypingDot {
    0%, 80%, 100% { transform: translateY(0); opacity: .3; }
    40% { transform: translateY(-5px); opacity: .9; }
  }

  /* ── Scrollable body ── */
  .wi-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--wi-border) transparent;
  }
  #wiSheet .wi-body {
    display: none;
  }
  .wi-body::-webkit-scrollbar { width: 4px; }
  .wi-body::-webkit-scrollbar-track { background: transparent; }
  .wi-body::-webkit-scrollbar-thumb { background: var(--wi-border); border-radius: 99px; }

  /* Section label */
  .wi-section-label {
    font-size: 13px;
    font-weight: 500;


    color: var(--text-color);
    margin-bottom: 14px;
  }

  /* ── Quick action cards ── */
  .wi-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
  }
  .wi-action-card {
    background: var(--body-color);
    border: 1px solid var(--linea);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    min-height: 70px;
    user-select: none;
  }
  .wi-action-card:hover {
    border-color: var(--primary-ring);
    background: var(--bg-color-btn);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
  }
  .wi-action-card:active { transform: scale(.97); }

  .wi-action-card.full-width {

    align-items: center;
    padding: 14px 18px;
  }

  .wi-card-icon {
    width: 40px; height: 40px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .wi-action-card.purple  .wi-card-icon { color: #8b5cf6; background: rgba(139,92,246,.14); }
  .wi-action-card.green   .wi-card-icon { color: #22c55e; background: rgba(34,197,94,.14); }
  .wi-action-card.blue    .wi-card-icon { color: #3b82f6; background: rgba(59,130,246,.14); }
  .wi-action-card.pink    .wi-card-icon { color: #fb7185; background: rgba(251,113,133,.14); }
  .wi-action-card.orange  .wi-card-icon { color: #f59e0b; background: rgba(245,158,11,.14); }

  .wi-card-text { flex: 1; }
  .wi-card-label {
   font-size: 13px;
    font-weight: 600;

    line-height: 1.3;
    margin-bottom: 2px;
  }
  .wi-card-sub {
    font-size: 13px;
    display: block;
    color: var(--text-muted);
    line-height: 1.25;
  }

  /* ── Recent commands ── */
  .wi-recents { margin-bottom: 24px; }
  .wi-recents-modal {
    width: min(520px, calc(100vw - 24px));
    z-index: 1004 !important;
  }
  .wi-recents-modal .modal-body {
    max-height: min(420px, 62vh);
  }
  .wi-recents-modal .wi-recents {
    margin: 0;
  }
  .wi-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--wi-radius-sm);
    cursor: pointer;
    transition: background .15s;
    color: var(--wi-muted);
    font-size: 13px;
  }
  .wi-recent-item:hover {
    background: var(--wi-surface2);
    color: var(--wi-text);
  }
  .wi-recent-item .material-icons { font-size: 16px; opacity: .5; }
  .wi-recent-empty {
    background: var(--body-color);
    border: 1px solid var(--linea);
    color: var(--text-muted);
    border-radius: 14px;
    padding: 14px;
    font-size: 13px;
  }

  @media (max-width: 720px) {
    .wi-sheet {
      left: 8px;
      right: 8px;
      bottom: 8px;
      height: auto;
      max-height: min(760px, 88vh);
      border-radius: 22px;
    }

    .wi-header,
    .wi-input-wrap,
    .wi-body {
      padding-left: 16px;
      padding-right: 16px;
    }

    .wi-actions-grid {
      grid-template-columns: 1fr;
    }

    .wi-feedback-content {
      height: min(300px, 38vh);
      max-height: min(300px, 38vh);
    }
  }

  @media (max-width: 420px) {
    .wi-input-wrap {
      padding-left: 12px;
      padding-right: 12px;
      padding-bottom: 16px;
    }

    .wi-input-row {
      gap: 6px;
      padding: 7px 8px;
    }

    .wi-input-row input {
      padding-left: 8px;
      font-size: .95em;
    }

    .wi-mic-btn {
      width: 32px;
      height: 32px;
      flex-basis: 32px;
    }

    .wi-send-btn {
      width: 40px;
      height: 40px;
      flex-basis: 40px;
    }

    .wi-feedback-content {
      height: min(250px, 34vh);
      max-height: min(250px, 34vh);
    }
  }



.avatar-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    user-select: none;
    transition: transform 0.2s ease;
}


.avatar-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    user-select: none;
}


.plan-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 250px;
    line-height: 1;

}

/* FREE – verde suave */
.plan-free {
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
}

/* PRO – violeta */
.plan-pro {
    color: var(--color-btn);
    background: var(--primary-soft);
}

/* BUSINESS – celeste */
.plan-business {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.12);
}

/* ENTERPRISE – dorado */
.plan-enterprise {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}


/* NOTIFICACIONES */


.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border-radius: 250px;
    width: 9px;
    height: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0px;
}



.notification-item {
    
    border-radius: 15px;
    padding: 15px 10px;

    cursor: pointer;
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-gap: 3px;
    margin-bottom: 8px;
}

.notification-item span {
    font-size: 0.9em;
    font-weight: 400;

}

.notification-item:hover {
    background: #313131;
}



.notification-icon {
    vertical-align: middle;
    margin-right: 10px;
    color: var(--text-color);
    margin-top: 3px;
}

.no-notifications {
    background: var(--body-color);
    padding: 20px;
    text-align: center;
    display: grid;
    align-items: center;
    justify-items: center;
    height: 90px;

    border-radius: 10px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
}

/* Dot para notificaciones no leídas */
.notification-item {
    position: relative;
    padding-left: 10px; /* padding normal */
    transition: padding-left 0.2s ease;
}

.notification-item.unread {
    padding-right: 25px; /* más espacio cuando hay dot */
    background: #313131;
}

.notification-time {
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 4px;
    font-size: 12px;
    display: block;
}

.notification-time.unread {
    color: var(--color-btn);
    font-weight: 500;
} 

.notification-item.unread::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 49%;
    transform: translateY(-49%);
    width: 8px;
    height: 8px;
    background: var(--color-btn);
    border-radius: 50%;
}

/* Contador en el header del dropdown */
.notification-count-header {
    background: var(--primary-color);
    color: #090909;
padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
     /* Empujar a la derecha */
}

/* Contenedor del dropdown de notificaciones */
#notificationDropdown {
    max-width: 370px;
    min-width: 350px;
    max-height: none !important;

}

/* Responsive */
@media (max-width: 480px) {
    #notificationDropdown {
        min-width: 270px;
    }
}

/* Lista de notificaciones con scroll */
#notificationsList {
    margin-top: 8px;
    max-height: 406px;
    /* Aproximadamente 4 notificaciones (80px cada una) */
    overflow-y: auto;
    padding: 0;
-ms-overflow-style: none;
  scrollbar-width: none;
}

