/* ============================================
   MOBILE FIXES - FUERZA HAMBURGUESA
   ============================================ */

/* FORZAR HAMBURGUESA VISIBLE EN MÓVIL */
.mobile-menu-toggle {
    display: block !important;
    width: 30px !important;
    height: 24px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1000 !important;
    margin-right: 4px !important;
}

.mobile-menu-toggle span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background-color: var(--color-header-text, #333) !important;
    border-radius: 2px !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
}

/* X cuando está activo */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
    background-color: var(--color-header-text, #333) !important;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
    background-color: var(--color-header-text, #333) !important;
}

/* Ocultar en desktop */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* LUPA VISIBLE */
.search-toggle {
    display: flex !important;
    color: var(--color-header-text, #333) !important;
    font-size: 1.25rem !important;
}

@media (min-width: 768px) {
    .search-toggle {
        display: flex !important;
    }
}

/* X DEL MODAL DE GALERÍA */
#galleryModal .modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 2rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    cursor: pointer !important;
}

#galleryModal .modal-close:hover {
    background: rgba(0, 0, 0, 1) !important;
}

/* ============================================
   LATONJA'S SIGNATURE - ALL SCREENS
   ============================================ */

.signature-container {
    position: fixed;
    bottom: 22px;
    right: 12px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    animation: sigContainerIn 0.5s ease-out 0.6s forwards;
}

@keyframes sigContainerIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.signature-canvas {
    position: relative;
    width: 215px;
    height: 88px;
    background: rgba(254, 223, 60, 0.20);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(254, 223, 60, 0.38);
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.12),
        0 1px 8px rgba(0, 0, 0, 0.08);
}

/* ---- ABEJA ---- */
.signature-bee-artist {
    position: absolute;
    width: 44px;
    height: 44px;
    z-index: 10;
    top: -4px;
    right: -2px;
    opacity: 0;
    animation: sigBeeAnim 7s cubic-bezier(0.4, 0, 0.6, 1) 1s forwards;
}

.signature-bee-artist .bee-svg-wrap {
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}

@keyframes sigBeeAnim {
    0%   { opacity: 0; transform: translate(55px, 48px) rotate(-15deg) scale(0.55); }
    9%   { opacity: 1; transform: translate(-157px, 4px) rotate(-4deg) scale(1); }
    12%  { opacity: 1; transform: translate(-157px, 9px) rotate(3deg) scale(1); }
    55%  { opacity: 1; transform: translate(-5px, 4px) rotate(-2deg) scale(1); }
    74%  { opacity: 1; transform: translate(-5px, 2px) rotate(0deg) scale(1); }
    88%  { opacity: 0.5; transform: translate(22px, -58px) rotate(22deg) scale(0.8); }
    100% { opacity: 0; transform: translate(50px, -95px) rotate(38deg) scale(0.3); }
}

/* Alas de la abeja */
.signature-bee-artist .sb-wing-bl,
.signature-bee-artist .sb-wing-br,
.signature-bee-artist .sb-wing-fl,
.signature-bee-artist .sb-wing-fr {
    animation: sigWingFlap 0.12s linear infinite;
}
.signature-bee-artist .sb-wing-fl,
.signature-bee-artist .sb-wing-fr {
    animation-delay: 0.02s;
}

@keyframes sigWingFlap {
    0%, 100% { transform: scaleY(1) rotate(0deg); }
    50%       { transform: scaleY(0.3) rotate(5deg); }
}

/* ---- PUNTA DEL PINCEL ---- */
.paint-brush {
    position: absolute;
    bottom: -5px;
    left: 5px;
    width: 18px;
    height: 18px;
    opacity: 0;
    animation:
        sigBrushIn  0.3s ease-out 1.7s  forwards,
        sigBrushOut 0.3s ease-in  6.1s  forwards;
}

.paint-brush::after {
    content: '';
    position: absolute;
    width: 13px;
    height: 2.5px;
    background: linear-gradient(to right, #f018a3, #fedf3c);
    border-radius: 3px;
    transform: rotate(-35deg);
    box-shadow: 0 0 8px rgba(240, 24, 163, 0.8);
    bottom: 3px;
    left: 0;
}

@keyframes sigBrushIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes sigBrushOut { from { opacity: 1; } to { opacity: 0; } }

/* ---- TEXTO DE LA FIRMA ---- */
.signature-text-container {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 8px;
}

.signature-name-path {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 27px;
    font-weight: 700;
    background: linear-gradient(95deg, #c0058a, #f018a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #f018a3;
    line-height: 1;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    animation: sigTextReveal 3.2s cubic-bezier(0.5, 0, 0.5, 1) 1.65s both;
}

@keyframes sigTextReveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}

.signature-title-path {
    display: block;
    font-family: 'Raleway', 'Trebuchet MS', sans-serif;
    font-size: 8px;
    font-weight: 500;
    color: #6b1a52;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0;
    margin-top: 4px;
    animation: sigTitleIn 0.8s ease-out 5.1s forwards;
}

@keyframes sigTitleIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 0.9; transform: translateY(0); }
}

/* ---- PARTÍCULAS DE PINTURA ---- */
.paint-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.paint-particle:nth-child(1) {
    width: 5px; height: 5px;
    background: #fedf3c;
    top: 30px; left: 18px;
    animation: sigPFloat 0.85s ease-out 2.1s forwards;
}
.paint-particle:nth-child(2) {
    width: 4px; height: 4px;
    background: #f018a3;
    top: 28px; left: 70px;
    animation: sigPFloat 0.95s ease-out 2.9s forwards;
}
.paint-particle:nth-child(3) {
    width: 5px; height: 5px;
    background: #fedf3c;
    top: 30px; left: 125px;
    animation: sigPFloat 0.85s ease-out 3.65s forwards;
}
.paint-particle:nth-child(4) {
    width: 3px; height: 3px;
    background: #f018a3;
    top: 28px; left: 175px;
    animation: sigPFloat 1s ease-out 4.45s forwards;
}

@keyframes sigPFloat {
    0%   { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(-6px, -24px) scale(0.15); }
}

/* ---- DESVANECIMIENTO TOTAL ---- */
.signature-container.fade-out {
    animation: sigContainerOut 2s ease-in-out forwards;
}

@keyframes sigContainerOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-16px); }
}