﻿/* ==========================================================================
   1. ESTRUCTURA BÁSICA Y CAMPOS (FIELD, LABEL, INPUT, HOVER & FOCUS)
   ========================================================================== */

/* ==========================================
   ADMIN CREATE - CAMPOS
   ========================================== */
.AdminDesign-Field {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

/* ==========================================
   LABEL
   ========================================== */
.AdminDesign-Label {
    font-size: 14px;
    font-weight: 600;
    color: #243b53;
    line-height: 1.2;
}

/* ==========================================
   GRUPO INPUT
   ========================================== */
.AdminDesign-InputGroup {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #f8fbff;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    /* ==========================================
   FOCUS DEL GRUPO
   ========================================== */
    .AdminDesign-InputGroup:focus-within {
        border-color: #3182ce;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(49, 130, 206, .12);
    }

.AdminDesign-InputContent {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    height: 44px;
    overflow: hidden;
    box-sizing: border-box;
}

.AdminDesign-Input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: #102a43;
    box-sizing: border-box;
}



.AdminDesign-FormatMask {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 14px;
    box-sizing: border-box;
    font-size: 16px;
    color: #102a43;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: text;
    z-index: 2;
}

    .AdminDesign-FormatMask.show {
        display: flex;
    }

 
    /* ==========================================
   INPUT LOOKUP
   ========================================== */
    .AdminDesign-Input[data-lookup] {
        cursor: pointer;
        caret-color: transparent;
    }

    /* ==========================================
   PLACEHOLDER
   ========================================== */
    .AdminDesign-Input::placeholder {
        color: #829ab1;
    }

/* ==========================================
   CHEVRON LOOKUP
   ========================================== */
.AdminDesign-LookupButton {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.AdminDesign-LookupChevron {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #829ab1;
    transition: transform .22s ease, color .2s ease;
}

/* ==========================================
   BOTÓN LIMPIAR
   ========================================== */
.AdminDesign-Clear {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: 0;
    background: transparent;
    color: #829ab1;
    cursor: pointer;
    transition: opacity .18s ease, visibility .18s ease, color .2s ease, background .2s ease;
}

    .AdminDesign-Clear.show {
   
        display: flex;
    }

/* ==========================================
   BOTÓN FORMAT
   ========================================== */

.AdminDesign-FormatButton {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    outline: 0;
    display: none;
    background: transparent;
    color: #829ab1;
    cursor: pointer;
    box-sizing: border-box;
    transition: color .2s ease, background .2s ease;
}


    /* ==========================================
   BOTÓN FORMAT VISIBLE
   ========================================== */

    .AdminDesign-FormatButton.show {
        display: block;
    }


    /* ==========================================
   HOVER BOTÓN FORMAT
   ========================================== */

    .AdminDesign-FormatButton:hover {
        color: #243b53;
        background: rgba(49, 130, 206, .06);
    }


    /* ==========================================
   ICONO FORMAT
   ========================================== */

    .AdminDesign-FormatButton i {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        line-height: 1;
        pointer-events: none;
    }

/* ==========================================================================
   2. ACCIONES Y BOTONES SUBMIT (CREATE, EDIT, LOADING & SPINNER)
   ========================================================================== */

/* ==========================================
   ACCIONES
   ========================================== */
.AdminDesign-Actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 20px;
}

/* ==========================================
   BOTÓN CREATE
   ========================================== */
.AdminDesign-SubmitCreate {
    min-width: 150px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient( 135deg, #2f80ed, #1f65c7 );
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(47, 128, 237, .22);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

    .AdminDesign-SubmitCreate:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(47, 128, 237, .28);
    }

    .AdminDesign-SubmitCreate:active {
        transform: translateY(0);
    }

/* ==========================================
   BOTÓN EDIT
   ========================================== */
.AdminDesign-SubmitEdit {
    min-width: 150px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient( 135deg, #16a36a, #0d7f50 );
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(22, 163, 106, .22);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

    .AdminDesign-SubmitEdit:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(22, 163, 106, .28);
    }

    .AdminDesign-SubmitEdit:active {
        transform: translateY(0);
    }

.AdminDesign-Submit:active:not(:disabled) {
    transform: translateY(0);
}

/* ==========================================
   DISABLED
   ========================================== */
.AdminDesign-Submit:disabled {
    color: #66788b;
    background: #d7e3f0;
    cursor: not-allowed;
    opacity: .75;
    transform: none;
    box-shadow: none;
    transition: none;
}

/* ==========================================
   REGISTRAR / EDITAR - LOADING
   ========================================== */
.AdminDesign-SubmitLoading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.AdminDesign-SubmitSpinner {
    display: inline-flex;
    font-size: 16px;
    animation: AdminDesignSubmitSpin .75s linear infinite;
}

/* ==========================================
   CREATE - LOADING
   ========================================== */
.AdminDesign-Submit[ data-register-loading="true" ] [data-register-text] {
    display: none;
}

.AdminDesign-Submit[ data-register-loading="true" ] .AdminDesign-SubmitLoading {
    display: inline-flex;
}

.AdminDesign-Submit[ data-register-loading="true" ] {
    pointer-events: none;
    cursor: wait;
}

/* ==========================================
   EDIT - LOADING
   ========================================== */
.AdminDesign-Submit[ data-edit-loading="true" ] [data-edit-text] {
    display: none;
}

.AdminDesign-Submit[ data-edit-loading="true" ] .AdminDesign-SubmitLoading {
    display: inline-flex;
}

.AdminDesign-Submit[ data-edit-loading="true" ] {
    pointer-events: none;
    cursor: wait;
}

/* ==========================================
   SPINNER
   ========================================== */
@keyframes AdminDesignSubmitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   RESPONSIVE - ACCIONES Y CAMPOS
   ========================================== */
@media (max-width: 700px) {
    .AdminDesign-Field {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .AdminDesign-Actions {
        justify-content: center;
    }

    .AdminDesign-Submit {
        max-width: 70%;
    }
}


/* ==========================================================================
   3. DESPLEGABLE / LOOKUP (SEARCH, HEADER, BODY, ROWS, CELLS & RESPONSIVE)
   ========================================================================== */

/* ==========================================
   LOOKUP
   ========================================== */
.AdminDesign-Lookup {
    grid-column: 1;
    width: 100%;
    margin-top: 0px;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(3, 28, 60, .4);
    user-select: none;
}

/* ==========================================
   COLUMNAS ID OCULTAS
   ========================================== */
.AdminDesign-LookupColumnId {
    display: none;
}

/* ==========================================
   BUSCADOR LOOKUP
   ========================================== */
.AdminDesign-LookupSearch {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #d7e3f0;
    box-sizing: border-box;
}

/* ==========================================
   GRUPO BUSCADOR
   ========================================== */
.AdminDesign-LookupSearchGroup {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

/* ==========================================
   INPUT BUSCADOR
   ========================================== */
.AdminDesign-LookupSearchInput {
    width: 100%;
    height: 46px;
    padding: 0 14px;
}

/* ==========================================
   FOCUS BUSCADOR
   ========================================== */
.AdminDesign-LookupSearchGroup:focus-within {
    border: 0;
    background: #ffffff;
}

/* ==========================================
   SIN RESULTADOS
   ========================================== */
.AdminDesign-LookupEmpty {
    width: 100%;
    padding: 20px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #829ab1;
    background: #ffffff;
    box-sizing: border-box;
}

    .AdminDesign-LookupEmpty[hidden] {
        display: none;
    }

/* ==========================================
   LOOKUP CON UNA COLUMNA VISIBLE
   ========================================== */
.AdminDesign-LookupHeader.lookup-single-column,
.AdminDesign-LookupRow.lookup-single-column {
    grid-template-columns: minmax(0, 1fr);
}

/* ==========================================
   CHEVRON LOOKUP ABIERTO
   ========================================== */
.AdminDesign-Field.lookup-open .AdminDesign-LookupChevron {
    transform: rotate(180deg);
    color: #486581;
}

/* ==========================================
   HEADER Y FILAS
   ========================================== */
.AdminDesign-LookupHeader,
.AdminDesign-LookupRow {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
}

/* ==========================================
   HEADER
   ========================================== */
.AdminDesign-LookupHeader {
    background: #f4f8fc;
    border-bottom: 1px solid #d7e3f0;
}

.AdminDesign-LookupHeaderCell {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #486581;
    box-sizing: border-box;
}

/* ==========================================
   BODY
   ========================================== */
.AdminDesign-LookupBody {
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================
   FILAS
   ========================================== */
.AdminDesign-LookupRow {
    width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .18s ease;
}

    .AdminDesign-LookupRow:last-child {
        border-bottom: 0;
    }

    .AdminDesign-LookupRow:hover {
        background: #edf6ff;
    }

/* ==========================================
   CELDAS
   ========================================== */
.AdminDesign-LookupCell {
    min-width: 0;
    padding: 11px 12px;
    font-size: 13px;
    color: #243b53;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

    .AdminDesign-LookupCell:first-child {
        font-weight: 600;
        color: #1f65c7;
    }

/* ==========================================
   MOBILE - LOOKUP
   ========================================== */
@media (max-width: 700px) {
    .AdminDesign-LookupHeader,
    .AdminDesign-LookupRow {
        grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
    }

    .AdminDesign-LookupHeaderCell,
    .AdminDesign-LookupCell {
        padding: 10px;
    }

    .AdminDesign-LookupBody {
        max-height: 210px;
    }
}


/* ==========================================================================
   4. CONTROLES COMPLEMENTARIOS (TEXTAREA, BOTONES EXTERNOS, SELECT PREFIJO)
   ========================================================================== */

/* ==========================================
   TEXTAREA
   ========================================== */
.AdminDesign-Textarea {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 120px;
    max-height: 220px;
    padding: 12px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1.45;
    color: #102a43;
    resize: none;
    overflow-y: auto;
    box-sizing: border-box;
}

    /* ==========================================
   PLACEHOLDER TEXTAREA
   ========================================== */
    .AdminDesign-Textarea::placeholder {
        color: #829ab1;
    }

/* ==========================================
   SCROLL TEXTAREA
   ========================================== */
.AdminDesign-Textarea {
    scrollbar-width: thin;
    scrollbar-color: #b8c9da transparent;
}

    .AdminDesign-Textarea::-webkit-scrollbar {
        width: 7px;
    }

    .AdminDesign-Textarea::-webkit-scrollbar-track {
        background: transparent;
    }

    .AdminDesign-Textarea::-webkit-scrollbar-thumb {
        background: #b8c9da;
        border-radius: 10px;
    }

        .AdminDesign-Textarea::-webkit-scrollbar-thumb:hover {
            background: #829ab1;
        }

/* ==========================================
   BOTÓN ENLACE EXTERNO
   ========================================== */
.AdminDesign-ExternalButton {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: 0;
    background: transparent;
    color: #3182ce;
    font-size: 18px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
    .AdminDesign-ExternalButton:hover {
        color: #1f65c7;
        background: #edf6ff;
    }

    .AdminDesign-ExternalButton:active {
        background: #dcecff;
    }

/* ==========================================
   SELECT PREFIJO / LADA
   ========================================== */
.AdminDesign-PrefixSelect {
    height: 44px;
    min-width: 120px;
    max-width: 150px;
    padding: 0 30px 0 12px;
    flex-shrink: 0;
    border: 0;
    border-right: 1px solid #d7e3f0;
    outline: 0;
    background-color: #f4f8fc;
    font-size: 14px;
    font-weight: 600;
    color: #243b53;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s ease, color .2s ease;
}

    /* ==========================================
   FOCUS - PREFIJO
   ========================================== */
    .AdminDesign-PrefixSelect:focus {
        outline: 0;
        background-color: #edf6ff;
        color: #1f65c7;
    }

    /* ==========================================
   HOVER - PREFIJO
   ========================================== */
    .AdminDesign-PrefixSelect:hover {
        background-color: #edf6ff;
    }

/* ==========================================
   MOBILE - PREFIJO
   ========================================== */
@media (max-width: 700px) {
    .AdminDesign-PrefixSelect {
        min-width: 105px;
        max-width: 115px;
        padding-left: 10px;
        padding-right: 24px;
        font-size: 13px;
    }
}


/* ==========================================================================
   5. GESTIÓN DE IMÁGENES (SIMPLE Y MULTI-IMAGEN)
   ========================================================================== */


/* ==========================================
   IMAGE UPLOAD
   ========================================== */

.AdminDesign-ImageControl {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}


/* ==========================================
   INPUT FILE OCULTO
   ========================================== */

.AdminDesign-ImageFile {
    display: none;
}


/* ==========================================
   BOTÓN SELECCIONAR IMAGEN
   ========================================== */

.AdminDesign-ImageButton {
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    border: 1px solid #d7e3f0;
    border-radius: 11px;
    background: #f8fbff;
    color: #1f65c7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .15s ease;
}


    .AdminDesign-ImageButton:hover {
        background: #edf6ff;
        border-color: #3182ce;
    }


    .AdminDesign-ImageButton:active {
        transform: scale(.98);
    }


    .AdminDesign-ImageButton i {
        font-size: 17px;
    }


/* ==========================================
   BOTÓN VER IMAGEN
   ========================================== */

.AdminDesign-ImagePreviewButton {
    min-height: 36px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    box-sizing: border-box;
    transition: background .2s ease, color .2s ease, transform .15s ease;
}


    .AdminDesign-ImagePreviewButton i {
        font-size: 16px;
    }


    .AdminDesign-ImagePreviewButton:hover {
        background: rgba( 37, 99, 235, .08 );
        color: #1d4ed8;
    }


    .AdminDesign-ImagePreviewButton:active {
        transform: scale(.97);
    }


/* ==========================================
   VER IMAGEN OCULTO
   ========================================== */

.AdminDesign-ImagePreviewButton--hidden {
    display: none;
}


/* ==========================================
   ESTADO DE ENVÍO
   NO FUNCIONA COMO BOTÓN VISUAL
   ========================================== */

.AdminDesign-ImageSendButton {
    min-height: 36px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    border: none;
    outline: none;
    border-radius: 8px;
    background: transparent;
    color: #829ab1;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    box-shadow: none;
    box-sizing: border-box;
    pointer-events: none;
    transition: color .2s ease, opacity .2s ease;
}


/* ==========================================
   ESTADO DE ENVÍO OCULTO
   ========================================== */

.AdminDesign-ImageSendButton--hidden {
    display: none;
}


/* ==========================================
   DISABLED
   ========================================== */

.AdminDesign-ImageSendButton:disabled {
    opacity: 1;
    border: none;
    background: transparent;
    cursor: default;
}


/* ==========================================
   ICONO ESTADO ENVÍO
   ========================================== */

.AdminDesign-ImageSendButton i,
.AdminDesign-ImageSendIcon {
    font-size: 16px;
}


/* ==========================================
   SUBIENDO
   ========================================== */

.AdminDesign-ImageSendButton.uploading {
    display: inline-flex;
    color: #2563eb;
}


    .AdminDesign-ImageSendButton.uploading
    .AdminDesign-ImageSendIcon {
        animation: AdminDesignImageSendSpin .85s linear infinite;
    }


/* ==========================================
   ENVIADO
   ========================================== */

.AdminDesign-ImageSendButton.success {
    display: inline-flex;
    color: #2f855a;
}


/* ==========================================
   ERROR DE ENVÍO
   ========================================== */

.AdminDesign-ImageSendButton.error {
    display: inline-flex;
    color: #c53030;
}


/* ==========================================
   ANIMACIÓN ENVÍO
   ========================================== */

@keyframes AdminDesignImageSendSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ==========================================
   ESTADO DE LA IMAGEN
   ========================================== */

.AdminDesign-ImageStatus {
    min-width: 0;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #829ab1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


    /* ==========================================
   ESTADO - SUBIENDO
   ========================================== */

    .AdminDesign-ImageStatus.uploading {
        color: #486581;
    }


    /* ==========================================
   ESTADO - CORRECTO
   ========================================== */

    .AdminDesign-ImageStatus.success {
        color: #2f855a;
    }


    /* ==========================================
   ESTADO - ERROR
   ========================================== */

    .AdminDesign-ImageStatus.error {
        color: #c53030;
    }


/* ==========================================
   MULTI IMAGEN - ITEM
   ========================================== */

.AdminDesign-MultiImageItem {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================
   HEADER DE CADA IMAGEN
   ========================================== */

.AdminDesign-MultiImageHeader {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    box-sizing: border-box;
}


/* ==========================================
   TÍTULO
   ========================================== */

.AdminDesign-MultiImageTitle {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}


/* ==========================================
   BOTÓN ELIMINAR IMAGEN
   ========================================== */

.AdminDesign-MultiImageRemove {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /*
        LO BAJAMOS LIGERAMENTE
        PARA QUE NO QUEDE TAN ALZADO
    */
    margin-top: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}


    .AdminDesign-MultiImageRemove i {
        font-size: 15px;
    }


    .AdminDesign-MultiImageRemove:hover {
        background: #fef2f2;
        border-color: #fecaca;
        color: #b91c1c;
    }


    .AdminDesign-MultiImageRemove:active {
        transform: scale(.94);
    }


/* ==========================================
   MULTI IMAGEN - ACCIONES
   ========================================== */

.AdminDesign-MultiImageActions {
    display: flex;
    align-items: center;
    margin-top: 12px;
}


/* ==========================================
   BOTÓN AÑADIR IMAGEN
   ========================================== */

.AdminDesign-MultiImageAdd {
    min-height: 38px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}


    .AdminDesign-MultiImageAdd i {
        font-size: 16px;
    }


    .AdminDesign-MultiImageAdd:hover {
        background: #f4f7ff;
        border-color: #2563eb;
    }


    .AdminDesign-MultiImageAdd:active {
        transform: scale(.98);
    }


    .AdminDesign-MultiImageAdd:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }


/* ==========================================
   CONTADOR
   ========================================== */

.AdminDesign-MultiImageCounter {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}


/* ==========================================
   MOBILE - IMAGE CONTROL
   ========================================== */

@media ( max-width: 700px ) {

    .AdminDesign-ImageControl {
        flex-wrap: wrap;
        gap: 8px;
    }


    .AdminDesign-ImageButton {
        flex: 1;
    }


    .AdminDesign-ImagePreviewButton {
        flex: 0 0 auto;
    }


    .AdminDesign-ImageSendButton {
        flex: 0 0 auto;
    }


    .AdminDesign-ImageStatus {
        flex-basis: 100%;
        padding-left: 2px;
    }


    .AdminDesign-MultiImageHeader {
        min-height: 38px;
    }


    .AdminDesign-MultiImageRemove {
        margin-top: 3px;
    }
}
/* ==========================================
   DRAG & DROP
   ========================================== */

.AdminDesign-ImageControl {
    position: relative;
}


.AdminDesign-ImageControl--drag {
    padding: 8px;
    border: 2px dashed #3182ce;
    border-radius: 12px;
    background: #f0f7ff;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, .08);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}


    .AdminDesign-ImageControl--drag::after {
        content: "Suelta la imagen aquí";
        position: absolute;
        inset: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(240, 247, 255, .94);
        color: #2563eb;
        font-size: 13px;
        font-weight: 700;
        pointer-events: none;
    }
/* ==========================================================================
   6. COMPONENTES INTERACTIVOS (TOGGLES Y CONTROL DE TIEMPO)
   ========================================================================== */

/* ==========================================
   TOGGLE SWITCH
   ========================================== */
.AdminDesign-Toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

/* ==========================================
   BOTÓN TOGGLE
   ========================================== */
.AdminDesign-ToggleSwitch {
    position: relative;
    width: 48px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #dc3545;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* ==========================================
   CÍRCULO TOGGLE
   ========================================== */
.AdminDesign-ToggleCircle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

/* ==========================================
   TOGGLE ACTIVO
   ========================================== */
.AdminDesign-ToggleSwitch[ aria-pressed="true" ] {
    background: #198754;
}

    .AdminDesign-ToggleSwitch[ aria-pressed="true" ] .AdminDesign-ToggleCircle {
        transform: translateX(22px);
    }

/* ==========================================
   TEXTO TOGGLE
   ========================================== */
.AdminDesign-ToggleText {
    min-width: 24px;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
}

/* ==========================================
   HOVER TOGGLE
   ========================================== */
.AdminDesign-ToggleSwitch:hover {
    opacity: 0.9;
}

/* ==========================================
   FOCUS TOGGLE
   ========================================== */
.AdminDesign-ToggleSwitch:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================
   TIME CONTROL
   ========================================== */
.AdminDesign-TimeControl {
    display: flex;
    align-items: center;
}

/* ==========================================
   INPUT TIEMPO
   ========================================== */
.AdminDesign-TimeInput {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* ==========================================
   FOCUS - TIEMPO
   ========================================== */
    .AdminDesign-TimeInput:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    }

    /* ==========================================
   SELECCIÓN - TIEMPO
   ========================================== */
    .AdminDesign-TimeInput::selection {
        background: rgba( 13, 110, 253, 0.22 );
    }

    /* ==========================================
   DISABLED - TIEMPO
   ========================================== */
    .AdminDesign-TimeInput:disabled {
        background: #f2f2f2;
        color: #9a9a9a;
        cursor: not-allowed;
        opacity: 0.7;
    }


/* ==========================================================================
   7. SECCIÓN DE HORARIOS
   ========================================================================== */

/* ==========================================
   HORARIOS CONTENEDOR
   ========================================== */
.AdminDesign-Horarios {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   SITIO
   ========================================== */
.AdminDesign-HorariosSitio {
    width: 100%;
    margin-bottom: 22px;
}

/* ==========================================
   CONTENEDOR DE DÍAS
   ========================================== */
.AdminDesign-HorariosDias {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================
   DÍA
   ========================================== */
.AdminDesign-HorarioDia {
    width: 100%;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* ==========================================
   HEADER DEL DÍA
   ========================================== */
.AdminDesign-HorarioDiaHeader {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 12px;
    border: 0;
    outline: 0;
    background: #f8fbff;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: background .2s ease;
}

.AdminDesign-HorarioDiaSem {
    display: none;
}

/* ==========================================
   HOVER HEADER DEL DÍA
   ========================================== */
.AdminDesign-HorarioDiaHeader:hover {
    background: #f1f6fb;
}

/* ==========================================
   NOMBRE DEL DÍA
   ========================================== */
.AdminDesign-HorarioDiaNombre {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   ESTADO DEL DÍA
   ========================================== */
.AdminDesign-HorarioDiaEstado {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    user-select: none;
}

/* ==========================================
   CHEVRON
   ========================================== */
.AdminDesign-HorarioDiaChevron {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #829ab1;
    transition: transform .22s ease, color .2s ease;
}

/* ==========================================
   CONTENIDO DEL DÍA CERRADO
   ========================================== */
.AdminDesign-HorarioDiaContent {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
    opacity: 0;
    transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
}

/* ==========================================
   DÍA ABIERTO
   ========================================== */
.AdminDesign-HorarioDia.open {
    border-color: #c5d7e8;
    box-shadow: 0 5px 16px rgba(3, 28, 60, .06);
}

    /* ==========================================
   HEADER ABIERTO
   ========================================== */
    .AdminDesign-HorarioDia.open .AdminDesign-HorarioDiaHeader {
        background: #f4f8fc;
    }

    /* ==========================================
   CONTENIDO ABIERTO
   ========================================== */
    .AdminDesign-HorarioDia.open .AdminDesign-HorarioDiaContent {
        max-height: 500px;
        padding: 18px 16px 4px;
        opacity: 1;
    }

    /* ==========================================
   CHEVRON ABIERTO
   ========================================== */
    .AdminDesign-HorarioDia.open .AdminDesign-HorarioDiaChevron {
        transform: rotate(180deg);
        color: #486581;
    }

/* ==========================================
   CAMPOS DENTRO DEL DÍA
   ========================================== */
.AdminDesign-HorarioDiaContent .AdminDesign-Field {
    margin-bottom: 14px;
}

/* ==========================================
   DÍA SEMANA DESHABILITADO
   ========================================== */
.AdminDesign-HorarioDiaContent .AdminDesign-Input:disabled {
    background: #f4f6f8;
    color: #82909e;
    cursor: default;
    opacity: 1;
}

/* ==========================================
   MOBILE - HORARIOS
   ========================================== */
@media (max-width: 700px) {
    .AdminDesign-HorariosDias {
        gap: 8px;
    }

    .AdminDesign-HorarioDiaHeader {
        min-height: 46px;
        padding: 0 12px;
        grid-template-columns: minmax(0, 1fr) auto 20px;
        gap: 8px;
    }

    .AdminDesign-HorarioDiaNombre {
        font-size: 14px;
    }

    .AdminDesign-HorarioDiaEstado {
        font-size: 12px;
    }

    .AdminDesign-HorarioDia.open .AdminDesign-HorarioDiaContent {
        padding: 16px 12px 2px;
    }
}


/* ==========================================================================
   8. SECCIÓN DE CATÁLOGO
   ========================================================================== */

/* ==========================================
   CATÁLOGO CONTENEDOR
   ========================================== */
.AdminDesign-Catalogo {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   SITIO
   ========================================== */
.AdminDesign-CatalogoSitio {
    width: 100%;
    margin-bottom: 22px;
}

/* ==========================================
   CONTENEDOR DE REGISTROS
   ========================================== */
.AdminDesign-CatalogoRegistros {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================
   REGISTRO CATÁLOGO
   ========================================== */
.AdminDesign-CatalogoTipo {
    width: 100%;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* ==========================================
   HEADER ROW REGISTRO CATÁLOGO
   ========================================== */
.AdminDesign-CatalogoTipoHeaderRow {
    width: 100%;
    display: flex;
    align-items: stretch;
    background: #f8fbff;
}

    /* ==========================================
   HEADER DENTRO DEL ROW
   ========================================== */
    .AdminDesign-CatalogoTipoHeaderRow .AdminDesign-CatalogoTipoHeader {
        flex: 1;
        width: auto;
    }

/* ==========================================
   HEADER REGISTRO
   ========================================== */
.AdminDesign-CatalogoTipoHeader {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    border: 0;
    outline: 0;
    background: #f8fbff;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: background .2s ease;
}

    /* ==========================================
   HOVER HEADER
   ========================================== */
    .AdminDesign-CatalogoTipoHeader:hover {
        background: #f1f6fb;
    }

/* ==========================================
   TÍTULO REGISTRO
   ========================================== */
.AdminDesign-CatalogoTipoTitulo {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   RESUMEN TYPE - NOMBRE
   ========================================== */
.AdminDesign-CatalogoTipoResumen {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
}

/* ==========================================
   TYPE CATÁLOGO HEADER
   ========================================== */
.AdminDesign-CatalogoTipoType {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   NOMBRE CATÁLOGO HEADER
   ========================================== */
.AdminDesign-CatalogoTipoNombre {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   CHEVRON
   ========================================== */
.AdminDesign-CatalogoTipoChevron {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #829ab1;
    transition: transform .22s ease, color .2s ease;
}

/* ==========================================
   CONTENIDO CERRADO
   ========================================== */
.AdminDesign-CatalogoTipoContent {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
    opacity: 0;
    transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
}

/* ==========================================
   REGISTRO ABIERTO
   ========================================== */
.AdminDesign-CatalogoTipo.open {
    border-color: #c5d7e8;
    box-shadow: 0 5px 16px rgba(3, 28, 60, .06);
}

    /* ==========================================
   HEADER ABIERTO
   ========================================== */
    .AdminDesign-CatalogoTipo.open .AdminDesign-CatalogoTipoHeader {
        background: #f4f8fc;
    }

    /* ==========================================
   CONTENIDO ABIERTO
   ========================================== */
    .AdminDesign-CatalogoTipo.open .AdminDesign-CatalogoTipoContent {
        max-height: 900px;
        padding: 18px 16px 4px;
        opacity: 1;
    }

    /* ==========================================
   CHEVRON ABIERTO
   ========================================== */
    .AdminDesign-CatalogoTipo.open .AdminDesign-CatalogoTipoChevron {
        transform: rotate(180deg);
        color: #486581;
    }

/* ==========================================
   CAMPOS DENTRO DEL REGISTRO
   ========================================== */
.AdminDesign-CatalogoTipoContent .AdminDesign-Field {
    margin-bottom: 14px;
}

/* ==========================================
   TEXTAREA CATÁLOGO
   ========================================== */
.AdminDesign-CatalogoTipoContent .AdminDesign-Textarea {
    min-height: 100px;
}

/* ==========================================
   ACCIONES CATÁLOGO
   ========================================== */
.AdminDesign-CatalogoActions {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

/* ==========================================
   BOTÓN AÑADIR REGISTRO
   ========================================== */
.AdminDesign-CatalogoAdd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

    .AdminDesign-CatalogoAdd i {
        font-size: 16px;
    }

    .AdminDesign-CatalogoAdd:hover {
        background: #f4f7ff;
        border-color: #2563eb;
    }

    .AdminDesign-CatalogoAdd:active {
        transform: scale(0.98);
    }

/* ==========================================
   BOTÓN ELIMINAR REGISTRO
   ========================================== */
.AdminDesign-CatalogoTipoRemove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 48px;
    padding: 0;
    flex-shrink: 0;
    border: 0;
    border-left: 1px solid #d7e3f0;
    outline: 0;
    background: #f8fbff;
    color: #dc2626;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

    .AdminDesign-CatalogoTipoRemove i {
        font-size: 15px;
    }

    .AdminDesign-CatalogoTipoRemove:hover {
        background: #fef2f2;
        color: #b91c1c;
    }

    .AdminDesign-CatalogoTipoRemove:active {
        transform: scale(0.94);
    }

/* ==========================================
   REGISTRO ABIERTO - BOTÓN ELIMINAR
   ========================================== */
.AdminDesign-CatalogoTipo.open .AdminDesign-CatalogoTipoRemove {
    background: #f4f8fc;
}

    .AdminDesign-CatalogoTipo.open .AdminDesign-CatalogoTipoRemove:hover {
        background: #fef2f2;
    }

/* ==========================================
   MOBILE - CATÁLOGO
   ========================================== */
@media (max-width: 700px) {
    .AdminDesign-CatalogoTipoRemove {
        width: 42px;
        min-width: 42px;
        height: 46px;
    }

    .AdminDesign-CatalogoActions {
        margin-top: 10px;
    }

    .AdminDesign-CatalogoAdd {
        width: 100%;
    }

    .AdminDesign-CatalogoRegistros {
        gap: 8px;
    }

    .AdminDesign-CatalogoTipoHeader {
        min-height: 46px;
        padding: 0 12px;
        grid-template-columns: auto minmax(0, 1fr) 20px;
        gap: 8px;
    }

    .AdminDesign-CatalogoTipoTitulo {
        font-size: 14px;
    }

    .AdminDesign-CatalogoTipoResumen {
        font-size: 12px;
    }

    .AdminDesign-CatalogoTipo.open .AdminDesign-CatalogoTipoContent {
        padding: 16px 12px 2px;
    }
}


/* ==========================================================================
   9. SECCIÓN DE TAGS
   ========================================================================== */


/* ==========================================
   TAGS CONTENEDOR
   ========================================== */

.AdminDesign-Tags {
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================
   SITIO
   ========================================== */

.AdminDesign-TagsSitio {
    width: 100%;
    margin-bottom: 22px;
}


/* ==========================================
   CONTENEDOR DE TAGS
   ========================================== */

.AdminDesign-TagRegistros {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ==========================================
   ITEM TAG
   ========================================== */

.AdminDesign-TagItem {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
}


/* ==========================================
   CAMPO TAG
   ========================================== */

.AdminDesign-TagItemField {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}


    /* ==========================================
   FIELD DENTRO DEL TAG
   ========================================== */

    .AdminDesign-TagItemField
    .AdminDesign-Field {
        width: 100%;
        margin-bottom: 0;
    }


/* ==========================================
   BOTÓN ELIMINAR TAG
   ========================================== */

.AdminDesign-TagItemRemove {
    width: 44px;
    min-width: 44px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    outline: 0;
    background: #ffffff;
    color: #dc2626;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}


    .AdminDesign-TagItemRemove i {
        font-size: 15px;
    }


    .AdminDesign-TagItemRemove:hover {
        background: #fef2f2;
        border-color: #fecaca;
        color: #b91c1c;
    }


    .AdminDesign-TagItemRemove:active {
        transform: scale(.94);
    }


/* ==========================================
   ACCIONES TAGS
   ========================================== */

.AdminDesign-TagActions {
    display: flex;
    align-items: center;
    margin-top: 12px;
}


/* ==========================================
   BOTÓN AÑADIR TAG
   ========================================== */

.AdminDesign-TagAdd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}


    .AdminDesign-TagAdd i {
        font-size: 16px;
    }


    .AdminDesign-TagAdd:hover {
        background: #f4f7ff;
        border-color: #2563eb;
    }


    .AdminDesign-TagAdd:active {
        transform: scale(.98);
    }


/* ==========================================
   MOBILE - TAGS
   ========================================== */

@media (max-width: 700px) {

    .AdminDesign-TagItem {
        gap: 8px;
    }


    .AdminDesign-TagItemRemove {
        width: 42px;
        min-width: 42px;
        height: 46px;
        flex-basis: 42px;
    }


    .AdminDesign-TagActions {
        margin-top: 10px;
    }


    .AdminDesign-TagAdd {
        width: 100%;
    }


    .AdminDesign-TagRegistros {
        gap: 8px;
    }
}

/* ==========================================================================
   10. SECCIÓN DE SUBCATEGORÍAS / SITIO
   ========================================================================== */

/* ==========================================
   CONTENEDOR
   ========================================== */
.AdminDesign-SubcategoriasSitios {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   SITIO
   ========================================== */
.AdminDesign-SubcategoriasSitiosSitio {
    width: 100%;
    margin-bottom: 22px;
}

/* ==========================================
   CONTENEDOR DE RELACIONES
   ========================================== */
.AdminDesign-SubcategoriasSitiosRegistros {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================
   ITEM RELACIÓN
   ========================================== */

.AdminDesign-SubcategoriaSitioItem {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
}


/* ==========================================
   LOOKUP RELACIÓN
   ========================================== */

.AdminDesign-SubcategoriaSitioItemLookup {
    flex: 1 1 auto;
    min-width: 0;
}


    /* ==========================================
   FIELD DENTRO DE RELACIÓN
   ========================================== */

    .AdminDesign-SubcategoriaSitioItemLookup
    .AdminDesign-Field {
        width: 100%;
        margin-bottom: 0;
    }

/* ==========================================
   HEADER ROW
   ========================================== */
.AdminDesign-SubcategoriaSitioItemHeaderRow {
    width: 100%;
    display: flex;
    align-items: stretch;
    background: #f8fbff;
}

/* ==========================================
   HEADER
   ========================================== */
.AdminDesign-SubcategoriaSitioItemHeader {
    flex: 1;
    width: auto;
    min-height: 48px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    border: 0;
    outline: 0;
    background: #f8fbff;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: background .2s ease;
}

    .AdminDesign-SubcategoriaSitioItemHeader:hover {
        background: #f1f6fb;
    }

/* ==========================================
   TÍTULO
   ========================================== */
.AdminDesign-SubcategoriaSitioItemTitulo {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   RESUMEN
   ========================================== */
.AdminDesign-SubcategoriaSitioItemResumen {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/* ==========================================
   CHEVRON
   ========================================== */
.AdminDesign-SubcategoriaSitioItemChevron {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #829ab1;
    transition: transform .22s ease, color .2s ease;
}

/* ==========================================
   CONTENIDO CERRADO
   ========================================== */
.AdminDesign-SubcategoriaSitioItemContent {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
    opacity: 0;
    transition: max-height .32s ease, opacity .22s ease;
}

/* ==========================================
   RELACIÓN ABIERTA
   ========================================== */
.AdminDesign-SubcategoriaSitioItem.open {
    border-color: #c5d7e8;
    box-shadow: 0 5px 16px rgba(3, 28, 60, .06);
}

    /* ==========================================
   HEADER ABIERTO
   ========================================== */
    .AdminDesign-SubcategoriaSitioItem.open .AdminDesign-SubcategoriaSitioItemHeader {
        background: #f4f8fc;
    }

    /* ==========================================
   CONTENIDO ABIERTO (SIN TOPE DE ALTURA)
   ========================================== */
    .AdminDesign-SubcategoriaSitioItem.open .AdminDesign-SubcategoriaSitioItemContent {
        max-height: none;
        padding: 18px 16px 4px;
        overflow: visible;
        opacity: 1;
    }

    /* ==========================================
   CHEVRON ABIERTO
   ========================================== */
    .AdminDesign-SubcategoriaSitioItem.open .AdminDesign-SubcategoriaSitioItemChevron {
        transform: rotate(180deg);
        color: #486581;
    }

/* ==========================================
   CAMPOS DENTRO DE RELACIÓN
   ========================================== */
.AdminDesign-SubcategoriaSitioItemContent .AdminDesign-Field {
    margin-bottom: 14px;
}

/* ==========================================
   ACCIONES
   ========================================== */
.AdminDesign-SubcategoriasSitiosActions {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

/* ==========================================
   BOTÓN AÑADIR RELACIÓN
   ========================================== */
.AdminDesign-SubcategoriasSitiosAdd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

    .AdminDesign-SubcategoriasSitiosAdd i {
        font-size: 16px;
    }

    .AdminDesign-SubcategoriasSitiosAdd:hover {
        background: #f4f7ff;
        border-color: #2563eb;
    }

    .AdminDesign-SubcategoriasSitiosAdd:active {
        transform: scale(.98);
    }

/* ==========================================
   BOTÓN ELIMINAR
   ========================================== */
.AdminDesign-SubcategoriaSitioItemRemove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 48px;
    padding: 0;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    border-left: none;
    outline: 0;
    background: none;
    color: #dc2626;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

    .AdminDesign-SubcategoriaSitioItemRemove i {
        font-size: 15px;
    }

    .AdminDesign-SubcategoriaSitioItemRemove:hover {
        background: #ca777711;
        color: #b91c1c;
    }

    .AdminDesign-SubcategoriaSitioItemRemove:active {
        transform: scale(.94);
    }

/* ==========================================
   RELACIÓN ABIERTA - BOTÓN ELIMINAR
   ========================================== */
.AdminDesign-SubcategoriaSitioItem.open .AdminDesign-SubcategoriaSitioItemRemove {
    background: #f4f8fc;
}

    .AdminDesign-SubcategoriaSitioItem.open .AdminDesign-SubcategoriaSitioItemRemove:hover {
        background: #fef2f2;
    }

/* ==========================================
   MOBILE - SUBCATEGORÍAS
   ========================================== */
@media (max-width: 700px) {
    .AdminDesign-SubcategoriaSitioItemRemove {
        width: 42px;
        min-width: 42px;
        height: 46px;
    }

    .AdminDesign-SubcategoriasSitiosActions {
        margin-top: 10px;
    }

    .AdminDesign-SubcategoriasSitiosAdd {
        width: 100%;
    }

    .AdminDesign-SubcategoriasSitiosRegistros {
        gap: 8px;
    }

    .AdminDesign-SubcategoriaSitioItemHeader {
        min-height: 46px;
        padding: 0 12px;
        grid-template-columns: auto minmax(0, 1fr) 20px;
        gap: 8px;
    }

    .AdminDesign-SubcategoriaSitioItemTitulo {
        font-size: 14px;
    }

    .AdminDesign-SubcategoriaSitioItemResumen {
        font-size: 12px;
    }

    .AdminDesign-SubcategoriaSitioItem.open .AdminDesign-SubcategoriaSitioItemContent {
        padding: 16px 12px 2px;
    }
}
/* ==========================================================================
   11. FORMAT MASKS
   ========================================================================== */
.AdminDesign-TagItemRemove,
.AdminDesign-SubcategoriaSitioItemRemove {
    margin-top: 25px;
}