/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


/* https://www.svgrepo.com/collection/solar-bold-duotone-icons/ */
/* https://fonts.google.com/icons?icon.set=Material+Icons&icon.style=Rounded */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');


/* Bulma has 4 breakpoints which defines 5 screen sizes: 
mobile: up to 768px 
tablet: from 769px 
desktop: from 1024px 
widescreen: from 1216px 
fullhd: from 1408px */

@view-transition {
    navigation: auto;
}

:root {
    ::-webkit-scrollbar {
        height: 10px;
        width: 10px
    }

    ::-webkit-scrollbar-track {
        background: var(--black);
        border-radius: 6px
    }

    ::-webkit-scrollbar-thumb {
        background: var(--gray);
        border-radius: 6px
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gray)
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
body {
    font-family: 'Space Grotesk', sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700 !important;
    color: var(--white) !important;
}


html {
    color: var(--white) !important;
}

.grotesk {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.cursor-pointer {
    cursor: pointer;
}

:root {
    --black: #111111;
    --dark: #222222;
    --gray: #313131;
    --light-gray: #d1d5da;
    --gray-text: #a1a1a1;
    --neon-green: #64ED92;
    --neon-border: rgba(100, 237, 146, 0.2);
    --neon-background: rgba(100, 237, 146, 0.15);
    --green2: #222b15;
    --green3: #4b6c17;
    --warning: #ffdd91;
    --neon-warning-border: rgba(255, 221, 145, 0.2);
    --neon-warning-background: rgba(241, 193, 90, 0.1);
    --border-warging: #614914;
    --danger: #ff7351;
    --white: #fffff5;
    --radius: 1.7rem;
}



.icon {
    vertical-align: top;
}


/* para escritorio */
@media (min-width: 1023px) {
    .padding_top_nav {
        padding-top: 4.5rem;
    }
}

@media (max-width: 1023px) {
    .reverse-columns-touch {
        display: flex !important;
        flex-direction: column;
    }

    .reverse-touch {
        order: 1;
    }
}

.navbar {
    .logo {
        height: 5rem;
    }
}

hr {
    border: 0;
    border-top: 1px solid var(--gray) !important;
}

input,
select,
textarea {
    background-color: var(--black) !important;
    border-color: var(--gray) !important;
}

.select.is-rounded select {
    border-radius: 15px !important;
}

a,
button,
.button,
.linkk {
    -webkit-tap-highlight-color: transparent;

    /* feedback alternativo */
    &:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

button,
.button,
.linkk {
    user-select: none;
    -webkit-touch-callout: none;
    /* Desactiva el menú contextual en iOS */
}

button {
    .show-when-enabled {
        display: initial;
    }

    .show-when-disabled {
        display: none;
    }

    &[disabled] {
        .show-when-enabled {
            display: none;
        }

        .show-when-disabled {
            display: initial;
        }
    }
}

.noti {
    padding: 1rem;
    background: var(--dark);
    border-radius: var(--radius);
    border: 1px solid var(--gray);
    font-size: 0.9rem;

    h1,
    h2,
    h3 {
        .icon {
            vertical-align: bottom;
        }
    }

    &.is-main {
        background-color: var(--neon-background);
        border: 1px solid var(--neon-border);

        h1,
        h2,
        h3 {
            color: var(--neon-green);
            font-weight: 600;
        }
    }

    &.is-danger {
        background-color: #241511;
        border: 1px solid #4f271d;
        color: var(--light-gray);

        h1,
        h2,
        h3 {
            color: var(--danger);
            font-weight: 600;
        }
    }

    &.is-warning {
        background-color: var(--neon-warning-background);
        border: 1px solid var(--neon-warning-border);

        h1,
        h2,
        h3 {
            color: var(--warning);
            font-weight: 600;
        }
    }
}

div.box {
    background: var(--dark);
    border-radius: 1.7rem;
    color: var(--light-gray) !important;
    box-shadow: none;
    border: 1px solid var(--gray);

    &.is-super-black {
        background-color: #090a0c !important;
        border: 1px solid var(--black);
    }

    &.is-black {
        background-color: var(--black) !important;
        border: 1px solid var(--dark);
    }

    &.is-danger {
        background-color: #241511 !important;
        border: 1px solid #4f271d;
        color: var(--light-gray);

        h1,
        h2,
        h3 {
            color: var(--danger);
            font-weight: 600;
        }
    }

    &.is-warning {
        background-color: var(--neon-warning-background) !important;
        border: 1px solid var(--neon-warning-border);

        h1,
        h2,
        h3 {
            color: var(--warning);
            font-weight: 600;
        }
    }

    &.is-main {
        background: var(--neon-background) !important;
        border: 1px solid var(--neon-border);
        color: var(--light-gray);

        h1,
        h2,
        h3 {
            color: var(--neon-green);
            font-weight: 600;
        }
    }
}

.card {
    background: var(--dark) !important;
    border-radius: 1.7rem;
    color: var(--light-gray) !important;
    box-shadow: none !important;
    border: 1px solid var(--gray);
    transition: background 0.2s ease;

    &:hover {
        background: var(--gray) !important;
    }
}

.select_group {
    display: flex;
    gap: 0.5rem;

    /* estilo para selecto porque no tiene estilos aqui */
    select {
        flex: 1;
        background-color: var(--black);
        border: 1px solid var(--gray);
        color: var(--light-gray);
        border-radius: 0.5rem;
        padding: 0.5rem;
    }

}

.box {

    .box_header {
        display: flex;
        gap: 0.5rem;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--gray);

        .icon {
            vertical-align: sub;
        }

    }

    &.black {
        background-color: var(--black);
    }

    &.expandable {
        overflow: hidden;
        position: relative;
        /* transition: all 0.4s; */

        .toggle_icon {
            transition: transform 0.3s ease;
        }

        .box_header {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
            cursor: pointer;
            transition: all 0.25s ease-in-out;

            &:hover .toggle_icon {
                filter: brightness(1.2);
                transform: scale(1.1), rotate(180deg);
            }
        }


        .box_content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.2s ease-in-out;
        }

        &.is_active {
            .box_content {
                max-height: 2000px;
            }

            .box_header {
                margin-bottom: 1rem;
                padding-bottom: 1rem;
                border-bottom: 1px solid var(--gray);
            }

            .toggle_icon {
                transform: rotate(180deg);
            }
        }
    }


}

.box_box {
    background-color: var(--black) !important;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    text-align: left;
    padding: 20px 15px;
    color: var(--light-gray);
    font-size: small;
    color: var(--white);
    width: 100%;
    cursor: pointer;
    margin: 10px 0;
}

html {
    background-color: var(--black) !important;
}

.invert {
    filter: invert(0.9);
}


.button {
    background-color: var(--gray) !important;
    border: 1px solid var(--gray) !important;

    &:hover {

        filter: brightness(0.9);
    }

    &.is-info {
        background-color: var(--black) !important;
        color: var(--white) !important;
        border: 1px solid var(--gray) !important;
    }

    &.is-warning {
        background-color: var(--warning) !important;
        color: var(--dark) !important;
    }

    &.is-danger {
        background-color: var(--danger) !important;
        color: #450900 !important;
    }
}

.tag {
    background-color: var(--gray) !important;
    color: var(--light-gray) !important;
    border: 1px solid var(--gray) !important;

    &.is-info {
        background-color: var(--black) !important;
        color: var(--white) !important;
        border: 1px solid var(--black) !important;
    }

    &.is-warning {
        background-color: var(--warning) !important;
        color: var(--dark) !important;
    }

    &.is-danger {
        background-color: var(--danger) !important;
        color: #450900 !important;
    }

    &.is-success {
        background-color: var(--neon-green) !important;
        color: var(--dark) !important;
    }
}

.is-primary,
.is-success {
    background-color: var(--neon-green) !important;
    /* color: white !important; */
}

.progress.is-success,
.progress.is-neon,
.progress.is-primary {
    --bulma-progress-value-background-color: var(--neon-green) !important;
}

.has-text-success,
.has-text-neon,
.has-text-primary {
    color: var(--neon-green) !important;
}


.text-gray {
    color: var(--gray-text) !important;
}

.bold {
    font-weight: 600;
}

/* links blancos */
a.link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 300;
    margin-bottom: 0.3rem;
    display: block;

    &:hover {
        color: var(--white);
        /* text-decoration: underline; */
    }
}

.is-link {
    background-color: var(--dark) !important;
    color: var(--white) !important;
}

.is-info {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border: 1px solid var(--gray) !important;
}

.button {
    box-shadow: none;
}



.has_tooltip {
    position: relative;

    .tooltip {
        position: absolute;
        background-color: var(--black);
        color: var(--white);
        padding: 5px 10px;
        width: max-content;
        max-width: 22rem;
        text-wrap: pretty;
        border-radius: 1.3rem;
        border: 1px solid var(--gray);
        font-size: 0.8rem;
        z-index: 2;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;

        &::after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            left: 50%;
            transform: translateX(-50%);
        }

        &.down {
            top: 100%;
            left: 50%;
            transform: translate(-50%, 10px);

            &::after {
                bottom: 100%;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-bottom: 5px solid var(--black);
            }
        }

        &.up {
            bottom: 100%;
            left: 50%;
            transform: translate(-50%, -10px);

            &::after {
                top: 100%;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-top: 5px solid var(--black);
            }
        }
    }

    &:hover .tooltip {
        opacity: 1;
        visibility: visible;
    }
}

.button .reset.icon:first-child:not(:last-child) {
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
}

.flexx {
    display: flex;
    flex-wrap: wrap;
    /* gap: 1rem; */
}

.space-b {
    justify-content: space-between;
}

.horizontal-center {
    justify-content: center;
}

.flex-end {
    align-items: flex-end;
}

.vertical-center {
    align-items: center;
}

.flex-block {
    flex-direction: column;
}


.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}


.flexx-1 {
    flex: 1;
}

.flexx-2 {
    flex: 2;
}

.flexx-3 {
    flex: 3;
}

.flexx-4 {
    flex: 4;
}

.flexx-15 {
    flex: 15;
}



.titlee {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1.5rem;
    /* font-weight: 500; */
    color: var(--white);

    img {
        top: 6px;
        position: relative;
    }
}

.titlee2 {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 2rem;
    /* font-weight: 500; */
    color: var(--white);
}

.title {
    color: var(--white) !important;
}

input,
select {
    &:focus {
        outline: none;
        border: 1px solid var(--neon-green) !important;
        box-shadow: 0 0 -1 1px var(--neon-green) !important;
    }
}

.select {
    width: 100%;

    select {
        width: 100%;
    }
}

.navbar-link:not(.is-arrowless)::after,
.select:not(.is-multiple):not(.is-loading)::after {
    border: 0.125em solid var(--neon-green) !important;
    border-right: 0 !important;
    border-top: 0 !important;
}


.modal {
    .modal-card-head {
        box-shadow: none;
        background-color: var(--dark);
        padding: 1rem;
        border-start-start-radius: var(--radius);
        border-start-end-radius: var(--radius);
    }

    .modal-card-body {
        background-color: var(--dark);
        padding: 1rem;
    }

    .modal-card-foot {
        background-color: var(--dark);
        padding: 1rem;
        border-end-start-radius: var(--radius);
        border-end-end-radius: var(--radius);
    }
}

div.notification {
    border-radius: 1rem;
}

div.navbar-dropdown {
    box-shadow: none !important;
    background-color: #090a0c !important;

    .navbar-item {
        background-color: #090a0c !important;

    }

    a.navbar-item:hover {
        background-color: #111111 !important;
    }

    .icon img {
        max-height: 1.2rem;
    }
}

.dropdown-menu {
    .icon {
        vertical-align: middle;
    }
}

.dropdown-item.is-active {
    background-color: var(--neon-green) !important;
    color: var(--dark);
}

.ss2 {
    /* padding: 13px !important; */
    /* border-radius: var(--radius) !important; */
    /* Colors */
    --ss-primary-color: #a8fb22;
    --ss-bg-color: #111111;
    --ss-font-color: #d1d5da;
    --ss-border-color: #313131;
    --ss-border-radius: var(--radius);

    /* Heights */
    --ss-main-height: 30px;
    --ss-search-height: 30px;
    --ss-option-height: auto;
    --ss-content-height: 300px;

    /* Spacing */
    --ss-spacing-l: 9px;
    --ss-spacing-m: 7px;
    --ss-spacing-s: 7px;

    /* Other Properties */
    --ss-border-radius: 15px;
    --ss-animation-timing: 0.1s;

    input {
        color: var(--light-gray);
    }

    .ss-option.ss-disabled {
        background-color: var(--danger) !important;
    }
}

.field.has-addons select,
.field.has-addons .ss2 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select-is-danger {
    .ss-main {
        border: 1px solid #e44545 !important;

    }
}

/* .............. */


.doc_input {
    background: var(--black);
    border: 1px dashed #2b2f36;
    border-radius: 1.2rem;
    padding: 0.9rem;
    min-height: 150px;
    position: relative;
    transition: border 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    &:hover {
        border-color: var(--neon-green);
        transform: translateY(-2px);

    }

    .doc_file_name {
        color: #e6e9ef;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .doc_file_size {
        color: #7f8792;
        font-size: 0.75rem;
    }

    .doc_file_field {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

    .doc_action {
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        border: 1px solid #2b2f36;
        background: #0b0d10;
        color: #e6e9ef;
        font-size: 0.75rem;
    }

    .image_preview {
        img {
            max-height: 15rem;
        }
    }
}




.docs_grid {

    .doc_tile {
        padding: 1.5rem 1rem;
        border: 1px solid var(--gray);
        margin-bottom: 0.5rem;
        background-color: var(--black);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        gap: 0.5rem;

        &.transparent {
            background-color: transparent;
            border: 1px dashed var(--gray);
        }

        img {
            width: 2rem;
            flex-shrink: 0;
        }

        .actionn {
            /* align-self: center !important; */
            font-size: 0.8rem !important;

            &.neon {
                background-color: var(--neon-green) !important;
                border-color: var(--neon-green) !important;
                color: var(--dark) !important;
            }
        }

        .contentt {
            flex: 1;
            overflow: hidden;



            .file_name {
                font-size: 0.9rem;
                color: var(--white);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }
    }
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.toggle_field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray);
    cursor: pointer;
    user-select: none;

    &:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    &:first-of-type {
        padding-top: 0;
    }

    &.disabled {
        cursor: auto;

        .toggle_track {
            opacity: 0.4;
            /* background-color: var(--gray) !important; */
        }
    }

    .toggle_info {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .toggle_label {
        color: var(--white);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .toggle_desc {
        color: var(--light-gray);
        font-size: 0.8rem;
        font-weight: 400;
    }

    .toggle_input {
        display: none;
    }

    .toggle_track {
        position: relative;
        width: 48px;
        height: 26px;
        background-color: var(--gray);
        border-radius: 999px;
        flex-shrink: 0;
        transition: background 0.25s ease;
        border: 1px solid #444;
    }

    .toggle_thumb {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        background-color: var(--light-gray);
        border-radius: 50%;
        transition: transform 0.25s ease, background 0.25s ease;
    }

    .toggle_input:checked~.toggle_track {
        background-color: var(--neon-green);
        border-color: var(--neon-green);
    }

    .toggle_input:checked~.toggle_track .toggle_thumb {
        transform: translateX(22px);
        background-color: var(--dark);
    }
}

.image-tile {
    background: var(--black);
    border: 1px dashed #2b2f36;
    border-radius: 1.2rem;
    padding: 0.9rem;
    min-height: 150px;
    position: relative;
    transition: border 0.2s ease, transform 0.2s ease;
}

.image-tile:hover {
    border-color: var(--neon-green);
    transform: translateY(-2px);
}

.image-tile__drop {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    height: 100%;
    cursor: pointer;
}

.image-tile__title {
    color: #e6e9ef;
    font-weight: 600;
    font-size: 0.95rem;

    img {
        max-height: 15rem;
    }
}

.image-tile__subtitle {
    color: #a3a9b3;
    font-size: 0.85rem;
    text-wrap: wrap;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    /* Asegura que respete el max-width */
}

.image-tile__meta {
    color: #7f8792;
    font-size: 0.75rem;
}

.image-tile__action {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #2b2f36;
    background: #0b0d10;
    color: #e6e9ef;
    font-size: 0.75rem;
}

.image-tile__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}


.table_box {
    margin-top: 2rem;

    /* border: 1px solid var(--gray); */
    .table_header {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
        align-items: center;
        background-color: var(--gray);
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .table_cell {
        .icon {
            vertical-align: bottom;
        }
    }

    .table_content {
        .item_box {
            padding: 2rem;
            border: 1px solid var(--gray);
            margin-top: 0.5rem;
            background-color: var(--dark);
            border-radius: 2rem;

            .item_buttons {
                /* padding: 0 1rem; */
                display: flex;
                gap: 0.5rem;
            }

        }

        .table_item {
            display: flex;
            align-items: stretch;
            gap: 2rem;


            .item_image {
                height: 200px;
                /* Fuerza a que el contenedor sea cuadrado */
                aspect-ratio: 1 / 1;
                overflow: hidden;
                /* border-radius: 8px; */

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    object-position: center;

                    &.small {
                        position: relative;
                        width: 50%;
                        height: 50%;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                    }


                }
            }

            .item_info {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: stretch;
                color: var(--light-gray);


                .tag {
                    vertical-align: text-bottom;
                }
            }

            .item_actions {
                display: flex;
                align-items: flex-start;

            }
        }
    }
}

.labell {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.contentt {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;

    .button {
        margin-top: 0.5rem;
    }
}

.is-ghost {
    color: transparent !important;
}

.rounded {
    border-radius: 36px;
}

.r90 {
    transform: rotate(90deg);
}

.r180 {
    transform: rotate(180deg);
}

.tacha {
    text-decoration: line-through;
}


.table {
    /* --bulma-table-cell-border-color: var(--gray); */
    --bulma-table-head-cell-border-width: 0 !important;
    --bulma-table-background-color: transparent !important;
    --bulma-table-cell-padding: 1em 1.75em !important;
    --bulma-table-head-background-color: var(--gray) !important;

    /* Agregar bordes redondeados al header */
    th:first-child {
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }

    th:last-child {
        border-top-right-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    td,
    th {
        vertical-align: middle !important;
    }


    td.text_image {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .image_container {
        background: var(--dark);
        height: 100px;
        /* Fuerza a que el contenedor sea cuadrado */
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 8px;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;

            &.small {
                position: relative;
                width: 50%;
                height: 50%;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
        }
    }
}

.mtrigger {
    cursor: pointer;
}

.splide {
    &.splide_home {
        /* border-radius: 1.7rem;
        background-color: var(--black);
        border: 1px solid var(--dark);
        padding: 2rem 2rem 1rem 2rem; */

        .splide__slide {
            height: 25rem;
            /* width: 100%; */
            aspect-ratio: 3 / 2;
            background: none;
            border-radius: 0;
            padding: 10px;
            text-align: left;

            @media (max-width: 769px) {
                width: 100%;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
                border-radius: 1rem;
            }

            .splide_info {
                position: absolute;
                bottom: 10px;
                /* width: 100%; */
                left: 10px;
                right: 10px;
                padding: 1.5rem;
                background: rgba(0, 0, 0, 0.9);
                color: var(--white);
                border-bottom-left-radius: 0.9rem;
                border-bottom-right-radius: 0.9rem;

                h3 {
                    margin-bottom: 0.5rem;
                    font-size: 1.2rem;
                    font-weight: bold;
                }

                p {
                    font-size: 0.9rem;
                    line-height: 1.4;
                    max-height: 3.6em;
                    /* Limita a 3 líneas */
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }
    }

    .splide__arrows {
        /* display: flex;
        justify-content: space-between; */
        /* position: absolute; */
        /* top: 50%; */
        left: 0;
        right: 0;
        /* transform: translateY(-50%); */
        /* padding: 0 1rem; */
        /* width: fit-content; */

        .splide__arrow--next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 0;
            z-index: 1;
        }

        .splide__arrow--prev {
            position: absolute;
            top: 50%;
            left: 0;
            bottom: 40px;
            z-index: 1;
            transform: translateY(-50%) rotate(180deg);
        }

    }

    .splide__slide {
        opacity: 0.4;
        height: 25rem;
        aspect-ratio: 1 / 1;
        background: var(--black);
        border-radius: 15px;
        padding: 20px;
        text-align: center;

        img {
            /* border-radius: 15px; */
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        &.thumbnail {
            height: 7rem;
            /* border-radius: 15px; */
            padding: 10px;

            img {
                width: 100%;
                height: 100%;

            }
        }
    }

    .splide__slide.is-active {
        opacity: 1;
    }

    .splide__pagination {
        gap: 5px;
        padding: 0 1rem;

        li {
            line-height: 0;
            /* flex: 1; */
            width: 40px;
        }

        .splide__pagination__page {
            background-color: var(--gray) !important;
            border: 1px solid var(--gray) !important;
            height: 4px;
            width: 100%;
            border-radius: 10px;

            &.is-active {
                background-color: var(--neon-green) !important;
                border: 1px solid var(--neon-green) !important;
            }
        }

        @media (max-width: 769px) {
            li {
                flex: 1;
            }
        }
    }


}

.splide_thumbnail_carousel {
    .splide__slide img {
        max-height: 10rem;
    }
}

.pagy-bulma {
    .pagination-list {
        .pagination-link.is-current {
            background-color: var(--neon-green) !important;
            border-color: var(--neon-green) !important;
            color: var(--dark) !important;
        }

        a {
            border-radius: 16px;
        }
    }
}

.linkk {
    position: relative;
    padding: 1rem;
    background-color: var(--dark);
    border: 1px solid var(--gray);
    color: var(--light-gray);
    border-radius: var(--radius);
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;

    img {
        width: 2rem;
        vertical-align: middle;
    }

    .dot {
        display: inline-flex;
        width: 36px;
        height: 36px;
        background-color: #e44545;
        color: var(--white);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
    }

    .labell {
        font-size: 0.8rem;
        color: var(--light-gray);
        opacity: 0.8;

    }

    &.big {
        padding: 1.5rem;
        font-size: 1.2rem;

        img {
            width: 3rem;
        }
    }

    &.neon {
        &.active {
            background-color: var(--neon-green) !important;
            border-color: var(--neon-green) !important;
            color: var(--dark) !important;

            .labell {
                color: var(--dark) !important;
                opacity: 1;
            }

            img {
                filter: invert(0);
            }
        }

        border: 1px solid var(--neon-border);
        background: var(--neon-background);
        color: var(--light-gray) !important;

        img {
            filter: invert(0.9);
        }
    }
}

.search_input {
    background-color: var(--dark) !important;
    border: 1px solid var(--dark) !important;
    color: var(--light-gray);
    padding: 11px 20px;
    border-radius: var(--radius);
    width: 100%;
    font-size: 1rem;

    &:focus {
        outline: none;
        border: 1px solid var(--neon-green);
        box-shadow: 0 0 -1 1px var(--neon-green);
    }
}

.avatar {
    background: var(--gray);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.events_actions {
    margin-bottom: 0 !important;

    .button:first-child {
        border-top-left-radius: var(--radius);
        border-bottom-left-radius: var(--radius);
    }

    .button:last-child {
        border-top-right-radius: var(--radius);
        border-bottom-right-radius: var(--radius);
    }
}

.no_image_item_show {
    height: 13rem;
    text-align: center;
    margin: 3rem 0;

    img {
        height: 100%;
    }
}


.simple-calendar {


    table {
        width: 100%;
        height: 70dvh;
        /* background: var(--dark) !important; */
        border-radius: 1.7rem;
        color: var(--light-gray) !important;
        box-shadow: none;
        /* border: 1px solid var(--gray); */
    }

    thead {
        text-align: center;
    }

    .day {
        width: 15rem;
        text-align: center;
        border-bottom: 1px solid #222;
        border-right: 1px solid #222;
        padding: 0 5px;
        vertical-align: top !important;

        &:nth-child(7n) {
            border-right: none;
            /* border-bottom: none; */
        }

        &.today {
            background: rgba(60, 229, 18, 0.03);

            &.not-working-day {
                background: repeating-linear-gradient(-45deg,
                        transparent,
                        transparent 8px,
                        rgba(60, 229, 18, 0.33) 8px,
                        rgba(60, 229, 18, 0.03) 10px);
            }

            .day_number {
                /* background-color: var(--neon-green) !important; */
                /* border-radius: 999px; */
                color: var(--neon-green);
                border: 1px solid transparent;
                margin-top: 2px;

                img {
                    /* filter: invert(0); */
                }
            }
        }

        &.not-working-day {
            background: repeating-linear-gradient(-45deg,
                    transparent,
                    transparent 8px,
                    rgba(255, 119, 0, 0.15) 8px,
                    rgba(255, 119, 0, 0.15) 10px);
        }


        .day_number {
            /* margin-top: 10px; */
            font-size: 1.5rem;
            border: 1px solid transparent;
            border-radius: var(--radius);
            padding: 0 10px 10px 10px;
            gap: 5px;

            &:hover {
                color: var(--neon-green);
                border: 1px solid var(--gray);
                border-radius: var(--radius);
            }

            progress {
                width: 70%;
                height: 0.3rem;
            }
        }
    }

    .day.prev-month,
    .day.next-month {
        background: repeating-linear-gradient(-45deg,
                transparent,
                transparent 8px,
                rgba(231, 231, 224, 0.20) 8px,
                rgba(169, 169, 164, 0.20) 10px);
    }

    /* &.week .day.prev-month:first-child {
        border-bottom-left-radius: var(--radius);
    } */

    /* .day.next-month:last-child {
        border-bottom-right-radius: var(--radius);
    } */

    tr:last-child .day {
        border-bottom: none;
    }


    .day.event {
        background-color: var(--warning) !important;
        color: var(--dark) !important;
    }
}

.event_snippet {
    &.border_warning {
        border-left: 4px solid var(--warning) !important;
    }

    background-color: var(--black);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    text-align: left;
    padding: 20px 15px;
    color: var(--light-gray);
    font-size: small;
    color: var(--white);
    display: block;
    width: 100%;
    cursor: pointer;
    margin: 10px 0;

    &:hover {
        background-color: var(--dark) !important;
        color: var(--white) !important;
    }

    .snippet_body {
        display: inline-block;
        vertical-align: middle;
        margin-top: 5px;
    }
}

.snippet_slot {
    background-color: var(--black);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    text-align: left;
    padding: 20px 15px;
    color: var(--light-gray);
    font-size: small;
    color: var(--white);
    /* display: block; */
    width: 100%;
    cursor: pointer;
    margin: 10px 0;

    .icon {
        opacity: 0.3;
    }

    &:hover {
        /* background-color: var(--dark) !important;
        color: var(--white) !important; */

        .icon {
            opacity: 1;
        }
    }
}


@keyframes glow-warning {
    0% {
        box-shadow: 0 0 4px 1px rgba(255, 170, 0, 0);
    }

    50% {
        box-shadow: 0 0 5px 1px rgba(255, 170, 0, 0.75);
    }

    100% {
        box-shadow: 0 0 4px 1px rgba(255, 170, 0, 0);
    }
}

.glow-warning {
    border-color: rgba(255, 170, 0, 0.1);
    animation: glow-warning 1.8s ease-in-out infinite;
}

.modal-card {
    text-align: left;
}

.modal-card-foot {
    justify-content: flex-end !important;
}



.order_item_image {
    height: 300px;
    /* Fuerza a que el contenedor sea cuadrado */
    /* aspect-ratio: 1 / 1; */
    overflow: hidden;
    /* height: 15rem; */
    border-radius: 8px;
    background-color: var(--white);

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;

        &.small {
            position: relative;
            width: 50%;
            height: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }
}

.panel {
    background-color: var(--dark);
    border-radius: var(--border-radius);
    box-shadow: none !important;
    border: 1px solid var(--gray);

    .panel-heading {
        background-color: transparent !important;
        border-bottom: 1px solid var(--gray);
        color: var(--white);
        font-weight: 600;
    }

    .panel-block {
        max-height: 40rem;
        overflow-y: auto;
    }

    .totals {
        padding: 1.5rem;
    }
}

.tag .material-icons-round {
    font-size: 18px;
}

.small {
    font-size: 0.95rem !important;
    /* padding: 0.25rem 0.5rem !important; */
}


/* ──── Dashboard ──────────────────────────────────────────────── */

.dashboard_section_title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.dashboard_box {
    height: 100%;
}

/* Stat cards */
.stat_card {
    text-align: center;
    padding: 1.5rem !important;

    .stat_icon {
        margin-bottom: 0.5rem;

        img {
            width: 2rem;
            height: 2rem;
            opacity: 0.45;
        }
    }

    .stat_val {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--white);
        line-height: 1;
        font-family: "Space Grotesk", sans-serif;
    }

    .stat_label {
        font-size: 0.7rem;
        color: var(--gray-text);
        margin-top: 0.4rem;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        line-height: 1.4;
    }

    &.is-accent .stat_val {
        color: var(--neon-green);
    }
}

/* Upcoming events list */
.upcoming_event {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--gray);
    text-decoration: none;
    transition: opacity 0.15s ease;

    &:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    &:first-of-type {
        padding-top: 0;
    }

    &:hover {
        opacity: 0.75;
    }

    .event_time {
        font-size: 0.78rem;
        color: var(--neon-green);
        font-weight: 700;
        min-width: 4.8rem;
        padding-top: 0.1rem;
        font-family: "Space Grotesk", sans-serif;
    }

    .event_body {
        flex: 1;
        min-width: 0;

        .event_title {
            font-size: 0.9rem;
            color: var(--white);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .event_meta {
            font-size: 0.75rem;
            color: var(--gray-text);
            margin-top: 0.1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
}

/* Slots progress bar */
.slot_bar {
    height: 10px;
    background: var(--gray);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.4rem 0;

    .slot_fill {
        height: 100%;
        border-radius: 999px;
        background: var(--neon-green);
        transition: width 0.6s ease;

        &.is-full {
            background: var(--danger);
        }

        &.is-busy {
            background: var(--warning);
        }
    }
}

/* Inventory alert rows */
.alerta_item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray);
    text-decoration: none;
    transition: opacity 0.15s ease;

    &:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    &:first-of-type {
        padding-top: 0;
    }

    &:hover {
        opacity: 0.75;
    }

    .alerta_name {
        flex: 1;
        font-size: 0.9rem;
        color: var(--white);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .alerta_stock {
        font-size: 0.82rem;
        color: var(--danger);
        font-weight: 600;
        white-space: nowrap;
        text-align: right;
    }
}

/* Empty state placeholder */
.empty_state {
    text-align: center;
    padding: 2rem 0;
    color: var(--gray-text);

    .empty_state_icon {
        width: 2rem;
        opacity: 0.35;
        display: block;
        margin: 0 auto 0.5rem;
    }

    p {
        font-size: 0.85rem;
    }
}

/* Clickable table rows */
tr.is-clickable {
    cursor: pointer;
    transition: background 0.15s ease;

    &:hover td {
        background: rgba(255, 255, 255, 0.03) !important;
    }
}

/* ── Dashboard tabs ─────────────────────────────────────────── */
.dash_tabs_nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dash_tab_btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--gray);
    background: var(--dark);
    color: var(--light-gray, #d1d5da);
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;

    img {
        width: 1rem;
        height: 1rem;
    }

    &.is_active {
        background: var(--neon-green);
        color: var(--dark);
        border-color: var(--neon-green);
        font-weight: 600;

        img {
            filter: invert(0);
        }
    }

    &:hover:not(.is_active) {
        background: var(--gray);
    }
}

/* ── Rank list ──────────────────────────────────────────────── */
.rank_item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--gray);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;

    &:last-child {
        border-bottom: none;
    }

    &:hover {
        opacity: 0.75;
    }

    .rank_num {
        font-size: 0.75rem;
        color: var(--gray-text, #69748c);
        font-weight: 700;
        min-width: 1.75rem;
        text-align: right;
    }

    .rank_body {
        flex: 1;
        min-width: 0;

        .rank_name {
            font-size: 0.9rem;
            color: var(--white, #fff);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .rank_bar_wrap {
            height: 4px;
            background: var(--gray);
            border-radius: 999px;
            margin-top: 0.3rem;
            overflow: hidden;
        }

        .rank_bar {
            height: 100%;
            border-radius: 999px;
            background: var(--neon-green);
        }
    }

    .rank_val {
        font-size: 0.82rem;
        color: var(--neon-green);
        font-weight: 600;
        white-space: nowrap;
        text-align: right;
    }
}



/* ──── Páginas públicas de empresa ───────────────────────────── */

.corp_hero_section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
    /* border-bottom: 1px solid var(--gray); */
}

.corp_logo_wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark);
}

.corp_logo_placeholder {
    background-color: var(--gray);

    img {
        width: 50%;
        height: 50%;
        opacity: 0.5;
    }
}

.corp_logo_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corp_info_row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray);

    &:last-child {
        border-bottom: none;
    }

    > :last-child {
        flex: 1;
        min-width: 0;
    }
}

.corp_info_icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    opacity: 0.5;
}

.corp_social_links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.corp_feature_card {
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;

    &:hover {
        border-color: var(--neon-green) !important;
    }
}

.corp_feature_inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.corp_feature_icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gray);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    img {
        width: 1.6rem;
        height: 1.6rem;
    }
}

.corp_feature_arrow {
    margin-left: auto;
    font-size: 1.8rem;
    color: var(--neon-green);
    font-weight: 300;
    line-height: 1;
}

/* Slots de calendario */
.corp_slots_grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.corp_slots_day_label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.corp_slots_times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.corp_slot_radio {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;

    input[type="radio"] {
        display: none;
    }

    span {
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        border: 1px solid var(--gray);
        font-size: 0.82rem;
        color: var(--light-gray);
        background: var(--black);
        transition: all 0.15s;
        user-select: none;
    }

    input[type="radio"]:checked+span {
        background-color: var(--neon-green);
        border-color: var(--neon-green);
        color: var(--dark);
        font-weight: 700;
    }

    &:hover span {
        border-color: var(--neon-green);
    }
}

/* Horarios laterales */
.corp_schedule_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray);

    &:last-child {
        border-bottom: none;
    }
}

.corp_schedule_day {
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* Filtros de categoría menu */
.corp_cate_tag {
    cursor: pointer;
    transition: background 0.15s;

    &:hover {
        border-color: var(--neon-green) !important;
    }

    a {
        color: inherit !important;
    }
}

/* Onboarding checklist */
.onboarding_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;

    .onboarding_count {
        font-size: 0.9rem;
        color: var(--gray-text);
        white-space: nowrap;
        padding-top: 0.25rem;
    }
}

.onboarding_list {
    display: flex;
    flex-direction: column;
}

.onboarding_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray);

    &:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    &:first-child {
        padding-top: 0;
    }

    .onboarding_check {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 2px solid var(--gray);
        flex-shrink: 0;
        background: transparent;
        transition: all 0.2s ease;
    }

    .onboarding_info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .onboarding_title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--white);
    }

    &.is-done {
        .onboarding_check {
            background-color: var(--neon-green);
            border-color: var(--neon-green);
            display: flex;
            align-items: center;
            justify-content: center;

            &::after {
                content: '';
                display: block;
                width: 5px;
                height: 9px;
                border: 2px solid var(--black);
                border-top: none;
                border-left: none;
                transform: rotate(45deg) translateY(-1px);
            }
        }

        .onboarding_title {
            text-decoration: line-through;
            color: var(--gray-text);
        }
    }
}

/* boton flotante en touch para ir a ticket resumen */
.cart_button {
    position: fixed;
    bottom: 4rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--neon-green);
    color: var(--dark);
    border-radius: var(--radius);
    padding: 1rem;
}

/* ──── Catalog product cards ─────────────────────────────────── */

.catalog_card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog_card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog_card .card-content .title {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog_card .card-content .level {
    margin-top: auto;
}

.tag.is-primary {
    color: var(--dark) !important;
}

/* ──── Public booking calendar ────────────────────────────────── */

.pub_calendar .simple-calendar {
    table {
        height: auto;
    }

    .day {
        width: auto;
        padding: 8px 5px;
        vertical-align: top !important;

        &.past {
            opacity: 0.35;
        }
    }

    .day_number {
        font-size: 1.1rem;
        padding: 0 5px 5px 5px;
    }

    .event_snippet {
        padding: 6px 8px;
        margin: 3px 0;
        font-size: 0.75rem;
        border-radius: 0.7rem;
    }
}

/* ──── Avatar group (métodos de pago solapados) ─────────────── */

.avatar-group {
    display: flex;
    justify-content: center;

    &.center {
        justify-content: center;
    }

    &.left {
        justify-content: flex-start;
    }

    &.right {
        justify-content: flex-end;
    }
}

.avatar-group .avatar {
    width: 3rem;
    background: var(--black);
    border: 2px solid var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
}

.avatar-group .avatar:not(:first-child) {
    margin-left: -0.75rem;
}

.avatar-group .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* =============================================
    Ticket Chat Messages
   ============================================= */

.ticket-messages-box {
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    scroll-behavior: smooth;
}

.ticket-message {
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    max-width: 80%;
    word-wrap: break-word;
}

.ticket-message.admin-msg {
    align-self: flex-end;
    background: var(--neon-background);
    border: 1px solid var(--neon-border);
    border-bottom-right-radius: 0.25rem;
}

.ticket-message.user-msg {
    align-self: flex-start;
    background: var(--black);
    border: 1px solid var(--gray);
    border-bottom-left-radius: 0.25rem;
}

.ticket-message .msg-header {
    font-size: 0.75rem;
    color: var(--gray-text);
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ticket-message .msg-sender {
    font-weight: 600;
}

.ticket-message .msg-time {
    white-space: nowrap;
    font-size: 0.7rem;
}

.ticket-message .msg-body {
    color: var(--light-gray);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ticket-message .msg-body p {
    margin-bottom: 0.25rem;
}

.ticket-message .msg-body p:last-child {
    margin-bottom: 0;
}

/* Scroll suave al enviar un mensaje nuevo */
.ticket-messages-box>div:last-child {
    animation: ticketFadeIn 0.3s ease-out;
}

@keyframes ticketFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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