﻿/* ==========================================
   TU OVERLAY COMPONENT
   ========================================== */

/* Etiqueta: <div id="tuhelpOverlay" class="tuhelp-overlay">
   ID: tuhelpOverlay
   Class: tuhelp-overlay
*/
.tuhelp-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0px;
    height: 0;
    z-index: 99999;
    overflow: hidden;
    transition: height 0.45s ease;
}

    /* Clase de estado para mostrar el overlay animado */
    .tuhelp-overlay.show {
        height: calc(100vh - 65px);
    }

/* Etiqueta: <div class="tuhelp-window">
   Class: tuhelp-window
*/
.tuhelp-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 21px 21px 0 0;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    margin-top: 10px;
    overflow: hidden; /* Ya no hace scroll */
}

/* Etiqueta: <div class="tuhelp-header">
   Class: tuhelp-header
*/
.tuhelp-drag-area {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
}

    .tuhelp-drag-area:active {
        cursor: grabbing;
    }

.tuhelp-drag-pill {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0,0,0,.25);
}

#tuhelpDragHandle {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}

#tuhelpHeader {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}

/* Etiqueta: <div class="tuhelp-header">
   Class: tuhelp-header
*/
.tuhelp-header {
    flex-shrink: 0;
    background-color: transparent;
    margin-top: 5px;
    z-index: 10;
    height: 50px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 16px;
}

    .tuhelp-header:active {
        cursor: grabbing;
    }

/* Cambiado de .txt-header a .txt-headerhelp para que coincida con tu HTML original */
.txt-headerhelp {
    font-size: 20px;
    font-weight: 600;
    user-select: none;
}

/* Cambiado de .tuhelp-icon a .tuhelp-close para usar los estilos que tenías en el botón de cerrar original */
.tuhelp-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer; /* Cambiado a pointer para que el usuario sepa que es clickeable */
    padding: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Etiqueta: <div class="tuhelp-content">
   Class: tuhelp-content
*/
.tuhelp-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 10px;
}

/* ==========================================
   SCROLLBAR - TU CONTENT
   ========================================== */

/* Etiqueta: <div class="tu-content">
   Class: tu-content
*/
.tuhelp-content {
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 transparent;
}

    .tuhelp-content::-webkit-scrollbar {
        width: 8px;
    }

.hide-scrollbar {
    scrollbar-width: none;
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

.visible-scrollbar {
    scrollbar-width: thin;
}

    .visible-scrollbar::-webkit-scrollbar {
        width: 8px;
    }

    /* Motores WebKit (Chrome, Edge, Safari, Opera) - Barra completa */
    .tuhelp-content::-webkit-scrollbar {
        width: 4px;
        height: 4px; /* Por si llega a aparecer scroll horizontal */
    }

    /* Motores WebKit - Carril o fondo del scroll */
    .tuhelp-content::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Motores WebKit - Barra arrastrable */
    .tuhelp-content::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 999px;
        transition: background .2s ease;
    }

        /* Motores WebKit - Barra arrastrable en estado Hover */
        .tuhelp-content::-webkit-scrollbar-thumb:hover {
            background: #8f8f8f;
        }

    /* Motores WebKit - Esquina interna de scrollbar */
    .tuhelp-content::-webkit-scrollbar-corner {
        background: transparent;
    }

    /* Motores WebKit - ELIMINA POR COMPLETO LAS FLECHAS */
    .tuhelp-content::-webkit-scrollbar-button {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

/* Etiqueta: <div class="demo-card">
   Class: demo-card
*/
.demo-card {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

    /* Etiqueta: <h3> */
    .demo-card h3 {
        margin: 0 0 8px;
    }

    /* Etiqueta: <p> */
    .demo-card p {
        margin: 0;
        color: #666;
    }
