/* =============================================
   MasterTouch Social Float — v1.1
   Botones flotantes de redes sociales (derecha)
   ============================================= */

.mtsf-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

/* ---- Botón base ---- */
.mtsf-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    width: 48px;
    height: 48px;
    border-radius: 10px 0 0 10px;
    text-decoration: none !important;
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    right: 0;
    transition:
        width 0.35s cubic-bezier(0.34, 1.3, 0.64, 1),
        box-shadow 0.25s ease;
    box-shadow: -3px 3px 14px rgba(0,0,0,0.22);
}

.mtsf-btn:hover {
    width: 158px;
    box-shadow: -5px 5px 22px rgba(0,0,0,0.32);
}

/* ---- Ícono ---- */
.mtsf-icon {
    min-width: 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.mtsf-btn:hover .mtsf-icon {
    transform: scale(1.15) rotate(-5deg);
}

.mtsf-icon svg {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* ---- Label ---- */
.mtsf-label {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    padding-right: 0;
    transition:
        opacity 0.2s ease 0.1s,
        max-width 0.35s ease,
        padding-right 0.3s ease;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    pointer-events: none;
}

.mtsf-btn:hover .mtsf-label {
    opacity: 1;
    max-width: 120px;
    padding-right: 16px;
}

/* ---- Colores por red ---- */

/* Facebook */
.mtsf-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5fc7 100%);
}
.mtsf-facebook:hover {
    background: linear-gradient(135deg, #1d87ff 0%, #1877F2 100%);
    color: #fff !important;
}

/* Instagram */
.mtsf-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.mtsf-instagram:hover {
    background: linear-gradient(135deg, #f7a84a 0%, #f07050 25%, #e83558 50%, #d73578 100%);
    color: #fff !important;
}

/* YouTube */
.mtsf-youtube {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
}
.mtsf-youtube:hover {
    background: linear-gradient(135deg, #ff2222 0%, #ee0000 100%);
    color: #fff !important;
}

/* TikTok */
.mtsf-tiktok {
    background: linear-gradient(135deg, #69C9D0 0%, #010101 50%, #EE1D52 100%);
}
.mtsf-tiktok:hover {
    background: linear-gradient(135deg, #69C9D0 0%, #222 50%, #EE1D52 100%);
    color: #fff !important;
}

/* ---- Entrada animada al cargar ---- */
.mtsf-btn {
    animation: mtsf-slide-in 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.mtsf-facebook  { animation-delay: 0.1s; }
.mtsf-instagram { animation-delay: 0.2s; }
.mtsf-youtube   { animation-delay: 0.3s; }
.mtsf-tiktok    { animation-delay: 0.4s; }

@keyframes mtsf-slide-in {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---- Responsive: en móvil más pequeño ---- */
@media (max-width: 768px) {
    .mtsf-btn {
        width: 42px;
        height: 42px;
    }
    .mtsf-icon {
        min-width: 42px;
        width: 42px;
        height: 42px;
    }
    .mtsf-icon svg {
        width: 18px;
        height: 18px;
    }
    .mtsf-btn:hover {
        width: 140px;
    }
}
