/* Barra lateral flotante de redes sociales - Diseño UNAC */
#social-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    background: #ffffff5b;
    border-radius: 60px;
    padding: 18px 0px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #FFC107;
    width: 58px;
    align-items: center;
    opacity: 0;
}

#social-float:hover {
    box-shadow: 0 12px 48px rgba(10, 46, 82, 0.18), 
                0 4px 16px rgba(10, 46, 82, 0.12);
    transform: translateY(-50%) scale(1.03);
    border-color: #FFD54F;
}

.sf-item {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0a2e52;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    margin: 4px 0;
}

.sf-item svg {
    width: 19px;
    height: 19px;
    transition: all 0.3s ease;
}

.sf-item:hover {
    background: #0a2e52;
    color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 4px 12px rgba(10, 46, 82, 0.3);
}

.sf-item:hover svg {
    transform: scale(1.12);
}

/* Colores específicos para cada red social - Temática UNAC */
.sf-item[data-label="Facebook"]:hover {
    background: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.sf-item[data-label="Instagram"]:hover {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    box-shadow: 0 4px 12px rgba(253, 29, 29, 0.4);
}

.sf-item[data-label="YouTube"]:hover {
    background: #FF0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.sf-item[data-label="LinkedIn"]:hover {
    background: #0A66C2;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

.sf-item[data-label="WhatsApp"]:hover {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.sf-item[data-label="X"]:hover {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Separador visual */
.sf-separator {
    width: 2px;
    height: 45px;
    background: linear-gradient(
        to bottom, 
        transparent, 
        rgba(10, 46, 82, 0.15) 20%,
        rgba(255, 193, 7, 0.4) 50%,
        rgba(10, 46, 82, 0.15) 80%,
        transparent
    );
    margin: 8px auto;
    align-self: center;
    border-radius: 2px;
}

/* Tooltips mejorados - Estilo UNAC */
.sf-item::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: linear-gradient(135deg, #0a2e52 0%, #1a3a5f 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(10, 46, 82, 0.3);
    z-index: 10;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.sf-item::after {
    content: '';
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #0a2e52;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.sf-item:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sf-item:hover::after {
    opacity: 1;
}

/* Responsive: ocultar en móviles y tablets pequeños */
@media (max-width: 768px) {
    #social-float {
        display: none !important;
    }
}

/* Ajuste para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    #social-float {
        right: 16px;
        padding: 14px 10px;
    }
    
    .sf-item {
        width: 44px;
        height: 44px;
    }
    
    .sf-item svg {
        width: 20px;
        height: 20px;
    }
}

/* Accesibilidad mejorada */
.sf-item:focus {
    outline: none;
}

.sf-item:focus-visible {
    outline: 3px solid #FFC107;
    outline-offset: 3px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.2);
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

#social-float.loaded {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

#social-float {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* Estilo para el botón POSTULA con texto vertical (rotado) */
.sf-postula {
    /* contenedor externo (transparent) para respetar el ancho de la barra */
    position: relative;
    /* acercar la pastilla al separador: reducir la altura del contenedor */
    min-height: 110px;
    width: 52px !important;
    /* menos espacio abajo */
    padding: 6px 6px 4px 6px;
    border-radius: 34px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.sf-postula:hover {
    /* mantener contenedor sin fondo al pasar el mouse */
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Transiciones y estilo base para el texto POSTULA */
.sf-postula .postula-text {
    display: inline-block;
    transform: rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    color: #0a2e52;
    letter-spacing: 1px;
    transition: transform 0.16s ease, color 0.16s ease;
}

/* Hover: solo cambiar color y escalar ligeramente las letras */
.sf-postula:hover .postula-text {
    color: #FFC107; /* color solo de las letras */
    transform: rotate(-90deg) scale(1.08);
}

/* pastilla interior amarilla (óvalo) */
.postula-pill {
    /* contenedor transparente que se posiciona cerca del fondo pero no pegado */
    position: absolute;
    bottom: 36px; /* subir la pastilla más para acercarla al separador */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.postula-text {
    /* rotar 90° y centrar exactamente dentro de la pastilla */
    display: inline-block;
    transform: rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    color: #0a2e52;
    letter-spacing: 1px;
}

/* Eliminado texto previo innecesario */
.sf-postula::before { content: none; }
