/* --- SISTEMA DE ALERTAS CREATIGRAF 2026 (MINIMALISTA) --- */
/* --- OCULTAR SCROLLBAR GLOBAL (MANTENIENDO FUNCIONALIDAD) --- */

/* Para Chrome, Safari y Opera */
::-webkit-scrollbar {
    display: none;
}

/* Para toda la web (HTML y Body) */
html, body {
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;     /* Firefox */
    overflow-y: scroll;        /* Asegura que el scroll funcione */
}

/* Para cualquier contenedor interno con scroll (como tu modal o el grid de productos) */
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}
/* Animación de entrada con ligero zoom (Crecimiento) */
.animacion-cambio {
    animation: zoomEntrada 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes zoomEntrada {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Scroll interno sutil para el modal si el contenido es muy grande */
#modal-detalle {
    overflow-y: auto;
    max-height: 100vh;
}
.toast-notif {
    position: fixed;
    top: 25px; /* Aparece desde arriba, es más moderno */
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Oculto arriba */
    
    /* Diseño Compacto */
    min-width: 200px;
    max-width: 320px;
    padding: 10px 20px; /* Reducimos el acolchado */
    border-radius: 14px; /* Bordes más finos */
    
    /* Efecto Glassmorphism Premium */
    background: rgba(5, 44, 60, 0.95); /* Azul Profundo con alta opacidad */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    color: white;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    
    /* Transición Elástica */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Tipografía Minimalista */
    font-weight: 700;
    font-size: 10px; /* Tamaño de fuente más discreto */
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Alineación Interna */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.container {
    width: 90%;
    max-width: 1000px; /* Se expande, pero tiene un límite sano */
    margin: 0 auto;
} 
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
/* Estado Activo */
.toast-notif.show {
    transform: translateX(-50%) translateY(0);
}

/* Ajuste para móviles */
@media (max-width: 640px) {
    .toast-notif {
        width: 85%;
        top: 15px;
        font-size: 9px;
        padding: 8px 16px;
    }
}
#visor-full.hidden {
    display: none;
}

#visor-full {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.cursor-zoom-in { cursor: zoom-in; }
.cursor-zoom-out { cursor: zoom-out; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* --- Tooltips solo para PC --- */
@media (min-width: 768px) {
    [data-hover] {
        position: relative;
    }

    [data-hover]::after {
        content: attr(data-hover);
        position: absolute;
        right: 130%;
        top: 50%;
        transform: translateY(-50%) scale(0.8);
        background: #052C3C;
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease-out;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    [data-hover]:hover::after {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* --- Ajuste específico para móvil --- */
@media (max-width: 767px) {
    /* Quitamos el desplazamiento lateral en móvil */
    .md\:translate-x-10 {
        transform: translateX(0) !important;
    }
    /* Aseguramos que el contenedor de botones no tape toda la foto */
    .absolute.inset-0.flex.flex-col {
        background: transparent !important;
        pointer-events: none; /* Para que el click pase a la imagen si no tocas el botón */
    }
    /* Pero que los botones sí reciban clicks */
    .absolute.inset-0.flex.flex-col button {
        pointer-events: auto;
        opacity: 0.9;
    }
}