﻿/* ==========================================
   TU OVERLAY COMPONENT
   ========================================== */

/* Etiqueta: <div id="tuOverlay" class="tu-overlay">
   ID: tuOverlay
   Class: tu-overlay
*/
.tu-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 65px;
    height: 0;
    z-index: 15000;
    overflow: hidden;
    transition: height 0.45s ease;
    pointer-events: none;
    left: 50%; /* Mueve el borde izquierdo al centro exacto */
    transform: translateX(-50%); /* Recula la mitad del ancho del elemento para centrarlo perfecto */
}

    /* Clase de estado para mostrar el overlay animado */
    .tu-overlay.show {
        height: calc(100vh - 65px);
        pointer-events: auto;
    }

/* Etiqueta: <div class="tu-window">
   Class: tu-window
*/
.tu-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 21px 21px 0 0;
    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="tu-header">
   Class: tu-header
*/

#tuDragHandle {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}
#tuHeader {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}
/* Etiqueta: <div class="tu-header">
   Class: tu-header
*/
.tu-header {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 16px 16px 0;
    border-bottom: 0.5px solid #c7c7c7;
    cursor: grab;
    border-radius: 21px 21px 0 0;
}
.tu-drag-area {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    width: 60px;
    height: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: grab;
    z-index: 2;
}

    .tu-drag-area:active {
        cursor: grabbing;
    }

.tu-drag-pill {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
}
/* Etiqueta: <span id="txtHeaderTu" class="txt-header">
   ID: txtHeaderTu
   Class: txt-header
*/
.txt-header {
    font-size: 20px;
    font-weight: 600;
    user-select: none;
}

/* Etiqueta: <button id="btnIconTu" class="tu-icon">
   ID: btnIconTu
   Class: tu-icon
*/
.tu-back {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Etiqueta: <div class="tu-content">
   Class: tu-content
*/
.tu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 10px;
}
/* ==========================================
   SCROLLBAR - TU CONTENT
   ========================================== */

/* Etiqueta: <div class="tu-content">
   Class: tu-content
*/
.tu-content {
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 transparent;
}

    .tu-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 */
    .tu-content::-webkit-scrollbar {
        width: 4px;
        height: 4px; /* Por si llega a aparecer scroll horizontal */
    }

    /* Motores WebKit - Carril o fondo del scroll */
    .tu-content::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Motores WebKit - Barra arrastrable */
    .tu-content::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 999px;
        transition: background .2s ease;
    }

        /* Motores WebKit - Barra arrastrable en estado Hover */
        .tu-content::-webkit-scrollbar-thumb:hover {
            background: #8f8f8f;
        }

    /* Motores WebKit - Esquina interna de scrollbar */
    .tu-content::-webkit-scrollbar-corner {
        background: transparent;
    }

    /* Motores WebKit - ELIMINA POR COMPLETO LAS FLECHAS */
    .tu-content::-webkit-scrollbar-button {

        width: none !important;
        height: none !important;
    }
/* Card contenedora dentro del content */
.tu-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background-color: #fff;
    border-radius: 12px;
    margin: 10px 0;
}

/* Contenedor relativo para posicionar los SVGs */
.tu-icons-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Tuerca (Principal) */
.tu-svg-gear {
    width: 52px;
    height: 52px;
    color: #007bff; /* Ajusta con el color de tu marca */
}

/* SVG Guardado (Insignia pequeña superpuesta) */
.tu-svg-save-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #28a745;
    color: #ffffff;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    .tu-svg-save-badge svg {
        width: 14px;
        height: 14px;
    }

/* Título y Descripción */
.tu-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.tu-info-description {
    font-size: 0.88rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    max-width: 280px;
}
.tu-badge-coming-soon {
    display: inline-block;
    background-color: #e3f2fd;
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}
@media (min-width: 600px) {
    .tu-overlay {
        left: 50%; /* Mueve el borde izquierdo al centro exacto */
        transform: translateX(-50%); /* Recula la mitad del ancho del elemento para centrarlo perfecto */
        padding-left: 10px;
        padding-right: 10px;

    }
    .tu-window {
        margin-top:20px;
        border-radius: 21px 21px ;
   
    }
}