/* ============================================================
   PAPERTOOLS · CAPA GLOBAL "PAPER UI"
   Se carga después de theme.css en todas las páginas.
   1. Tokens: fondo azul claro + tarjetas blancas con sombra suave
   2. Sidebar azul marino unificado
   3. Indicador "liquid morph" del sidebar
   4. Selector de color sin brillo
   5. Skeleton loaders
   6. Animaciones de entrada y transiciones entre páginas
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS GLOBALES
   ------------------------------------------------------------ */
:root {
    --pt-blue: #1f6fe5;
    --pt-blue-2: #3b8bff;
    --pt-blue-deep: #1450b8;
    --pt-nav-1: #0e2a5e;
    --pt-nav-2: #0a1d44;
    --pt-nav-text: rgba(225, 235, 255, 0.86);
    --pt-nav-muted: rgba(180, 198, 232, 0.6);
    --pt-skel-base: #e6edf8;
    --pt-skel-shine: #f6f9ff;
    --pt-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --pt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo claro: se reemplaza el neumorfismo por tarjetas blancas flotantes */
html:not([data-mode="dark"]):not([data-mode="sepia"]):not([data-mode="mono"]) {
    --bg-main: #eef3fb;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-header: rgba(238, 243, 251, 0.92);
    --bg-input: #f5f8fd;
    --bg-muted: #f3f6fb;
    --bg-hover: #eaf1fc;

    --text-primary: #12203a;
    --text-secondary: #4a5873;
    --text-muted: #8392ab;

    --neu-light: rgba(255, 255, 255, 0);
    --neu-dark: rgba(31, 75, 150, 0.10);
    --neu-dark-deep: rgba(31, 75, 150, 0.16);
    --neu-contact: rgba(18, 32, 58, 0.05);

    --shadow-sm: 0 1px 2px rgba(18, 32, 58, 0.05), 0 4px 12px rgba(31, 75, 150, 0.07);
    --shadow-soft: 0 1px 2px rgba(18, 32, 58, 0.04), 0 8px 24px rgba(31, 75, 150, 0.08);
    --shadow-md: 0 2px 4px rgba(18, 32, 58, 0.04), 0 10px 28px rgba(31, 75, 150, 0.10);
    --shadow-hover: 0 2px 4px rgba(18, 32, 58, 0.05), 0 16px 36px rgba(31, 75, 150, 0.14);
    --shadow-flat: var(--shadow-md);
    --shadow-raised: var(--shadow-hover);
    --shadow-inset: inset 0 1px 3px rgba(18, 32, 58, 0.08);
    --shadow-inset-deep: inset 0 2px 6px rgba(18, 32, 58, 0.10);

    --border-color: rgba(18, 32, 58, 0.08);
    --border-card: rgba(31, 111, 229, 0.08);
    --border-edge: rgba(18, 32, 58, 0.08);
    --border-edge-dark: rgba(18, 32, 58, 0.10);
}

/* Modo oscuro: superficies azul noche con sombras suaves */
html[data-mode="dark"] {
    --bg-main: #0d1424;
    --bg-card: #141d31;
    --bg-surface: #141d31;
    --bg-header: rgba(13, 20, 36, 0.92);
    --bg-input: #101828;
    --bg-muted: #111a2c;
    --bg-hover: #1a2540;

    --text-primary: #eef3ff;
    --text-secondary: #a9b6cf;
    --text-muted: #6f7d98;

    --neu-light: rgba(255, 255, 255, 0);
    --neu-dark: rgba(0, 0, 0, 0.35);
    --neu-dark-deep: rgba(0, 0, 0, 0.5);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 38px rgba(0, 0, 0, 0.5);
    --shadow-flat: var(--shadow-md);
    --shadow-raised: var(--shadow-hover);
    --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-inset-deep: inset 0 2px 6px rgba(0, 0, 0, 0.5);

    --border-color: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.06);
    --border-edge: rgba(255, 255, 255, 0.07);
    --border-edge-dark: rgba(0, 0, 0, 0.45);

    --pt-nav-1: #0b1a38;
    --pt-nav-2: #070f22;
    --pt-skel-base: #1a2540;
    --pt-skel-shine: #24324f;
}

html[data-mode="sepia"],
html[data-mode="mono"] {
    --pt-skel-base: rgba(0, 0, 0, 0.07);
    --pt-skel-shine: rgba(255, 255, 255, 0.35);
}

body,
.app-layout-with-sidebar,
.app-main-content {
    background-color: var(--bg-main);
}

/* ------------------------------------------------------------
   2. SIDEBAR AZUL MARINO (todas las páginas)
   ------------------------------------------------------------ */
.app-sidebar {
    background: linear-gradient(180deg, var(--pt-nav-1) 0%, var(--pt-nav-2) 100%) !important;
    border-right: none !important;
    box-shadow: 6px 0 30px rgba(8, 22, 54, 0.25) !important;
    color: var(--pt-nav-text);
    overflow-x: hidden !important;
    view-transition-name: pt-sidebar;
}

.app-sidebar .sidebar-header {
    border-bottom: none;
    padding: clamp(0.6rem, 1.6vh, 1.3rem) 1.2rem clamp(0.3rem, 1vh, 0.9rem);
}

.app-sidebar .brand-word-paper,
.app-sidebar .brand-word-tools,
.app-sidebar .brand-title,
.app-sidebar .brand-accent {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}

.app-sidebar .brand-badge {
    color: #cfe0ff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.app-sidebar .desktop-sidebar-toggle-btn,
.app-sidebar .sidebar-close-btn {
    color: var(--pt-nav-muted) !important;
}

.app-sidebar .sidebar-nav {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    padding: 0.2rem 0.9rem;
    gap: 2px;
}

/* Pantallas bajas (laptops 1366×768): una sola columna más compacta para que todo quepa */
@media (max-height: 800px) {
    .app-sidebar .sidebar-nav,
    .app-sidebar .sidebar-tools-sublist {
        gap: 1px;
    }

    .app-sidebar .sidebar-nav-item {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
        line-height: 1.25;
    }

    .app-sidebar .nav-item-text {
        font-size: 0.8rem;
    }

    .app-sidebar .nav-item-icon {
        font-size: 0.9rem;
    }

    .app-sidebar .sidebar-header {
        padding-top: 0.5rem;
        padding-bottom: 0.2rem;
    }

    .app-sidebar .brand-logo-img,
    .app-sidebar .sidebar-brand-logo {
        height: 30px !important;
    }

    .home-premium-card {
        padding: 0.45rem 0.6rem;
    }

    .home-premium-card p {
        display: none;
    }
}

@media (max-height: 680px) {
    .app-sidebar .sidebar-nav-item {
        padding-top: 0.12rem;
        padding-bottom: 0.12rem;
    }

    .app-sidebar .nav-item-text {
        font-size: 0.76rem;
    }

    .app-sidebar .nav-section-label {
        padding-top: 0.25rem;
        padding-bottom: 0.1rem;
    }

    .app-sidebar .sidebar-theme-navdisplay .theme-nav-header {
        display: none;
    }
}

/* Tarjeta de usuario del sidebar retirada (el acceso está en la barra superior / Mi Oficina) */
.app-sidebar .sidebar-user-card {
    display: none !important;
}

/* El nav es flex en columna y con scroll: sin esto encoge los items */
.app-sidebar .sidebar-nav > * {
    flex-shrink: 0;
}

/* La barra de scroll aparecia unos segundos al cargar (mientras llegaban las fuentes) y luego se iba */
.app-sidebar,
.app-sidebar .sidebar-nav {
    scrollbar-width: none !important;
}
.app-sidebar::-webkit-scrollbar,
.app-sidebar .sidebar-nav::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.app-sidebar .sidebar-nav::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.app-sidebar .nav-section-label {
    color: var(--pt-nav-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: clamp(0.35rem, 1vh, 0.8rem) 0.6rem clamp(0.15rem, 0.4vh, 0.3rem);
}

.app-sidebar .nav-section-label i {
    color: var(--pt-nav-muted) !important;
}

.app-sidebar .sidebar-divider {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
    margin: clamp(0.25rem, 0.8vh, 0.6rem) 0.4rem 0;
}

.app-sidebar .sidebar-nav-item,
.app-sidebar .sidebar-nav-item.btn-sidebar-oficina {
    position: relative;
    z-index: 1;
    color: var(--pt-nav-text) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    /* Se adapta a la altura de la pantalla para que todo el menú quepa sin scroll */
    padding: clamp(0.16rem, 0.46vh, 0.42rem) 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    gap: 12px;
    margin: 0;
    filter: none !important;
    overflow: hidden;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--pt-ease-out);
}

.app-sidebar .nav-item-text {
    font-weight: 600;
    font-size: clamp(0.8rem, 1.55vh, 0.9rem);
}

.app-sidebar .nav-item-icon {
    font-size: 1.02rem;
    width: 22px;
    color: inherit !important;
}

.app-sidebar .sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.app-sidebar .sidebar-nav-item.active,
.app-sidebar .sidebar-nav-item.pt-liquid-target {
    color: #ffffff !important;
    font-weight: 800;
}

.app-sidebar .sidebar-nav-item.active .nav-item-text {
    font-weight: 800;
}

/* Sin JS (o antes de que cargue) el activo conserva su píldora azul */
.app-sidebar .sidebar-nav:not(.pt-liquid-ready) .sidebar-nav-item.active {
    background: var(--theme-gradient-btn, linear-gradient(135deg, var(--pt-blue-2), var(--pt-blue))) !important;
    box-shadow: 0 8px 20px rgba(31, 111, 229, 0.45) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary, #1f6fe5) 45%, transparent) !important;
}

.app-sidebar .sidebar-nav.pt-liquid-ready .sidebar-nav-item.active:hover {
    background: transparent !important;
    transform: none;
}

/* Tarjeta Suite Premium (compacta: título + texto a la izquierda, botón a la derecha) */
.home-premium-card {
    position: relative;
    z-index: 1;
    margin: clamp(0.3rem, 1vh, 0.8rem) 0 0.3rem;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(59, 139, 255, 0.22), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 8px;
}

.home-premium-card .home-premium-head {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
}

.home-premium-card .home-premium-head span {
    font-size: 1rem;
}

.home-premium-card p {
    grid-column: 1;
    margin: 2px 0 0;
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--pt-nav-text);
}

.home-premium-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd34d, #f7a823);
    color: #3b2400 !important;
    font-weight: 800;
    font-size: 0.76rem;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(247, 168, 35, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-premium-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(247, 168, 35, 0.45);
}

/* Pie del sidebar (usuario + tema) */
.app-sidebar .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    padding: clamp(0.4rem, 1vh, 0.7rem) 0.9rem;
}

.app-sidebar .sidebar-user-card,
.app-sidebar .sidebar-theme-navdisplay {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

.app-sidebar .sidebar-user-name,
.app-sidebar .theme-nav-label {
    color: #ffffff !important;
}

.app-sidebar .sidebar-user-plan {
    color: var(--pt-nav-muted) !important;
}

.app-sidebar .theme-nav-select,
.app-sidebar .theme-mode-pill-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.app-sidebar .theme-nav-select option {
    color: #12203a;
    background: #ffffff;
}

/* ------------------------------------------------------------
   SIDEBAR FLUIDO: los elementos crecen para ocupar toda la altura
   disponible (entre 30 y 46 px cada uno) en lugar de dejar hueco abajo.
   ------------------------------------------------------------ */
.app-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
}

.app-sidebar .sidebar-nav > .sidebar-nav-item,
.app-sidebar .sidebar-tools-sublist > .sidebar-nav-item {
    flex: 1 1 0;
    min-height: clamp(23px, 3.5vh, 30px);
    max-height: 46px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.app-sidebar .sidebar-nav > .sidebar-nav-item.pt-oficina-cta {
    flex: 1.4 1 0;
    min-height: clamp(32px, 5vh, 40px);
    max-height: 58px;
}

.app-sidebar .sidebar-nav > .sidebar-tools-section {
    flex: 11 1 0;
    display: flex;
    flex-direction: column;
}

.app-sidebar .sidebar-nav > .sidebar-tools-section:has(.sidebar-tools-sublist.collapsed) {
    flex: 0 0 auto;
}

.app-sidebar .sidebar-tools-sublist:not(.collapsed) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-sidebar .nav-item-text {
    font-size: clamp(0.84rem, 1.75vh, 1rem) !important;
}

.app-sidebar .sidebar-nav-item:not(.pt-oficina-cta) .nav-item-icon {
    font-size: clamp(0.98rem, 2vh, 1.2rem) !important;
    width: 24px !important;
}

.app-sidebar .nav-section-label {
    font-size: 0.72rem;
}

/* ------------------------------------------------------------
   3. LIQUID MORPH DEL SIDEBAR
   Capa con filtro "goo": una gota principal y una gota de estela.
   ------------------------------------------------------------ */
.pt-liquid-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    filter: url(#pt-goo);
}

.pt-liquid-blob,
.pt-liquid-drop {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 12px;
    background: var(--theme-gradient-btn, linear-gradient(135deg, var(--pt-blue-2), var(--pt-blue)));
    will-change: transform, width, height;
}

.pt-liquid-blob {
    transition:
        transform 0.5s cubic-bezier(0.3, 1.32, 0.5, 1),
        height 0.5s cubic-bezier(0.3, 1.32, 0.5, 1),
        width 0.3s var(--pt-ease-out),
        border-radius 0.5s ease;
}

.pt-liquid-drop {
    transition:
        transform 0.85s cubic-bezier(0.22, 1.25, 0.36, 1) 0.09s,
        height 0.85s cubic-bezier(0.22, 1.25, 0.36, 1) 0.09s,
        width 0.5s var(--pt-ease-out),
        opacity 0.4s ease;
}

.pt-liquid-blob.is-moving {
    border-radius: 18px 18px 22px 22px / 22px 22px 18px 18px;
    animation: ptLiquidWobble 0.6s ease-in-out;
}

.pt-liquid-bead {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--theme-gradient-btn, linear-gradient(135deg, var(--pt-blue-2), var(--pt-blue)));
    opacity: 0;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.3, 1.25, 0.5, 1), opacity 0.25s ease;
}
.pt-liquid-bead.b1 { transition-delay: 0.04s, 0s; }
.pt-liquid-bead.b2 { transition-delay: 0.1s, 0s; width: 10px; height: 10px; margin: 2px; }

.pt-liquid-blob.no-anim,
.pt-liquid-drop.no-anim,
.pt-liquid-bead.no-anim {
    transition: none !important;
}

/* Brillo y sombra de la píldora: capa aparte para que el filtro goo no la borre */
.pt-liquid-glow {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: 0 6px 14px rgba(31, 111, 229, 0.3);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--color-primary, #1f6fe5) 30%, transparent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s var(--pt-ease-out), opacity 0.3s ease;
}

.pt-liquid-glow.is-moving {
    opacity: 0.35;
}

@keyframes ptLiquidWobble {
    0% { border-radius: 12px; }
    30% { border-radius: 24px 14px 24px 14px / 14px 24px 14px 24px; }
    60% { border-radius: 14px 22px 14px 22px / 22px 14px 22px 14px; }
    100% { border-radius: 12px; }
}

/* Ripple líquido al hacer clic */
.pt-nav-ripple {
    position: absolute;
    z-index: 2;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    animation: ptRipple 0.6s var(--pt-ease-out) forwards;
}

@keyframes ptRipple {
    to { transform: scale(18); opacity: 0; }
}

/* ------------------------------------------------------------
   4. SELECTOR DE COLOR DE ACENTO SIN BRILLO
   ------------------------------------------------------------ */
.theme-custom-color-wrap,
.theme-custom-color-wrap:hover {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    filter: none !important;
    outline: none !important;
}

.theme-mini-color-input,
.paper-custom-color-picker,
input[type="color"] {
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
}

.theme-mini-color-input::-webkit-color-swatch-wrapper {
    padding: 0 !important;
}

.theme-mini-color-input::-webkit-color-swatch,
.theme-mini-color-input::-moz-color-swatch {
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------
   5. SKELETON LOADERS
   ------------------------------------------------------------ */
.pt-skel,
.pt-skel-text,
img.pt-img-loading {
    background-color: var(--pt-skel-base) !important;
    background-image: linear-gradient(100deg, transparent 20%, var(--pt-skel-shine) 50%, transparent 80%) !important;
    background-size: 200% 100% !important;
    background-repeat: no-repeat !important;
    animation: ptShimmer 1.3s linear infinite;
}

.pt-skel {
    display: block;
    border-radius: 10px;
}

.pt-skel-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    border-radius: 8px;
    min-width: 3.5em;
    display: inline-block;
    user-select: none;
}

img.pt-img-loading {
    color: transparent;
}

@keyframes ptShimmer {
    from { background-position: 150% 0; }
    to { background-position: -50% 0; }
}

/* Plantillas genéricas que inyecta paper-ui.js en [data-skeleton] */
.pt-skel-card {
    padding: 14px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pt-skel-card .pt-skel-media {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

.pt-skel-line {
    height: 12px;
    border-radius: 6px;
}

.pt-skel-line.w-80 { width: 80%; }
.pt-skel-line.w-60 { width: 60%; }
.pt-skel-line.w-40 { width: 40%; }

.pt-skel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
}

.pt-skel-row .pt-skel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pt-skel-row .pt-skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ------------------------------------------------------------
   6. ANIMACIONES
   ------------------------------------------------------------ */
/* Transición suave entre páginas (Chrome/Edge 126+) */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: ptPageOut 0.22s ease both;
}

::view-transition-new(root) {
    animation: ptPageIn 0.38s var(--pt-ease-out) both;
}

::view-transition-group(pt-sidebar) {
    animation-duration: 0s;
}

/* El sidebar no se funde entre la imagen vieja y la nueva (eso cortaba la gota líquida a la mitad):
   se muestra directamente el sidebar de la página nueva, que ya continúa el movimiento donde iba. */
::view-transition-old(pt-sidebar) {
    display: none;
}
::view-transition-new(pt-sidebar) {
    animation: none;
}

/* Al llegar de otra página, el activo no enseña su píldora estática antes de que arranque la gota */
html.pt-nav-continue .app-sidebar .sidebar-nav:not(.pt-liquid-ready) .sidebar-nav-item.active {
    background: transparent !important;
    box-shadow: none !important;
}

@keyframes ptPageOut {
    to { opacity: 0; transform: translateY(-6px); }
}

@keyframes ptPageIn {
    from { opacity: 0; transform: translateY(10px); }
}

/* Entrada del contenido principal */
.app-main-content,
body:not(:has(.app-main-content)) > main {
    animation: ptContentIn 0.5s var(--pt-ease-out) both;
}

/* Solo opacidad: un transform aquí rompería los modales position:fixed */
@keyframes ptContentIn {
    from { opacity: 0; }
}

/* Aparición escalonada al hacer scroll (la activa paper-ui.js) */
.pt-reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.6s var(--pt-ease-out), translate 0.6s var(--pt-ease-out);
    transition-delay: calc(var(--pt-i, 0) * 60ms);
}

.pt-reveal.is-in {
    opacity: 1;
    translate: none;
}

/* Tilt 3D + brillo que sigue al cursor (solo mouse, lo activa paper-ui.js) */
.pt-tilt.pt-tilt-on {
    transform: perspective(900px) rotateX(var(--pt-rx, 0deg)) rotateY(var(--pt-ry, 0deg)) translateY(var(--pt-lift, -4px)) !important;
    transition: transform 0.12s ease-out, box-shadow 0.25s ease !important;
    will-change: transform;
}

.pt-tilt.pt-tilt-leave {
    transition: transform 0.45s var(--pt-ease-spring), box-shadow 0.25s ease !important;
}

.pt-tilt.pt-spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(260px circle at var(--pt-mx, 50%) var(--pt-my, 50%), rgba(255, 255, 255, 0.22), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

html[data-mode="dark"] .pt-tilt.pt-spotlight::after {
    background: radial-gradient(260px circle at var(--pt-mx, 50%) var(--pt-my, 50%), rgba(140, 180, 255, 0.14), transparent 60%);
}

.pt-tilt.pt-spotlight.pt-tilt-on::after {
    opacity: 1;
}

/* Botones magnéticos: usan la propiedad translate para no pisar transform */
.pt-magnet {
    translate: var(--pt-tx, 0) var(--pt-ty, 0);
    transition: translate 0.35s var(--pt-ease-spring);
}

.pt-magnet.pt-magnet-on {
    transition: translate 0.1s ease-out;
}

/* Pop de números al terminar el conteo */
.pt-pop {
    animation: ptPop 0.45s var(--pt-ease-spring);
}

@keyframes ptPop {
    0% { scale: 1; }
    40% { scale: 1.14; }
    100% { scale: 1; }
}

/* Mi Oficina: botón destacado del sidebar */
.app-sidebar .sidebar-nav-item.pt-oficina-cta {
    position: relative;
    overflow: hidden;
    margin-top: clamp(0.25rem, 0.8vh, 0.55rem);
    padding: clamp(0.4rem, 0.9vh, 0.68rem) 0.8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff5fa2 0%, #8b5cf6 52%, #3b8bff 100%) !important;
    background-size: 160% 160% !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    animation: ptCtaFlow 6s ease-in-out infinite;
}

.app-sidebar .sidebar-nav-item.pt-oficina-cta .nav-item-icon {
    width: clamp(24px, 3.2vh, 30px);
    height: clamp(24px, 3.2vh, 30px);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.app-sidebar .sidebar-nav-item.pt-oficina-cta .nav-item-text {
    font-weight: 800;
}

.pt-oficina-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.25s var(--pt-ease-spring);
}

.app-sidebar .sidebar-nav-item.pt-oficina-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.app-sidebar .sidebar-nav-item.pt-oficina-cta:hover .pt-oficina-arrow {
    transform: translateX(4px);
}

/* Destello que cruza el botón cada pocos segundos */
.app-sidebar .sidebar-nav-item.pt-oficina-cta::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-150%) skewX(-20deg);
    animation: ptCtaShine 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ptCtaFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ptCtaShine {
    0%, 60% { transform: translateX(-150%) skewX(-20deg); }
    85%, 100% { transform: translateX(350%) skewX(-20deg); }
}

.home-premium-card[hidden] {
    display: none !important;
}

/* Micro-interacciones globales */
.btn,
button,
.home-btn-primary,
.home-btn-light {
    transition-property: transform, box-shadow, background-color, color, border-color, opacity, filter;
}

.btn:active,
.home-btn-primary:active,
.home-btn-light:active {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pt-reveal {
        opacity: 1;
        translate: none;
    }
}

/* ============================================================
   7. COMPONENTES DE PANTALLA
   ============================================================ */

/* --- Resumen del día (Inicio) --- */
.pt-day-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -0.6rem 0 1.3rem;
}

.pt-day-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(31, 111, 229, 0.12);
    box-shadow: 0 2px 8px rgba(31, 75, 150, 0.06);
    animation: ptChipIn 0.5s var(--pt-ease-spring) both;
}

.pt-day-chip:nth-child(2) { animation-delay: 0.08s; }
.pt-day-chip:nth-child(3) { animation-delay: 0.16s; }

html[data-mode="dark"] .pt-day-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.pt-day-chip strong {
    color: var(--pt-blue);
}

html[data-mode="dark"] .pt-day-chip strong {
    color: #7fb2ff;
}

@keyframes ptChipIn {
    from { opacity: 0; scale: 0.85; }
}

/* --- Widgets de Mi Oficina: semana + plan --- */
.pt-insights-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.25rem;
    margin: 0 0 1.5rem;
}

.pt-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.4rem;
}

.pt-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.9rem;
}

.pt-widget-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-widget-head span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pt-week-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 10px;
    height: 150px;
}

.pt-week-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
}

.pt-week-bar {
    position: relative;
    width: 100%;
    max-width: 38px;
    min-height: 6px;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, var(--pt-blue-2), var(--pt-blue));
    opacity: 0.85;
    transform-origin: bottom;
    animation: ptBarGrow 0.8s var(--pt-ease-spring) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

.pt-week-bar.is-empty {
    background: var(--bg-hover);
    opacity: 1;
}

.pt-week-bar.is-today {
    background: linear-gradient(180deg, #ff5fa2, #8b5cf6);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
    opacity: 1;
}

.pt-week-bar:hover::after {
    content: attr(data-count);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    translate: -50% 0;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--text-primary);
    color: var(--bg-card);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.pt-week-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pt-week-label.is-today {
    color: var(--text-primary);
}

@keyframes ptBarGrow {
    from { transform: scaleY(0); }
}

.pt-ring-wrap {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.pt-ring {
    position: relative;
    width: 116px;
    height: 116px;
    flex-shrink: 0;
}

.pt-ring svg {
    width: 100%;
    height: 100%;
    rotate: -90deg;
}

.pt-ring-track {
    fill: none;
    stroke: var(--bg-hover);
    stroke-width: 10;
}

.pt-ring-value {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s var(--pt-ease-out);
}

.pt-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pt-ring-center strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.pt-ring-center small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
}

.pt-ring-info h4 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pt-ring-info p {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .pt-insights-row {
        grid-template-columns: 1fr;
    }
}

/* --- Segmentado con píldora deslizante (Precios: Mensual / Anual) --- */
.pt-seg {
    position: relative;
    isolation: isolate;
}

.pt-seg-pill {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    border-radius: 999px;
    background: var(--theme-gradient-btn, linear-gradient(135deg, var(--pt-blue-2), var(--pt-blue)));
    box-shadow: 0 6px 16px var(--shadow-glow, rgba(31, 111, 229, 0.3));
    transition: transform 0.5s var(--pt-ease-spring), width 0.5s var(--pt-ease-spring), height 0.3s ease;
    pointer-events: none;
}

.pt-seg.pt-seg-ready > .active,
.pt-seg.pt-seg-ready > .active:hover {
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* Palomitas que aparecen en cascada al entrar la tarjeta */
.pt-reveal.is-in .plan-feature-icon {
    animation: ptCheckPop 0.45s var(--pt-ease-spring) both;
}

.plan-feature-item:nth-child(2) .plan-feature-icon { animation-delay: 0.07s; }
.plan-feature-item:nth-child(3) .plan-feature-icon { animation-delay: 0.14s; }
.plan-feature-item:nth-child(4) .plan-feature-icon { animation-delay: 0.21s; }
.plan-feature-item:nth-child(5) .plan-feature-icon { animation-delay: 0.28s; }
.plan-feature-item:nth-child(6) .plan-feature-icon { animation-delay: 0.35s; }
.plan-feature-item:nth-child(7) .plan-feature-icon { animation-delay: 0.42s; }
.plan-feature-item:nth-child(n+8) .plan-feature-icon { animation-delay: 0.49s; }

@keyframes ptCheckPop {
    0% { scale: 0; rotate: -45deg; opacity: 0; }
    100% { scale: 1; rotate: 0deg; opacity: 1; }
}

/* --- PaperVault: filtros en píldora --- */
.filter-chip {
    border-radius: 999px !important;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--pt-ease-spring) !important;
}

.filter-chip.active {
    animation: ptChipIn 0.4s var(--pt-ease-spring);
}

/* Explosión de estrellas al marcar favorito */
.pt-burst {
    position: fixed;
    z-index: 100000;
    pointer-events: none;
    font-size: 14px;
    animation: ptBurst 0.7s var(--pt-ease-out) forwards;
}

@keyframes ptBurst {
    0% { translate: 0 0; scale: 0.4; opacity: 1; }
    100% { translate: var(--dx) var(--dy); scale: 1; opacity: 0; }
}

/* --- Tutoriales: visto + progreso --- */
.tutorial-card.is-watched .tutorial-thumb-img {
    filter: saturate(0.75);
}

.pt-watched-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pt-watch-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 1.4rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pt-watch-track {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: var(--bg-hover);
    overflow: hidden;
}

.pt-watch-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #10b981, #3b8bff);
    transition: width 0.9s var(--pt-ease-out);
}

.pt-confetti {
    position: fixed;
    z-index: 100000;
    top: -12px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    pointer-events: none;
    animation: ptConfetti var(--dur, 1.6s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes ptConfetti {
    to { translate: var(--dx, 0) 105vh; rotate: var(--rot, 540deg); }
}

/* --- Estados vacíos con Doc --- */
.pt-empty-doc {
    display: block;
    height: 110px;
    width: auto;
    margin: 0 auto 10px;
    filter: drop-shadow(0 10px 18px rgba(20, 80, 184, 0.22));
    animation: ptDocBob 3.5s ease-in-out infinite;
}

@keyframes ptDocBob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

/* --- Doc tip contextual en herramientas --- */
.pt-doc-tip {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 330px;
    animation: ptTipIn 0.6s var(--pt-ease-spring) both;
}

.pt-doc-tip img {
    height: 74px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 14px rgba(20, 80, 184, 0.3));
}

.pt-doc-tip-bubble {
    position: relative;
    padding: 12px 34px 12px 14px;
    border-radius: 16px 16px 4px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-hover);
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.pt-doc-tip-bubble strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text-primary);
    font-size: 0.86rem;
}

.pt-doc-tip-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
}

.pt-doc-tip-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.pt-doc-tip.is-leaving {
    animation: ptTipOut 0.3s ease forwards;
}

@keyframes ptTipIn {
    from { opacity: 0; translate: 0 20px; scale: 0.9; }
}

@keyframes ptTipOut {
    to { opacity: 0; translate: 0 12px; scale: 0.95; }
}

@media (max-width: 640px) {
    .pt-doc-tip {
        left: 12px;
        right: 12px;
        bottom: 84px;
        max-width: none;
    }

    .pt-doc-tip img {
        height: 56px;
    }
}

/* --- Modales y toasts con el mismo estilo --- */
.modal-dialog,
.dash-modal-card,
.modal-card {
    border-radius: 22px !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 24px 60px rgba(8, 22, 54, 0.28) !important;
    animation: ptModalIn 0.45s var(--pt-ease-spring);
}

@keyframes ptModalIn {
    from { opacity: 0; scale: 0.94; translate: 0 14px; }
}

.modal-overlay,
.dash-modal-overlay {
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.toast,
.canva-toast,
#toast {
    border-radius: 14px !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-card) !important;
    border-left: 4px solid var(--pt-blue) !important;
    box-shadow: 0 16px 40px rgba(8, 22, 54, 0.25) !important;
    font-weight: 700;
}

/* ============================================================
   8. ENCABEZADO DE HERRAMIENTA (mismo lenguaje que PaperPrint)
   Etiqueta con ícono, título en dos tonos, descripción y pasos.
   ============================================================ */
.pt-tool-head {
    --tool: var(--pt-blue);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: 0.8rem 2.5rem;
    margin: 0 auto;
    padding: 1.8rem 2rem 1.4rem;
    max-width: 1400px;
    box-sizing: border-box;
}

.pt-tool-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0.55rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tool);
}

.pt-tool-eyebrow i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    letter-spacing: 0;
    color: #ffffff;
    background: var(--tool);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--tool) 35%, transparent);
}

.pt-tool-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.pt-tool-title span {
    color: var(--text-muted);
}

.pt-tool-sub {
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.pt-tool-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pt-tool-steps li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pt-tool-steps li span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--tool);
    background: color-mix(in srgb, var(--tool) 13%, transparent);
}

.pt-tool-head::after {
    content: '';
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 0;
    height: 1px;
    background: var(--border-color);
}

/* Títulos antiguos que el nuevo encabezado reemplaza */
.codigos-title-wrap,
.pt-legacy-title {
    display: none !important;
}

@media (max-width: 900px) {
    .pt-tool-head {
        grid-template-columns: 1fr;
        padding: 1.2rem 1rem 1rem;
    }

    .pt-tool-head::after {
        left: 1rem;
        right: 1rem;
    }
}

/* Encabezados propios de los editores (Docs, Studio AI): mismo tono editorial */
.chat-header .chat-title,
.doc-ai-panel-title {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}


/* ---- gota líquida movida por física (JS): sin transiciones CSS, forma de cápsula y cuello entre cabeza y cola ---- */
.pt-liquid-blob,
.pt-liquid-drop,
.pt-liquid-bridge {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 999px !important;
    background: var(--theme-gradient-btn, linear-gradient(135deg, var(--pt-blue-2), var(--pt-blue)));
    will-change: transform, width, height;
    transition: opacity 0.25s ease !important;
    animation: none !important;
}
.pt-liquid-glow {
    border-radius: 999px !important;
    transition: opacity 0.25s ease !important;
}
.pt-liquid-bead { display: none; }


/* ---- Sidebar: nombre + función, y iconos con los colores del logo ---- */
.app-sidebar .sidebar-nav-item .nav-item-sub {
    margin-left: auto;
    padding-left: .5rem;
    font-size: clamp(0.66rem, 1.2vh, 0.74rem);
    font-weight: 600;
    opacity: .62;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}
.app-sidebar .sidebar-nav-item .nav-item-text { flex-shrink: 0; }
.app-sidebar .sidebar-nav-item[data-ic="pink"] .nav-item-icon { color: #ff5ca8 !important; }
.app-sidebar .sidebar-nav-item[data-ic="blue"] .nav-item-icon { color: #3b9bff !important; }
.app-sidebar .sidebar-nav-item[data-ic="yellow"] .nav-item-icon { color: #ffbe2e !important; }
.app-sidebar .sidebar-nav-item[data-ic="teal"] .nav-item-icon { color: #4fe0c8 !important; }
.app-sidebar .sidebar-nav-item.active .nav-item-icon,
.app-sidebar .sidebar-nav-item.pt-liquid-target .nav-item-icon { color: #ffffff !important; }
.app-sidebar .sidebar-nav-item.active .nav-item-sub,
.app-sidebar .sidebar-nav-item.pt-liquid-target .nav-item-sub { opacity: .85; }

/* ---- Modo embebido (una herramienta dentro de otra página): sin menú ni barra superior ---- */
html.pt-embed .app-sidebar,
html.pt-embed .mobile-topbar,
html.pt-embed .sidebar-backdrop,
html.pt-embed .desktop-sidebar-uncollapse-btn { display: none !important; }
html.pt-embed .app-main-content { margin-left: 0 !important; width: 100% !important; max-width: 100% !important; }

/* ---- Franja superior sin función: el selector de tema flotante ocupaba 28 px en la parte de arriba de cada página.
   En pantallas grandes el mismo control ya está en el pie del menú lateral, así que se oculta. En teléfono se conserva. ---- */
@media (min-width: 981px) {
    #papertools-theme-widget,
    .papertools-theme-widget,
    .theme-controller-widget {
        display: none !important;
    }
}

/* Consejos de Doc: contador y botón para ver otro */
.pt-doc-tip-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pt-doc-tip-count { font-size: .68rem; font-weight: 700; opacity: .6; }
.pt-doc-tip-next {
    border: 1.5px solid currentColor; background: transparent; color: inherit;
    border-radius: 999px; padding: 3px 11px; cursor: pointer;
    font: 800 .7rem 'Outfit', sans-serif;
}
.pt-doc-tip-next:hover { background: rgba(31, 111, 229, .12); }

/* Consejos de Doc: enlace para no volver a mostrarlos e interruptor reutilizable */
.pt-doc-tip-off { display: block; margin: 8px 0 0; padding: 0; border: 0; background: none; color: inherit; opacity: .55; font: 700 .66rem 'Outfit', sans-serif; text-decoration: underline; cursor: pointer; }
.pt-doc-tip-off:hover { opacity: .9; }
.pt-doc-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .8rem; font-weight: 700; user-select: none; }
.pt-doc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pt-doc-switch .sw { width: 38px; height: 22px; border-radius: 12px; background: rgba(120, 130, 150, .45); position: relative; transition: background .2s; flex: none; }
.pt-doc-switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pt-doc-switch input:checked + .sw { background: var(--color-primary, #2563eb); }
.pt-doc-switch input:checked + .sw::after { transform: translateX(16px); }
.pt-doc-switch input:focus-visible + .sw { outline: 2px solid var(--color-primary, #2563eb); outline-offset: 2px; }
.app-sidebar .pt-tips-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); width: 100%; font-size: .74rem; letter-spacing: .2px; }
