﻿/* ===========================================
 * SECTION: Base styles
 * ===========================================
 */
body {
    padding-top: 76px;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* NAVBAR SCROLL HIDE BASE STYLES */
.navbar-scroll-hide {
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
    z-index: 9999 !important;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

    .navbar-scroll-hide.navbar-hidden {
        transform: translateY(-100%);
    }

body.modal-open .navbar-scroll-hide {
    z-index: 1045 !important;
}

/* Asegurar que el navbar sea visible cuando se interactúa con él */
.navbar-scroll-hide:hover,
.navbar-scroll-hide:focus-within {
    transform: translateY(0) !important;
}

/* Estilos para los nav-links del navbar - UNIFICADO PARA MÓVIL Y DESKTOP */
.navbar .nav-link {
    padding: 0.5rem 1rem !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    border-radius: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
}

    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }

    .navbar .nav-link i {
        font-size: 1.1rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }

/* Estilos específicos para desktop */
@media (min-width: 992px) {
    .navbar .nav-link {
        padding: 0.5rem 0.75rem !important;
        margin: 0 0.25rem !important;
    }
}

.navbar-scroll-hide .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* El navbar debe estar siempre por encima de TODO */
header, header .navbar {
    z-index: 9999 !important;
}

/* El navbar tiene prioridad sobre cualquier otro elemento de la página */
.navbar-scroll-hide {
    isolation: isolate;
}

/* Responsive: Ajustes específicos para móvil */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: transparent !important;
        padding: 0.5rem 0 !important;
        margin-top: 0 !important;
    }

    .navbar .navbar-nav {
        background-color: transparent !important;
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

        .navbar .nav-link i {
            margin-right: 0.5rem !important;
            width: 1.5rem !important;
        }

    /* Ajustar el navbar cuando está expandido */
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background-color: transparent !important;
    }
}

/* CUSTOM FONT - GLOBAL APPLICATION */

@font-face {
    font-family: 'GalanoGrotesqueMedium';
    src: url(../fonts/GalanoGrotesqueMedium.otf) format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    font-family: 'GalanoGrotesqueMedium', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body,
html,
h1, h2, h3, h4, h5, h6,
p, span, div, a,
button, .btn,
input, textarea, select,
.form-control, .form-select, .form-label,
.nav, .navbar, .navbar-brand,
.dropdown-menu, .dropdown-item,
.modal, .modal-content, .modal-header, .modal-body, .modal-footer,
.card, .card-body, .card-header, .card-footer, .card-title,
.table, th, td,
.badge,
.alert,
label,
li, ul, ol,
.profile-name, .profile-title, .profile-company, .profile-username,
.appointment-card,
.btn-group,
.navbar-toggler,
.winbox,
.profile-btn {
    font-family: 'GalanoGrotesqueMedium', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ==========================================
 * WINBOX STYLES
 * ========================================== */
.winbox {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
    border-radius: 10px !important;
    border: 2px solid rgba(0, 123, 255, 0.25) !important;
    transition: box-shadow 0.2s ease, transform 0.1s ease !important;
    cursor: move !important;
    z-index: 1000 !important;
}

body.modal-open .winbox {
    z-index: 1040 !important;
}

.winbox:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(0, 123, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

.winbox:hover .wb-header {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
}

.winbox .wb-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 16px !important;
    height: 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: move !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    line-height: 1 !important;
}

.winbox .wb-drag {
    flex: 1 !important;
    cursor: move !important;
    pointer-events: auto !important;
    min-width: 0 !important;
}

.winbox .wb-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: 0.5px !important;
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    order: 1 !important;
    cursor: move !important;
    pointer-events: none !important;
}

/* Ocultar botones predeterminados de WinBox */
.winbox .wb-max,
.winbox .wb-min,
.winbox .wb-full {
    display: none !important;
}

/* Contenedor de botones del header - alineados a la derecha */
.winbox .wb-header > div:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    height: 24px !important;
    line-height: 1 !important;
    pointer-events: auto !important;
}

/* Botón de cerrar (rojo) - último botón */
.winbox .wb-close {
    background: #FF5F57 !important;
    border-radius: 4px !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    transition: all 0.2s ease !important;
    opacity: 1 !important;
    position: relative !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    order: 2 !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.winbox .wb-close::before {
    content: "×" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 18px !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.winbox .wb-close:hover {
    background: #FF3B30 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
}

.winbox .wb-close:hover::before {
    transform: translate(-50%, -50%) scale(1.05) !important;
}

.winbox .wb-body {
    background: #ffffff !important;
    border-radius: 0 0 12px 12px !important;
}

/* Mejorar el área de redimensionamiento del WinBox */
.winbox .wb-n,
.winbox .wb-e,
.winbox .wb-s,
.winbox .wb-w,
.winbox .wb-ne,
.winbox .wb-nw,
.winbox .wb-se,
.winbox .wb-sw {
    z-index: 20 !important;
}

/* Hacer más visible el área de redimensionamiento en las esquinas */
.winbox .wb-ne,
.winbox .wb-nw,
.winbox .wb-se,
.winbox .wb-sw {
    width: 20px !important;
    height: 20px !important;
}

/* Cursor para redimensionar */
.winbox .wb-n,
.winbox .wb-s {
    cursor: ns-resize !important;
}

.winbox .wb-e,
.winbox .wb-w {
    cursor: ew-resize !important;
}

.winbox .wb-ne,
.winbox .wb-sw {
    cursor: nesw-resize !important;
}

.winbox .wb-nw,
.winbox .wb-se {
    cursor: nwse-resize !important;
}

/* Custom external button styles */
.wb-custom-external {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
}

.wb-custom-external:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transform: scale(1.05) !important;
}

/* Botón de nueva pestaña (verde) - primero (antes del botón de cerrar) */
.wb-external-tab {
    background: #28C840 !important;
    border-radius: 4px !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    flex-shrink: 0 !important;
    order: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.wb-external-tab::before {
    content: "↗" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 14px !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.wb-external-tab:hover {
    background: #1FB037 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
}

.wb-external-tab:hover::before {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.wb-external-tab:active::before {
    transform: translate(-50%, -50%) scale(0.9) !important;
}

/* Animación de click en el botón de nueva pestaña - estilo macOS */
.wb-button-clicked {
    animation: pulseMacOS 0.3s ease !important;
}

@keyframes pulseMacOS {
    0% {
        transform: scale(1) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }

    50% {
        transform: scale(0.9) !important;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    }

    100% {
        transform: scale(1) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }
}

.wb-external-tab i {
    pointer-events: none !important;
    font-style: normal !important;
}

.credential-text,
code,
pre,
kbd,
samp {
    font-family: 'Courier New', Consolas, Monaco, monospace !important;
}

/* PROFILE BUTTONS */
.profile-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 22px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

    .profile-btn:hover {
        transform: scale(1.08) !important;
        background: rgba(0, 0, 0, 0.9) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
    }

    .profile-btn:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease !important;
    }

    .profile-btn:focus {
        outline: 3px solid #007AFF !important;
        outline-offset: 3px !important;
    }

    .profile-btn i {
        font-size: inherit !important;
        line-height: 1 !important;
        font-weight: bold !important;
    }

.profile-btn-danger {
    background: rgba(220, 53, 69, 0.9) !important;
}

    .profile-btn-danger:hover {
        background: rgba(220, 53, 69, 1) !important;
        box-shadow: 0 6px 18px rgba(220, 53, 69, 0.4) !important;
    }

.profile-btn-camera {
    background: rgba(0, 0, 0, 0.7) !important;
}

    .profile-btn-camera:hover {
        background: rgba(0, 0, 0, 0.9) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
    }

.profile-btn-profile {
    position: absolute;
    top: 220px;
    left: 130px;
    width: 58px !important;
    height: 58px !important;
    background: rgba(0, 0, 0, 0.95) !important;
    border: 4px solid white;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
    font-size: 24px !important;
}

    .profile-btn-profile:hover {
        background: rgba(0, 0, 0, 1) !important;
        border-color: #ffffff;
        transform: scale(1.12) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
        animation: none;
    }

.profile-pic {
    position: relative;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bs-light);
    margin-left: 10px;
    margin-top: -130px;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.profile-pic-image {
    object-fit: cover;
    width: 168px;
    height: 168px;
}

/* PROFILE STYLES */
.profile-info-section {
    background: var(--bs-body-bg);
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 25px;
    margin: 5px -5px 5px 5px;
}

.profile-tools-section {
    background: var(--bs-body-bg);
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 25px;
    margin: 5px 5px 5px -5px;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--bs-body-color);
    margin: 0;
    line-height: 1.2;
}

.profile-title {
    font-size: 17px;
    color: var(--bs-secondary);
    margin: 4px 0 0 0;
    font-weight: 400;
}

/* TOOLS SECTION */
.profile-action-btn {
    background: var(--bs-primary);
    color: var(--bs-white);
    border: 1px solid var(--bs-primary);
    padding: 6px 4px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 4px;
}

    .profile-action-btn:hover {
        background: var(--bs-primary);
        color: var(--bs-white);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        filter: brightness(1.1);
    }

        .profile-action-btn:hover::before {
            left: 100%;
        }

    .profile-action-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .profile-action-btn:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }

    .profile-action-btn.theme-btn {
        background: var(--bs-primary);
        border-color: var(--bs-primary);
    }

        .profile-action-btn.theme-btn:hover {
            background: var(--bs-primary);
            border-color: var(--bs-primary);
            filter: brightness(1.1);
        }

    .profile-action-btn.secondary {
        background: var(--bs-secondary);
        border-color: var(--bs-secondary);
    }

        .profile-action-btn.secondary:hover {
            background: var(--bs-secondary);
            border-color: var(--bs-secondary);
            filter: brightness(1.1);
        }

.profile-action-btn {
    position: relative !important;
}

    .profile-action-btn .badge-sm {
        position: absolute !important;
        top: -20px !important;
        font-size: 12px !important;
        padding: 6px 8px !important;
        border-radius: 12px !important;
        min-width: 22px !important;
        height: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
        border: 2px solid white !important;
        z-index: 15 !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: none !important;
        overflow: initial !important;
    }

        .profile-action-btn .badge-sm.bg-primary {
            background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%) !important;
            color: white !important;
        }

        .profile-action-btn .badge-sm.bg-danger {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
            color: white !important;
        }

    .profile-action-btn:hover .badge-sm {
        transform: scale(1.15) !important;
        transition: transform 0.2s ease !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }

    .profile-action-btn .badge-sm.hidden {
        display: none !important;
    }

    .profile-action-btn .profile-action-icon,
    .profile-action-btn .profile-action-text {
        position: relative !important;
        z-index: 1 !important;
    }

.profile-action-icon {
    font-size: 20px;
    margin: 0;
    display: block;
}

.profile-action-text {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
    line-height: 1.2;
    text-align: center;
}

/* ESTILOS PARA ENLACES DE WALLET */
.wallet-link {
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: transparent !important;
    padding: 5px !important;
}

    .wallet-link:hover {
        transform: scale(1.05) !important;
    }

    .wallet-link:active {
        transform: scale(1.02) !important;
    }

/* Imágenes de Wallet - Tamaño uniforme */
.wallet-img {
    width: auto !important;
    height: 50px !important;
    display: block !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

    .wallet-img:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    }

    .wallet-img:active {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(1px) !important;
    }

.account-badge-fixed {
    position: absolute !important;
    top: 220px !important;
    right: 10px !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

/* FLOATING BUTTONS SYSTEM */
.floating-buttons-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 999 !important;
    pointer-events: auto !important;
}

    .floating-buttons-container .btn {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.3s ease !important;
        border: none !important;
        font-size: 22px !important;
    }

        .floating-buttons-container .btn:hover {
            transform: translateY(-4px) scale(1.05) !important;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
        }

        .floating-buttons-container .btn i {
            font-size: 24px !important;
        }

    /* Scroll to top button */
    .floating-buttons-container .scroll-to-top-btn {
        background: #17a2b8 !important;
        color: white !important;
    }

        .floating-buttons-container .scroll-to-top-btn:hover {
            background: #138496 !important;
        }

    /* Appointments/Options button */
    .floating-buttons-container .options-btn {
        background: #17a2b8 !important;
        color: white !important;
    }

        .floating-buttons-container .options-btn:hover {
            background: #138496 !important;
        }

    /* PWA Install button */
    .floating-buttons-container .pwa-install-btn {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
        color: white !important;
    }

        .floating-buttons-container .pwa-install-btn:hover {
            background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
        }

/* Asegurar z-index correcto cuando un modal está abierto */
body.modal-open .floating-buttons-container {
    z-index: 1049 !important;
}

/* Ajustar z-index de elementos cuando un modal está abierto */
body.modal-open .card-section,
body.modal-open .card-section * {
    z-index: auto !important;
}

/* Asegurar que los dropdowns de las secciones estén por debajo del modal */
.card-section .position-absolute {
    z-index: 10 !important;
}

body.modal-open .card-section .position-absolute {
    z-index: 1 !important;
}

/* Estilos mejorados para botones de opciones en secciones */
.card-section .btn-options-section {
    z-index: 10 !important;
}

body.modal-open .card-section .btn-options-section {
    z-index: 1 !important;
}

/* Asegurar que los cards y contenedores tengan position relative para el absolute de los botones */
.card-section .card,
.card-section .col-6,
.card-section .col-md-4,
.card-section .col-12 {
    position: relative !important;
}

/* Estilos específicos para contenedores de items */
.card-section a[href],
.card-section a[onclick] {
    position: relative !important;
    display: flex !important;
}

/* Estilos para los botones de opciones dentro de los cards */
.card-section .btn-options-section {
    pointer-events: auto !important;
    z-index: 20 !important;
}

.card-section .btn-options-section .btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    pointer-events: auto !important;
    z-index: 21 !important;
}

/* Asegurar que el contenido del card sea clicable */
.card-section .card-body {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Asegurar que los enlaces dentro del card-body sean clicables */
.card-section .card-body a,
.card-section .card-body div {
    pointer-events: auto !important;
}

.card-section .btn-options-section .btn:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05) !important;
}

/* Asegurar que el dropdown menu esté correctamente posicionado */
.card-section .dropdown-menu {
    z-index: 1000 !important;
}

/* Asegurar que los contenedores de imágenes tengan position relative */
.card-section .image-item,
.card-section .position-relative {
    position: relative !important;
}

/* Mejorar visibilidad de botones en diferentes fondos */
.card-section .btn-options-section .btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px) !important;
}

/* Ajustes para móvil */
@media (max-width: 767px) {
    .card-section .btn-options-section .btn {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        font-size: 14px !important;
    }
    
    .card-section .btn-options-section .btn i {
        font-size: 14px !important;
    }

    /* WinBox styles for mobile */
    .winbox {
        width: 95% !important;
        height: 80% !important;
        left: 1.5% !important;
        top: 10% !important;
    }

    .winbox .wb-header {
        padding: 8px 12px !important;
        height: 40px !important;
    }

    .winbox .wb-title {
        font-size: 13px !important;
    }

    .winbox .wb-close {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }

    .winbox .wb-close::before {
        font-size: 16px !important;
    }

    .wb-custom-external {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }

    .wb-external-tab {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }

    .wb-external-tab::before {
        font-size: 13px !important;
    }

    .winbox .wb-header > div:last-child {
        gap: 8px !important;
        margin-right: 8px !important;
        height: 22px !important;
    }

    .winbox .wb-drag {
        cursor: move !important;
        pointer-events: auto !important;
    }

    .winbox .wb-title {
        cursor: move !important;
        pointer-events: none !important;
    }
}

/* Asegurar que los modales y sus elementos tengan el z-index correcto */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1054 !important;
}

/* Estilos para imágenes dentro de modales */
.modal img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: inherit;
}

/* Asegurar que el contenido del modal esté por encima del backdrop */
.modal-dialog {
    z-index: 1056 !important;
}

/* Estilos mejorados para los iconos en los modales */
.modal-body img[alt="Icono de imagen"],
.modal-body img[alt="Icono de archivo"] {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* ===========================================
 * SECTION: Sections/Cards Layout
 * =========================================== */

/* Estilos base para cards de sección */
.card-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card-section:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.card-section-header {
    flex-shrink: 0;
    border-radius: 12px 12px 0 0 !important;
}

.card-section-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

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

/* Contenedor de secciones */
#sectionsContainer {
    display: flex;
    flex-wrap: wrap;
}

/* Scrollbar personalizado para cards */
.card-section-body::-webkit-scrollbar {
    width: 8px;
}

.card-section-body::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg);
    border-radius: 4px;
}

.card-section-body::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 4px;
}

    .card-section-body::-webkit-scrollbar-thumb:hover {
        background: var(--bs-secondary-color);
    }

/* ===========================================
 * SECTION: Desktop and Tablet styles
 * Styles for resolutions > 767px (3 sections per row)
 * ===========================================
 */

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .profile-bg {
        height: 200px;
        width: 100%;
        object-fit: cover;
        margin-top: -20px;
    }

    .profile-bg-white {
        border-bottom: solid;
        border-bottom-color: rgba(169,169,169,0.5);
        margin-top: -20px;
    }

    .bg-edit-buttons {
        position: absolute;
        top: 60px;
        right: 16px;
        display: flex !important;
        gap: 4px !important;
    }

    .profile-action-icon {
        font-size: 15px;
    }

    .profile-action-text {
        font-size: 10px;
        margin: 4px;
    }

    .profile-action-btn {
        width: 65px !important;
    }

    .profile-info-section {
        min-height: 200px;
        height: 100%;
    }

    .profile-tools-section {
        min-height: 200px;
        height: 100%;
    }

    /* Contenedor de secciones - 3 por fila */
    #sectionsContainer > div[class*="col-"] {
        height: 450px;
        display: flex;
        flex-direction: column;
    }

        /* Card dentro de la columna */
        #sectionsContainer > div[class*="col-"] > .card-section {
            height: 100%;
            min-height: 450px;
            max-height: 450px;
            display: flex;
            flex-direction: column;
        }

            /* Card body scrollable si el contenido excede */
            #sectionsContainer > div[class*="col-"] > .card-section .card-section-body {
                flex: 1;
                overflow-y: auto;
                overflow-x: hidden;
                display: flex;
                flex-direction: column;
            }

            /* Contenido de la sección debe ocupar todo el espacio */
            #sectionsContainer > div[class*="col-"] > .card-section .section-content {
                flex: 1;
                display: flex;
                flex-direction: column;
            }

            /* Ajustar altura del card header */
            #sectionsContainer > div[class*="col-"] > .card-section .card-section-header {
                min-height: 60px;
                flex-shrink: 0;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }
}

/* ===========================================
 * SECTION: Mobile styles
 * Resolutions ≤ 767px (1 section per row)
 * ===========================================
 */

@media (max-width: 767px) {

    /* Prevenir scroll horizontal en móvil */
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }

    /* Body and HTML */
    body {
        padding-top: 56px;
    }

    /* Navbar móvil */
    .navbar-scroll-hide {
        width: 100vw;
        max-width: 100%;
        left: 0;
        right: 0;
    }

        .navbar-scroll-hide .container-fluid {
            padding-left: 10px;
            padding-right: 10px;
            max-width: 100%;
        }

    /* Profile styles */
    /* Background styles */
    .profile-bg {
        height: 200px;
        width: 100%;
        object-fit: cover;
        margin-top: -7px;
    }

    .profile-bg-white {
        border-bottom: solid;
        border-bottom-color: rgba(169,169,169,0.5);
        margin-top: -7px;
    }

    .bg-edit-buttons {
        position: absolute;
        top: 55px;
        right: 16px;
        display: flex !important;
        gap: 4px !important;
    }

    .profile-pic {
        width: 145px;
        height: 145px;
        margin-left: 5px;
        margin-top: -120px;
    }

    .profile-btn-profile {
        position: absolute;
        top: 215px;
        left: 115px;
        width: 45px !important;
        height: 45px !important;
        border: 3px solid white;
        animation: pulse 2s infinite;
    }

        .profile-btn-profile:hover {
            background: rgba(0, 0, 0, 1) !important;
            border-color: #ffffff;
            transform: scale(1.12) !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
            animation: none;
        }

    .profile-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
        padding: 16px 0;
    }

    .profile-action-btn {
        flex: 1;
        min-width: 60px;
        max-width: 85px;
        height: 65px;
        padding: 6px 4px;
        font-size: 13px;
        border-radius: 10px;
        gap: 2px;
    }

    .profile-action-icon {
        font-size: 15px;
    }

    .profile-action-text {
        font-size: 9px;
        margin-top: 1px;
    }

    .profile-action-btn .badge-sm {
        top: -10px !important;
        font-size: 10px !important;
        padding: 4px 6px !important;
        min-width: 18px !important;
        height: 18px !important;
    }

    .profile-info-section {
        margin: 5px 10px;
    }

    .profile-tools-section {
        margin: 5px 10px;
    }

    /* Floating Buttons */
    .floating-buttons-container {
        bottom: 12px !important;
        right: 12px !important;
        gap: 8px !important;
    }

        .floating-buttons-container .btn {
            width: 52px !important;
            height: 52px !important;
            font-size: 20px !important;
        }

            .floating-buttons-container .btn i {
                font-size: 22px !important;
            }

        .floating-buttons-container .pwa-install-btn i {
            font-size: 24px !important;
        }

    #sectionsContainer > div {
        width: 100%;
    }

    .card-section {
        min-height: 200px;
        max-height: 500px;
    }
}


/* ===========================================
   BOOTSTRAP 5 THEMES - RECOMMENDED APPROACH
   =========================================== */

/* ===========================================
   THEME 1: MODERN DARK
   =========================================== */
[data-bs-theme="dark"] {
    --bs-body-color: #e2e8f0;
    --bs-body-color-rgb: 226, 232, 240;
    --bs-body-bg: #0f172a;
    --bs-body-bg-rgb: 15, 23, 42;
    --bs-emphasis-color: #f8fafc;
    --bs-emphasis-color-rgb: 248, 250, 252;
    --bs-secondary-color: #94a3b8;
    --bs-secondary-color-rgb: 148, 163, 184;
    --bs-secondary-bg: #1e293b;
    --bs-secondary-bg-rgb: 30, 41, 59;
    --bs-secondary-bg-subtle: #334155;
    --bs-tertiary-bg: #334155;
    --bs-tertiary-bg-rgb: 51, 65, 85;
    --bs-tertiary-bg-subtle: #475569;
    --bs-tertiary-color: #cbd5e1;
    --bs-tertiary-color-rgb: 203, 213, 225;
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-primary-text-emphasis: #a5b4fc;
    --bs-primary-bg-subtle: #1e1b4b;
    --bs-primary-border-subtle: #3730a3;
    --bs-secondary: #64748b;
    --bs-secondary-rgb: 100, 116, 139;
    --bs-secondary-text-emphasis: #94a3b8;
    --bs-secondary-bg-subtle: #1e293b;
    --bs-secondary-border-subtle: #334155;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-success-text-emphasis: #6ee7b7;
    --bs-success-bg-subtle: #064e3b;
    --bs-success-border-subtle: #047857;
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    --bs-info-text-emphasis: #67e8f9;
    --bs-info-bg-subtle: #164e63;
    --bs-info-border-subtle: #0891b2;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-warning-text-emphasis: #fcd34d;
    --bs-warning-bg-subtle: #451a03;
    --bs-warning-border-subtle: #d97706;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-danger-text-emphasis: #fca5a5;
    --bs-danger-bg-subtle: #450a0a;
    --bs-danger-border-subtle: #dc2626;
    --bs-light: #1e293b;
    --bs-light-rgb: 30, 41, 59;
    --bs-light-text-emphasis: #64748b;
    --bs-light-bg-subtle: #0f172a;
    --bs-light-border-subtle: #1e293b;
    --bs-dark: #f8fafc;
    --bs-dark-rgb: 248, 250, 252;
    --bs-dark-text-emphasis: #e2e8f0;
    --bs-dark-bg-subtle: #334155;
    --bs-dark-border-subtle: #475569;
    --bs-link-color: #818cf8;
    --bs-link-color-rgb: 129, 140, 248;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #a5b4fc;
    --bs-link-hover-color-rgb: 165, 180, 252;
    --bs-code-color: #fca5a5;
    --bs-border-color: #334155;
    --bs-border-color-translucent: rgba(51, 65, 85, 0.5);
    --bs-form-valid-color: #6ee7b7;
    --bs-form-valid-border-color: #10b981;
    --bs-form-invalid-color: #fca5a5;
    --bs-form-invalid-border-color: #ef4444;
}

/* ===========================================
   THEME 2: SUNSET WARM
   =========================================== */
[data-bs-theme="sunset"] {
    --bs-body-color: #451a03;
    --bs-body-color-rgb: 69, 26, 3;
    --bs-body-bg: #fefce8;
    --bs-body-bg-rgb: 254, 252, 232;
    --bs-emphasis-color: #92400e;
    --bs-emphasis-color-rgb: 146, 64, 14;
    --bs-secondary-color: #a16207;
    --bs-secondary-color-rgb: 161, 98, 7;
    --bs-secondary-bg: #fef3c7;
    --bs-secondary-bg-rgb: 254, 243, 199;
    --bs-secondary-bg-subtle: #fde68a;
    --bs-tertiary-bg: #fef3c7;
    --bs-tertiary-bg-rgb: 254, 243, 199;
    --bs-tertiary-bg-subtle: #fde68a;
    --bs-tertiary-color: #92400e;
    --bs-tertiary-color-rgb: 146, 64, 14;
    --bs-primary: #f97316;
    --bs-primary-rgb: 249, 115, 22;
    --bs-primary-text-emphasis: #ea580c;
    --bs-primary-bg-subtle: #fed7aa;
    --bs-primary-border-subtle: #fb923c;
    --bs-secondary: #f59e0b;
    --bs-secondary-rgb: 245, 158, 11;
    --bs-secondary-text-emphasis: #d97706;
    --bs-secondary-bg-subtle: #fef3c7;
    --bs-secondary-border-subtle: #fde68a;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-success-text-emphasis: #059669;
    --bs-success-bg-subtle: #d1fae5;
    --bs-success-border-subtle: #a7f3d0;
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    --bs-info-text-emphasis: #0891b2;
    --bs-info-bg-subtle: #cffafe;
    --bs-info-border-subtle: #a5f3fc;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-warning-text-emphasis: #d97706;
    --bs-warning-bg-subtle: #fef3c7;
    --bs-warning-border-subtle: #fde68a;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-danger-text-emphasis: #dc2626;
    --bs-danger-bg-subtle: #fee2e2;
    --bs-danger-border-subtle: #fecaca;
    --bs-light: #fef3c7;
    --bs-light-rgb: 254, 243, 199;
    --bs-light-text-emphasis: #d97706;
    --bs-light-bg-subtle: #fefce8;
    --bs-light-border-subtle: #fef3c7;
    --bs-dark: #92400e;
    --bs-dark-rgb: 146, 64, 14;
    --bs-dark-text-emphasis: #451a03;
    --bs-dark-bg-subtle: #fed7aa;
    --bs-dark-border-subtle: #fb923c;
    --bs-link-color: #ea580c;
    --bs-link-color-rgb: 234, 88, 12;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #c2410c;
    --bs-link-hover-color-rgb: 194, 65, 12;
    --bs-code-color: #dc2626;
    --bs-border-color: #fbbf24;
    --bs-border-color-translucent: rgba(251, 191, 36, 0.5);
    --bs-form-valid-color: #059669;
    --bs-form-valid-border-color: #10b981;
    --bs-form-invalid-color: #dc2626;
    --bs-form-invalid-border-color: #ef4444;
}

/* ===========================================
   THEME 3: OCEAN BLUE
   =========================================== */
[data-bs-theme="ocean"] {
    --bs-body-color: #0c4a6e;
    --bs-body-color-rgb: 12, 74, 110;
    --bs-body-bg: #f0f9ff;
    --bs-body-bg-rgb: 240, 249, 255;
    --bs-emphasis-color: #075985;
    --bs-emphasis-color-rgb: 7, 89, 133;
    --bs-secondary-color: #0369a1;
    --bs-secondary-color-rgb: 3, 105, 161;
    --bs-secondary-bg: #e0f2fe;
    --bs-secondary-bg-rgb: 224, 242, 254;
    --bs-secondary-bg-subtle: #bae6fd;
    --bs-tertiary-bg: #e0f2fe;
    --bs-tertiary-bg-rgb: 224, 242, 254;
    --bs-tertiary-bg-subtle: #bae6fd;
    --bs-tertiary-color: #075985;
    --bs-tertiary-color-rgb: 7, 89, 133;
    --bs-primary: #0891b2;
    --bs-primary-rgb: 8, 145, 178;
    --bs-primary-text-emphasis: #0e7490;
    --bs-primary-bg-subtle: #cffafe;
    --bs-primary-border-subtle: #a5f3fc;
    --bs-secondary: #0ea5e9;
    --bs-secondary-rgb: 14, 165, 233;
    --bs-secondary-text-emphasis: #0284c7;
    --bs-secondary-bg-subtle: #e0f2fe;
    --bs-secondary-border-subtle: #bae6fd;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-success-text-emphasis: #059669;
    --bs-success-bg-subtle: #d1fae5;
    --bs-success-border-subtle: #a7f3d0;
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    --bs-info-text-emphasis: #0891b2;
    --bs-info-bg-subtle: #cffafe;
    --bs-info-border-subtle: #a5f3fc;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-warning-text-emphasis: #d97706;
    --bs-warning-bg-subtle: #fef3c7;
    --bs-warning-border-subtle: #fde68a;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-danger-text-emphasis: #dc2626;
    --bs-danger-bg-subtle: #fee2e2;
    --bs-danger-border-subtle: #fecaca;
    --bs-light: #e0f2fe;
    --bs-light-rgb: 224, 242, 254;
    --bs-light-text-emphasis: #0284c7;
    --bs-light-bg-subtle: #f0f9ff;
    --bs-light-border-subtle: #e0f2fe;
    --bs-dark: #0c4a6e;
    --bs-dark-rgb: 12, 74, 110;
    --bs-dark-text-emphasis: #075985;
    --bs-dark-bg-subtle: #cffafe;
    --bs-dark-border-subtle: #a5f3fc;
    --bs-link-color: #0891b2;
    --bs-link-color-rgb: 8, 145, 178;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #0e7490;
    --bs-link-hover-color-rgb: 14, 116, 144;
    --bs-code-color: #dc2626;
    --bs-border-color: #7dd3fc;
    --bs-border-color-translucent: rgba(125, 211, 252, 0.5);
    --bs-form-valid-color: #059669;
    --bs-form-valid-border-color: #10b981;
    --bs-form-invalid-color: #dc2626;
    --bs-form-invalid-border-color: #ef4444;
}

/* ===========================================
   THEME 4: FOREST GREEN
   =========================================== */
[data-bs-theme="forest"] {
    --bs-body-color: #064e3b;
    --bs-body-color-rgb: 6, 78, 59;
    --bs-body-bg: #f0fdf4;
    --bs-body-bg-rgb: 240, 253, 244;
    --bs-emphasis-color: #065f46;
    --bs-emphasis-color-rgb: 6, 95, 70;
    --bs-secondary-color: #047857;
    --bs-secondary-color-rgb: 4, 120, 87;
    --bs-secondary-bg: #ecfdf5;
    --bs-secondary-bg-rgb: 236, 253, 245;
    --bs-secondary-bg-subtle: #d1fae5;
    --bs-tertiary-bg: #ecfdf5;
    --bs-tertiary-bg-rgb: 236, 253, 245;
    --bs-tertiary-bg-subtle: #d1fae5;
    --bs-tertiary-color: #065f46;
    --bs-tertiary-color-rgb: 6, 95, 70;
    --bs-primary: #059669;
    --bs-primary-rgb: 5, 150, 105;
    --bs-primary-text-emphasis: #047857;
    --bs-primary-bg-subtle: #d1fae5;
    --bs-primary-border-subtle: #a7f3d0;
    --bs-secondary: #10b981;
    --bs-secondary-rgb: 16, 185, 129;
    --bs-secondary-text-emphasis: #059669;
    --bs-secondary-bg-subtle: #ecfdf5;
    --bs-secondary-border-subtle: #d1fae5;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-success-text-emphasis: #059669;
    --bs-success-bg-subtle: #d1fae5;
    --bs-success-border-subtle: #a7f3d0;
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    --bs-info-text-emphasis: #0891b2;
    --bs-info-bg-subtle: #cffafe;
    --bs-info-border-subtle: #a5f3fc;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-warning-text-emphasis: #d97706;
    --bs-warning-bg-subtle: #fef3c7;
    --bs-warning-border-subtle: #fde68a;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-danger-text-emphasis: #dc2626;
    --bs-danger-bg-subtle: #fee2e2;
    --bs-danger-border-subtle: #fecaca;
    --bs-light: #ecfdf5;
    --bs-light-rgb: 236, 253, 245;
    --bs-light-text-emphasis: #059669;
    --bs-light-bg-subtle: #f0fdf4;
    --bs-light-border-subtle: #ecfdf5;
    --bs-dark: #064e3b;
    --bs-dark-rgb: 6, 78, 59;
    --bs-dark-text-emphasis: #065f46;
    --bs-dark-bg-subtle: #d1fae5;
    --bs-dark-border-subtle: #a7f3d0;
    --bs-link-color: #059669;
    --bs-link-color-rgb: 5, 150, 105;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #047857;
    --bs-link-hover-color-rgb: 4, 120, 87;
    --bs-code-color: #dc2626;
    --bs-border-color: #86efac;
    --bs-border-color-translucent: rgba(134, 239, 172, 0.5);
    --bs-form-valid-color: #059669;
    --bs-form-valid-border-color: #10b981;
    --bs-form-invalid-color: #dc2626;
    --bs-form-invalid-border-color: #ef4444;
}

/* ===========================================
   THEME 5: PURPLE ELEGANCE
   =========================================== */
[data-bs-theme="purple"] {
    --bs-body-color: #581c87;
    --bs-body-color-rgb: 88, 28, 135;
    --bs-body-bg: #faf5ff;
    --bs-body-bg-rgb: 250, 245, 255;
    --bs-emphasis-color: #7c3aed;
    --bs-emphasis-color-rgb: 124, 58, 237;
    --bs-secondary-color: #9333ea;
    --bs-secondary-color-rgb: 147, 51, 234;
    --bs-secondary-bg: #f3e8ff;
    --bs-secondary-bg-rgb: 243, 232, 255;
    --bs-secondary-bg-subtle: #e9d5ff;
    --bs-tertiary-bg: #f3e8ff;
    --bs-tertiary-bg-rgb: 243, 232, 255;
    --bs-tertiary-bg-subtle: #e9d5ff;
    --bs-tertiary-color: #7c3aed;
    --bs-tertiary-color-rgb: 124, 58, 237;
    --bs-primary: #7c3aed;
    --bs-primary-rgb: 124, 58, 237;
    --bs-primary-text-emphasis: #6d28d9;
    --bs-primary-bg-subtle: #e9d5ff;
    --bs-primary-border-subtle: #c4b5fd;
    --bs-secondary: #a855f7;
    --bs-secondary-rgb: 168, 85, 247;
    --bs-secondary-text-emphasis: #9333ea;
    --bs-secondary-bg-subtle: #f3e8ff;
    --bs-secondary-border-subtle: #e9d5ff;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-success-text-emphasis: #059669;
    --bs-success-bg-subtle: #d1fae5;
    --bs-success-border-subtle: #a7f3d0;
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    --bs-info-text-emphasis: #0891b2;
    --bs-info-bg-subtle: #cffafe;
    --bs-info-border-subtle: #a5f3fc;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-warning-text-emphasis: #d97706;
    --bs-warning-bg-subtle: #fef3c7;
    --bs-warning-border-subtle: #fde68a;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-danger-text-emphasis: #dc2626;
    --bs-danger-bg-subtle: #fee2e2;
    --bs-danger-border-subtle: #fecaca;
    --bs-light: #f3e8ff;
    --bs-light-rgb: 243, 232, 255;
    --bs-light-text-emphasis: #9333ea;
    --bs-light-bg-subtle: #faf5ff;
    --bs-light-border-subtle: #f3e8ff;
    --bs-dark: #581c87;
    --bs-dark-rgb: 88, 28, 135;
    --bs-dark-text-emphasis: #7c3aed;
    --bs-dark-bg-subtle: #e9d5ff;
    --bs-dark-border-subtle: #c4b5fd;
    --bs-link-color: #7c3aed;
    --bs-link-color-rgb: 124, 58, 237;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #6d28d9;
    --bs-link-hover-color-rgb: 109, 40, 217;
    --bs-code-color: #dc2626;
    --bs-border-color: #c4b5fd;
    --bs-border-color-translucent: rgba(196, 181, 253, 0.5);
    --bs-form-valid-color: #059669;
    --bs-form-valid-border-color: #10b981;
    --bs-form-invalid-color: #dc2626;
    --bs-form-invalid-border-color: #ef4444;
}

/* ===========================================
 * PREMIUM ADD SECTION BUTTON STYLES
 * =========================================== */

.add-section-btn-premium {
    background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 0;
    width: 100%;
    max-width: 400px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
    margin: 16px auto;
    font-weight: 600;
}

/* Efecto de background animado */
.add-section-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.add-section-btn-premium:hover::before {
    left: 100%;
}

/* Contenedor del contenido */
.add-section-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 12px 20px;
    position: relative;
    z-index: 1;
    justify-content: center;
}

/* Wrapper del icono */
.add-section-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    color: white;
}

/* Texto de la sección */
.add-section-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.add-section-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.add-section-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
}

/* Estados del botón */
.add-section-btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.add-section-btn-premium:hover .add-section-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.add-section-btn-premium:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.25);
}

.add-section-btn-premium:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.25);
}

/* Animación de pulso sutil */
@keyframes subtlePulse {
    0% {
        box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 122, 255, 0.45);
    }
    100% {
        box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    }
}

.add-section-btn-premium {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Responsive para móvil */
@media (max-width: 767px) {
    .add-section-btn-premium {
        height: 75px;
        max-width: 100%;
        margin: 12px 10px;
    }

    .add-section-content {
        flex-direction: column;
        gap: 6px;
        padding: 10px 14px;
    }

    .add-section-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .add-section-title {
        font-size: 13px;
    }

    .add-section-subtitle {
        font-size: 10px;
    }

    .add-section-btn-premium:hover .add-section-icon-wrapper {
        transform: scale(1.12) rotate(90deg);
    }
}
